Changeset 1960 for trunk/autoquest-core-usability/src/main/java/de/ugoe
- Timestamp:
- 06/02/15 13:17:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/DataEntryMethodChangeRule.java
r1918 r1960 92 92 */ 93 93 private Map<ITask, Integer> getDataEntryMethodChangeRatios(Collection<ITask> tasks) { 94 Map<ITask, Integer> impatienceRatios = new HashMap<ITask, Integer>();94 Map<ITask, Integer> methodChangeRatios = new HashMap<ITask, Integer>(); 95 95 96 96 for (ITask task : tasks) { … … 99 99 100 100 if (ratio > 0) { 101 impatienceRatios.put(task, ratio);101 methodChangeRatios.put(task, ratio); 102 102 } 103 103 } 104 104 } 105 105 106 return impatienceRatios;106 return methodChangeRatios; 107 107 } 108 108 … … 142 142 143 143 for (IEventTaskInstance current : terminalNodes) { 144 if (previous == null) { 145 previous = current; 146 } 147 else if (dataEntryMethodChanges(previous, current)) { 144 if ((previous != null) && (dataEntryMethodChanges(previous, current))) { 148 145 changeCount++; 149 146 } 147 148 previous = current; 150 149 } 151 150
Note: See TracChangeset
for help on using the changeset viewer.