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.
void resetMinMax()
Reset min / max of sensor value.
Reading getReading()
Get the sensor reading.
Thresholds getThresholds()
Retrieve the 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 thresholds.
Common base for all events.
Event: Sensor default thresholds have changed.
Thresholds oldDefaultThresholds
Default thresholds set before change.
Thresholds newDefaultThresholds
Default thresholds set after change.
Event: Sensor min or max value has changed.
MinMax newMinMax
Minimum / maximum of sensor value.
Event: Min / Max value has been reset.
MinMax oldMinMax
Min / max before reset.
MinMax newMinMax
Min / max after reset, incl. new observedSince timestamp.
Numeric sensor minimum / maximum values.
time maxReadingTimestamp
UNIX timestamp (UTC) when the maximum value has occurred.
double minReading
the minimum value since observedSince, not rounded
boolean valid
true if min and max are valid
time minReadingTimestamp
UNIX timestamp (UTC) when the minimum value has occurred.
time observedSince
UNIX timestamp (UTC) of last reset of min / max.
double maxReading
the maximum value since observedSince, not rounded
Range of possible sensor readings.
double upper
Maximum reading.
double lower
Minimum reading.
Event: Numeric sensor reading has changed.
Reading newReading
New numeric sensor reading.
boolean aboveUpperCritical
Reading is above upper critical threshold.
boolean belowLowerWarning
Reading is below lower warning threshold.
boolean belowLowerCritical
Reading is below lower critical threshold.
boolean aboveUpperWarning
Reading is above upper warning threshold.
Status status
Numeric sensor status.
boolean available
true if the sensor is available
double value
Numeric sensor reading, not rounded.
boolean valid
true if the sensor reading is valid
time timestamp
UNIX timestamp (UTC) of last sample.
Event: Sensor state has changed.
Reading oldReading
Reading before state change.
Reading newReading
Reading after state change.
boolean hasUpperCritical
Sensor has upper critical threshold.
boolean hasLowerWarning
Sensor has lower warning threshold.
boolean hasUpperWarning
Sensor has upper warning threshold.
boolean hasLowerCritical
Sensor has lower critical threshold.
Event: Sensor thresholds have changed.
Thresholds newThresholds
Threshold set after change.
Thresholds oldThresholds
Threshold set before change.
Numeric sensor thresholds.
boolean upperWarningActive
true if the upper warning threshold is enabled
double upperWarning
Upper warning threshold.
int assertionTimeout
Assertion timeout in samples.
boolean lowerWarningActive
true if the lower warning threshold is enabled
double upperCritical
Upper critical threshold.
boolean lowerCriticalActive
true if the lower critical threshold is enabled
double lowerWarning
Lower warning threshold.
float deassertionHysteresis
Deassertion hysteresis.
double lowerCritical
Lower critical threshold.
boolean upperCriticalActive
true if the upper critical threshold is enabled
Complete sensor type specification.