Ignore:
Timestamp:
11/08/13 22:34:21 (11 years ago)
Author:
khartmann
Message:
  • Reworked Filters to use the first instance of a task to provide type and target
  • Added a function to extract all tasks matching a given filter
  • Added simple console feedback for matched usability problems
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluator.java

    r1217 r1319  
    7777                rule.callEvaluationMethod(evaluationMethodCaller); 
    7878            if (defect.isPresent()) { 
    79                 result.addProblem(defect.get()); 
     79                UsabilityProblemDescription description = defect.get(); 
     80                logUsabilityProblem(description); 
     81                result.addProblem(description); 
    8082            } 
    8183        } 
     
    8385    } 
    8486 
     87    private void logUsabilityProblem(UsabilityProblemDescription description) { 
     88        Level level = null; 
     89        switch (description.getSeverityLevel()) { 
     90            case NONE: 
     91                break; 
     92            case INFO: 
     93            case LOW: 
     94                level = Level.INFO; 
     95                break; 
     96            case MEDIUM: 
     97            case HIGH: 
     98                level = Level.WARNING; 
     99        } 
     100        if (level != null) { 
     101            Console.print(description.getSeverityLevel().toString()); 
     102            Console.print(" : "); 
     103            Console.println(description.toString()); 
     104            //Console.traceln(level, description.toString()); 
     105        } 
     106    } 
     107 
    85108} 
Note: See TracChangeset for help on using the changeset viewer.