Ignore:
Timestamp:
11/08/13 22:34:21 (11 years ago)
Author:
khartmann
Message:
  • Reworked Filters to use the first instance of a task to provide type and target
  • Added a function to extract all tasks matching a given filter
  • Added simple console feedback for matched usability problems
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/taskmodel/filter/types/EventTypeFilter.java

    r1291 r1319  
    2828import de.ugoe.cs.autoquest.eventcore.gui.TextInput; 
    2929import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
     30import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; 
    3031import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     32import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 
    3133 
    3234/** 
     
    9799            @Override 
    98100            public IEventType apply(ITask task) { 
    99                 return ((IEventTask) task).getEventType(); 
     101                // XXX: Use the type of the first instance provided 
     102                ITaskInstance firstInstance = task.getInstances().iterator().next(); 
     103                return ((IEventTaskInstance) firstInstance).getEvent().getType(); 
    100104            } 
    101105        }; 
Note: See TracChangeset for help on using the changeset viewer.