Changeset 852


Ignore:
Timestamp:
10/01/12 13:08:31 (12 years ago)
Author:
sherbold
Message:
Location:
trunk
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events-test/src/test/java/de/ugoe/cs/quest/eventcore/gui/KeyInteractionCorrectorTest.java

    r783 r852  
    1313 
    1414import de.ugoe.cs.quest.eventcore.Event; 
    15 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionSorter.CleanupMode; 
     15import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector.CleanupMode; 
    1616import de.ugoe.cs.quest.eventcore.gui.MouseButtonInteraction.Button; 
    1717import de.ugoe.cs.quest.eventcore.guimodel.IGUIElement; 
     
    2323 * @author Patrick Harms, Steffen Herbold 
    2424 */ 
    25 public class KeyInteractionSorterTest { 
     25public class KeyInteractionCorrectorTest { 
    2626 
    2727    @Test 
     
    3030        List<Event> expected = new LinkedList<Event>(); 
    3131 
    32         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     32        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    3333 
    3434        IGUIElement guiElement = mock(IGUIElement.class); 
     
    5353        List<Event> expected = new LinkedList<Event>(); 
    5454 
    55         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     55        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    5656 
    5757        IGUIElement guiElement = mock(IGUIElement.class); 
     
    7676        List<Event> expected = new LinkedList<Event>(); 
    7777 
    78         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     78        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    7979 
    8080        IGUIElement guiElement = mock(IGUIElement.class); 
     
    103103        List<Event> expected = new LinkedList<Event>(); 
    104104 
    105         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     105        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    106106 
    107107        IGUIElement guiElement = mock(IGUIElement.class); 
     
    130130        List<Event> expected = new LinkedList<Event>(); 
    131131 
    132         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     132        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    133133 
    134134        IGUIElement guiElement = mock(IGUIElement.class); 
     
    160160        List<Event> expected = new LinkedList<Event>(); 
    161161 
    162         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     162        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    163163 
    164164        IGUIElement guiElement = mock(IGUIElement.class); 
     
    195195        List<Event> expected = new LinkedList<Event>(); 
    196196 
    197         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     197        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    198198 
    199199        IGUIElement guiElement = mock(IGUIElement.class); 
     
    230230        List<Event> expected = new LinkedList<Event>(); 
    231231 
    232         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     232        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    233233 
    234234        IGUIElement guiElement = mock(IGUIElement.class); 
     
    269269        List<Event> expected = new LinkedList<Event>(); 
    270270 
    271         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     271        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    272272 
    273273        IGUIElement guiElement = mock(IGUIElement.class); 
     
    305305        List<Event> expected = new LinkedList<Event>(); 
    306306 
    307         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     307        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    308308 
    309309        IGUIElement guiElement = mock(IGUIElement.class); 
     
    337337        List<Event> expected = new LinkedList<Event>(); 
    338338 
    339         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     339        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    340340 
    341341        IGUIElement guiElement = mock(IGUIElement.class); 
     
    361361        List<Event> expected = new LinkedList<Event>(); 
    362362 
    363         KeyInteractionSorter sorter = new KeyInteractionSorter(); 
     363        KeyInteractionCorrector sorter = new KeyInteractionCorrector(); 
    364364 
    365365        IGUIElement guiElement = mock(IGUIElement.class); 
     
    387387        List<Event> expected = new LinkedList<Event>(); 
    388388 
    389         KeyInteractionSorter sorter = new KeyInteractionSorter(CleanupMode.REMOVAL); 
     389        KeyInteractionCorrector sorter = new KeyInteractionCorrector(CleanupMode.REMOVAL); 
    390390 
    391391        IGUIElement guiElement = mock(IGUIElement.class); 
     
    408408        List<Event> expected = new LinkedList<Event>(); 
    409409 
    410         KeyInteractionSorter sorter = new KeyInteractionSorter(CleanupMode.ADDITION); 
     410        KeyInteractionCorrector sorter = new KeyInteractionCorrector(CleanupMode.ADDITION); 
    411411 
    412412        IGUIElement guiElement = mock(IGUIElement.class); 
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/KeyInteractionCorrector.java

    r795 r852  
    4040 * @author Steffen Herbold 
    4141 */ 
    42 public class KeyInteractionSorter { 
     42public class KeyInteractionCorrector { 
    4343 
    4444    /** 
     
    7575    /** 
    7676     * <p> 
    77      * Constructor. Creates a new {@link KeyInteractionSorter} with {@link #mode}= 
     77     * Constructor. Creates a new {@link KeyInteractionCorrector} with {@link #mode}= 
    7878     * {@link CleanupMode#ADDITION}. 
    7979     * </p> 
    8080     */ 
    81     public KeyInteractionSorter() { 
     81    public KeyInteractionCorrector() { 
    8282        this(CleanupMode.ADDITION); 
    8383    } 
     
    8585    /** 
    8686     * <p> 
    87      * Constructor. Creates a new {@link KeyInteractionSorter}. 
     87     * Constructor. Creates a new {@link KeyInteractionCorrector}. 
    8888     * </p> 
    8989     *  
     
    9191     *            {@link #mode} of the instance 
    9292     */ 
    93     public KeyInteractionSorter(CleanupMode mode) { 
     93    public KeyInteractionCorrector(CleanupMode mode) { 
    9494        this.mode = mode; 
    9595    } 
     
    9898     * <p> 
    9999     * Sorts and cleans up key interactions according to the class specification (@see 
    100      * {@link KeyInteractionSorter} class comment). 
     100     * {@link KeyInteractionCorrector} class comment). 
    101101     * </p> 
    102102     * <p> 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsortKeyInteractions.java

    r803 r852  
    1010import de.ugoe.cs.quest.SequenceInstanceOf; 
    1111import de.ugoe.cs.quest.eventcore.Event; 
    12 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionSorter; 
    13 import de.ugoe.cs.quest.eventcore.gui.KeyInteractionSorter.CleanupMode; 
     12import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector; 
     13import de.ugoe.cs.quest.eventcore.gui.KeyInteractionCorrector.CleanupMode; 
    1414import de.ugoe.cs.util.console.Command; 
    1515import de.ugoe.cs.util.console.Console; 
     
    110110        for (List<Event> sequence : sequences) { 
    111111            Console.traceln(Level.INFO, "Processing sequence " + i++); 
    112             newSequences.add(new KeyInteractionSorter(mode).sortKeyInteractions(sequence)); 
     112            newSequences.add(new KeyInteractionCorrector(mode).sortKeyInteractions(sequence)); 
    113113        } 
    114114 
Note: See TracChangeset for help on using the changeset viewer.