public interface Telemetering extends PropertySupplying, Initializable
SensorDepending interface.
To prononce the relationship of this interface with a sensor-definition,
all implementing classes have names derived from sensor.CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this sensor.
|
ConvertToPhysical |
getConvert()
Returns the conversion utility to convert raw readings to physical
meaningful quantities.
|
double |
getReading()
Returns the last/actual
reading of the sensor as a double.
|
long |
getRespawn()
Returns the respawn intervall of this timer-task sensor, in ms.
|
String |
getSensorDescription()
Returns a lengthy description of this sensor.
|
String |
getSensorInitInfo()
Returns info on this sensor that is available after its initialization
phase and gives some info on the init process.
|
String |
getSensorName()
Returns a unique identification of this telemetering instance.
|
Date |
getTimeOfRead()
Returns the exact date of the last measurement.
|
TimerTask |
initSensorTimerTask()
Returns the timer task this sensor wants to run in or null if no thread
is needed.
|
void |
setConvert(ConvertToPhysical converter)
Sets the conversion utility to convert raw readings to physical
meaningful quantities.
|
String |
status()
Returns a description of the actual status of this telemetering
instance.
|
boolean |
validReading()
Returns true if the last reading is valid.
|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesinitdouble getReading()
boolean validReading()
Date getTimeOfRead()
void cancel()
String getSensorName()
String getSensorDescription()
String getSensorInitInfo()
ConvertToPhysical getConvert()
void setConvert(ConvertToPhysical converter)
TimerTask initSensorTimerTask()
WeatherSurveying classes that
normally consist of a collection of sensors to start their entire
sensor bank separately from constructing the sensors.getRespawn()long getRespawn()
WeatherSurveying classes to schedule sensors
which need a sepatate thread to run.String status()