Ignore:
Timestamp:
02/26/14 17:17:55 (11 years ago)
Author:
pharms
Message:
  • added visitor pattern for task instances
Location:
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees
Files:
1 added
2 edited

Legend:

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

    r1294 r1405  
    6969    public ITaskInstance clone(); 
    7070 
     71    /** 
     72     * <p> 
     73     * implements the visitor pattern to be able to process task instances and their children. 
     74     * </p> 
     75     *  
     76     * @param visitor the visitor used to process the task 
     77     */ 
     78    public void accept(ITaskInstanceVisitor visitor); 
     79     
    7180} 
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/TaskInstance.java

    r1358 r1405  
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
    1818import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 
     19import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstanceVisitor; 
    1920 
    2021/** 
     
    154155    } 
    155156 
     157    /* (non-Javadoc) 
     158     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance#accept(ITaskInstanceVisitor) 
     159     */ 
     160    @Override 
     161    public void accept(ITaskInstanceVisitor visitor) { 
     162        visitor.visit(this); 
     163    } 
     164 
    156165    /** 
    157166     * <p> 
Note: See TracChangeset for help on using the changeset viewer.