Changeset 1177 for trunk/autoquest-core-tasktrees/src
- Timestamp:
- 04/25/13 16:59:20 (12 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInstance.java
r1146 r1177 18 18 19 19 /** 20 * TODO comment 20 * <p> 21 * a task instance represents the execution of a specific task within a user session. A task 22 * instance is always related to the task that was executed. A task instance may have children 23 * but only if its related task allows to have children. For example, if the represented task is 24 * a sequence then task instance has children and these are instances of the tasks being the 25 * children of the related sequence. 26 * </p> 27 * <p> 28 * An instance of a sequence has the same number of children as the related sequence. An instance 29 * of a selection has only one child which is an instance of exactly one variant contained in the 30 * related selection. An instance of an iteration has zero or more instances of the same task 31 * as children where the task is the child of the related iteration. An instance of an optional 32 * has zero or one child where the task related to child is the child of the optional. A task 33 * instance related to an event task does not have children. 34 * </p> 21 35 * 22 * @version $Revision: $ $Date: $ 23 * @author 2011, last modified by $Author: $ 36 * @author Patrick Harms 24 37 */ 25 38 public interface ITaskInstance extends ITaskInstanceList { 26 39 27 40 /** 28 * 41 * <p> 42 * returns the children of the task instance if any. See class description for how many 43 * children can be expected. May return null. 44 * </p> 45 * 46 * @return as described 29 47 */ 30 48 public List<ITaskInstance> getChildren(); 31 49 32 50 /** 33 * 51 * <p> 52 * returns the task related to the instance. 53 * </p> 54 * 55 * @return as described 34 56 */ 35 57 public ITask getTask(); 36 58 37 59 /** 38 * 60 * <p> 61 * compares an instance to another one. Returns true if both instances are the same, i.e. not 62 * only the related task is equal but also all children and further characteristics of the 63 * task instance 64 * </p> 65 * 66 * @param taskInstance the instance to compare to 67 * 68 * @return as described 39 69 */ 40 70 public boolean equals(ITaskInstance taskInstance); 41 71 42 72 /** 43 * 73 * <p> 74 * returns a hash code for the task instance to be able to put it into hash maps 75 * </p> 76 * 77 * @return as described 44 78 */ 45 79 public int hashCode(); 46 80 47 81 /** 48 * 82 * <p> 83 * clones a task instance by creating exact clones of each contained child instance as well 84 * as the related task. Furthermore, all other non transient information of the task 85 * instance must be cloned. 86 * </p> 87 * 88 * @return a clone of the task instance 49 89 */ 50 90 public ITaskInstance clone(); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInstanceList.java
r1146 r1177 19 19 /** 20 20 * <p> 21 * TODO comment 21 * represents a serializable, clonable, iterable representation of a read only list of task 22 * instances. The list is ordered. It does not provide methods for changing it. 22 23 * </p> 23 24 * … … 27 28 28 29 /** 29 * 30 * <p> 31 * returns the task instance at the position with the given index. May throw an exception 32 * if the index is invalid. 33 * </p> 34 * 35 * @param index the index of the task instance to be returned 36 * 37 * @return the task instance at the given index 30 38 */ 31 39 public ITaskInstance get(int index); 32 40 33 41 /** 34 * 42 * <p> 43 * returns the size of the list, i.e. the number of task instances in the list 44 * </p> 45 * 46 * @return as described 35 47 */ 36 48 public int size(); 37 49 38 50 /** 39 * 51 * <p> 52 * clones a task instance list by creating exact clones of each contained instance in their 53 * order 54 * </p> 55 * 56 * @return a clone of the task instance list 40 57 */ 41 58 public ITaskInstanceList clone(); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/IUserSession.java
r1146 r1177 19 19 /** 20 20 * <p> 21 * TODO comment 21 * A user session represents task executions, i.e. a task instances of a specific user that were 22 * executed in a coherent manner. Therefore, they are an ordered list of task instances where 23 * the order denotes the order of the task executions. 22 24 * </p> 23 25 * … … 27 29 28 30 /** 29 * 31 * <p> 32 * returns the list of task instances executed in the represented session. 33 * </p> 34 * 35 * @return as described 30 36 */ 31 37 public List<ITaskInstance> getExecutedTasks(); 32 38 33 39 /** 34 * 40 * <p> 41 * compares the user session with another one. Two user sessions are only equal, if they 42 * contain the same number of task instances and if each task instance at each position is 43 * equal to the respective other session. 44 * </p> 45 * 46 * @param userSession the session to compare the session to 47 * 48 * @return true if both sessions are equal, false else 35 49 */ 36 50 public boolean equals(IUserSession userSession); 37 51 38 52 /** 39 * 53 * <p> 54 * returns a hash code for the session to be able to store the session in a hash map. 55 * </p> 56 * 57 * @return as described 40 58 */ 41 59 public int hashCode(); 42 60 43 61 /** 44 * 62 * <p> 63 * clones a user session by creating exact clones of each contained instance in their order 64 * </p> 65 * 66 * @return a clone of the session 45 67 */ 46 68 public IUserSession clone();
Note: See TracChangeset
for help on using the changeset viewer.