public final class SampleCountMeter extends AbstractMeter
Constructor and Description |
---|
SampleCountMeter(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addData() |
double |
calculate()
Calculate the current value based on the previous sample().
|
void |
sample()
Return the probe's next sample.
|
getName, peek, toString
public final void addData()
public final void sample()
sample
in interface Meter
sample
in class AbstractMeter
public final double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter