Changeset 1146 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/ITaskInstanceListScopeRule.java
- Timestamp:
- 04/04/13 16:06:07 (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/ITaskInstanceListScopeRule.java
r1113 r1146 15 15 package de.ugoe.cs.autoquest.tasktrees.temporalrelation; 16 16 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask TreeNode;17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstanceList; 18 18 19 19 /** 20 20 * <p> 21 * a temporal relationship rule is able to detected temporal relationships between the child nodes 22 * of the parent node provided to the {@link #apply(ITaskTreeNode, boolean)} method. A rule 23 * creates temporal relationships between the child nodes, i.e. substructures in the task tree, if 24 * it detects a temporal relationship and it can be sure that it is complete. Incomplete but 25 * detected temporal relationships may occur, if there can be more children expected to be added 26 * to the provided parent node. This could be the case during parsing a interaction log file of 27 * a GUI. 21 * a task instance list scope rule is able to detected temporal relationships between a list of task 22 * instances provided to the {@link #apply(ITaskInstanceList)} method. A rule creates temporal 23 * relationships between the task instances, i.e. substructures in the task tree, if 24 * it detects a temporal relationship and instantiates the temporal relationships accordingly. 28 25 * </p> 29 26 * 30 27 * @author Patrick Harms 31 28 */ 32 interface TemporalRelationshipRule {29 interface ITaskInstanceListScopeRule extends ITemporalRelationshipRule { 33 30 34 31 /** 35 32 * <p> 36 * applies the rule to the given parent node. The finalize parameter is used to command the rule 37 * to finish rule applications, in the case it is known that no further data will be available. 38 * </p> 39 * <p> 40 * The returned rule application result is null, if the rule can not be applied, i.e. it does not 41 * detect a temporal relationship. It returns a rule application result with a status 42 * {@link RuleApplicationStatus#RULE_APPLICATION_FINISHED} if the rule was applied. The result 43 * contains all newly created parent nodes. It returns a rule application result with status 44 * {@link RuleApplicationStatus#RULE_APPLICATION_FEASIBLE} if the rule would be applicable if 45 * further children would be available in the parent node. This status MUST not be returned if 46 * the finalize parameter is true. In this case the rule must be applied or not. 33 * applies the rule to the given task instance list. The returned rule application result is null, 34 * if the rule can not be applied, i.e. it does not detect a temporal relationship. It returns a 35 * rule application result with a status {@link RuleApplicationStatus#RULE_APPLICATION_FINISHED} 36 * if the rule was applied. The result contains all newly created parent tasks and task instances. 47 37 * </p> 48 38 * 49 * @param parent the parent node with the children to apply the rule on 50 * @param finalize true, if the rule shall not expect further children to come and that it 51 * should therefore be applied in any case 39 * @param taskInstances the list of task instances to apply the rule on 52 40 * 53 41 * @return the rule application result as described. 54 42 */ 55 RuleApplicationResult apply(ITaskTreeNode parent, 56 boolean finalize); 43 RuleApplicationResult apply(ITaskInstanceList taskInstances); 57 44 58 45 }
Note: See TracChangeset
for help on using the changeset viewer.