Groovy Documentation

org.gmetrics.metric.abc.result
[Groovy] Class AggregateAbcMetricResult

java.lang.Object
  org.gmetrics.metric.abc.result.AggregateAbcMetricResult
All Implemented Interfaces:
MetricResult

class AggregateAbcMetricResult

An aggregate MetricResult implementation specifically for the ABC Metric.

Authors:
Chris Mair
Version:
\$Revision: 163 \$ - \$Date: 2011-10-02 21:55:46 -0400 (Sun, 02 Oct 2011) \$


Property Summary
Integer lineNumber

Metric metric

MetricLevel metricLevel

Object value

 
Constructor Summary
AggregateAbcMetricResult(Metric metric, MetricLevel metricLevel, 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


metricLevel

final MetricLevel metricLevel


value

final Object value


 
Constructor Detail

AggregateAbcMetricResult

AggregateAbcMetricResult(Metric metric, MetricLevel metricLevel, 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