Changeset 1146 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleApplicationResult.java
- Timestamp:
- 04/04/13 16:06:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleApplicationResult.java
r1127 r1146 18 18 import java.util.List; 19 19 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode; 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 21 22 22 23 /** 23 24 * <p> 24 * The rule application result describes the result of applying a {@link TemporalRelationshipRule}25 * on a task tree node. It contains a {@link RuleApplicationStatus} and a list of all parent26 * t ask tree nodes that were created during a rule application. See the description of27 * {@link TemporalRelationshipRule} for more details.25 * The rule application result describes the result of applying a {@link ITemporalRelationshipRule}. 26 * It contains a {@link RuleApplicationStatus} and a list of all parent task instances and tasks 27 * that were created during a rule application. See the description of 28 * {@link ITemporalRelationshipRule} for more details. 28 29 * </p> 29 30 * … … 36 37 37 38 /** */ 38 private List<ITaskTreeNode> newParents = new ArrayList<ITaskTreeNode>(); 39 private List<ITask> newParentTasks = new ArrayList<ITask>(); 40 41 /** */ 42 private List<ITaskInstance> newParentInstances = new ArrayList<ITaskInstance>(); 39 43 40 44 /** … … 67 71 /** 68 72 * <p> 69 * add a further parent nodecreated during the rule application73 * add a further parent task created during the rule application 70 74 * </p> 71 75 */ 72 void addNewlyCreated ParentNode(ITaskTreeNodenewParent) {73 newParent s.add(newParent);76 void addNewlyCreatedTask(ITask newParent) { 77 newParentTasks.add(newParent); 74 78 } 75 79 76 80 /** 77 81 * <p> 78 * return all parent nodes created during the rule application82 * return all parent tasks created during the rule application 79 83 * </p> 80 84 */ 81 List<ITaskTreeNode> getNewlyCreatedParentNodes() { 82 return newParents; 85 List<ITask> getNewlyCreatedTasks() { 86 return newParentTasks; 87 } 88 89 /** 90 * <p> 91 * add a further parent task instance created during the rule application 92 * </p> 93 */ 94 void addNewlyCreatedTaskInstance(ITaskInstance newParent) { 95 newParentInstances.add(newParent); 96 } 97 98 /** 99 * <p> 100 * return all parent task instances created during the rule application 101 * </p> 102 */ 103 List<ITaskInstance> getNewlyCreatedTaskInstances() { 104 return newParentInstances; 83 105 } 84 106
Note: See TracChangeset
for help on using the changeset viewer.