[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.treeifc; |
---|
[439] | 16 | |
---|
| 17 | /** |
---|
| 18 | * TODO comment |
---|
| 19 | * |
---|
| 20 | * @version $Revision: $ $Date: 21.02.2012$ |
---|
| 21 | * @author 2012, last modified by $Author: patrick$ |
---|
| 22 | */ |
---|
[1146] | 23 | public interface ITaskBuilder { |
---|
[439] | 24 | |
---|
[557] | 25 | /** |
---|
[1146] | 26 | * @param taskInstance |
---|
| 27 | * @param child |
---|
| 28 | */ |
---|
| 29 | void addChild(ITaskInstance taskInstance, ITaskInstance child) throws IllegalArgumentException; |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * <p> |
---|
| 33 | * TODO: comment |
---|
| 34 | * </p> |
---|
[1114] | 35 | * |
---|
[1146] | 36 | * @param session |
---|
| 37 | * @param taskInstance |
---|
[557] | 38 | */ |
---|
[1146] | 39 | void addExecutedTask(IUserSession session, ITaskInstance taskInstance); |
---|
[439] | 40 | |
---|
[557] | 41 | /** |
---|
[1146] | 42 | * |
---|
| 43 | * @param parent |
---|
| 44 | * @param i |
---|
| 45 | */ |
---|
| 46 | void addTaskInstance(ITaskInstanceList taskInstanceList, ITaskInstance taskInstance); |
---|
| 47 | |
---|
| 48 | /** |
---|
| 49 | * |
---|
| 50 | * @param parent |
---|
| 51 | * @param i |
---|
| 52 | */ |
---|
| 53 | void addTaskInstance(ITaskInstanceList taskInstanceList, int index, ITaskInstance taskInstance); |
---|
| 54 | |
---|
| 55 | /** |
---|
| 56 | * |
---|
| 57 | * @param parent |
---|
| 58 | * @param i |
---|
| 59 | */ |
---|
| 60 | void setTaskInstance(ITaskInstanceList taskInstanceList, int index, ITaskInstance taskInstance); |
---|
| 61 | |
---|
| 62 | /** |
---|
| 63 | * <p> |
---|
| 64 | * TODO: comment |
---|
| 65 | * </p> |
---|
[1114] | 66 | * |
---|
[1146] | 67 | * @param instance2 |
---|
| 68 | * @param task |
---|
[557] | 69 | */ |
---|
[1146] | 70 | void setTask(ITaskInstance taskInstance, ITask task); |
---|
[439] | 71 | |
---|
[557] | 72 | /** |
---|
[1146] | 73 | * |
---|
| 74 | */ |
---|
| 75 | void addChild(ISequence parent, ITask child); |
---|
| 76 | |
---|
| 77 | /** |
---|
| 78 | * |
---|
| 79 | */ |
---|
| 80 | void addChild(ISequence parent, int index, ITask child); |
---|
| 81 | |
---|
| 82 | /** |
---|
[1126] | 83 | * |
---|
| 84 | * @param parent |
---|
| 85 | * @param i |
---|
| 86 | */ |
---|
[1146] | 87 | void setChild(ISequence parent, int index, ITask child); |
---|
[1126] | 88 | |
---|
| 89 | /** |
---|
[557] | 90 | * @param sequence |
---|
| 91 | * @param task |
---|
| 92 | */ |
---|
[1146] | 93 | void addChild(ISelection parent, ITask child); |
---|
[439] | 94 | |
---|
[557] | 95 | /** |
---|
| 96 | * |
---|
| 97 | * @param iteration |
---|
| 98 | * @param newChild |
---|
| 99 | */ |
---|
[1146] | 100 | void setMarkedTask(IIteration iteration, ITask newChild); |
---|
[439] | 101 | |
---|
[557] | 102 | /** |
---|
| 103 | * |
---|
[1126] | 104 | * @param optional |
---|
| 105 | * @param newChild |
---|
| 106 | */ |
---|
[1146] | 107 | void setMarkedTask(IOptional optional, ITask newChild); |
---|
[1126] | 108 | |
---|
| 109 | /** |
---|
| 110 | * |
---|
[557] | 111 | * @param parent |
---|
| 112 | * @param i |
---|
| 113 | */ |
---|
| 114 | void removeChild(ISequence parent, int index); |
---|
[439] | 115 | |
---|
[557] | 116 | /** |
---|
[1114] | 117 | * |
---|
[557] | 118 | * @param parent |
---|
| 119 | * @param i |
---|
| 120 | */ |
---|
[1146] | 121 | void removeChild(ISelection parent, ITask child); |
---|
[439] | 122 | |
---|
[557] | 123 | /** |
---|
[1146] | 124 | * |
---|
| 125 | * @param parent |
---|
| 126 | * @param i |
---|
| 127 | */ |
---|
| 128 | void removeTaskInstance(ITaskInstanceList taskInstanceList, int index); |
---|
| 129 | |
---|
| 130 | /** |
---|
[1126] | 131 | * |
---|
| 132 | * @param parent |
---|
| 133 | * @param i |
---|
| 134 | */ |
---|
[1146] | 135 | void replaceChild(ISelection parent, ITask oldChild, ITask newChild); |
---|
[1126] | 136 | |
---|
| 137 | /** |
---|
[557] | 138 | * |
---|
| 139 | * @param parent |
---|
| 140 | * @param i |
---|
| 141 | */ |
---|
[1146] | 142 | void setDescription(ITask task, String description); |
---|
[439] | 143 | |
---|
| 144 | } |
---|