|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sensor.meter.MeterStatistics
Constructor Summary | |
MeterStatistics(net.sf.sensor.meter.MeterData meterData)
|
Method Summary | |
long |
getAverageValue()
Returns the averageValue. |
long |
getCurrentValue()
Returns the currentValue. |
String |
getLabel()
Returns the String label that uniquely identifies this instance. |
long |
getMaximumValue()
Returns the maximumValue. |
long |
getMinimumValue()
Returns the minimumValue. |
long |
getNumberOfValueChanges()
Returns the numberOfValueChanges. |
long |
getStandardDeviation()
Returns the standardDeviation. |
long |
getSumOfSquaresOfValues()
Returns the sumOfSquaresOfValues. |
long |
getSumOfValues()
Returns the sumOfValues. |
long |
getTimeOfFirstUpdate()
Returns the timeOfFirstUpdate in millseconds since the usual 01-01-1970 00:00 UTC. |
long |
getTimeOfLastUpdate()
Returns the timeOfLastUpdate in millseconds since the usual 01-01-1970 00:00 UTC. |
void |
refresh()
Refreshes this instances and all its children. |
void |
refreshFromData(long currentValue,
long numberOfValueChanges,
long sumOfValues,
long averageValue,
long standardDeviation,
long minimumValue,
long maximumValue,
long timeOfFirstUpdate,
long timeOfLastUpdate,
long sumOfSquaresOfValues)
Callback method called from MeterData#refreshStatistics(MeterStatistics)
to update all statistics. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MeterStatistics(net.sf.sensor.meter.MeterData meterData)
meterData
- Method Detail |
public String getLabel()
public void refresh()
public void refreshFromData(long currentValue, long numberOfValueChanges, long sumOfValues, long averageValue, long standardDeviation, long minimumValue, long maximumValue, long timeOfFirstUpdate, long timeOfLastUpdate, long sumOfSquaresOfValues)
MeterData#refreshStatistics(MeterStatistics)
to update all statistics. Package private because it should only be called from
the associated MeterData
.
currentValue
- the new value of currentValue.numberOfValueChanges
- the new value of numberOfValueChanges.sumOfValues
- the new value of sumOfValues.averageValue
- the new value of averageValue.standardDeviation
- the new value of standardDeviation.minimumValue
- the new value of minimumValue.maximumValue
- the new value of maximumValue.timeOfFirstUpdate
- the new value of timeOfFirstUpdate.timeOfLastUpdate
- the new value of timeOfLastUpdate.sumOfSquaresOfValues
- the new value of sumOfSquaresOfValues.public long getCurrentValue()
public long getNumberOfValueChanges()
public long getSumOfValues()
public long getAverageValue()
public long getStandardDeviation()
public long getSumOfSquaresOfValues()
public long getMinimumValue()
public long getMaximumValue()
public long getTimeOfFirstUpdate()
public long getTimeOfLastUpdate()
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |