Changeset 725 for trunk/quest-core-usability/src/main/java/de
- Timestamp:
- 08/31/12 10:27:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/UsabilityEvaluationManager.java
r655 r725 3 3 import java.util.ArrayList; 4 4 import java.util.List; 5 import java.util.logging.L ogger;5 import java.util.logging.Level; 6 6 7 7 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTree; 8 import de.ugoe.cs.util.console.Console; 8 9 9 10 /** … … 15 16 public class UsabilityEvaluationManager { 16 17 17 /** */18 private static Logger LOG = Logger.getLogger(UsabilityEvaluationManager.class.getName());19 20 18 /** */ 21 19 private List<UsabilityEvaluationRule> rules = new ArrayList<UsabilityEvaluationRule>(); … … 44 42 */ 45 43 public UsabilityEvaluationResult evaluateUsability(ITaskTree taskTree) { 46 LOG.info("evaluating usability of task tree " + taskTree);44 Console.traceln(Level.INFO, "evaluating usability of task tree " + taskTree); 47 45 48 46 List<UsabilityEvaluationResult> results = new ArrayList<UsabilityEvaluationResult>(); 49 47 50 48 for (UsabilityEvaluationRule rule : rules) { 51 LOG.info("applying rule " + rule.getClass().getSimpleName());49 Console.traceln(Level.INFO, "applying rule " + rule.getClass().getSimpleName()); 52 50 UsabilityEvaluationResult result = rule.evaluate(taskTree); 53 51 results.add(result); 54 LOG.info("the rule found " + result.getAllDefects().size() + " usability defects, of " + 55 "which " + result.getSevereDefects().size() + " are severe."); 52 Console.traceln(Level.INFO, "the rule found " + result.getAllDefects().size() + 53 " usability defects, of which " + result.getSevereDefects().size() + 54 " are severe."); 56 55 } 57 56 58 57 UsabilityEvaluationResult result = mergeResults(results); 59 LOG.info("the evaluation result contains " + result.getAllDefects().size() +60 " defects, of which " + result.getSevereDefects().size() + " are severe.");58 Console.println("the evaluation result contains " + result.getAllDefects().size() + 59 " defects, of which " + result.getSevereDefects().size() + " are severe."); 61 60 return result; 62 61 }
Note: See TracChangeset
for help on using the changeset viewer.