com.continuent.tungsten.common.utils
Class DoubleStatistic

java.lang.Object
  extended by com.continuent.tungsten.common.utils.DoubleStatistic
All Implemented Interfaces:
Statistic<java.lang.Double>

public class DoubleStatistic
extends java.lang.Object
implements Statistic<java.lang.Double>

This class defines a DoubleStatistic

Version:
1.0
Author:
Edward Archibald

Constructor Summary
DoubleStatistic(java.lang.String label)
           
 
Method Summary
 java.lang.Double add(java.lang.Number value)
           
 void clear()
           
 java.lang.Double decrement()
           
 java.lang.Double getAverage()
           
 java.lang.String getLabel()
           
 java.lang.Double getValue()
           
 java.lang.Double increment()
           
 void setValue(java.lang.Number value)
           
 java.lang.Double subtract(java.lang.Number value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleStatistic

public DoubleStatistic(java.lang.String label)
Method Detail

decrement

public java.lang.Double decrement()
Specified by:
decrement in interface Statistic<java.lang.Double>

getAverage

public java.lang.Double getAverage()
Specified by:
getAverage in interface Statistic<java.lang.Double>

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Statistic<java.lang.Double>

getValue

public java.lang.Double getValue()
Specified by:
getValue in interface Statistic<java.lang.Double>

increment

public java.lang.Double increment()
Specified by:
increment in interface Statistic<java.lang.Double>

setValue

public void setValue(java.lang.Number value)
Specified by:
setValue in interface Statistic<java.lang.Double>

add

public java.lang.Double add(java.lang.Number value)
Specified by:
add in interface Statistic<java.lang.Double>

subtract

public java.lang.Double subtract(java.lang.Number value)
Specified by:
subtract in interface Statistic<java.lang.Double>

toString

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

clear

public void clear()
Specified by:
clear in interface Statistic<java.lang.Double>