Ignore:
Timestamp:
09/07/17 16:11:01 (7 years ago)
Author:
pharms
Message:
  • changes for first VR oriented usability evaluation
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/taskequality/TaskEqualityRuleManager.java

    r1887 r2161  
    5656        mRuleIndex.add(new TaskIdentityRule()); 
    5757        mRuleIndex.add(new GUIEventTaskComparisonRule()); 
     58        mRuleIndex.add(new InefficientActionsComparisonRule()); 
    5859        mRuleIndex.add(new EventTaskComparisonRule()); 
    5960        mRuleIndex.add(new IterationComparisonRule()); 
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/TaskTreeUtils.java

    r2030 r2161  
    5151         
    5252        return false; 
     53    } 
     54 
     55    /** 
     56     * 
     57     */ 
     58    public static Set<ISequence> getMostProminentTasks(ITaskModel model) { 
     59        return getMostProminentTasks(model, model.getTasks()); 
    5360    } 
    5461 
     
    112119        return result; 
    113120    } 
    114      
     121 
     122 
     123    /** 
     124     * 
     125     */ 
     126    public static int getNoOfEventsCoveredBySequences(Set<ISequence> sequences) { 
     127        return getEventsCoveredBySequences(sequences).size(); 
     128    } 
     129 
     130    /** 
     131     * 
     132     */ 
     133    public static Set<IEventTaskInstance> getEventsCoveredBySequences(Set<ISequence> sequences) { 
     134        final Set<IEventTaskInstance> events = new HashSet<>(); 
     135         
     136        for (ISequence task : sequences) { 
     137            for (ITaskInstance instance : task.getInstances()) { 
     138                instance.accept(new DefaultTaskInstanceTraversingVisitor() { 
     139                    @Override 
     140                    public void visit(IEventTaskInstance eventTaskInstance) { 
     141                        events.add(eventTaskInstance); 
     142                    } 
     143                }); 
     144            } 
     145        } 
     146         
     147        return events; 
     148    } 
     149 
    115150    /** 
    116151     * 
Note: See TracChangeset for help on using the changeset viewer.