Changeset 1320
- Timestamp:
- 11/10/13 21:01:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/InteractionPattern.java
r1319 r1320 139 139 */ 140 140 private void checkTask(ITask task) { 141 System.out.println("+++++++++++++++");142 System.out.println(task);143 System.out.println(this);144 System.out.println(this.patternVisitors);145 141 applyAllVisitors(task); 146 System.out.println("------------");147 142 if (allVisitorsArePresent()) { 148 143 this.present = true; … … 151 146 resetAllVisitors(); 152 147 } 153 System.out.println("^^^^^^^^^^^^");154 148 } 155 149 … … 165 159 */ 166 160 public boolean containedIn(ITask task) { 167 System.out.println('>');168 161 checkTask(task); 169 System.out.println("< "+this.present);170 162 return this.present; 171 163 } … … 184 176 Optional<InteractionPatternVisitor> previousVisitor = Optional.absent(); 185 177 for (InteractionPatternVisitor visitor : patternVisitors) { 186 System.out.print(visitor+" ");187 178 if (appliedOnSelectionNode(previousVisitor)) { 188 System.out.println("Selection");189 179 for (ITask selection : previousVisitor.get().getRetainedSelectionNodes()) { 190 180 selection.accept(visitor); … … 192 182 } 193 183 else { 194 System.out.println("Normal");195 184 previousVisitor = Optional.of(visitor); 196 185 task.accept(visitor); 197 186 } 198 System.out.println(visitor.isPresent() ? '1' : '0');199 187 } 200 188 } … … 246 234 }); 247 235 int cnt = Iterables.size(allPresent); 248 System.out.printf("%d/%d\n", cnt, this.patternVisitors.size());249 236 return cnt == this.patternVisitors.size(); 250 237 } … … 257 244 */ 258 245 private void resetAllVisitors() { 259 System.out.println("+RESET+");260 246 for (InteractionPatternVisitor visitor : this.patternVisitors) { 261 247 visitor.reset();
Note: See TracChangeset
for help on using the changeset viewer.