Changeset 1680
- Timestamp:
- 08/15/14 08:33:59 (10 years ago)
- Location:
- branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
r1675 r1680 149 149 } else if (tempTask.getType() == "sequence") { 150 150 System.out.println("Adding SequenceInstance " + parent.get(startIndex) + " to " + tempTask.getType()); 151 ISequenceInstance sequence = taskFactory.createNewTaskInstance((ISequence) tempTask); 152 taskBuilder.addChild(sequence,parent.get(startIndex)); 151 //ISequenceInstance sequence = taskFactory.createNewTaskInstance((ISequence) tempTask); 152 taskBuilder.addChild(subsequence,parent.get(startIndex)); 153 //taskBuilder.addChild(subsequence, sequence); 153 154 154 155 } else if (tempTask.getType() == "iteration") { -
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1679 r1680 68 68 class SequenceForTaskDetectionRuleAlignment implements ISessionScopeRule { 69 69 70 71 private int iteration = 0; 70 72 /** 71 73 * <p> … … 148 150 149 151 150 appData.detectedAndReplacedTasks = false;151 152 do { 153 iteration++; 154 appData.detectedAndReplacedTasks = false; 152 155 harmonizeEventTaskInstancesModel(appData); 153 appData.getStopWatch().start("whole loop"); //154 //detectAndReplaceIterations(appData);155 appData.getStopWatch().start("task replacement"); //156 appData.getStopWatch().start("whole loop"); 157 detectAndReplaceIterations(appData); 158 appData.getStopWatch().start("task replacement"); 156 159 detectAndReplaceTasks(appData); // 157 appData.getStopWatch().stop("task replacement"); //160 appData.getStopWatch().stop("task replacement"); 158 161 appData.getStopWatch().stop("whole loop"); 159 appData.getStopWatch().dumpStatistics(System.out); //162 appData.getStopWatch().dumpStatistics(System.out); 160 163 appData.getStopWatch().reset(); 161 164 … … 185 188 for (int j = 0; j < session.size(); j++) { 186 189 ITaskInstance taskInstance = session.get(j); 187 System.out.print(taskInstance.getTask().getId() + " ");190 //System.out.print(taskInstance.getTask().getId() + " "); 188 191 templist.getSequence()[j] = taskInstance.getTask().getId(); 189 192 appData.getNumber2Task().put(templist.getSequence()[j], 190 193 taskInstance.getTask()); 191 194 } 192 System.out.println();195 //System.out.println(); 193 196 // Each NumberSequence is identified by its id, beginning to count 194 197 // at zero … … 307 310 } 308 311 } 309 310 312 return iteratedTasks; 311 313 } … … 621 623 MatchOccurence oc = it.next(); 622 624 623 /* 624 * System.out.println("Trying to replace sequence: "); 625 * matchseqs.get(i).getFirstSequence().printSequence(); 626 * matchseqs.get(i).getSecondSequence().printSequence(); 627 * System.out.println(" in session number: " + 628 * (oc.getSequenceId() + 1) + " at position " + 629 * (oc.getStartindex()) + "-" + oc.getEndindex()); 630 * System.out.println(); 631 */ 632 633 // System.out.println("Printing session: "); 634 // for (int j = 0; j < 635 // appData.getSessions().get(oc.getSequenceId()).size(); 636 // j++) { 637 // System.out.println(j + ": " 638 // + appData.getSessions().get(oc.getSequenceId()).get(j)); 639 // } 625 if(iteration==-1) { 626 System.out.println("Trying to replace sequence: "); 627 matchseqs.get(i).getFirstSequence().printSequence(); 628 matchseqs.get(i).getSecondSequence().printSequence(); 629 System.out.println(" in session number: " + 630 (oc.getSequenceId() + 1) + " at position " + 631 (oc.getStartindex()) + "-" + oc.getEndindex()); 632 System.out.println(); 633 634 635 System.out.println("Printing session: "); 636 for (int j = 0; j < 637 appData.getSessions().get(oc.getSequenceId()).size(); 638 j++) { 639 System.out.println(j + ": " 640 + appData.getSessions().get(oc.getSequenceId()).get(j)); 641 } 642 } 640 643 641 644 // Check if nothing has been replaced in the sequence we
Note: See TracChangeset
for help on using the changeset viewer.