Ignore:
Timestamp:
02/26/14 17:12:53 (10 years ago)
Author:
pharms
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TaskHandlingStrategy.java

    r1394 r1401  
    1717import de.ugoe.cs.autoquest.tasktrees.taskequality.TaskEquality; 
    1818import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 
    19 import de.ugoe.cs.autoquest.usageprofiles.DefaultSymbolMap; 
    2019import de.ugoe.cs.autoquest.usageprofiles.SymbolComparator; 
    2120import de.ugoe.cs.autoquest.usageprofiles.SymbolMap; 
     
    2423/** 
    2524 * <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. 
    2730 * </p> 
    2831 *  
     
    3538 
    3639    /** 
    37      *  
     40     * <p> 
     41     * the level of task equality considered in this task handling strategy 
     42     * </p> 
    3843     */ 
    3944    private TaskEquality consideredEquality; 
    4045 
    4146    /** 
    42      *  
     47     * <p> 
     48     * the comparator used for task comparisons 
     49     * </p> 
    4350     */ 
    4451    private TaskInstanceComparator comparator; 
     
    4653    /** 
    4754     * <p> 
    48      * TODO: comment 
     55     * initializes this strategy with a task equality to be considered for task comparisons 
    4956     * </p> 
    5057     * 
    51      * @param consideredEquality 
     58     * @param consideredEquality the task equality to be considered for task comparisons 
    5259     */ 
    5360    public TaskHandlingStrategy(TaskEquality consideredEquality) { 
     
    7279    /** 
    7380     * <p> 
    74      * TODO: comment 
     81     * convenience method to have a correctly typed return value as alternative to 
     82     * {@link #getSymbolComparator()}; 
    7583     * </p> 
    76      * 
    77      * @return 
    7884     */ 
    7985    public TaskInstanceComparator getTaskComparator() { 
     
    95101 
    96102    /* (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) 
    98104     */ 
    99105    @Override 
    100106    public <V> SymbolMap<ITaskInstance, V> copySymbolMap(SymbolMap<ITaskInstance, V> other) { 
    101107        if (consideredEquality == TaskEquality.IDENTICAL) { 
    102             return new DefaultSymbolMap<ITaskInstance, V>(other); 
     108            return new TaskSymbolIdentityMap<V>(other); 
    103109        } 
    104110        else { 
Note: See TracChangeset for help on using the changeset viewer.