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.4 KB
|
Rev | Line | |
---|
[439] | 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 |
---|
[557] | 6 | |
---|
| 7 | |
---|
[439] | 8 | package de.ugoe.cs.quest.tasktrees.treeimpl; |
---|
| 9 | |
---|
[557] | 10 | import de.ugoe.cs.quest.tasktrees.treeifc.IIteration; |
---|
| 11 | import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; |
---|
[439] | 12 | |
---|
| 13 | /** |
---|
| 14 | * TODO comment |
---|
| 15 | * |
---|
| 16 | * @version $Revision: $ $Date: 19.02.2012$ |
---|
| 17 | * @author 2012, last modified by $Author: patrick$ |
---|
| 18 | */ |
---|
[557] | 19 | public class Iteration extends TaskTreeNode implements IIteration { |
---|
[439] | 20 | |
---|
[557] | 21 | /** |
---|
| 22 | * |
---|
| 23 | */ |
---|
| 24 | Iteration() { |
---|
| 25 | super("Iteration"); |
---|
| 26 | } |
---|
[439] | 27 | |
---|
[557] | 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 | } |
---|
[439] | 39 | |
---|
[557] | 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); |
---|
[439] | 51 | } |
---|
| 52 | |
---|
[557] | 53 | /* |
---|
| 54 | * (non-Javadoc) |
---|
| 55 | * |
---|
| 56 | * @see java.lang.Object#clone() |
---|
| 57 | */ |
---|
| 58 | @Override |
---|
| 59 | public Iteration clone() { |
---|
| 60 | return (Iteration) super.clone(); |
---|
| 61 | } |
---|
[439] | 62 | |
---|
| 63 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.