Last change
on this file since 1056 was
922,
checked in by sherbold, 12 years ago
|
- renaming of packages from de.ugoe.cs.quest to de.ugoe.cs.autoquest
|
-
Property svn:executable set to
*
|
File size:
1.7 KB
|
Rev | Line | |
---|
[922] | 1 | package de.ugoe.cs.autoquest.tasktrees.temporalrelation; |
---|
[439] | 2 | |
---|
| 3 | import java.util.ArrayList; |
---|
| 4 | import java.util.List; |
---|
| 5 | |
---|
[922] | 6 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode; |
---|
[439] | 7 | |
---|
| 8 | /** |
---|
[809] | 9 | * <p> |
---|
| 10 | * The rule application result describes the result of applying a {@link TemporalRelationshipRule} |
---|
| 11 | * on a task tree node. It contains a {@link RuleApplicationStatus} and a list of all parent |
---|
| 12 | * task tree nodes that were created during a rule application. See the description of |
---|
| 13 | * {@link TemporalRelationshipRule} for more details. |
---|
| 14 | * </p> |
---|
[439] | 15 | * |
---|
[809] | 16 | * @author Patrick Harms |
---|
[439] | 17 | */ |
---|
[809] | 18 | class RuleApplicationResult { |
---|
[439] | 19 | |
---|
[557] | 20 | /** */ |
---|
| 21 | private RuleApplicationStatus status = RuleApplicationStatus.RULE_NOT_APPLIED; |
---|
[439] | 22 | |
---|
[557] | 23 | /** */ |
---|
| 24 | private List<ITaskTreeNode> newParents = new ArrayList<ITaskTreeNode>(); |
---|
[439] | 25 | |
---|
[557] | 26 | /** |
---|
[809] | 27 | * <p> |
---|
| 28 | * create a rule application result with a status {@link RuleApplicationStatus#RULE_NOT_APPLIED} |
---|
| 29 | * </p> |
---|
[557] | 30 | */ |
---|
[809] | 31 | RuleApplicationResult() { |
---|
[557] | 32 | // this is the default indicating nothing so far |
---|
| 33 | } |
---|
[439] | 34 | |
---|
[557] | 35 | /** |
---|
[809] | 36 | * <p> |
---|
| 37 | * set the rule application status |
---|
| 38 | * </p> |
---|
[557] | 39 | */ |
---|
[809] | 40 | void setRuleApplicationStatus(RuleApplicationStatus status) { |
---|
[557] | 41 | this.status = status; |
---|
| 42 | } |
---|
[439] | 43 | |
---|
[557] | 44 | /** |
---|
[809] | 45 | * <p> |
---|
| 46 | * return the rule application status |
---|
| 47 | * </p> |
---|
[557] | 48 | */ |
---|
[809] | 49 | RuleApplicationStatus getRuleApplicationStatus() { |
---|
[557] | 50 | return status; |
---|
| 51 | } |
---|
[439] | 52 | |
---|
[557] | 53 | /** |
---|
[809] | 54 | * <p> |
---|
| 55 | * add a further parent node created during the rule application |
---|
| 56 | * </p> |
---|
[557] | 57 | */ |
---|
[809] | 58 | void addNewlyCreatedParentNode(ITaskTreeNode newParent) { |
---|
[557] | 59 | newParents.add(newParent); |
---|
| 60 | } |
---|
[439] | 61 | |
---|
[557] | 62 | /** |
---|
[809] | 63 | * <p> |
---|
| 64 | * return all parent nodes created during the rule application |
---|
| 65 | * </p> |
---|
[557] | 66 | */ |
---|
[809] | 67 | List<ITaskTreeNode> getNewlyCreatedParentNodes() { |
---|
[557] | 68 | return newParents; |
---|
| 69 | } |
---|
| 70 | |
---|
[439] | 71 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.