6 #ifndef __SENSORMODEL_NUMERICSENSOR_IDL__
7 #define __SENSORMODEL_NUMERICSENSOR_IDL__
11 #include <UserEvent.idl>
19 constant
int THRESHOLD_OUT_OF_RANGE = 1;
20 constant
int THRESHOLD_INVALID = 2;
21 constant
int THRESHOLD_NOT_SUPPORTED = 3;
141 valueobject ReadingChangedEvent extends
idl.Event {
146 valueobject StateChangedEvent extends
idl.Event {
152 valueobject MetaDataChangedEvent extends
idl.Event {
158 valueobject ThresholdsChangedEvent extends
event.UserEvent {
A sensor with numeric readings.
Definition: NumericSensor.idl:17
Thresholds newThresholds
Threshold set after change.
Definition: NumericSensor.idl:160
MetaData getMetaData()
Retrieve the sensor metadata.
Reading getReading()
Get the sensor reading.
int setThresholds(in Thresholds thresh)
Change the active thresholds.
Thresholds getThresholds()
Retrieve the active thresholds.
Reading newReading
Reading after state change.
Definition: NumericSensor.idl:148
Thresholds getDefaultThresholds()
Retrieve the sensor default thresholds.
MetaData newMetaData
Metadata after change.
Definition: NumericSensor.idl:154
Sensor interface
Definition: Sensor.idl:15
Basic IDL definitions.
Definition: Event.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Range of possible sensor readings.
Definition: NumericSensor.idl:24
double lower
Minimum reading.
Definition: NumericSensor.idl:25
double upper
Maximum reading.
Definition: NumericSensor.idl:26
Numeric sensor status.
Definition: NumericSensor.idl:127
boolean belowLowerCritical
Reading is below lower critical threshold.
Definition: NumericSensor.idl:131
boolean belowLowerWarning
Reading is below lower warning threshold.
Definition: NumericSensor.idl:130
boolean aboveUpperCritical
Reading is above upper critical threshold.
Definition: NumericSensor.idl:128
boolean aboveUpperWarning
Reading is above upper warning threshold.
Definition: NumericSensor.idl:129
Numeric sensor reading.
Definition: NumericSensor.idl:125
boolean valid
true if the sensor reading is valid
Definition: NumericSensor.idl:136
boolean available
true if the sensor is available
Definition: NumericSensor.idl:134
time timestamp
UNIX timestamp (UTC) of last sample.
Definition: NumericSensor.idl:133
double value
Numeric sensor reading.
Definition: NumericSensor.idl:137
Status status
Numeric sensor status.
Definition: NumericSensor.idl:135
Threshold capabilities.
Definition: NumericSensor.idl:32
boolean hasUpperWarning
Sensor has upper warning threshold.
Definition: NumericSensor.idl:34
boolean hasLowerCritical
Sensor has lower critical threshold.
Definition: NumericSensor.idl:36
boolean hasUpperCritical
Sensor has upper critical threshold.
Definition: NumericSensor.idl:33
boolean hasLowerWarning
Sensor has lower warning threshold.
Definition: NumericSensor.idl:35
Numeric sensor thresholds.
Definition: NumericSensor.idl:111
boolean upperWarningActive
true if the upper warning threshold is enabled
Definition: NumericSensor.idl:114
boolean upperCriticalActive
true if the upper critical threshold is enabled
Definition: NumericSensor.idl:112
double upperCritical
Upper critical threshold.
Definition: NumericSensor.idl:113
boolean lowerCriticalActive
true if the lower critical threshold is enabled
Definition: NumericSensor.idl:118
double lowerCritical
Lower critical threshold.
Definition: NumericSensor.idl:119
float deassertionHysteresis
Deassertion hysteresis.
Definition: NumericSensor.idl:121
int assertionTimeout
Assertion timeout in samples.
Definition: NumericSensor.idl:120
double lowerWarning
Lower warning threshold.
Definition: NumericSensor.idl:117
double upperWarning
Upper warning threshold.
Definition: NumericSensor.idl:115
boolean lowerWarningActive
true if the lower warning threshold is enabled
Definition: NumericSensor.idl:116
Complete sensor type specification.
Definition: Sensor.idl:163