[927] | 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 | |
---|
[922] | 15 | package de.ugoe.cs.autoquest.usability; |
---|
[442] | 16 | |
---|
| 17 | import java.util.ArrayList; |
---|
| 18 | import 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 | */ |
---|
[561] | 26 | public class UsabilityEvaluationResult { |
---|
| 27 | |
---|
| 28 | /** */ |
---|
| 29 | private List<UsabilityDefect> defects = new ArrayList<UsabilityDefect>(); |
---|
[442] | 30 | |
---|
[561] | 31 | /** |
---|
| 32 | * TODO: comment |
---|
| 33 | * |
---|
| 34 | * @param defect |
---|
| 35 | */ |
---|
| 36 | public void addDefect(UsabilityDefect defect) { |
---|
| 37 | defects.add(defect); |
---|
| 38 | } |
---|
[442] | 39 | |
---|
[561] | 40 | /** |
---|
| 41 | * TODO: comment |
---|
| 42 | * |
---|
| 43 | * @return |
---|
| 44 | */ |
---|
| 45 | public List<UsabilityDefect> getAllDefects() { |
---|
| 46 | return defects; |
---|
| 47 | } |
---|
[442] | 48 | |
---|
[561] | 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; |
---|
[442] | 64 | } |
---|
| 65 | |
---|
| 66 | } |
---|