Ignore:
Timestamp:
04/25/13 16:59:20 (12 years ago)
Author:
pharms
Message:
  • improved java doc
Location:
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc
Files:
3 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(); 
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInstanceList.java

    r1146 r1177  
    1919/** 
    2020 * <p> 
    21  * TODO comment 
     21 * represents a serializable, clonable, iterable representation of a read only list of task 
     22 * instances. The list is ordered. It does not provide methods for changing it. 
    2223 * </p> 
    2324 *  
     
    2728 
    2829    /** 
    29      * 
     30     * <p> 
     31     * returns the task instance at the position with the given index. May throw an exception 
     32     * if the index is invalid. 
     33     * </p> 
     34     *  
     35     * @param index the index of the task instance to be returned 
     36     *  
     37     * @return the task instance at the given index 
    3038     */ 
    3139    public ITaskInstance get(int index); 
    3240 
    3341    /** 
    34      * 
     42     * <p> 
     43     * returns the size of the list, i.e. the number of task instances in the list 
     44     * </p> 
     45     *  
     46     * @return as described 
    3547     */ 
    3648    public int size(); 
    3749 
    3850    /** 
    39      * 
     51     * <p> 
     52     * clones a task instance list by creating exact clones of each contained instance in their 
     53     * order 
     54     * </p> 
     55     *  
     56     * @return a clone of the task instance list 
    4057     */ 
    4158    public ITaskInstanceList clone(); 
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/IUserSession.java

    r1146 r1177  
    1919/** 
    2020 * <p> 
    21  * TODO comment 
     21 * A user session represents task executions, i.e. a task instances of a specific user that were 
     22 * executed in a coherent manner. Therefore, they are an ordered list of task instances where 
     23 * the order denotes the order of the task executions. 
    2224 * </p> 
    2325 *  
     
    2729 
    2830    /** 
    29      * 
     31     * <p> 
     32     * returns the list of task instances executed in the represented session. 
     33     * </p> 
     34     *  
     35     * @return as described 
    3036     */ 
    3137    public List<ITaskInstance> getExecutedTasks(); 
    3238     
    3339    /** 
    34      * 
     40     * <p> 
     41     * compares the user session with another one. Two user sessions are only equal, if they 
     42     * contain the same number of task instances and if each task instance at each position is 
     43     * equal to the respective other session.  
     44     * </p> 
     45     *  
     46     * @param userSession the session to compare the session to 
     47     *  
     48     * @return true if both sessions are equal, false else 
    3549     */ 
    3650    public boolean equals(IUserSession userSession); 
    3751 
    3852    /** 
    39      * 
     53     * <p> 
     54     * returns a hash code for the session to be able to store the session in a hash map. 
     55     * </p> 
     56     *  
     57     * @return as described 
    4058     */ 
    4159    public int hashCode(); 
    4260 
    4361    /** 
    44      * 
     62     * <p> 
     63     * clones a user session by creating exact clones of each contained instance in their order 
     64     * </p> 
     65     *  
     66     * @return a clone of the session 
    4567     */ 
    4668    public IUserSession clone(); 
Note: See TracChangeset for help on using the changeset viewer.