Changeset 2161 for trunk/autoquest-core-tasktrees/src/main/java
- Timestamp:
- 09/07/17 16:11:01 (7 years ago)
- 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 56 56 mRuleIndex.add(new TaskIdentityRule()); 57 57 mRuleIndex.add(new GUIEventTaskComparisonRule()); 58 mRuleIndex.add(new InefficientActionsComparisonRule()); 58 59 mRuleIndex.add(new EventTaskComparisonRule()); 59 60 mRuleIndex.add(new IterationComparisonRule()); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/TaskTreeUtils.java
r2030 r2161 51 51 52 52 return false; 53 } 54 55 /** 56 * 57 */ 58 public static Set<ISequence> getMostProminentTasks(ITaskModel model) { 59 return getMostProminentTasks(model, model.getTasks()); 53 60 } 54 61 … … 112 119 return result; 113 120 } 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 115 150 /** 116 151 *
Note: See TracChangeset
for help on using the changeset viewer.