Changeset 1213
- Timestamp:
- 05/27/13 14:53:38 (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskVisitor.java
r1191 r1213 18 18 /** 19 19 * <p> 20 * TODO comment 20 * This is an implementation of the visitor pattern. Through this, it is possible to effectively 21 * process a task model. 21 22 * </p> 22 23 * … … 26 27 27 28 /** 28 * 29 * <p> 30 * method called for each visited event task. 31 * </p> 32 * 33 * @param eventTask the event task to be processed 29 34 */ 30 public void visit(IEventTask event );35 public void visit(IEventTask eventTask); 31 36 32 37 /** 33 * 38 * <p> 39 * method called for each visited iteration. 40 * </p> 41 * 42 * @param iteration the iteration to be processed 34 43 */ 35 44 public void visit(IIteration iteration); 36 45 37 46 /** 38 * 47 * <p> 48 * method called for each visited optional. 49 * </p> 50 * 51 * @param optional the optional to be processed 52 */ 53 public void visit(IOptional optional); 54 55 /** 56 * <p> 57 * method called for each visited selection. 58 * </p> 59 * 60 * @param selection the selection to be processed 39 61 */ 40 62 public void visit(ISelection selection); 41 63 42 64 /** 43 * 65 * <p> 66 * method called for each visited sequence. 67 * </p> 68 * 69 * @param sequence the sequence to be processed 44 70 */ 45 71 public void visit(ISequence sequence); 46 72 47 73 /** 48 * 74 * <p> 75 * method called for each other kind of visited task (implemented to support future versions). 76 * </p> 77 * 78 * @param task the task to be processed 49 79 */ 50 80 public void visit(ITask task); -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/ContainsEventVisitor.java
r1204 r1213 18 18 19 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 20 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 21 22 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; … … 53 54 54 55 /* (non-Javadoc) 56 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 57 */ 58 public void visit(IOptional optional) { 59 checkTaskAndReturnIfPatternIsPresent(optional.getMarkedTask()); 60 } 61 62 /* (non-Javadoc) 55 63 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 56 64 */ -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/ContainsInteractionPatternVisitor.java
r1204 r1213 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 19 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 20 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; … … 52 53 53 54 /* (non-Javadoc) 55 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 56 */ 57 public void visit(IOptional optional) { 58 checkTaskAndReturnIfPatternIsPresent(optional.getMarkedTask()); 59 } 60 61 /* (non-Javadoc) 54 62 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 55 63 */ -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/EndsWithEventVisitor.java
r1204 r1213 16 16 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 18 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 19 20 import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor; … … 51 52 52 53 /* (non-Javadoc) 54 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 55 */ 56 public void visit(IOptional optional) { 57 optional.getMarkedTask().accept(this); 58 } 59 60 /* (non-Javadoc) 53 61 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 54 62 */ -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/EndsWithInteractionPatternVisitor.java
r1204 r1213 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 19 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 20 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; … … 53 54 54 55 /* (non-Javadoc) 56 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 57 */ 58 public void visit(IOptional optional) { 59 this.present = containedPattern.containedIn(optional); 60 } 61 62 /* (non-Javadoc) 55 63 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 56 64 */ -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/StartsWithEventVisitor.java
r1204 r1213 16 16 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 18 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 19 20 import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor; … … 51 52 52 53 /* (non-Javadoc) 54 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 55 */ 56 public void visit(IOptional optional) { 57 optional.getMarkedTask().accept(this); 58 } 59 60 /* (non-Javadoc) 53 61 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 54 62 */ -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/StartsWithInteractionPatternVisitor.java
r1204 r1213 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 19 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 20 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; … … 53 54 54 55 /* (non-Javadoc) 56 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 57 */ 58 public void visit(IOptional optional) { 59 this.present = containedPattern.containedIn(optional); 60 } 61 62 /* (non-Javadoc) 55 63 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 56 64 */
Note: See TracChangeset
for help on using the changeset viewer.