Changeset 1699 for branches/autoquest-core-tasktrees-alignment
- Timestamp:
- 08/27/14 21:23:17 (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
r1698 r1699 48 48 } 49 49 50 //TODO: Merge this with updateEventTaskInstances 50 51 private void searchEventTaskInstances() { 51 int count = 0;52 52 for (Iterator<ITask> it = uniqueTasks.iterator(); it.hasNext();) { 53 count++;54 55 53 ITask task = it.next(); 56 54 if (!(task instanceof IEventTask)) { … … 62 60 } 63 61 } 64 62 } 63 64 public void updateEventTaskInstances(LinkedList<ITask> newTasks){ 65 for (Iterator<ITask> it = newTasks.iterator();it.hasNext();) { 66 ITask task = it.next(); 67 if (!(task instanceof IEventTask)) { 68 EventTaskInstancesListGenerator etlg = new EventTaskInstancesListGenerator(); 69 task.accept(etlg); 70 LinkedList<IEventTaskInstance> eventTaskInstances = etlg 71 .getEventlist(); 72 etisOfTasks.put(task.getId(), eventTaskInstances); 73 } 74 } 65 75 } 66 76 … … 70 80 if (this.calculateNonTaskInstances) { 71 81 Console.traceln(Level.INFO, "searching EventTasks in Tasks"); 72 searchEventTaskInstances();82 this.updateEventTaskInstances(newTasks); 73 83 } 74 84 … … 200 210 if (this.calculateNonTaskInstances) { 201 211 float tmpDistance = 0; 212 //System.out.println(etisOfTasks); 202 213 LinkedList<IEventTaskInstance> eventTaskInstances = etisOfTasks 203 214 .get(task1.getId()); -
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
r1696 r1699 120 120 } 121 121 ITask tempTask = model.getChildren().get(modelindex); 122 //System.out.println("Trying to add " + parent.get(startIndex)123 // + " to the model instance " + tempTask.getType());122 System.out.println("Trying to add " + parent.get(startIndex) 123 + " to the model instance " + tempTask); 124 124 if (tempTask.getType() == "optionality") { 125 125
Note: See TracChangeset
for help on using the changeset viewer.