hudson.plugins.testabilityexplorer.report.costs
Class CostSummary

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.report.costs.CostSummary
All Implemented Interfaces:
TestabilityCost, java.io.Serializable

public class CostSummary
extends java.lang.Object
implements java.io.Serializable, TestabilityCost

Encapsulates the overall cost for a single testability run.

Author:
reik.schatz
See Also:
Serialized Form

Constructor Summary
CostSummary(int excellent, int good, int needsWork, int total)
           
 
Method Summary
 void addToCostStack(ClassCost classTestability)
           
 java.util.Collection<ClassCost> getCostStack()
           
 int getExcellent()
           
 int getGood()
           
 int getNeedsWork()
           
 int getNumberOfClasses()
           
 int getTotal()
           
 void sort()
          Sorts the all costs contained in this summary highest first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CostSummary

public CostSummary(int excellent,
                   int good,
                   int needsWork,
                   int total)
Method Detail

getExcellent

public int getExcellent()

getGood

public int getGood()

getNeedsWork

public int getNeedsWork()

getTotal

public int getTotal()

addToCostStack

public void addToCostStack(ClassCost classTestability)

getCostStack

public java.util.Collection<ClassCost> getCostStack()

getNumberOfClasses

public int getNumberOfClasses()

sort

public void sort()
Sorts the all costs contained in this summary highest first.



Copyright © 2009. All Rights Reserved.