|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Deriving
The interface marking derivative capabilities of a sensor. It is an extension to the cumulative interface because smoothing datas will always require storing some data. As a consequence, no methods for access to the time axis are given here. They are inherited from the base interface.
This interface
is introduced to make it more convenient to derive one's own combination
of smoothing and/or deriving sensors. A default implementation
DerivativeSensor implements this interface and gives a body for
this method.
| Method Summary | |
|---|---|
void |
deriveAt(double raw)
Derives the data values at the given raw reading and stores it in an internal buffer. |
NumberFormat |
getDerivativeFormat()
Returns the decimal format to use with the first raw derivative. |
List |
getLastDerivative(int nr)
Returns the last nr derivative values as a list. |
boolean |
isDeriving()
Returns true if the implementing instance is really capable of derivating the sensor data. |
double |
regetDerive()
Returns the last value of the derivative as a double. |
| Methods inherited from interface stella.sensor.Cumulating |
|---|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRaw |
| Method Detail |
|---|
void deriveAt(double raw)
double regetDerive()
List getLastDerivative(int nr)
The - number of entries to return.NumberFormat getDerivativeFormat()
boolean isDeriving()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||