1 | //------------------------------------------------------------------------------------------------- |
---|
2 | // Module : $RCSfile: UsabilityEvaluationResult.java,v $ |
---|
3 | // Version : $Revision: 0.0 $ $Author: pharms $ $Date: 16.07.2012 $ |
---|
4 | // Project : UsabilityEvaluationManager |
---|
5 | // Creation : 2012 by pharms |
---|
6 | // Copyright : Patrick Harms, 2012 |
---|
7 | //------------------------------------------------------------------------------------------------- |
---|
8 | package de.ugoe.cs.quest.usability; |
---|
9 | |
---|
10 | import java.util.ArrayList; |
---|
11 | import java.util.List; |
---|
12 | |
---|
13 | //------------------------------------------------------------------------------------------------- |
---|
14 | /** |
---|
15 | * TODO comment |
---|
16 | * |
---|
17 | * @version $Revision: $ $Date: 16.07.2012$ |
---|
18 | * @author 2012, last modified by $Author: pharms$ |
---|
19 | */ |
---|
20 | //------------------------------------------------------------------------------------------------- |
---|
21 | public class UsabilityEvaluationResult |
---|
22 | { |
---|
23 | /** */ |
---|
24 | private List<UsabilityDefect> mDefects = new ArrayList<UsabilityDefect>(); |
---|
25 | |
---|
26 | //----------------------------------------------------------------------------------------------- |
---|
27 | /** |
---|
28 | * TODO: comment |
---|
29 | * |
---|
30 | * @param defect |
---|
31 | */ |
---|
32 | //----------------------------------------------------------------------------------------------- |
---|
33 | public void addDefect(UsabilityDefect defect) |
---|
34 | { |
---|
35 | mDefects.add(defect); |
---|
36 | } |
---|
37 | |
---|
38 | //----------------------------------------------------------------------------------------------- |
---|
39 | /** |
---|
40 | * TODO: comment |
---|
41 | * |
---|
42 | * @return |
---|
43 | */ |
---|
44 | //----------------------------------------------------------------------------------------------- |
---|
45 | public List<UsabilityDefect> getAllDefects() |
---|
46 | { |
---|
47 | return mDefects; |
---|
48 | } |
---|
49 | |
---|
50 | //----------------------------------------------------------------------------------------------- |
---|
51 | /** |
---|
52 | * TODO: comment |
---|
53 | * |
---|
54 | * @return |
---|
55 | */ |
---|
56 | //----------------------------------------------------------------------------------------------- |
---|
57 | public List<UsabilityDefect> getSevereDefects() |
---|
58 | { |
---|
59 | List<UsabilityDefect> severeDefects = new ArrayList<UsabilityDefect>(); |
---|
60 | |
---|
61 | for (UsabilityDefect defect : mDefects) |
---|
62 | { |
---|
63 | if (defect.getSeverity() == UsabilityDefectSeverity.HIGH) |
---|
64 | { |
---|
65 | severeDefects.add(defect); |
---|
66 | } |
---|
67 | } |
---|
68 | |
---|
69 | return severeDefects; |
---|
70 | } |
---|
71 | |
---|
72 | } |
---|