Last change
on this file since 621 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.4 KB
|
Line | |
---|
1 | // Module : $RCSfile: Iteration.java,v $ |
---|
2 | // Version : $Revision: 0.0 $ $Author: patrick $ $Date: 19.02.2012 $ |
---|
3 | // Project : TaskTreeCreator |
---|
4 | // Creation : 2012 by patrick |
---|
5 | // Copyright : Patrick Harms, 2012 |
---|
6 | |
---|
7 | |
---|
8 | package de.ugoe.cs.quest.tasktrees.treeimpl; |
---|
9 | |
---|
10 | import de.ugoe.cs.quest.tasktrees.treeifc.IIteration; |
---|
11 | import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; |
---|
12 | |
---|
13 | /** |
---|
14 | * TODO comment |
---|
15 | * |
---|
16 | * @version $Revision: $ $Date: 19.02.2012$ |
---|
17 | * @author 2012, last modified by $Author: patrick$ |
---|
18 | */ |
---|
19 | public class Iteration extends TaskTreeNode implements IIteration { |
---|
20 | |
---|
21 | /** |
---|
22 | * |
---|
23 | */ |
---|
24 | Iteration() { |
---|
25 | super("Iteration"); |
---|
26 | } |
---|
27 | |
---|
28 | /* |
---|
29 | * (non-Javadoc) |
---|
30 | * |
---|
31 | * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNode#addChild(TaskTreeNode) |
---|
32 | */ |
---|
33 | @Override |
---|
34 | public void addChild(ITaskTreeNode child) { |
---|
35 | // adding more children is not allowed |
---|
36 | throw new UnsupportedOperationException |
---|
37 | ("iterations may not have a list of children. Use setChild() instead."); |
---|
38 | } |
---|
39 | |
---|
40 | /** |
---|
41 | * TODO: comment |
---|
42 | * |
---|
43 | * @param selection |
---|
44 | * @return |
---|
45 | */ |
---|
46 | public void setChild(ITaskTreeNode child) { |
---|
47 | if (super.getChildren().size() > 0) { |
---|
48 | super.removeChild(0); |
---|
49 | } |
---|
50 | super.addChild(child); |
---|
51 | } |
---|
52 | |
---|
53 | /* |
---|
54 | * (non-Javadoc) |
---|
55 | * |
---|
56 | * @see java.lang.Object#clone() |
---|
57 | */ |
---|
58 | @Override |
---|
59 | public Iteration clone() { |
---|
60 | return (Iteration) super.clone(); |
---|
61 | } |
---|
62 | |
---|
63 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.