AccumulatingNumericSensor.idl
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright 2013 Raritan Inc. All rights reserved.
*/
#ifndef __SENSORMODEL_ACCUMULATING_NUMERIC_SENSOR_IDL__
#define __SENSORMODEL_ACCUMULATING_NUMERIC_SENSOR_IDL__
#include <NumericSensor.idl>
#include <UserEvent.idl>
/** Sensors Model */
module sensors {
/** A sensor which accumulates numeric readings (e.g. energy counter) */
interface AccumulatingNumericSensor_2_0_3 extends sensors.NumericSensor_4_0_3 {
/** Event: Accumulated value has been reset */
valueobject ResetEvent extends event.UserEvent {
NumericSensor_4_0_3.Reading oldReading; ///< Value before reset
NumericSensor_4_0_3.Reading newReading; ///< Value after reset
};
/**
* Resets the accumulated value of the sensor
*/
void resetValue();
};
}
#endif
sensors::AccumulatingNumericSensor_2_0_3
A sensor which accumulates numeric readings (e.g.
Definition: AccumulatingNumericSensor.idl:16
sensors::NumericSensor_4_0_3::Reading
Numeric sensor reading.
Definition: NumericSensor.idl:125
sensors
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
sensors::AccumulatingNumericSensor_2_0_3::newReading
NumericSensor_4_0_3::Reading newReading
Value after reset.
Definition: AccumulatingNumericSensor.idl:21
sensors::NumericSensor_4_0_3
A sensor with numeric readings.
Definition: NumericSensor.idl:17