Changeset 1973
- Timestamp:
- 06/22/15 16:28:15 (9 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/CondenseSimilarTasksRule.java
r1971 r1973 1292 1292 1293 1293 // perform the actual replacement and throw away the instance 1294 taskBuilder.setMarkedTask(optionalInstance.getOptional(), replacement.getTask()); 1294 1295 taskBuilder.setChild(optionalInstance, replacement); 1295 1296 TaskPath path = new TaskPath(); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/utils/SimilarTasks.java
r1972 r1973 1155 1155 for (TaskPath path : paths) { 1156 1156 for (int i = commonPath.size(); i < path.size(); i++) { 1157 if (!(path.getLast() instanceof IEventTask)) { 1158 // check, if the parent task covers things fully inside the delta 1159 int[] indexes = traversal.getIndexesRootedBy(path.subPath(0, i + 1)); 1160 1161 if ((chunk.getPosition() <= indexes[0]) && // starts in the delta 1162 (indexes[1] < (chunk.getPosition() + chunk.size()))) // ends in the delta 1163 { 1164 // System.out.println("found path to parent task lieing completely in the " + 1165 // "delta: " + path.subPath(0, i + 1)); 1166 result.add(path.subPath(0, i + 1)); 1167 break; 1168 } 1157 // check, if the parent task covers things fully inside the delta 1158 int[] indexes = traversal.getIndexesRootedBy(path.subPath(0, i + 1)); 1159 1160 if ((chunk.getPosition() <= indexes[0]) && // starts in the delta 1161 (indexes[1] < (chunk.getPosition() + chunk.size()))) // ends in the delta 1162 { 1163 // System.out.println("found path to parent task lieing completely in the " + 1164 // "delta: " + path.subPath(0, i + 1)); 1165 result.add(path.subPath(0, i + 1)); 1166 break; 1169 1167 } 1170 1168 }
Note: See TracChangeset
for help on using the changeset viewer.