1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
2 | // |
---|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
4 | // you may not use this file except in compliance with the License. |
---|
5 | // You may obtain a copy of the License at |
---|
6 | // |
---|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
8 | // |
---|
9 | // Unless required by applicable law or agreed to in writing, software |
---|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
12 | // See the License for the specific language governing permissions and |
---|
13 | // limitations under the License. |
---|
14 | |
---|
15 | package de.ugoe.cs.autoquest.tasktrees.treeimpl; |
---|
16 | |
---|
17 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; |
---|
18 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; |
---|
19 | |
---|
20 | /** |
---|
21 | * <p> |
---|
22 | * this is the default implementation of the interface {@link ISelection}. It |
---|
23 | * does not do anything fancy except implementing the interface. |
---|
24 | * </p> |
---|
25 | * |
---|
26 | * @author Patrick Harms |
---|
27 | */ |
---|
28 | class Selection extends StructuringTemporalRelationship implements ISelection { |
---|
29 | |
---|
30 | /** |
---|
31 | * <p> |
---|
32 | * default serial version UID |
---|
33 | * </p> |
---|
34 | */ |
---|
35 | private static final long serialVersionUID = 1L; |
---|
36 | |
---|
37 | /** |
---|
38 | * <p> |
---|
39 | * simple constructor providing the base class with a human readable name of |
---|
40 | * the type of this task |
---|
41 | * </p> |
---|
42 | */ |
---|
43 | Selection() { |
---|
44 | super("selection"); |
---|
45 | } |
---|
46 | |
---|
47 | /* |
---|
48 | * (non-Javadoc) |
---|
49 | * |
---|
50 | * @see |
---|
51 | * de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship |
---|
52 | * #addChild(int,ITask) |
---|
53 | */ |
---|
54 | @Override |
---|
55 | void addChild(int index, ITask newChild) { |
---|
56 | super.addChild(index, newChild); |
---|
57 | } |
---|
58 | |
---|
59 | /* |
---|
60 | * (non-Javadoc) |
---|
61 | * |
---|
62 | * @see |
---|
63 | * de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship |
---|
64 | * #addChild(ITask) |
---|
65 | */ |
---|
66 | @Override |
---|
67 | void addChild(ITask newChild) { |
---|
68 | super.addChild(newChild); |
---|
69 | } |
---|
70 | |
---|
71 | /* |
---|
72 | * (non-Javadoc) |
---|
73 | * |
---|
74 | * @see |
---|
75 | * de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship |
---|
76 | * #clone() |
---|
77 | */ |
---|
78 | @Override |
---|
79 | public Selection clone() { |
---|
80 | return (Selection) super.clone(); |
---|
81 | } |
---|
82 | |
---|
83 | } |
---|