Changeset 1191 for trunk/autoquest-core-tasktrees/src/main/java/de
- Timestamp:
- 04/29/13 17:18:42 (12 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskBuilder.java
r1146 r1191 16 16 17 17 /** 18 * TODO comment 19 * 20 * @version $Revision: $ $Date: 21.02.2012$ 21 * @author 2012, last modified by $Author: patrick$ 18 * <p> 19 * Builder for task models. Can be used to create and edit task models. May perform integrity 20 * checks, though they may be incomplete as the integrity of a task model can not be ensured during 21 * creation. 22 * </p> 22 23 */ 23 24 public interface ITaskBuilder { 24 25 25 26 /** 26 * @param taskInstance 27 * @param child 27 * <p> 28 * adds a child to a task instance. May ensure, that the child is a valid child considering 29 * the task model of the parent. In that case, an IllegalArgumentException is thrown. 30 * </p> 31 * 32 * @param taskInstance the instance of add the child to 33 * @param child the child to be added 34 * 35 * @throws IllegalArgumentException as described 28 36 */ 29 37 void addChild(ITaskInstance taskInstance, ITaskInstance child) throws IllegalArgumentException; … … 31 39 /** 32 40 * <p> 33 * TODO: comment41 * adds a task instance to a user session 34 42 * </p> 35 43 * 36 * @param session 37 * @param taskInstance 44 * @param session the session to add the task instance to 45 * @param taskInstance the task instance to add 38 46 */ 39 47 void addExecutedTask(IUserSession session, ITaskInstance taskInstance); 40 48 41 49 /** 42 * 43 * @param parent 44 * @param i 50 * <p> 51 * adds a task instance to a task instance list 52 * </p> 53 * 54 * @param taskInstanceList the list to add the task instance to 55 * @param taskInstance the task instance to add 45 56 */ 46 57 void addTaskInstance(ITaskInstanceList taskInstanceList, ITaskInstance taskInstance); 47 58 48 59 /** 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 60 * <p> 61 * adds a task instance to a task instance list at a specific position. Subsequent task 62 * instances will be moved one index forward 63 * </p> 64 * 65 * @param taskInstanceList the list to add the task instance to 66 * @param index the index of the task instance to add 67 * @param taskInstance the task instance to add 68 * 69 * @throws IndexOutOfBoundsException if the index is invalid 70 */ 71 void addTaskInstance(ITaskInstanceList taskInstanceList, int index, ITaskInstance taskInstance) 72 throws IndexOutOfBoundsException; 73 74 /** 75 * <p> 76 * sets a task instance in a task instance list at a specific position 77 * </p> 78 * 79 * @param taskInstanceList the list to set the task instance in 80 * @param index the index of the task instance to replace 81 * @param taskInstance the replacement for the task instance at the index 82 * 83 * @throws IndexOutOfBoundsException if the index is invalid 84 */ 85 void setTaskInstance(ITaskInstanceList taskInstanceList, int index, ITaskInstance taskInstance) 86 throws IndexOutOfBoundsException; 87 88 /** 89 * <p> 90 * sets the task model of a task instance 91 * </p> 92 * 93 * @param taskInstance the task instance to set the task model for 94 * @param task the task model of the instance 69 95 */ 70 96 void setTask(ITaskInstance taskInstance, ITask task); 71 97 72 98 /** 73 * 99 * <p> 100 * adds a child task to the end of a sequence 101 * </p> 102 * 103 * @param parent the sequence to add the child to 104 * @param child the child to be added 74 105 */ 75 106 void addChild(ISequence parent, ITask child); 76 107 77 108 /** 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 109 * <p> 110 * adds a child task to a specific index of a sequence 111 * </p> 112 * 113 * @param parent the sequence to add the child to 114 * @param index the index to set the child at 115 * @param child the child to be added 116 * 117 * @throws IndexOutOfBoundsException if the index is invalid 118 */ 119 void addChild(ISequence parent, int index, ITask child) 120 throws IndexOutOfBoundsException; 121 122 /** 123 * <p> 124 * replaces the child task of a sequence at a specific position 125 * </p> 126 * 127 * @param parent the sequence to replace the child in 128 * @param index the index to replace the child at 129 * @param child the child to be added 130 * 131 * @throws IndexOutOfBoundsException if the index is invalid 132 */ 133 void setChild(ISequence parent, int index, ITask child) 134 throws IndexOutOfBoundsException; 135 136 /** 137 * <p> 138 * adds a child task to a selection 139 * </p> 140 * 141 * @param parent the selection to add the child to 142 * @param child the child to be added 92 143 */ 93 144 void addChild(ISelection parent, ITask child); 94 145 95 146 /** 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 147 * <p> 148 * sets the child task of an iteration 149 * </p> 150 * 151 * @param parent the iteration to set the child of 152 * @param child the child to be set 153 */ 154 void setMarkedTask(IIteration iteration, ITask child); 155 156 /** 157 * <p> 158 * sets the child task of an optional 159 * </p> 160 * 161 * @param parent the optional to set the child of 162 * @param child the child to be set 163 */ 164 void setMarkedTask(IOptional optional, ITask child); 165 166 /** 167 * <p> 168 * removes the child of a sequence at a specific position 169 * </p> 170 * 171 * @param parent the sequence of which the child must be removed 172 * @param index the index of the child to be removed 173 * 174 * @throws IndexOutOfBoundsException if the index is invalid 175 */ 176 void removeChild(ISequence parent, int index) 177 throws IndexOutOfBoundsException; 178 179 /** 180 * <p> 181 * removes a child of a selection. Ignores the call, if the child is not found 182 * (comparison using equals). 183 * </p> 184 * 185 * @param parent the selection of which the child must be removed 186 * @param child the child to be removes 120 187 */ 121 188 void removeChild(ISelection parent, ITask child); 122 189 123 190 /** 124 * 125 * @param parent 126 * @param i 127 */ 128 void removeTaskInstance(ITaskInstanceList taskInstanceList, int index); 129 130 /** 131 * 132 * @param parent 133 * @param i 191 * <p> 192 * removes the entry of a task instance list at a specific position 193 * </p> 194 * 195 * @param taskInstanceList the task instance list of which the entry must be removed 196 * @param index the index of the entry to be removed 197 * 198 * @throws IndexOutOfBoundsException if the index is invalid 199 */ 200 void removeTaskInstance(ITaskInstanceList taskInstanceList, int index) 201 throws IndexOutOfBoundsException; 202 203 /** 204 * <p> 205 * replaces a child of a selection. Throws an IllegalArgumentException if the child is not 206 * found (comparison using equals). 207 * </p> 208 * 209 * @param parent the selection of which the child must be replace 210 * @param oldChild the child to replace 211 * @param newChild the replacement for the child 212 * 213 * @throws as described 134 214 */ 135 215 void replaceChild(ISelection parent, ITask oldChild, ITask newChild); 136 216 137 217 /** 138 * 139 * @param parent 140 * @param i 218 * <p> 219 * sets the description of a task 220 * </p> 221 * 222 * @param task the task to set the description of 223 * @param description the new description of the task 141 224 */ 142 225 void setDescription(ITask task, String description); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskFactory.java
r1146 r1191 21 21 22 22 /** 23 * TODO comment 23 * <p> 24 * factory for the different task types 25 * </p> 24 26 * 25 * @version $Revision: $ $Date: 21.02.2012$ 26 * @author 2012, last modified by $Author: patrick$ 27 * @author Patrick Harms 27 28 */ 28 29 public interface ITaskFactory { 29 30 30 31 /** 32 * <p> 33 * creates a new event task with the given type and target 34 * </p> 31 35 * 32 * @param eventType 33 * @param eventTarget 34 * @return 36 * @param eventType the type of the event represented by the task 37 * @param eventTarget the target of the event represented by the task 38 * 39 * @return the event task 35 40 */ 36 41 IEventTask createNewEventTask(IEventType eventType, IEventTarget eventTarget); 37 42 38 43 /** 44 * <p> 45 * creates a new empty sequence 46 * </p> 39 47 * 40 * @return 48 * @return the sequence 41 49 */ 42 50 ISequence createNewSequence(); 43 51 44 52 /** 53 * <p> 54 * creates a new empty iteration 55 * </p> 45 56 * 46 * @return 57 * @return the iteration 47 58 */ 48 59 IIteration createNewIteration(); 49 60 50 61 /** 62 * <p> 63 * creates a new empty optional 64 * </p> 51 65 * 52 * @return 66 * @return the optional 53 67 */ 54 68 IOptional createNewOptional(); 55 69 56 70 /** 71 * <p> 72 * creates a new empty selection 73 * </p> 57 74 * 58 * @return 75 * @return the selection 59 76 */ 60 77 ISelection createNewSelection(); 61 78 62 79 /** 80 * <p> 81 * creates a new task instance with the given task as its model 82 * </p> 63 83 * 64 * @return 84 * @param task the model of the task instance to be created 85 * 86 * @return the task instance 65 87 */ 66 88 ITaskInstance createNewTaskInstance(ITask task); 67 89 68 90 /** 69 * 70 * @return 91 * <p> 92 * creates a new empty task instance list 93 * </p> 94 * 95 * @return the task instance list 71 96 */ 72 97 ITaskInstanceList createNewTaskInstanceList(); 73 98 74 99 /** 100 * <p> 101 * creates a new empty user session 102 * </p> 75 103 * 76 * @return 104 * @return the user session 77 105 */ 78 106 IUserSession createUserSession(); 79 107 80 108 /** 109 * <p> 110 * creates a task model based on the provided user sessions 111 * </p> 81 112 * 82 * @param rootSequence 83 * @return 113 * @param userSessions the session based on which the task model shall be created 114 * 115 * @return the task model 84 116 */ 85 117 ITaskModel createTaskModel(List<IUserSession> userSessions); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInfo.java
r1146 r1191 18 18 19 19 /** 20 * TODO comment 20 * <p> 21 * yet more or less unused, this class will in the future provided extended information about a 22 * specific task, such as statistics about task occurrences, etc. 23 * </p> 21 24 * 22 * @version $Revision: $ $Date: 21.02.2012$ 23 * @author 2012, last modified by $Author: patrick$ 25 * @author Patrick Harms 24 26 */ 25 27 public interface ITaskInfo extends Serializable { 26 28 27 29 /** 30 * <p> 31 * returns the task to which these infos belong 32 * </p> 28 33 * 34 * @return as described 29 35 */ 30 36 public ITask getTask(); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskVisitor.java
r1157 r1191 26 26 27 27 /** 28 *29 */28 * 29 */ 30 30 public void visit(IEventTask event); 31 31 32 32 /** 33 *34 */33 * 34 */ 35 35 public void visit(IIteration iteration); 36 36 37 37 /** 38 *39 */38 * 39 */ 40 40 public void visit(ISelection selection); 41 41 42 42 /** 43 *44 */43 * 44 */ 45 45 public void visit(ISequence sequence); 46 46
Note: See TracChangeset
for help on using the changeset viewer.