Changeset 1167 for trunk


Ignore:
Timestamp:
04/19/13 19:53:04 (12 years ago)
Author:
pharms
Message:
  • improved java doc
Location:
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc
Files:
2 edited

Legend:

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

    r1146 r1167  
    1919 
    2020/** 
    21  * TODO comment 
     21 * <p> 
     22 * Event tasks represent events. They have no children and are therefore the leaf nodes of the 
     23 * task tree. They provide information about the event they represent. This includes the event 
     24 * type and the target. 
     25 * </p> 
    2226 *  
    23  * @version $Revision: $ $Date: $ 
    24  * @author 2011, last modified by $Author: $ 
     27 * @author Patrick Harms 
    2528 */ 
    2629public interface IEventTask extends ITask { 
    2730     
    2831    /** 
    29      * @return Returns the event type. 
     32     * <p> 
     33     * return the type of the event represented by this task 
     34     * </p> 
     35     *  
     36     * @return as described 
    3037     */ 
    3138    public IEventType getEventType(); 
    3239 
    3340    /** 
    34      * @return Returns the event target. 
     41     * <p> 
     42     * return the target of the event represented by this task 
     43     * </p> 
     44     *  
     45     * @return as described 
    3546     */ 
    3647    public IEventTarget getEventTarget(); 
    3748 
    3849    /** 
    39      * 
     50     * <p> 
     51     * returns a clone of this task, i.e. another event task being identical to this. The event 
     52     * type and target are not cloned but reused. 
     53     * </p> 
     54     *  
     55     * @return as described 
    4056     */ 
    4157    public IEventTask clone(); 
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITask.java

    r1157 r1167  
    1919/** 
    2020 * <p> 
    21  * TODO comment 
     21 * A task represents a model for events that occur if the user interacts with a software for 
     22 * achieving a specific goal. A task can be a single event or a complex structure of events 
     23 * and temporal relationships defining the event order. Tasks may especially refer to other tasks 
     24 * to create task structures similar to trees. These structures fully define in which ways the 
     25 * events that form the task can occur. 
    2226 * </p> 
    2327 *  
     
    2731 
    2832    /** 
    29      * 
     33     * <p> 
     34     * every task is assigned a unique id which is returned by this method. The id is unique for 
     35     * the current runtime. 
     36     * </p> 
     37     *  
     38     * @return as described 
    3039     */ 
    3140    public int getId(); 
    3241 
    3342    /** 
    34      * 
     43     * <p> 
     44     * returns a human readable description for task.  
     45     * </p> 
     46     *  
     47     * @return as described 
    3548     */ 
    3649    public String getDescription(); 
    3750 
    3851    /** 
    39      * 
     52     * <p> 
     53     * checks whether this task is equal to another one. Task equality is only given, if two 
     54     * tasks have the same id. This means, that this method must only return true if the other 
     55     * task is either the same object or a clone of it.  
     56     * </p> 
     57     *  
     58     * @return as described 
    4059     */ 
    4160    public boolean equals(ITask task); 
    4261 
    4362    /** 
    44      * 
     63     * <p> 
     64     * returns a hash code for the task, which is usually the id returned by {@link #getId()}. 
     65     * </p> 
     66     *  
     67     * @return as described 
    4568     */ 
    4669    public int hashCode(); 
    4770 
    4871    /** 
    49      * 
     72     * <p> 
     73     * returns an exact copy of this task. The clone has the same id. If the task has 
     74     * children, they are cloned as well. A call on the method {@link #equals(ITask)} with the 
     75     * result of this method must return true. 
     76     * </p> 
     77     *  
     78     * @return as described 
    5079     */ 
    5180    public ITask clone(); 
    5281     
    5382    /** 
    54      * 
     83     * <p> 
     84     * implements the visitor pattern to be able to process tasks and their children. 
     85     * </p> 
     86     *  
     87     * @param visitor the visitor used to process the task 
    5588     */ 
    56    public void accept(ITaskVisitor visitor); 
     89    public void accept(ITaskVisitor visitor); 
    5790     
    5891} 
Note: See TracChangeset for help on using the changeset viewer.