Ignore:
Timestamp:
08/17/12 09:26:21 (12 years ago)
Author:
pharms
Message:
  • adapted to new coding style in quest
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/UsabilityEvaluationResult.java

    r442 r561  
    1 //------------------------------------------------------------------------------------------------- 
    21// Module    : $RCSfile: UsabilityEvaluationResult.java,v $ 
    32// Version   : $Revision: 0.0 $  $Author: pharms $  $Date: 16.07.2012 $ 
     
    54// Creation  : 2012 by pharms 
    65// Copyright : Patrick Harms, 2012 
    7 //------------------------------------------------------------------------------------------------- 
     6 
     7 
    88package de.ugoe.cs.quest.usability; 
    99 
     
    1111import java.util.List; 
    1212 
    13 //------------------------------------------------------------------------------------------------- 
    1413/** 
    1514 * TODO comment 
     
    1817 * @author 2012, last modified by $Author: pharms$ 
    1918 */ 
    20 //------------------------------------------------------------------------------------------------- 
    21 public class UsabilityEvaluationResult 
    22 { 
    23   /** */ 
    24   private List<UsabilityDefect> mDefects = new ArrayList<UsabilityDefect>(); 
     19public class UsabilityEvaluationResult { 
     20     
     21    /** */ 
     22    private List<UsabilityDefect> defects = new ArrayList<UsabilityDefect>(); 
    2523 
    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    } 
    3732 
    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    } 
    4941 
    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; 
    6757    } 
    68      
    69     return severeDefects; 
    70   } 
    7158 
    7259} 
Note: See TracChangeset for help on using the changeset viewer.