Raritan / Server Technology Xerus™ PDU JSON-RPC API
AccumulatingNumericSensor.idl
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3  * Copyright 2013 Raritan Inc. All rights reserved.
4  */
5 
6 #ifndef __SENSORMODEL_ACCUMULATING_NUMERIC_SENSOR_IDL__
7 #define __SENSORMODEL_ACCUMULATING_NUMERIC_SENSOR_IDL__
8 
9 #include <NumericSensor.idl>
10 #include <UserEvent.idl>
11 
12 /** Sensors Model */
13 module sensors {
14 
15  /** A sensor which accumulates numeric readings (e.g. energy counter) */
17 
18  /** Event: Accumulated value has been reset */
19  valueobject ResetEvent extends event.UserEvent {
20  NumericSensor.Reading oldReading; ///< Value before reset
21  NumericSensor.Reading newReading; ///< Value after reset
22  };
23 
24  /**
25  * Resets the accumulated value of the sensor
26  */
27  void resetValue();
28 
29  };
30 
31 }
32 
33 #endif
A sensor which accumulates numeric readings (e.g.
Definition: AccumulatingNumericSensor.idl:16
void resetValue()
Resets the accumulated value of the sensor.
NumericSensor::Reading newReading
Value after reset.
Definition: AccumulatingNumericSensor.idl:21
A sensor with numeric readings.
Definition: NumericSensor.idl:17
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Numeric sensor reading.
Definition: NumericSensor.idl:125