Changeset 1216 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/TaskModel.java
- Timestamp:
- 05/27/13 15:52:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/TaskModel.java
r1146 r1216 30 30 31 31 /** 32 * TODO comment 32 * <p> 33 * this is the default implementation of the interface {@link ITaskModel}. It 34 * does not do anything fancy except implementing the interface. 35 * </p> 33 36 * 34 * @version $Revision: $ $Date: 21.02.2012$ 35 * @author 2012, last modified by $Author: patrick$ 37 * @author Patrick Harms 36 38 */ 37 39 class TaskModel implements ITaskModel { 38 40 39 /** */ 41 /** 42 * <p> 43 * default serial version UID 44 * </p> 45 */ 40 46 private static final long serialVersionUID = 1L; 41 47 42 /** the map of tasks */ 48 /** 49 * <p> 50 * the user sessions belonging to the model 51 * </p> 52 */ 43 53 private List<IUserSession> userSessions; 44 54 45 /** the map of tasks */ 55 /** 56 * <p> 57 * the tasks contained in the user session belonging to the model as well as statistical infos 58 * about them 59 * </p> 60 */ 46 61 private Map<ITask, TaskInfo> taskMap = new HashMap<ITask, TaskInfo>(); 47 62 48 63 /** 49 * 64 * <p> 65 * initializes the task model with the user sessions out of which the tasks are extracted 66 * </p> 67 * 68 * @param userSessions as described 50 69 */ 51 70 TaskModel(List<IUserSession> userSessions) { … … 83 102 84 103 /* (non-Javadoc) 85 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel#getTaskInfo( de.ugoe.cs.autoquest.tasktrees.treeifc.ITask)104 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel#getTaskInfo(ITask) 86 105 */ 87 106 @Override … … 90 109 } 91 110 111 /* (non-Javadoc) 112 * @see java.lang.Object#clone() 113 */ 114 @Override 115 public TaskModel clone() { 116 return new TaskModel(userSessions); 117 } 118 92 119 /** 93 * 120 * <p> 121 * internal convenience method to build the task model during initialization 122 * </p> 94 123 */ 95 124 private void addTaskToMap(ITask task) { … … 111 140 } 112 141 113 /*114 * (non-Javadoc)115 *116 * @see java.lang.Object#clone()117 */118 @Override119 public TaskModel clone() {120 return new TaskModel(userSessions);121 }122 123 142 }
Note: See TracChangeset
for help on using the changeset viewer.