[1040] | 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 |
|
---|
[1030] | 15 | package de.ugoe.cs.autoquest.usability.evaluation.rule.set;
|
---|
| 16 |
|
---|
| 17 | import java.util.EnumSet;
|
---|
| 18 |
|
---|
| 19 | import com.google.common.base.Optional;
|
---|
| 20 |
|
---|
| 21 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree;
|
---|
| 22 | import de.ugoe.cs.autoquest.usability.evaluation.result.UsabilityDefect;
|
---|
| 23 |
|
---|
[1040] | 24 | /**
|
---|
| 25 | * <p>
|
---|
| 26 | * TODO comment
|
---|
| 27 | * </p>
|
---|
| 28 | *
|
---|
| 29 | * @author Alexander Deicke
|
---|
| 30 | */
|
---|
[1030] | 31 | public class MouseInteractionUsabilityRuleset implements UsabilityRuleset {
|
---|
| 32 |
|
---|
| 33 | private enum MouseInteractionUsabilityRule implements UsabilityRule {
|
---|
[1040] | 34 |
|
---|
[1030] | 35 | MOUSE_INTERACTION {
|
---|
| 36 |
|
---|
| 37 | @Override
|
---|
| 38 | public Optional<UsabilityDefect> evaluate(ITaskTree taskTree) {
|
---|
| 39 | // TODO Auto-generated method stub
|
---|
| 40 | System.out.println("TODO: implement MouseInteractionUsabilityRule.evaluate ");
|
---|
| 41 | return null;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | @Override
|
---|
| 45 | public String ruleIdentifier() {
|
---|
| 46 | return this.name();
|
---|
| 47 | }
|
---|
[1040] | 48 |
|
---|
[1030] | 49 | };
|
---|
| 50 |
|
---|
| 51 | public abstract Optional<UsabilityDefect> evaluate(ITaskTree taskTree);
|
---|
| 52 | }
|
---|
[1040] | 53 |
|
---|
| 54 | private final EnumSet<MouseInteractionUsabilityRule> MOUSE_INTERACTION_USABILITY_RULESET =
|
---|
| 55 | EnumSet.allOf(MouseInteractionUsabilityRule.class);
|
---|
| 56 |
|
---|
[1030] | 57 | @Override
|
---|
[1034] | 58 | public EnumSet<? extends UsabilityRule> evaluationRules() {
|
---|
[1030] | 59 | return MOUSE_INTERACTION_USABILITY_RULESET;
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | }
|
---|