Ignore:
Timestamp:
04/25/13 16:59:20 (11 years ago)
Author:
pharms
Message:
  • improved java doc
File:
1 edited

Legend:

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

    r1146 r1177  
    1818 
    1919/** 
    20  * TODO comment 
     20 * <p> 
     21 * a task instance represents the execution of a specific task within a user session. A task 
     22 * instance is always related to the task that was executed. A task instance may have children 
     23 * but only if its related task allows to have children. For example, if the represented task is 
     24 * a sequence then task instance has children and these are instances of the tasks being the 
     25 * children of the related sequence. 
     26 * </p> 
     27 * <p> 
     28 * An instance of a sequence has the same number of children as the related sequence. An instance 
     29 * of a selection has only one child which is an instance of exactly one variant contained in the 
     30 * related selection. An instance of an iteration has zero or more instances of the same task 
     31 * as children where the task is the child of the related iteration. An instance of an optional 
     32 * has zero or one child where the task related to child is the child of the optional. A task 
     33 * instance related to an event task does not have children. 
     34 * </p> 
    2135 *  
    22  * @version $Revision: $ $Date: $ 
    23  * @author 2011, last modified by $Author: $ 
     36 * @author Patrick Harms 
    2437 */ 
    2538public interface ITaskInstance extends ITaskInstanceList { 
    2639 
    2740    /** 
    28      * 
     41     * <p> 
     42     * returns the children of the task instance if any. See class description for how many 
     43     * children can be expected. May return null. 
     44     * </p> 
     45     *  
     46     * @return as described 
    2947     */ 
    3048    public List<ITaskInstance> getChildren(); 
    3149 
    3250    /** 
    33      * 
     51     * <p> 
     52     * returns the task related to the instance. 
     53     * </p> 
     54     *  
     55     * @return as described 
    3456     */ 
    3557    public ITask getTask(); 
    3658 
    3759    /** 
    38      * 
     60     * <p> 
     61     * compares an instance to another one. Returns true if both instances are the same, i.e. not 
     62     * only the related task is equal but also all children and further characteristics of the 
     63     * task instance   
     64     * </p> 
     65     *  
     66     * @param taskInstance the instance to compare to 
     67     *  
     68     * @return as described 
    3969     */ 
    4070    public boolean equals(ITaskInstance taskInstance); 
    4171 
    4272    /** 
    43      * 
     73     * <p> 
     74     * returns a hash code for the task instance to be able to put it into hash maps 
     75     * </p> 
     76     *  
     77     * @return as described 
    4478     */ 
    4579    public int hashCode(); 
    4680 
    4781    /** 
    48      * 
     82     * <p> 
     83     * clones a task instance by creating exact clones of each contained child instance as well 
     84     * as the related task. Furthermore, all other non transient information of the task 
     85     * instance must be cloned. 
     86     * </p> 
     87     *  
     88     * @return a clone of the task instance 
    4989     */ 
    5090    public ITaskInstance clone(); 
Note: See TracChangeset for help on using the changeset viewer.