Overview  Package   Class  Tree  Index 

be.lassi.kernel
Class KernelFigure

java.lang.Object
  extended by 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.


Constructor Summary
KernelFigure()
           
 
Method Summary
 long getAverage()
          Return the average.
 LongHolder getAverageHolder()
          Return the 'average' holder.
 long getValue()
          Return the value.
 LongHolder getValueHolder()
          Return the 'value' holder.
 void setValue(long newValue, int timeSinceLastRead)
          Set a new value and calculate the average change in value per second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelFigure

public KernelFigure()
Method Detail

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 -

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2