Changeset 1679
- Timestamp:
- 08/14/14 23:14:44 (10 years ago)
- Location:
- branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/ObjectDistanceSubstitionMatrix.java
r1677 r1679 113 113 private int getIndex(ITask task) { 114 114 int tempindex =-1; 115 115 116 if(!idmapping.containsKey(task.getId())) { 116 117 idmapping.put(task.getId(), index); … … 121 122 tempindex = idmapping.get(task.getId()); 122 123 } 124 123 125 return tempindex; 124 126 } … … 154 156 } 155 157 else { 158 //System.out.println("Firsttask: " +taskId1); 159 //System.out.println("Secondtask: " + taskId2); 156 160 int first = idmapping.get(taskId1); 157 161 int second = idmapping.get(taskId2); 158 System.out.println("First: " + first + " Second: " + second);159 System.out.println("Matrix: " + matrix.get(first, second));162 //System.out.println("First: " + first + " Second: " + second); 163 //System.out.println("Matrix: " + matrix.get(first, second)); 160 164 return matrix.get(first,second); 161 165 } -
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1677 r1679 147 147 RuleApplicationData appData = new RuleApplicationData(sessions); 148 148 149 harmonizeEventTaskInstancesModel(appData);149 150 150 appData.detectedAndReplacedTasks = false; 151 151 do { 152 152 harmonizeEventTaskInstancesModel(appData); 153 153 appData.getStopWatch().start("whole loop"); // 154 154 // detectAndReplaceIterations(appData); … … 185 185 for (int j = 0; j < session.size(); j++) { 186 186 ITaskInstance taskInstance = session.get(j); 187 System.out.print(taskInstance.getTask().getId() + " "); 187 188 templist.getSequence()[j] = taskInstance.getTask().getId(); 188 189 appData.getNumber2Task().put(templist.getSequence()[j], 189 190 taskInstance.getTask()); 190 191 } 192 System.out.println(); 191 193 // Each NumberSequence is identified by its id, beginning to count 192 194 // at zero … … 430 432 //System.out.println("First: " + first[i] + " Second: " + second[i]); 431 433 ISelection selection = taskFactory.createNewSelection(); 434 ISelectionInstance temp = taskFactory.createNewTaskInstance(selection); 432 435 appData.uniqueTasks 433 .addSymbol( 434 taskFactory.createNewTaskInstance(selection), 435 selection); 436 .addSymbol(temp,selection); 436 437 appData.number2task.put(selection.getId(), selection); 437 438 taskBuilder.addChild(selection, … … 561 562 } 562 563 } 563 if (matchseqs.size() > 0) { 564 appData.detectedAndReplacedTasks = true; 565 } 564 566 565 Console.traceln(Level.FINEST, 567 566 "retrieving significant sequence pieces: 100%"); … … 615 614 // well 616 615 if (matchseqs.get(i).occurenceCount() > 2) { 617 616 617 appData.detectedAndReplacedTasks = true; 618 618 ISequence task = matchAsSequence(appData, matchseqs.get(i)); 619 619 invalidOccurence: for (Iterator<MatchOccurence> it = matchseqs
Note: See TracChangeset
for help on using the changeset viewer.