Changeset 1292 for trunk/autoquest-core-usability-evaluation/src
- Timestamp:
- 08/10/13 10:26:17 (11 years ago)
- Location:
- trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/NoLetterOrDigitRatioMetric.java
r1217 r1292 28 28 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 29 29 import de.ugoe.cs.autoquest.usability.EvaluationMethodCaller; 30 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription; 30 31 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescriptionResolver; 31 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription;32 32 import de.ugoe.cs.autoquest.usability.rules.UsabilityMetric; 33 33 import de.ugoe.cs.autoquest.usability.rules.UsabilityRule; 34 34 import de.ugoe.cs.autoquest.usability.taskmodel.filter.FilterResult; 35 import de.ugoe.cs.autoquest.usability.taskmodel.filter.IterativeDFSFilterStrategy; 36 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskModelFilter; 35 import de.ugoe.cs.autoquest.usability.taskmodel.filter.TaskModelFilter; 37 36 38 37 /** … … 82 81 */ 83 82 private FilterResult extractNodesFromTaskTree() { 84 return new TaskModelFilter(new IterativeDFSFilterStrategy()).filterByEventType(TEXT_INPUT) 85 .from(this.taskModel); 83 return new TaskModelFilter().filter(taskModel, TEXT_INPUT); 86 84 } 87 85 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsMetric.java
r1217 r1292 28 28 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 29 29 import de.ugoe.cs.autoquest.usability.EvaluationMethodCaller; 30 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription; 30 31 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescriptionResolver; 31 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription;32 32 import de.ugoe.cs.autoquest.usability.rules.UsabilityMetric; 33 33 import de.ugoe.cs.autoquest.usability.rules.UsabilityRule; 34 34 import de.ugoe.cs.autoquest.usability.taskmodel.filter.FilterResult; 35 import de.ugoe.cs.autoquest.usability.taskmodel.filter.IterativeDFSFilterStrategy; 36 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskModelFilter; 35 import de.ugoe.cs.autoquest.usability.taskmodel.filter.TaskModelFilter; 37 36 38 37 /** … … 82 81 */ 83 82 private FilterResult extractNodesFromTaskTree() { 84 return new TaskModelFilter(new IterativeDFSFilterStrategy()).filterByEventType(TEXT_INPUT) 85 .from(this.taskModel); 83 return new TaskModelFilter().filter(taskModel, TEXT_INPUT); 86 84 } 87 85 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioMetric.java
r1217 r1292 27 27 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 28 28 import de.ugoe.cs.autoquest.usability.EvaluationMethodCaller; 29 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription; 29 30 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescriptionResolver; 30 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription;31 31 import de.ugoe.cs.autoquest.usability.rules.UsabilityMetric; 32 32 import de.ugoe.cs.autoquest.usability.rules.UsabilityRule; 33 33 import de.ugoe.cs.autoquest.usability.taskmodel.filter.FilterResult; 34 import de.ugoe.cs.autoquest.usability.taskmodel.filter.IterativeDFSFilterStrategy; 35 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskModelFilter; 34 import de.ugoe.cs.autoquest.usability.taskmodel.filter.TaskModelFilter; 36 35 37 36 /** … … 82 81 */ 83 82 private FilterResult extractNodesFromTaskTree() { 84 return new TaskModelFilter(new IterativeDFSFilterStrategy()).filterByEventType(TEXT_INPUT) 85 .from(this.taskModel); 83 return new TaskModelFilter().filter(taskModel, TEXT_INPUT); 86 84 } 87 85 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/InteractionPattern.java
r1217 r1292 21 21 import com.google.common.collect.Iterables; 22 22 23 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; 23 24 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 24 25 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 25 import de.ugoe.cs.autoquest.usability.taskmodel.filter.I terativeDFSFilterStrategy;26 import de.ugoe.cs.autoquest.usability.taskmodel.filter. types.TaskModelFilter;26 import de.ugoe.cs.autoquest.usability.taskmodel.filter.ITaskModelFilter; 27 import de.ugoe.cs.autoquest.usability.taskmodel.filter.TaskModelFilter; 27 28 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskTypeFilter; 28 29 … … 38 39 /** 39 40 * <p> 40 * {@link TaskModelFilter }, which is used to filter a task model after different {@link ITask}s41 * </p> 42 */ 43 private TaskModelFilter taskTreeFilter = new TaskModelFilter(new IterativeDFSFilterStrategy());41 * {@link TaskModelFilterAccessor}, which is used to filter a task model after different {@link ITask}s 42 * </p> 43 */ 44 private ITaskModelFilter taskTreeFilter = new TaskModelFilter(); 44 45 45 46 /** … … 188 189 */ 189 190 private List<ITask> filterAllConcernedTasksFrom(ITaskModel taskModel) { 190 return this.taskTreeFilter.filterByNodeType(this.rootTask).from(taskModel) 191 .tasksMatchedFilter(); 191 return this.taskTreeFilter.filter(taskModel, this.rootTask).tasksMatchedFilter(); 192 192 } 193 193
Note: See TracChangeset
for help on using the changeset viewer.