Changeset 971 for trunk


Ignore:
Timestamp:
11/08/12 19:55:29 (12 years ago)
Author:
pharms
Message:
  • correction for detecting sequences of value selections of different GUI elements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TrackBarSelectionDetectionRule.java

    r922 r971  
    5151 
    5252        int valueSelectionStartIndex = -1; 
     53        ITrackBar currentTrackBar = null; 
    5354 
    5455        int index = 0; 
     
    5859            if ((child instanceof IEventTask) && 
    5960                (((IEventTask) child).getEventTarget() instanceof ITrackBar) && 
    60                 (((IEventTask) child).getEventType() instanceof ValueSelection)) 
     61                (((IEventTask) child).getEventType() instanceof ValueSelection) && 
     62                ((currentTrackBar == null) || 
     63                 (currentTrackBar.equals((((IEventTask) child).getEventTarget()))))) 
    6164            { 
    6265                if (valueSelectionStartIndex < 0) { 
    6366                    // let the show begin 
    6467                    valueSelectionStartIndex = index; 
     68                    currentTrackBar = (ITrackBar) ((IEventTask) child).getEventTarget(); 
    6569                } 
    6670            } 
     
    105109    { 
    106110        IIteration iteration = nodeFactory.createNewIteration(); 
     111        //builder.setDescription(iteration, "value selection on " + ) 
    107112        result.addNewlyCreatedParentNode(iteration); 
    108113 
Note: See TracChangeset for help on using the changeset viewer.