Groovy Documentation

org.gmetrics.metric.abc.result
Class AggregateAbcMetricResult

java.lang.Object
  org.gmetrics.metric.abc.result.AggregateAbcMetricResult

class AggregateAbcMetricResult

An aggregate MetricResult implementation specifically for the ABC Metric.

author:
Chris Mair
version:
$Revision: 130 $ - $Date: 2010-07-21 22:46:24 -0400 (Wed, 21 Jul 2010) $


Property Summary
Integer lineNumber

Metric metric

Object value

 
Constructor Summary
AggregateAbcMetricResult(Metric metric, Collection children, Integer lineNumber = null)

 
Method Summary
protected void calculateFunctions(Collection children)

Object getAbcVector()

Object getAt(String name)

Object getAverageAbcVector()

Return the average of this set of ABC vectors.

int getCount()

Object getTotalAbcVector()

Return the sum of this set of ABC vectors.

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

lineNumber

final Integer lineNumber


metric

final Metric metric


value

final Object value


 
Constructor Detail

AggregateAbcMetricResult

public AggregateAbcMetricResult(Metric metric, Collection children, Integer lineNumber = null)


 
Method Detail

calculateFunctions

protected void calculateFunctions(Collection children)


getAbcVector

Object getAbcVector()


getAt

Object getAt(String name)


getAverageAbcVector

Object getAverageAbcVector()
Return the average of this set of ABC vectors. Each component (A,B,C) of the result is calculated and averaged separately. The formula for each component is: (A1 + A2 + .. AN) / N and likewise for B and C values. Each component of the result vector is rounded down to an integer.


getCount

int getCount()


getTotalAbcVector

Object getTotalAbcVector()
Return the sum of this set of ABC vectors. Each component (A,B,C) of the result is summed separately. The formula for each component is: A1 + A2 + .. AN and likewise for B and C values.


toString

String toString()


 

Groovy Documentation