jade.core.sam
Class AverageMeasureProviderImpl
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AverageMeasureProviderImpl
public AverageMeasureProviderImpl()
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