Changeset 1217 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/UsabilityResult.java
- Timestamp:
- 06/06/13 17:08:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/UsabilityResult.java
r1138 r1217 18 18 import com.google.common.collect.Multimap; 19 19 20 import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 21 import de.ugoe.cs.autoquest.usability.result.UsabilityDefectSeverityLevel; 22 20 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription; 21 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemSeverityLevel; 23 22 24 23 /** 25 24 * <p> 26 * T ODO comment25 * The result of the usability evaluation, which contains all detected problems. 27 26 * </p> 28 27 * … … 30 29 */ 31 30 public class UsabilityResult { 32 33 private Multimap<UsabilityDefectSeverityLevel, UsabilityDefect> detectedDefects; 34 31 32 /** 33 * <p> 34 * All detected problems and their appropriate severity level. 35 * </p> 36 */ 37 private Multimap<UsabilityProblemSeverityLevel, UsabilityProblemDescription> detectedProblems; 38 39 /** 40 * 41 * <p> 42 * Constructor. Creates a new result. 43 * </p> 44 * 45 */ 35 46 public UsabilityResult() { 36 this.detected Defects = ArrayListMultimap.create();47 this.detectedProblems = ArrayListMultimap.create(); 37 48 } 38 49 39 50 /** 40 51 * <p> 41 * TODO: comment52 * Adds a usability problem to the result. 42 53 * </p> 43 * 44 * @param usabilityDefect 54 * 55 * @param usabilityProblem 56 * the problem, which should be added. 45 57 */ 46 public void add Defect(UsabilityDefect usabilityDefect) {47 this.detected Defects.put(usabilityDefect.getSeverityLevel(), usabilityDefect);58 public void addProblem(UsabilityProblemDescription usabilityProblem) { 59 this.detectedProblems.put(usabilityProblem.getSeverityLevel(), usabilityProblem); 48 60 } 49 50 public boolean hasDefects() { 51 return !this.detectedDefects.isEmpty(); 61 62 /** 63 * 64 * <p> 65 * Checks, if problems were found during the usability evaluation. 66 * </p> 67 * 68 * @return true, iff problems were found 69 */ 70 public boolean hasDetectedProblems() { 71 return !this.detectedProblems.isEmpty(); 52 72 } 53 73
Note: See TracChangeset
for help on using the changeset viewer.