Changeset 1287 for trunk/autoquest-core-tasktrees
- Timestamp:
- 08/07/13 09:09:03 (11 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRule.java
r1285 r1287 353 353 Console.traceln(Level.INFO, "detected and replaced " + appData.getLastFoundTasks().size() + 354 354 " tasks occuring " + appData.getLastFoundTasks().getOccurrenceCount() + 355 " times");355 " times"); 356 356 } 357 357 -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInfo.java
r1191 r1287 19 19 /** 20 20 * <p> 21 * yet more or less unused, this class will in the future provide dextended information about a21 * yet more or less unused, this class will in the future provide extended information about a 22 22 * specific task, such as statistics about task occurrences, etc. 23 23 * </p> … … 36 36 public ITask getTask(); 37 37 38 /** 39 * <p> 40 * returns the number of times a task occurred 41 * </p> 42 * 43 * @return as described 44 */ 45 public int getCount(); 46 38 47 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/TaskInfo.java
r1216 r1287 44 44 /** 45 45 * <p> 46 * the number of occurrences of this task 47 * </p> 48 */ 49 private int count; 50 51 /** 52 * <p> 46 53 * initialized the task infos with the task to which they belong. 47 54 * </p> … … 62 69 63 70 /* (non-Javadoc) 71 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInfo#getCount() 72 */ 73 @Override 74 public int getCount() { 75 return count; 76 } 77 78 /* (non-Javadoc) 64 79 * @see java.lang.Object#toString() 65 80 */ 66 81 @Override 67 82 public synchronized String toString() { 68 return " NodeInfo(" + task + ")";83 return "TaskInfo(" + task + ")"; 69 84 } 70 85 86 /** 87 * <p> 88 * used to increase the counter of occurrences of this task by one 89 * </p> 90 */ 91 void increaseCount() { 92 count++; 93 } 71 94 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/TaskModel.java
r1216 r1287 21 21 import java.util.Map; 22 22 23 import de.ugoe.cs.autoquest.tasktrees.treeifc.IMarkingTemporalRelationship;24 import de.ugoe.cs.autoquest.tasktrees.treeifc.IStructuringTemporalRelationship;25 23 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 26 24 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 25 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstanceList; 27 26 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 28 27 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInfo; … … 77 76 for (IUserSession session : this.userSessions) { 78 77 for (ITaskInstance taskInstance : session) { 79 addTask ToMap(taskInstance.getTask());78 addTasksToMap(taskInstance); 80 79 } 81 80 } 82 81 } 83 82 84 83 85 84 /* (non-Javadoc) 86 85 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel#getUserSessions() … … 117 116 } 118 117 118 119 /** 120 * <p> 121 * internal convenience method to recursively add the tasks of a task instance and its 122 * children to the task model 123 * </p> 124 * 125 * @param taskInstance the task instance of which the tasks shall be added 126 */ 127 private void addTasksToMap(ITaskInstance taskInstance) { 128 addTaskToMap(taskInstance.getTask()); 129 130 if (taskInstance instanceof ITaskInstanceList) { 131 for (ITaskInstance child : (ITaskInstanceList) taskInstance) { 132 addTasksToMap(child); 133 } 134 } 135 } 136 137 119 138 /** 120 139 * <p> … … 130 149 } 131 150 132 if (task instanceof IStructuringTemporalRelationship) { 151 taskInfo.increaseCount(); 152 153 /*if (task instanceof IStructuringTemporalRelationship) { 133 154 for (ITask child : ((IStructuringTemporalRelationship) task).getChildren()) { 134 155 addTaskToMap(child); … … 137 158 else if (task instanceof IMarkingTemporalRelationship) { 138 159 addTaskToMap(((IMarkingTemporalRelationship) task).getMarkedTask()); 139 } 160 }*/ 140 161 } 141 162
Note: See TracChangeset
for help on using the changeset viewer.