Changeset 1980
- Timestamp:
- 06/30/15 10:01:48 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/utils/SimilarTasks.java
r1974 r1980 899 899 ((IIterationInstance) instance).size() > 1) 900 900 { 901 // iteration repeat es multiple event tasks and is executed multiple times -->901 // iteration repeats multiple event tasks and is executed multiple times --> 902 902 // store path 903 903 result.add(currentPath.subPath(0, currentPath.size())); // ensure to create a copy … … 948 948 for (TaskPath leftPath : iterationsWithMultipleExecutions) { 949 949 if (leftPath.getTask(0).equals(leftHandSide)) { 950 int[] leftIdxs = leftHandSideTraversal.getIndexesRootedBy(leftPath);951 952 950 for (TaskPath rightPath : iterationsWithMultipleExecutions) { 953 951 if (rightPath.getTask(0).equals(rightHandSide)) { 952 int[] leftIdxs = leftHandSideTraversal.getIndexesRootedBy(leftPath); 954 953 int[] rightIdxs = rightHandSideTraversal.getIndexesRootedBy(rightPath); 955 954 956 955 adaptIndexesBasedOnDeltas(leftIdxs, rightIdxs, patch.getDeltas()); 957 956 958 if (((leftIdxs[0] < rightIdxs[0]) && (rightIdxs[0] <= leftIdxs[1])) ||959 ((rightIdxs[0] < leftIdxs[0]) && (leftIdxs[0] <= rightIdxs[1])))957 if (((leftIdxs[0] <= rightIdxs[0]) && (rightIdxs[0] <= leftIdxs[1])) || 958 ((rightIdxs[0] <= leftIdxs[0]) && (leftIdxs[0] <= rightIdxs[1]))) 960 959 { 961 960 overlappingIterations.add(leftPath); … … 1239 1238 TaskTraversal traversal2) 1240 1239 { 1240 if (patch.getDeltas().size() == 0) { 1241 return 0; 1242 } 1243 1241 1244 int diffCount = 0; 1242 1245 int allCount = 0;
Note: See TracChangeset
for help on using the changeset viewer.