source: trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluationResult.java @ 927

Last change on this file since 927 was 927, checked in by sherbold, 12 years ago
  • added copyright under the Apache License, Version 2.0
File size: 1.7 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;
16
17import java.util.ArrayList;
18import java.util.List;
19
20/**
21 * TODO comment
22 *
23 * @version $Revision: $ $Date: 16.07.2012$
24 * @author 2012, last modified by $Author: pharms$
25 */
26public class UsabilityEvaluationResult {
27   
28    /** */
29    private List<UsabilityDefect> defects = new ArrayList<UsabilityDefect>();
30
31    /**
32     * TODO: comment
33     *
34     * @param defect
35     */
36    public void addDefect(UsabilityDefect defect) {
37        defects.add(defect);
38    }
39
40    /**
41     * TODO: comment
42     *
43     * @return
44     */
45    public List<UsabilityDefect> getAllDefects() {
46        return defects;
47    }
48
49    /**
50     * TODO: comment
51     *
52     * @return
53     */
54    public List<UsabilityDefect> getSevereDefects() {
55        List<UsabilityDefect> severeDefects = new ArrayList<UsabilityDefect>();
56
57        for (UsabilityDefect defect : defects) {
58            if (defect.getSeverity() == UsabilityDefectSeverity.HIGH) {
59                severeDefects.add(defect);
60            }
61        }
62
63        return severeDefects;
64    }
65
66}
Note: See TracBrowser for help on using the repository browser.