Changeset 1040 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set
- Timestamp:
- 01/16/13 17:51:51 (11 years ago)
- Location:
- trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/EmptyUsabilityRuleset.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.evaluation.rule.set; 2 16 … … 10 24 import de.ugoe.cs.autoquest.usability.evaluation.result.UsabilityDefect; 11 25 26 /** 27 * <p> 28 * TODO comment 29 * </p> 30 * 31 * @author Alexander Deicke 32 */ 12 33 public class EmptyUsabilityRuleset implements UsabilityRuleset { 13 34 14 35 private enum EmptyUsabilityRule implements UsabilityRule { 15 36 ; 16 37 17 38 @Override … … 26 47 27 48 } 28 29 private final EnumSet<EmptyUsabilityRule> EMPTY_USABILITY_RULESET = 30 EnumSet.noneOf(EmptyUsabilityRule.class);49 50 private final EnumSet<EmptyUsabilityRule> EMPTY_USABILITY_RULESET = EnumSet 51 .noneOf(EmptyUsabilityRule.class); 31 52 32 53 @Override 33 54 public EnumSet<? extends UsabilityRule> evaluationRules() { 34 55 return EMPTY_USABILITY_RULESET; 35 56 } 36 57 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/MouseInteractionUsabilityRuleset.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.evaluation.rule.set; 2 16 … … 8 22 import de.ugoe.cs.autoquest.usability.evaluation.result.UsabilityDefect; 9 23 24 /** 25 * <p> 26 * TODO comment 27 * </p> 28 * 29 * @author Alexander Deicke 30 */ 10 31 public class MouseInteractionUsabilityRuleset implements UsabilityRuleset { 11 32 12 33 private enum MouseInteractionUsabilityRule implements UsabilityRule { 13 34 14 35 MOUSE_INTERACTION { 15 36 … … 25 46 return this.name(); 26 47 } 27 48 28 49 }; 29 50 30 51 public abstract Optional<UsabilityDefect> evaluate(ITaskTree taskTree); 31 52 } 32 33 private final EnumSet<MouseInteractionUsabilityRule> MOUSE_INTERACTION_USABILITY_RULESET = EnumSet34 35 53 54 private final EnumSet<MouseInteractionUsabilityRule> MOUSE_INTERACTION_USABILITY_RULESET = 55 EnumSet.allOf(MouseInteractionUsabilityRule.class); 56 36 57 @Override 37 58 public EnumSet<? extends UsabilityRule> evaluationRules() { -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/RulesetFactory.java
r1030 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.evaluation.rule.set; 2 16 3 import lombok.AccessLevel; 4 import lombok.NoArgsConstructor; 17 /** 18 * <p> 19 * TODO comment 20 * </p> 21 * 22 * @author Alexander Deicke 23 */ 24 public class RulesetFactory { 5 25 6 @NoArgsConstructor(access = AccessLevel.PRIVATE) 7 public class RulesetFactory { 8 26 private RulesetFactory() { 27 // no instantiation allowed 28 } 29 9 30 public static EmptyUsabilityRuleset emptyUsabilityRuleset() { 10 31 return new EmptyUsabilityRuleset(); 11 32 } 12 33 13 34 public static TextInputUsabiliyRuleset textInputUsabiliyRuleset() { 14 35 return new TextInputUsabiliyRuleset(); 15 36 } 16 37 17 38 public static MouseInteractionUsabilityRuleset mouseInteractionUsabiliyRuleset() { 18 39 return new MouseInteractionUsabilityRuleset(); -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/TextInputUsabiliyRuleset.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. 1 14 2 15 package de.ugoe.cs.autoquest.usability.evaluation.rule.set; … … 12 25 import de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator.TextInputRatioEvaluator; 13 26 27 /** 28 * <p> 29 * TODO comment 30 * </p> 31 * 32 * @author Alexander Deicke 33 */ 14 34 public class TextInputUsabiliyRuleset implements UsabilityRuleset { 15 35 … … 17 37 18 38 TEXT_FIELD_INPUT_RATIO { 19 39 20 40 @Override 21 41 public Optional<UsabilityDefect> evaluate(ITaskTree taskTree) { … … 56 76 } 57 77 78 }; 58 79 59 };60 61 80 public abstract Optional<UsabilityDefect> evaluate(ITaskTree taskTree); 62 81 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/UsabilityRule.java
r1030 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.evaluation.rule.set; 2 16 … … 6 20 import de.ugoe.cs.autoquest.usability.evaluation.result.UsabilityDefect; 7 21 22 /** 23 * <p> 24 * TODO comment 25 * </p> 26 * 27 * @author Alexander Deicke 28 */ 8 29 public interface UsabilityRule { 9 30 10 31 public String ruleIdentifier(); 11 32 12 33 public Optional<UsabilityDefect> evaluate(ITaskTree taskTree); 13 34 -
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/set/UsabilityRuleset.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.evaluation.rule.set; 2 16 3 17 import java.util.EnumSet; 4 18 5 19 /** 20 * <p> 21 * TODO comment 22 * </p> 23 * 24 * @author Alexander Deicke 25 */ 6 26 public interface UsabilityRuleset { 7 27 8 28 public EnumSet<? extends UsabilityRule> evaluationRules(); 9 29 10 30 }
Note: See TracChangeset
for help on using the changeset viewer.