public interface ISensorData
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
averageValue()
Calculates the average of all values in the history buffer.
|
java.lang.Number |
currentValue()
Obtains the most recent new value.
|
boolean |
dataAvailable()
Indicates if this sensor has posted data since the last call.
|
boolean |
dataAvailable(long time)
Indicates if this sensor has posted data since the specified time.
|
java.lang.Number |
getConstant()
Pass-through constant for sensor-specific data.
|
java.lang.String |
getName()
Name property accessor.
|
long |
getResetTime()
Reset time property accessor.
|
java.lang.String |
getSensorName()
Sensor name property accessor.
|
boolean |
isReset()
Indicates if this data was reset.
|
java.lang.Number |
maximumValue(boolean reset)
Calculates the highest value since the last reset.
|
java.lang.Number |
minimumValue(boolean reset)
Calculates the lowest value since the last reset.
|
java.lang.Number |
peakValue()
Calculates the peak of all values in the history buffer.
|
void |
putData(java.lang.Number value)
Adds a new data value to the processor.
|
void |
reset(boolean reset)
Resets minimum and maximum values to implementation-specific value.
|
java.lang.Number |
sigmaValue()
Calculates the sum of all values in the history buffer.
|
java.lang.String getName()
java.lang.String getSensorName()
java.lang.Number getConstant()
void putData(java.lang.Number value)
value
- new data to add to the processor.void reset(boolean reset)
reset
- if true, resets to implementation-specific value.boolean isReset()
long getResetTime()
boolean dataAvailable()
boolean dataAvailable(long time)
time
- to check against. Set to zero to find out if this device has
ever posted data.java.lang.Number currentValue()
java.lang.Number maximumValue(boolean reset)
reset
- if true, to implementation-specific value.java.lang.Number minimumValue(boolean reset)
reset
- if true, to implementation-specific value.java.lang.Number sigmaValue()
java.lang.Number peakValue()
java.lang.Number averageValue()