[1113] | 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 | |
---|
[922] | 15 | package de.ugoe.cs.autoquest.tasktrees.treeimpl; |
---|
[439] | 16 | |
---|
[922] | 17 | import de.ugoe.cs.autoquest.eventcore.IEventTarget; |
---|
| 18 | import de.ugoe.cs.autoquest.eventcore.IEventType; |
---|
| 19 | import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; |
---|
| 20 | import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; |
---|
| 21 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; |
---|
| 22 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; |
---|
| 23 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree; |
---|
| 24 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode; |
---|
| 25 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNodeFactory; |
---|
[439] | 26 | |
---|
| 27 | /** |
---|
| 28 | * TODO comment |
---|
| 29 | * |
---|
| 30 | * @version $Revision: $ $Date: 21.02.2012$ |
---|
| 31 | * @author 2012, last modified by $Author: patrick$ |
---|
| 32 | */ |
---|
[557] | 33 | public class TaskTreeNodeFactory implements ITaskTreeNodeFactory { |
---|
[439] | 34 | |
---|
[557] | 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 | } |
---|
[439] | 44 | |
---|
[557] | 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 | } |
---|
[439] | 54 | |
---|
[557] | 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 | } |
---|
[439] | 64 | |
---|
[557] | 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 | } |
---|
[439] | 74 | |
---|
[557] | 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 | } |
---|
[439] | 86 | |
---|
| 87 | } |
---|