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.treeifc; |
---|
16 | |
---|
17 | /** |
---|
18 | * TODO comment |
---|
19 | * |
---|
20 | * @version $Revision: $ $Date: 21.02.2012$ |
---|
21 | * @author 2012, last modified by $Author: patrick$ |
---|
22 | */ |
---|
23 | public interface ITaskBuilder { |
---|
24 | |
---|
25 | /** |
---|
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> |
---|
35 | * |
---|
36 | * @param session |
---|
37 | * @param taskInstance |
---|
38 | */ |
---|
39 | void addExecutedTask(IUserSession session, ITaskInstance taskInstance); |
---|
40 | |
---|
41 | /** |
---|
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> |
---|
66 | * |
---|
67 | * @param instance2 |
---|
68 | * @param task |
---|
69 | */ |
---|
70 | void setTask(ITaskInstance taskInstance, ITask task); |
---|
71 | |
---|
72 | /** |
---|
73 | * |
---|
74 | */ |
---|
75 | void addChild(ISequence parent, ITask child); |
---|
76 | |
---|
77 | /** |
---|
78 | * |
---|
79 | */ |
---|
80 | void addChild(ISequence parent, int index, ITask child); |
---|
81 | |
---|
82 | /** |
---|
83 | * |
---|
84 | * @param parent |
---|
85 | * @param i |
---|
86 | */ |
---|
87 | void setChild(ISequence parent, int index, ITask child); |
---|
88 | |
---|
89 | /** |
---|
90 | * @param sequence |
---|
91 | * @param task |
---|
92 | */ |
---|
93 | void addChild(ISelection parent, ITask child); |
---|
94 | |
---|
95 | /** |
---|
96 | * |
---|
97 | * @param iteration |
---|
98 | * @param newChild |
---|
99 | */ |
---|
100 | void setMarkedTask(IIteration iteration, ITask newChild); |
---|
101 | |
---|
102 | /** |
---|
103 | * |
---|
104 | * @param optional |
---|
105 | * @param newChild |
---|
106 | */ |
---|
107 | void setMarkedTask(IOptional optional, ITask newChild); |
---|
108 | |
---|
109 | /** |
---|
110 | * |
---|
111 | * @param parent |
---|
112 | * @param i |
---|
113 | */ |
---|
114 | void removeChild(ISequence parent, int index); |
---|
115 | |
---|
116 | /** |
---|
117 | * |
---|
118 | * @param parent |
---|
119 | * @param i |
---|
120 | */ |
---|
121 | void removeChild(ISelection parent, ITask child); |
---|
122 | |
---|
123 | /** |
---|
124 | * |
---|
125 | * @param parent |
---|
126 | * @param i |
---|
127 | */ |
---|
128 | void removeTaskInstance(ITaskInstanceList taskInstanceList, int index); |
---|
129 | |
---|
130 | /** |
---|
131 | * |
---|
132 | * @param parent |
---|
133 | * @param i |
---|
134 | */ |
---|
135 | void replaceChild(ISelection parent, ITask oldChild, ITask newChild); |
---|
136 | |
---|
137 | /** |
---|
138 | * |
---|
139 | * @param parent |
---|
140 | * @param i |
---|
141 | */ |
---|
142 | void setDescription(ITask task, String description); |
---|
143 | |
---|
144 | } |
---|