Changeset 561 for trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/UsabilityEvaluationResult.java
- Timestamp:
- 08/17/12 09:26:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/UsabilityEvaluationResult.java
r442 r561 1 //-------------------------------------------------------------------------------------------------2 1 // Module : $RCSfile: UsabilityEvaluationResult.java,v $ 3 2 // Version : $Revision: 0.0 $ $Author: pharms $ $Date: 16.07.2012 $ … … 5 4 // Creation : 2012 by pharms 6 5 // Copyright : Patrick Harms, 2012 7 //------------------------------------------------------------------------------------------------- 6 7 8 8 package de.ugoe.cs.quest.usability; 9 9 … … 11 11 import java.util.List; 12 12 13 //-------------------------------------------------------------------------------------------------14 13 /** 15 14 * TODO comment … … 18 17 * @author 2012, last modified by $Author: pharms$ 19 18 */ 20 //------------------------------------------------------------------------------------------------- 21 public class UsabilityEvaluationResult 22 { 23 /** */ 24 private List<UsabilityDefect> mDefects = new ArrayList<UsabilityDefect>(); 19 public class UsabilityEvaluationResult { 20 21 /** */ 22 private List<UsabilityDefect> defects = new ArrayList<UsabilityDefect>(); 25 23 26 //----------------------------------------------------------------------------------------------- 27 /** 28 * TODO: comment 29 * 30 * @param defect 31 */ 32 //----------------------------------------------------------------------------------------------- 33 public void addDefect(UsabilityDefect defect) 34 { 35 mDefects.add(defect); 36 } 24 /** 25 * TODO: comment 26 * 27 * @param defect 28 */ 29 public void addDefect(UsabilityDefect defect) { 30 defects.add(defect); 31 } 37 32 38 //----------------------------------------------------------------------------------------------- 39 /** 40 * TODO: comment 41 * 42 * @return 43 */ 44 //----------------------------------------------------------------------------------------------- 45 public List<UsabilityDefect> getAllDefects() 46 { 47 return mDefects; 48 } 33 /** 34 * TODO: comment 35 * 36 * @return 37 */ 38 public List<UsabilityDefect> getAllDefects() { 39 return defects; 40 } 49 41 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 } 42 /** 43 * TODO: comment 44 * 45 * @return 46 */ 47 public List<UsabilityDefect> getSevereDefects() { 48 List<UsabilityDefect> severeDefects = new ArrayList<UsabilityDefect>(); 49 50 for (UsabilityDefect defect : defects) { 51 if (defect.getSeverity() == UsabilityDefectSeverity.HIGH) { 52 severeDefects.add(defect); 53 } 54 } 55 56 return severeDefects; 67 57 } 68 69 return severeDefects;70 }71 58 72 59 }
Note: See TracChangeset
for help on using the changeset viewer.