hudson.plugins.ccm.model
Class CCMReport

java.lang.Object
  extended by hudson.plugins.ccm.model.CCMReport
All Implemented Interfaces:
java.io.Serializable

public class CCMReport
extends java.lang.Object
implements java.io.Serializable

Report of the cyclomatic complexity from the project.

Since:
16/08/2010
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
See Also:
Serialized Form

Constructor Summary
CCMReport()
           
 
Method Summary
 float getAverageComplexityPerMethod()
           
 java.util.List<Metric> getMetrics()
           
 int getNumberOfMethods()
           
 int getTotalComplexity()
           
 void setMetrics(java.util.List<Metric> metrics)
           
 java.lang.String toString()
           
 void updateNumbers()
          Updates report numbers such as number of methods, total complexity and average complexity per method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCMReport

public CCMReport()
Method Detail

setMetrics

public void setMetrics(java.util.List<Metric> metrics)

getMetrics

public java.util.List<Metric> getMetrics()

updateNumbers

public void updateNumbers()
Updates report numbers such as number of methods, total complexity and average complexity per method. These numbers are updated based on the values parsed from ccm xml result file.


getNumberOfMethods

public int getNumberOfMethods()
Returns:
Total of methods.

getAverageComplexityPerMethod

public float getAverageComplexityPerMethod()
Returns:
A simple average of the total CC per methods.

getTotalComplexity

public int getTotalComplexity()
Returns:
Total CC of the project. It is the sum of all CC of all methods.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.