source: trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/temporalrelation/RuleApplicationResult.java @ 557

Last change on this file since 557 was 557, checked in by pharms, 12 years ago
  • adapted task tree creation stuff to more general event handling
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1// Module    : $RCSfile: RuleApplicationResult.java,v $
2// Version   : $Revision: 0.0 $  $Author: patrick $  $Date: 18.03.2012 $
3// Project   : TaskTreeCreator
4// Creation  : 2012 by patrick
5// Copyright : Patrick Harms, 2012
6
7
8package de.ugoe.cs.quest.tasktrees.temporalrelation;
9
10import java.util.ArrayList;
11import java.util.List;
12
13import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode;
14
15/**
16 * TODO comment
17 *
18 * @version $Revision: $ $Date: 18.03.2012$
19 * @author 2012, last modified by $Author: patrick$
20 */
21public class RuleApplicationResult {
22
23    /** */
24    private RuleApplicationStatus status = RuleApplicationStatus.RULE_NOT_APPLIED;
25
26    /** */
27    private List<ITaskTreeNode> newParents = new ArrayList<ITaskTreeNode>();
28
29    /**
30     * TODO: comment
31     *
32     * @param b
33     */
34    public RuleApplicationResult() {
35        // this is the default indicating nothing so far
36    }
37
38    /**
39     * TODO: comment
40     *
41     * @param b
42     */
43    public void setRuleApplicationStatus(RuleApplicationStatus status) {
44        this.status = status;
45    }
46
47    /**
48     * TODO: comment
49     *
50     * @return
51     */
52    public RuleApplicationStatus getRuleApplicationStatus() {
53        return status;
54    }
55
56    /**
57     * TODO: comment
58     *
59     * @param sequence
60     */
61    public void addNewlyCreatedParentNode(ITaskTreeNode newParent) {
62        newParents.add(newParent);
63    }
64
65    /**
66     * TODO: comment
67     *
68     * @return
69     */
70    public List<ITaskTreeNode> getNewlyCreatedParentNodes() {
71        return newParents;
72    }
73
74}
Note: See TracBrowser for help on using the repository browser.