Ignore:
Timestamp:
08/07/13 09:09:03 (11 years ago)
Author:
pharms
Message:
  • added counting of task occurrences
File:
1 edited

Legend:

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

    r1216 r1287  
    4444    /** 
    4545     * <p> 
     46     * the number of occurrences of this task 
     47     * </p> 
     48     */ 
     49    private int count; 
     50 
     51    /** 
     52     * <p> 
    4653     * initialized the task infos with the task to which they belong. 
    4754     * </p> 
     
    6269 
    6370    /* (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) 
    6479     * @see java.lang.Object#toString() 
    6580     */ 
    6681    @Override 
    6782    public synchronized String toString() { 
    68         return "NodeInfo(" + task + ")"; 
     83        return "TaskInfo(" + task + ")"; 
    6984    } 
    7085 
     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    } 
    7194} 
Note: See TracChangeset for help on using the changeset viewer.