source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Selection.java @ 1146

Last change on this file since 1146 was 1146, checked in by pharms, 11 years ago
  • complete refactoring of task tree model with a separation of task models and task instances
  • appropriate adaptation of task tree generation process
  • appropriate adaptation of commands and task tree visualization
  • Property svn:executable set to *
File size: 1.8 KB
Line 
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
15package de.ugoe.cs.autoquest.tasktrees.treeimpl;
16
17import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection;
18import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask;
19
20/**
21 * TODO comment
22 *
23 * @version $Revision: $ $Date: 19.02.2012$
24 * @author 2012, last modified by $Author: patrick$
25 */
26class Selection extends StructuringTemporalRelationship implements ISelection {
27
28    /**  */
29    private static final long serialVersionUID = 1L;
30
31    /**
32     * TODO: comment
33     *
34     * @param name
35     */
36    Selection() {
37        super("selection");
38    }
39
40    /*
41     * (non-Javadoc)
42     *
43     * @see java.lang.Object#clone()
44     */
45    @Override
46    public Selection clone() {
47        return (Selection) super.clone();
48    }
49
50    /**
51     * <p>
52     * TODO: comment
53     * </p>
54     *
55     * @param i
56     * @param newChild
57     */
58    public void addChild(ITask newChild) {
59        super.addChild(newChild);
60        super.setDescription("selection of " + newChild);
61    }
62
63    /**
64     * <p>
65     * TODO: comment
66     * </p>
67     *
68     * @param i
69     * @param newChild
70     */
71    public void addChild(int index, ITask newChild) {
72        super.addChild(index, newChild);
73        super.setDescription("selection of " + newChild);
74    }
75
76}
Note: See TracBrowser for help on using the repository browser.