hudson.plugins.ccm.model
Class CCMReport
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CCMReport
public CCMReport()
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.