hudson.plugins.testabilityexplorer.report.costs
Class MethodCost

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

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

Encapsulates the testability of a single method.

Author:
reik.schatz
See Also:
Serialized Form

Constructor Summary
MethodCost(java.lang.String name, int cyclomatic, int global, int line, int lod, int overall, java.lang.String reason)
           
 
Method Summary
 void addToCostStack(MethodCost methodTestability)
           
 java.util.Collection<MethodCost> getCostStack()
           
 int getCyclomatic()
           
 java.lang.String getDisplayName()
          This will return a shorter version of getName().
 int getGlobal()
           
 int getLine()
           
 int getLod()
           
 java.lang.String getName()
           
 int getOverall()
           
 java.lang.String getReason()
           
 int getSubCostSize()
           
 void sort()
          Sorts the all costs contained in this MethodCost highest first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCost

public MethodCost(java.lang.String name,
                  int cyclomatic,
                  int global,
                  int line,
                  int lod,
                  int overall,
                  java.lang.String reason)
Method Detail

addToCostStack

public void addToCostStack(MethodCost methodTestability)

getSubCostSize

public int getSubCostSize()

getName

public java.lang.String getName()

getDisplayName

public java.lang.String getDisplayName()
This will return a shorter version of getName(). The fully qualified class names of return values and parameters will be shortened to be just the class name without package.

Returns:
String

getCyclomatic

public int getCyclomatic()

getGlobal

public int getGlobal()

getLine

public int getLine()

getLod

public int getLod()

getOverall

public int getOverall()

getReason

public java.lang.String getReason()

getCostStack

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

sort

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



Copyright © 2009. All Rights Reserved.