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;
A sensor with numeric readings.
Definition: NumericSensor.idl:17
void resetMinMax()
Reset min / max of sensor value.
Reading getReading()
Get the sensor reading.
Thresholds getThresholds()
Retrieve the active thresholds.
Thresholds getDefaultThresholds()
Retrieve the sensor default thresholds.
MinMax getMinMax()
Get the min / max of sensor value.
MetaData getMetaData()
Retrieve the sensor metadata.
int setThresholds(in Thresholds thresh)
Change the active thresholds.
Sensor interface
Definition: Sensor.idl:15
Basic IDL definitions.
Definition: Event.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Common base for all events.
Definition: Event.idl:13
Event: Sensor default thresholds have changed.
Definition: NumericSensor.idl:179
Thresholds oldDefaultThresholds
Default thresholds set before change.
Definition: NumericSensor.idl:180
Thresholds newDefaultThresholds
Default thresholds set after change.
Definition: NumericSensor.idl:181
Event: Sensor min or max value has changed.
Definition: NumericSensor.idl:196
MinMax newMinMax
Minimum / maximum of sensor value.
Definition: NumericSensor.idl:197
Event: Min / Max value has been reset.
Definition: NumericSensor.idl:201
MinMax oldMinMax
Min / max before reset.
Definition: NumericSensor.idl:202
MinMax newMinMax
Min / max after reset, incl. new observedSince timestamp.
Definition: NumericSensor.idl:203
Numeric sensor minimum / maximum values.
Definition: NumericSensor.idl:147
time maxReadingTimestamp
UNIX timestamp (UTC) when the maximum value has occurred.
Definition: NumericSensor.idl:151
double minReading
the minimum value since observedSince, not rounded
Definition: NumericSensor.idl:148
boolean valid
true if min and max are valid
Definition: NumericSensor.idl:152
time minReadingTimestamp
UNIX timestamp (UTC) when the minimum value has occurred.
Definition: NumericSensor.idl:149
time observedSince
UNIX timestamp (UTC) of last reset of min / max.
Definition: NumericSensor.idl:153
double maxReading
the maximum value since observedSince, not rounded
Definition: NumericSensor.idl:150
Range of possible sensor readings.
Definition: NumericSensor.idl:24
double upper
Maximum reading.
Definition: NumericSensor.idl:26
double lower
Minimum reading.
Definition: NumericSensor.idl:25
Event: Numeric sensor reading has changed.
Definition: NumericSensor.idl:162
Reading newReading
New numeric sensor reading.
Definition: NumericSensor.idl:163
Numeric sensor status.
Definition: NumericSensor.idl:133
boolean aboveUpperCritical
Reading is above upper critical threshold.
Definition: NumericSensor.idl:134
boolean belowLowerWarning
Reading is below lower warning threshold.
Definition: NumericSensor.idl:136
boolean belowLowerCritical
Reading is below lower critical threshold.
Definition: NumericSensor.idl:137
boolean aboveUpperWarning
Reading is above upper warning threshold.
Definition: NumericSensor.idl:135
Numeric sensor reading.
Definition: NumericSensor.idl:125
Status status
Numeric sensor status.
Definition: NumericSensor.idl:141
boolean available
true if the sensor is available
Definition: NumericSensor.idl:140
double value
Numeric sensor reading, not rounded.
Definition: NumericSensor.idl:143
boolean valid
true if the sensor reading is valid
Definition: NumericSensor.idl:142
time timestamp
UNIX timestamp (UTC) of last sample.
Definition: NumericSensor.idl:139
Event: Sensor state has changed.
Definition: NumericSensor.idl:167
Reading oldReading
Reading before state change.
Definition: NumericSensor.idl:168
Reading newReading
Reading after state change.
Definition: NumericSensor.idl:169
Threshold capabilities.
Definition: NumericSensor.idl:32
boolean hasUpperCritical
Sensor has upper critical threshold.
Definition: NumericSensor.idl:33
boolean hasLowerWarning
Sensor has lower warning threshold.
Definition: NumericSensor.idl:35
boolean hasUpperWarning
Sensor has upper warning threshold.
Definition: NumericSensor.idl:34
boolean hasLowerCritical
Sensor has lower critical threshold.
Definition: NumericSensor.idl:36
Event: Sensor thresholds have changed.
Definition: NumericSensor.idl:185
Thresholds newThresholds
Threshold set after change.
Definition: NumericSensor.idl:187
Thresholds oldThresholds
Threshold set before change.
Definition: NumericSensor.idl:186
Numeric sensor thresholds.
Definition: NumericSensor.idl:111
boolean upperWarningActive
true if the upper warning threshold is enabled
Definition: NumericSensor.idl:114
double upperWarning
Upper warning threshold.
Definition: NumericSensor.idl:115
int assertionTimeout
Assertion timeout in samples.
Definition: NumericSensor.idl:120
boolean lowerWarningActive
true if the lower warning threshold is enabled
Definition: NumericSensor.idl:116
double upperCritical
Upper critical threshold.
Definition: NumericSensor.idl:113
boolean lowerCriticalActive
true if the lower critical threshold is enabled
Definition: NumericSensor.idl:118
double lowerWarning
Lower warning threshold.
Definition: NumericSensor.idl:117
float deassertionHysteresis
Deassertion hysteresis.
Definition: NumericSensor.idl:121
double lowerCritical
Lower critical threshold.
Definition: NumericSensor.idl:119
boolean upperCriticalActive
true if the upper critical threshold is enabled
Definition: NumericSensor.idl:112
Complete sensor type specification.
Definition: Sensor.idl:169