Changeset 1957


Ignore:
Timestamp:
06/01/15 13:50:28 (9 years ago)
Author:
pharms
Message:
  • corrected detection of overlapping iterations to handle only iterations of more than one action
File:
1 edited

Legend:

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

    r1954 r1957  
    890890    { 
    891891        if (instance instanceof IIterationInstance) { 
    892             if (((IIterationInstance) instance).size() > 1) { 
    893                 // iteration executed multiple times --> store path 
     892            ITask markedTask = instance.getTask(); 
     893             
     894            while (markedTask instanceof IMarkingTemporalRelationship) { 
     895                markedTask = ((IMarkingTemporalRelationship) markedTask).getMarkedTask(); 
     896            } 
     897             
     898            if ((!(markedTask instanceof IEventTask)) && 
     899                ((IIterationInstance) instance).size() > 1) 
     900            { 
     901                // iteration repeates multiple event tasks and is executed multiple times --> 
     902                // store path 
    894903                result.add(currentPath.subPath(0, currentPath.size())); // ensure to create a copy 
    895904            } 
Note: See TracChangeset for help on using the changeset viewer.