Last change
on this file since 818 was
655,
checked in by pharms, 12 years ago
|
- removed old copyright file header
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[439] | 1 | package de.ugoe.cs.quest.tasktrees.treeimpl; |
---|
| 2 | |
---|
[557] | 3 | import de.ugoe.cs.quest.tasktrees.treeifc.IIteration; |
---|
| 4 | import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; |
---|
[439] | 5 | |
---|
| 6 | /** |
---|
| 7 | * TODO comment |
---|
| 8 | * |
---|
| 9 | * @version $Revision: $ $Date: 19.02.2012$ |
---|
| 10 | * @author 2012, last modified by $Author: patrick$ |
---|
| 11 | */ |
---|
[557] | 12 | public class Iteration extends TaskTreeNode implements IIteration { |
---|
[439] | 13 | |
---|
[557] | 14 | /** |
---|
| 15 | * |
---|
| 16 | */ |
---|
| 17 | Iteration() { |
---|
| 18 | super("Iteration"); |
---|
| 19 | } |
---|
[439] | 20 | |
---|
[557] | 21 | /* |
---|
| 22 | * (non-Javadoc) |
---|
| 23 | * |
---|
| 24 | * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNode#addChild(TaskTreeNode) |
---|
| 25 | */ |
---|
| 26 | @Override |
---|
| 27 | public void addChild(ITaskTreeNode child) { |
---|
| 28 | // adding more children is not allowed |
---|
| 29 | throw new UnsupportedOperationException |
---|
| 30 | ("iterations may not have a list of children. Use setChild() instead."); |
---|
| 31 | } |
---|
[439] | 32 | |
---|
[557] | 33 | /** |
---|
| 34 | * TODO: comment |
---|
| 35 | * |
---|
| 36 | * @param selection |
---|
| 37 | * @return |
---|
| 38 | */ |
---|
| 39 | public void setChild(ITaskTreeNode child) { |
---|
| 40 | if (super.getChildren().size() > 0) { |
---|
| 41 | super.removeChild(0); |
---|
| 42 | } |
---|
| 43 | super.addChild(child); |
---|
[439] | 44 | } |
---|
| 45 | |
---|
[557] | 46 | /* |
---|
| 47 | * (non-Javadoc) |
---|
| 48 | * |
---|
| 49 | * @see java.lang.Object#clone() |
---|
| 50 | */ |
---|
| 51 | @Override |
---|
| 52 | public Iteration clone() { |
---|
| 53 | return (Iteration) super.clone(); |
---|
| 54 | } |
---|
[439] | 55 | |
---|
| 56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.