Changeset 1733 for branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/IUserSession.java
- Timestamp:
- 09/05/14 19:33:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/IUserSession.java
r1177 r1733 19 19 /** 20 20 * <p> 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. 21 * A user session represents task executions, i.e. a task instances of a 22 * specific user that were executed in a coherent manner. Therefore, they are an 23 * ordered list of task instances where the order denotes the order of the task 24 * executions. 24 25 * </p> 25 26 * … … 28 29 public interface IUserSession extends ITaskInstanceList { 29 30 30 /** 31 * <p> 32 * returns the list of task instances executed in the represented session. 33 * </p> 34 * 35 * @return as described 36 */ 37 public List<ITaskInstance> getExecutedTasks(); 38 39 /** 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 49 */ 50 public boolean equals(IUserSession userSession); 31 /** 32 * <p> 33 * clones a user session by creating exact clones of each contained instance 34 * in their order 35 * </p> 36 * 37 * @return a clone of the session 38 */ 39 public IUserSession clone(); 51 40 52 /** 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 58 */ 59 public int hashCode(); 41 /** 42 * <p> 43 * compares the user session with another one. Two user sessions are only 44 * equal, if they contain the same number of task instances and if each task 45 * instance at each position is equal to the respective other session. 46 * </p> 47 * 48 * @param userSession 49 * the session to compare the session to 50 * 51 * @return true if both sessions are equal, false else 52 */ 53 public boolean equals(IUserSession userSession); 60 54 61 /** 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 67 */ 68 public IUserSession clone(); 55 /** 56 * <p> 57 * returns the list of task instances executed in the represented session. 58 * </p> 59 * 60 * @return as described 61 */ 62 public List<ITaskInstance> getExecutedTasks(); 63 64 /** 65 * <p> 66 * returns a hash code for the session to be able to store the session in a 67 * hash map. 68 * </p> 69 * 70 * @return as described 71 */ 72 @Override 73 public int hashCode(); 69 74 70 75 }
Note: See TracChangeset
for help on using the changeset viewer.