Changeset 1040 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/testutil/DummyUsabilityRuleset.java
- Timestamp:
- 01/16/13 17:51:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/testutil/DummyUsabilityRuleset.java
r1034 r1040 1 // Copyright 2012 Georg-August-Universität Göttingen, Germany 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 1 15 package de.ugoe.cs.autoquest.usability.testutil; 2 16 … … 13 27 import de.ugoe.cs.autoquest.usability.evaluation.rule.set.UsabilityRuleset; 14 28 29 /** 30 * <p> 31 * TODO comment 32 * </p> 33 * 34 * @author Alexander Deicke 35 */ 15 36 public class DummyUsabilityRuleset implements UsabilityRuleset { 16 37 17 38 private enum DummyUsabilityRule implements UsabilityRule { 18 39 19 40 DUMMY_RULE_WITH_RECOMMENDATION { 20 41 21 42 @Override 22 43 public Optional<UsabilityDefect> evaluate(ITaskTree taskTree) { 23 return Optional.of(new UsabilityDefectFactory(new DummyUsabilityGuidlineDescriptionResolver()). 24 createUsabilityGuidlineRecommendation(UsabilityDefectSeverityLevel.INFO, this, Collections.<String, String> emptyMap())); 44 return Optional 45 .of(new UsabilityDefectFactory(new DummyUsabilityGuidlineDescriptionResolver()) 46 .createUsabilityGuidlineRecommendation(UsabilityDefectSeverityLevel.INFO, 47 this, Collections 48 .<String, String> emptyMap())); 25 49 } 26 50 … … 28 52 return this.name(); 29 53 } 30 54 31 55 }, 32 56 33 57 DUMMY_RULE_WITHOUT_RECOMMENDATION { 34 58 35 59 @Override 36 60 public Optional<UsabilityDefect> evaluate(ITaskTree taskTree) { … … 46 70 47 71 } 48 49 private final EnumSet<DummyUsabilityRule> DUMMY_USABILITY_RULESET = 50 EnumSet.allOf(DummyUsabilityRule.class);72 73 private final EnumSet<DummyUsabilityRule> DUMMY_USABILITY_RULESET = EnumSet 74 .allOf(DummyUsabilityRule.class); 51 75 52 76 public EnumSet<? extends UsabilityRule> evaluationRules() {
Note: See TracChangeset
for help on using the changeset viewer.