be.lassi.kernel
Class KernelFigure
java.lang.Object
be.lassi.kernel.KernelFigure
public class KernelFigure
- extends java.lang.Object
Instances of this class hold a value for one of the kernel
statistics (dongle counters and kernel counters). In additon
an 'average per second' value is calculated and kept available
for listeners.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KernelFigure
public KernelFigure()
getAverage
public long getAverage()
- Return the average.
- Returns:
- long
getAverageHolder
public LongHolder getAverageHolder()
- Return the 'average' holder.
- Returns:
- LongHolder
getValue
public long getValue()
- Return the value.
- Returns:
- long
getValueHolder
public LongHolder getValueHolder()
- Return the 'value' holder.
- Returns:
- LongHolder
setValue
public void setValue(long newValue,
int timeSinceLastRead)
- Set a new value and calculate the average change in value
per second.
- Parameters:
newValue
- timeSinceLastRead
-