Changeset 1033
- Timestamp:
- 01/13/13 17:04:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluationFacade.java
r1030 r1033 5 5 6 6 import lombok.AccessLevel; 7 import lombok.AllArgsConstructor; 7 8 import lombok.NoArgsConstructor; 8 9 … … 24 25 } 25 26 27 @AllArgsConstructor 26 28 protected static class ExecuteUsabilityEvaluationStep { 27 29 28 private UsabilityRuleset usabilityRuleset; 29 30 public ExecuteUsabilityEvaluationStep(UsabilityRuleset usabilityRuleset) { 31 this.usabilityRuleset = usabilityRuleset; 32 } 30 private final UsabilityRuleset usabilityRuleset; 33 31 34 32 public UsabilityEvaluationReport evaluateUsabilityOf(ITaskTree taskTree) { 35 33 Preconditions.checkNotNull(taskTree); 36 EnumSet<? extends UsabilityRule> rulesetForUsabilityEvaluation = usabilityRuleset.getRulesetForUsabilityEvaluation();34 EnumSet<? extends UsabilityRule> evaluationRules = usabilityRuleset.evaluationRules(); 37 35 List<UsabilityDefect> evaluationResults = 38 Lists.newArrayListWithCapacity( rulesetForUsabilityEvaluation.size());39 for(UsabilityRule usabilityRule : rulesetForUsabilityEvaluation) {36 Lists.newArrayListWithCapacity(evaluationRules.size()); 37 for(UsabilityRule usabilityRule : evaluationRules) { 40 38 Optional<UsabilityDefect> ruleEvaluationResult = usabilityRule.evaluate(taskTree); 41 39 if(ruleEvaluationResult.isPresent()) {
Note: See TracChangeset
for help on using the changeset viewer.