Changeset 1657 for branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
- Timestamp:
- 08/11/14 08:22:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
r1656 r1657 17 17 import java.util.Iterator; 18 18 19 import org.apache.commons.lang.NotImplementedException; 20 19 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.IMarkingTemporalRelationship; 20 22 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; … … 46 48 private static int idCounter = 0; 47 49 50 public static int missedOptionals = 0; 51 48 52 /** 49 53 * <p> … … 107 111 .createNewTaskInstance(model); 108 112 109 for (int i=0; i<subsequence.getSequence().getChildren().size();i++) { 110 System.out.println(subsequence.getSequence().getChildren().get(i)); 111 } 112 System.out.println(); 113 113 //for (int i=0; i<subsequence.getSequence().getChildren().size();i++) { 114 // System.out.println(subsequence.getSequence().getChildren().get(i)); 115 //} 116 System.out.println(); 117 //TODO: This is dirty! 118 missedOptionals=0; 114 119 int modelindex=0; 115 120 for (int i = startIndex; i <= endIndex; i++) { 116 121 122 if(modelindex == model.getChildren().size()) { 123 break; 124 } 117 125 ITask tempTask = model.getChildren().get(modelindex); 118 126 //System.out.println("Trying to add " + parent.get(startIndex) … … 131 139 taskBuilder.addChild(subsequence, optional); 132 140 modelindex++; 133 i++;141 missedOptionals++; 134 142 continue; 135 143 } … … 142 150 } else if (tempTask.getType() == "sequence") { 143 151 System.out.println("Adding SequenceInstance " + parent.get(startIndex) + " to " + tempTask.getType()); 152 //TODO: Implement this 153 throw new NotImplementedException(); 144 154 145 155 } else if (tempTask.getType() == "iteration") { 156 //TODO: Implement this 146 157 System.out.println("Adding IterationInstance " + parent.get(startIndex) + " to " + tempTask.getType()); 158 throw new NotImplementedException(); 147 159 } else { 148 160 System.out.println("Adding EventInstance " + parent.get(startIndex) + " to " + tempTask.getType()); … … 152 164 modelindex++; 153 165 } 154 166 /* 167 System.out.println(); 155 168 System.out.println("Sequence instance:"); 156 169 for(Iterator<ITaskInstance> it = subsequence.iterator();it.hasNext();) { 157 170 System.out.println(it.next()); 158 } 171 }*/ 172 System.out.println(); 173 System.out.println(); 159 174 160 175 taskBuilder.addTaskInstance(parent, startIndex, subsequence);
Note: See TracChangeset
for help on using the changeset viewer.