Ignore:
Timestamp:
05/27/13 14:53:38 (12 years ago)
Author:
pharms
Message:
  • added Optional to visitor pattern
Location:
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/ContainsEventVisitor.java

    r1204 r1213  
    1818 
    1919import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     20import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    2021import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    2122import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     
    5354 
    5455    /* (non-Javadoc) 
     56     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     57     */ 
     58    public void visit(IOptional optional) { 
     59        checkTaskAndReturnIfPatternIsPresent(optional.getMarkedTask()); 
     60    } 
     61 
     62    /* (non-Javadoc) 
    5563     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5664     */ 
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/ContainsInteractionPatternVisitor.java

    r1204 r1213  
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
    1818import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     19import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    1920import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    2021import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     
    5253 
    5354    /* (non-Javadoc) 
     55     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     56     */ 
     57    public void visit(IOptional optional) { 
     58        checkTaskAndReturnIfPatternIsPresent(optional.getMarkedTask()); 
     59    } 
     60 
     61    /* (non-Javadoc) 
    5462     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5563     */ 
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/EndsWithEventVisitor.java

    r1204 r1213  
    1616 
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     18import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    1819import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    1920import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor; 
     
    5152 
    5253    /* (non-Javadoc) 
     54     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     55     */ 
     56    public void visit(IOptional optional) { 
     57        optional.getMarkedTask().accept(this); 
     58    } 
     59 
     60    /* (non-Javadoc) 
    5361     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5462     */ 
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/EndsWithInteractionPatternVisitor.java

    r1204 r1213  
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
    1818import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     19import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    1920import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    2021import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     
    5354 
    5455    /* (non-Javadoc) 
     56     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     57     */ 
     58    public void visit(IOptional optional) { 
     59        this.present = containedPattern.containedIn(optional);  
     60    } 
     61 
     62    /* (non-Javadoc) 
    5563     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5664     */ 
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/StartsWithEventVisitor.java

    r1204 r1213  
    1616 
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     18import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    1819import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    1920import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor; 
     
    5152     
    5253    /* (non-Javadoc) 
     54     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     55     */ 
     56    public void visit(IOptional optional) { 
     57        optional.getMarkedTask().accept(this); 
     58    } 
     59 
     60    /* (non-Javadoc) 
    5361     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5462     */ 
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/StartsWithInteractionPatternVisitor.java

    r1204 r1213  
    1717import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
    1818import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 
     19import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 
    1920import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    2021import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     
    5354 
    5455    /* (non-Javadoc) 
     56     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional) 
     57     */ 
     58    public void visit(IOptional optional) { 
     59        this.present = containedPattern.containedIn(optional);   
     60    } 
     61 
     62    /* (non-Javadoc) 
    5563     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence) 
    5664     */ 
Note: See TracChangeset for help on using the changeset viewer.