source: trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/UsabilityMetricsRuleset.java @ 1217

Last change on this file since 1217 was 1217, checked in by adeicke, 11 years ago
  • Added proper formating and JavaDoc?.
  • Several renaming refactorings.
  • Property svn:mime-type set to text/plain
File size: 2.0 KB
Line 
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
15package de.ugoe.cs.autoquest.usability.rules;
16
17import java.util.List;
18
19import com.google.common.collect.Lists;
20
21import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel;
22import de.ugoe.cs.autoquest.usability.rules.metrics.NoLetterOrDigitRatioMetric;
23import de.ugoe.cs.autoquest.usability.rules.metrics.TextInputEntryRepetitionsMetric;
24import de.ugoe.cs.autoquest.usability.rules.metrics.TextInputRatioMetric;
25
26/**
27 * <p>
28 * A ruleset containing usability metrics, which might be indicators for potential usability
29 * problems.
30 * </p>
31 *
32 * @author Alexander Deicke
33 */
34public class UsabilityMetricsRuleset implements UsabilityRuleset {
35
36    private List<UsabilityRule> metrics;
37
38    /**
39     * <p>
40     * Constructor. Creates new {@code UsabilityMetricsRuleset} for a given task model.
41     * </p>
42     *
43     */
44    private UsabilityMetricsRuleset(ITaskModel taskModel) {
45        this.metrics = Lists.newArrayList();
46        metrics.add(new NoLetterOrDigitRatioMetric(taskModel));
47        metrics.add(new TextInputEntryRepetitionsMetric(taskModel));
48        metrics.add(new TextInputRatioMetric(taskModel));
49    }
50
51    /*
52     * (non-Javadoc)
53     *
54     * @see de.ugoe.cs.autoquest.usability.UsabilityRuleset#evaluationRules()
55     */
56    @Override
57    public List<UsabilityRule> evaluationRules() {
58        return this.metrics;
59    }
60
61}
Note: See TracBrowser for help on using the repository browser.