jade.core.sam
Class AverageMeasureProviderImpl

java.lang.Object
  extended by jade.core.sam.AverageMeasureProviderImpl
All Implemented Interfaces:
AverageMeasureProvider

public class AverageMeasureProviderImpl
extends java.lang.Object
implements AverageMeasureProvider

A default ready-made implementation of the AverageMeasureProvider interface that offers methods to add measure samples and automatically computes an AverageMeasure when the getValue() method is called.


Constructor Summary
AverageMeasureProviderImpl()
           
 
Method Summary
 void addSample(double value)
           
 void addSample(float value)
           
 void addSample(int value)
           
 void addSample(long value)
           
 void addSample(java.lang.Number value)
           
 AverageMeasure getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageMeasureProviderImpl

public AverageMeasureProviderImpl()
Method Detail

addSample

public void addSample(java.lang.Number value)

addSample

public void addSample(int value)

addSample

public void addSample(long value)

addSample

public void addSample(float value)

addSample

public void addSample(double value)

getValue

public AverageMeasure getValue()
Specified by:
getValue in interface AverageMeasureProvider
Returns:
the value of the measure in the form of an AverageMeasure instance


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions