net.sourceforge.cobertura.reporting

Class ComplexityCalculator.Complexity

private static class ComplexityCalculator.Complexity extends Object

Represents complexity of source file, package or project. Stores the number of methods inside entity and accumlated complexity for these methods.
Field Summary
doubleaccumlatedCCN
intmethodsNum
Constructor Summary
Complexity(double accumlatedCCN, int methodsNum)
Complexity()
Method Summary
voidadd(ComplexityCalculator.Complexity second)
doubleaverageCCN()

Field Detail

accumlatedCCN

private double accumlatedCCN

methodsNum

private int methodsNum

Constructor Detail

Complexity

public Complexity(double accumlatedCCN, int methodsNum)

Complexity

public Complexity()

Method Detail

add

public void add(ComplexityCalculator.Complexity second)

averageCCN

public double averageCCN()