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/util/TextInputUtil.java

    r1217 r1319  
    2626 
    2727import de.ugoe.cs.autoquest.eventcore.gui.TextInput; 
    28 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
     28import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; 
    2929import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     30import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 
    3031 
    3132/** 
     
    4546     *  
    4647     * <p> 
    47      * Returns all entered words and signs of text input events. 
     48     * Returns all entered words and signs of all instances of text input events. 
    4849     * </p> 
    4950     *  
     
    5657        List<Iterable<String>> allTextInputs = Lists.newArrayList(); 
    5758        for (ITask taskWithTextInput : tasksWithTextInputEvents) { 
    58             TextInput textInput = (TextInput) ((IEventTask) taskWithTextInput).getEventType(); 
    59             allTextInputs.add(splitTextIntoWordsAndSigns(textInput.getEnteredText())); 
     59            System.out.print("+"); 
     60            for (ITaskInstance instance : taskWithTextInput.getInstances()) { 
     61                System.out.print("."); 
     62                TextInput textInput = 
     63                    (TextInput) ((IEventTaskInstance) instance).getEvent().getType(); 
     64                allTextInputs.add(splitTextIntoWordsAndSigns(textInput.getEnteredText())); 
     65            } 
     66            System.out.println(""); 
    6067        } 
     68        System.out.println(allTextInputs); 
    6169        return HashMultiset.create(Iterables.concat(allTextInputs)); 
    6270    } 
Note: See TracChangeset for help on using the changeset viewer.