Ignore:
Timestamp:
04/19/13 19:44:02 (12 years ago)
Author:
adeicke
Message:

NullTask? (object with defined neutral behavior cf. Null Object pattern).

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/util/NullTask.java

    r1152 r1163  
    1515package de.ugoe.cs.autoquest.usability.util; 
    1616 
    17 import java.util.Collections; 
    18 import java.util.List; 
    19  
    2017import org.apache.commons.lang.StringUtils; 
    2118 
    2219import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     20import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor; 
    2321 
    2422/** 
     
    2927 * @author Alexander Deicke 
    3028 */ 
    31 public class NullNode implements ITask { 
     29public class NullTask implements ITask { 
    3230 
     31    /**  */ 
     32    private static final long serialVersionUID = 1236779392413787860L; 
     33 
     34    /* (non-Javadoc) 
     35     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#getId() 
     36     */ 
     37    @Override 
     38    public int getId() { 
     39        return -1; 
     40    } 
     41     
    3342    /* (non-Javadoc) 
    3443     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#getName() 
     
    5665     */ 
    5766    @Override 
    58     public NullNode clone() { 
    59         return (NullNode) this; 
     67    public NullTask clone() { 
     68        return (NullTask) this; 
    6069    } 
    6170 
     
    6372     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor) 
    6473     */ 
    65     public void accept(NodeVisitor visitor) { 
    66          
     74    public void accept(ITaskVisitor visitor) { 
     75        // do nothing 
    6776    } 
    6877     
Note: See TracChangeset for help on using the changeset viewer.