Changeset 1217 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/UsabilityRule.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/UsabilityRule.java
r1152 r1217 19 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 20 20 import de.ugoe.cs.autoquest.usability.EvaluationMethodCaller; 21 import de.ugoe.cs.autoquest.usability.result.Usability Defect;21 import de.ugoe.cs.autoquest.usability.result.UsabilityProblemDescription; 22 22 23 23 /** 24 24 * <p> 25 * TODO comment 25 * A {@code UsabilityRule} is a abstract class, representing a usability guideline, metric 26 * interaction pattern etc., which should be checked during a automatic usability evaluation. 26 27 * </p> 27 28 * … … 29 30 */ 30 31 public abstract class UsabilityRule { 31 32 protected final ITaskModel taskModel; 33 34 protected String name; 35 36 protected UsabilityDefect defect; 37 32 38 33 /** 39 34 * <p> 40 * TODO: comment35 * {@link ITaskModel}, which is evaluated 41 36 * </p> 42 * 37 */ 38 protected final ITaskModel taskModel; 39 40 /** 41 * <p> 42 * Name of the usability rule 43 * </p> 44 */ 45 protected String name; 46 47 /** 48 * <p> 49 * Corresponding defect description. 50 * </p> 51 */ 52 protected UsabilityProblemDescription defect; 53 54 /** 55 * <p> 56 * Constructor. Creates a new {@code UsabilityRule} for a given task model 57 * </p> 58 * 43 59 */ 44 60 public UsabilityRule(ITaskModel taskModel) { 45 61 this.taskModel = taskModel; 46 62 } 47 48 public abstract Optional<UsabilityDefect> callEvaluationMethod(EvaluationMethodCaller evaluationMethodCaller); 63 64 /** 65 * 66 * <p> 67 * Calls the evaluation method of this {@code UsabilityRule}. 68 * </p> 69 * 70 * @param evaluationMethodCaller 71 * helper class, which calls the evaluation method based on the type of the 72 * {@code UsabilityRule} 73 * @return {@link UsabilityProblemDescription}, iff violation against usability rule was detected 74 */ 75 public abstract Optional<UsabilityProblemDescription> callEvaluationMethod(EvaluationMethodCaller evaluationMethodCaller); 49 76 50 77 }
Note: See TracChangeset
for help on using the changeset viewer.