org.gmetrics.metric.abc.result
Class AbcMetricResult

java.lang.Object
  extended by org.gmetrics.metric.abc.result.AbcMetricResult
All Implemented Interfaces:
groovy.lang.GroovyObject, MetricResult

public class AbcMetricResult
extends java.lang.Object
implements groovy.lang.GroovyObject, MetricResult

A MetricResult specifically for the ABC metric

Version:
$Revision: 24 $ - $Date: 2009-12-10 21:17:05 -0500 (Thu, 10 Dec 2009) $
Author:
Chris Mair

Constructor Summary
AbcMetricResult(Metric metric, AbcVector abcVector)
           
 
Method Summary
 AbcVector getAbcVector()
           
 java.lang.Object getAverage()
           
 int getCount()
           
 groovy.lang.MetaClass getMetaClass()
           
 Metric getMetric()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.Object getTotal()
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbcMetricResult

public AbcMetricResult(Metric metric,
                       AbcVector abcVector)
Method Detail

getAbcVector

public final AbcVector getAbcVector()

getMetric

public final Metric getMetric()
Specified by:
getMetric in interface MetricResult

getTotal

public java.lang.Object getTotal()
Specified by:
getTotal in interface MetricResult
Returns:
the magnitude of the ABC vector as a BigDecimal with scale of 1
See Also:
AbcVector.getMagnitude()

getCount

public int getCount()
Specified by:
getCount in interface MetricResult

getAverage

public java.lang.Object getAverage()
Specified by:
getAverage in interface MetricResult

toString

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

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2010. All Rights Reserved.