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

Last change on this file since 1113 was 1113, checked in by pharms, 11 years ago
  • added license statement
  • Property svn:executable set to *
File size: 2.6 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.eventcore.IEventTarget;
18import de.ugoe.cs.autoquest.eventcore.IEventType;
19import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask;
20import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration;
21import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection;
22import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence;
23import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree;
24import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode;
25import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNodeFactory;
26
27/**
28 * TODO comment
29 *
30 * @version $Revision: $ $Date: 21.02.2012$
31 * @author 2012, last modified by $Author: patrick$
32 */
33public class TaskTreeNodeFactory implements ITaskTreeNodeFactory {
34
35    /*
36     * (non-Javadoc)
37     *
38     * @see TaskTreeNodeFactory#createNewEventTask(IEventType, IEventTarget)
39     */
40    @Override
41    public IEventTask createNewEventTask(IEventType eventType, IEventTarget eventTarget) {
42        return new EventTask(eventType, eventTarget);
43    }
44
45    /*
46     * (non-Javadoc)
47     *
48     * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNodeFactory#createNewSequence()
49     */
50    @Override
51    public ISequence createNewSequence() {
52        return new Sequence();
53    }
54
55    /*
56     * (non-Javadoc)
57     *
58     * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNodeFactory#createNewIteration()
59     */
60    @Override
61    public IIteration createNewIteration() {
62        return new Iteration();
63    }
64
65    /*
66     * (non-Javadoc)
67     *
68     * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNodeFactory#createNewSelection()
69     */
70    @Override
71    public ISelection createNewSelection() {
72        return new Selection();
73    }
74
75    /*
76     * (non-Javadoc)
77     *
78     * @see
79     * de.ugoe.cs.tasktree.treeifc.TaskTreeNodeFactory#createTaskTree(de.ugoe.cs.tasktree.treeifc
80     * .TaskTreeNode)
81     */
82    @Override
83    public ITaskTree createTaskTree(ITaskTreeNode root) {
84        return new TaskTree(root);
85    }
86
87}
Note: See TracBrowser for help on using the repository browser.