Changeset 1401 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TaskHandlingStrategy.java
- Timestamp:
- 02/26/14 17:12:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TaskHandlingStrategy.java
r1394 r1401 17 17 import de.ugoe.cs.autoquest.tasktrees.taskequality.TaskEquality; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 19 import de.ugoe.cs.autoquest.usageprofiles.DefaultSymbolMap;20 19 import de.ugoe.cs.autoquest.usageprofiles.SymbolComparator; 21 20 import de.ugoe.cs.autoquest.usageprofiles.SymbolMap; … … 24 23 /** 25 24 * <p> 26 * TODO comment 25 * concrete implementation of a symbol strategy required in the creation of a 26 * {@link de.ugoe.cs.autoquest.usageprofiles.Trie}. The strategy can be parameterized with a 27 * considered task equality. It uses task instance comparators to perform task comparison. 28 * It creates task specific symbol maps, which are {@link TaskSymbolIdentityMap} and 29 * {@link TaskSymbolBucketedMap} depending on the level of considered task equality. 27 30 * </p> 28 31 * … … 35 38 36 39 /** 37 * 40 * <p> 41 * the level of task equality considered in this task handling strategy 42 * </p> 38 43 */ 39 44 private TaskEquality consideredEquality; 40 45 41 46 /** 42 * 47 * <p> 48 * the comparator used for task comparisons 49 * </p> 43 50 */ 44 51 private TaskInstanceComparator comparator; … … 46 53 /** 47 54 * <p> 48 * TODO: comment55 * initializes this strategy with a task equality to be considered for task comparisons 49 56 * </p> 50 57 * 51 * @param consideredEquality 58 * @param consideredEquality the task equality to be considered for task comparisons 52 59 */ 53 60 public TaskHandlingStrategy(TaskEquality consideredEquality) { … … 72 79 /** 73 80 * <p> 74 * TODO: comment 81 * convenience method to have a correctly typed return value as alternative to 82 * {@link #getSymbolComparator()}; 75 83 * </p> 76 *77 * @return78 84 */ 79 85 public TaskInstanceComparator getTaskComparator() { … … 95 101 96 102 /* (non-Javadoc) 97 * @see de.ugoe.cs.autoquest.usageprofiles.SymbolStrategy#copySymbolMap( de.ugoe.cs.autoquest.usageprofiles.SymbolMap)103 * @see de.ugoe.cs.autoquest.usageprofiles.SymbolStrategy#copySymbolMap(SymbolMap) 98 104 */ 99 105 @Override 100 106 public <V> SymbolMap<ITaskInstance, V> copySymbolMap(SymbolMap<ITaskInstance, V> other) { 101 107 if (consideredEquality == TaskEquality.IDENTICAL) { 102 return new DefaultSymbolMap<ITaskInstance,V>(other);108 return new TaskSymbolIdentityMap<V>(other); 103 109 } 104 110 else {
Note: See TracChangeset
for help on using the changeset viewer.