File Information
Library: IoT/Datapoints
Package: Datapoints
Header: IoT/Datapoints/MovingAverageDatapointImpl.h
Description
A basic implementation of a ScalarDatapoint that implements moving average calculation.
Inheritance
Direct Base Classes: BasicDatapointImpl < IoT::Devices::ScalarDatapoint, MovingAverageDatapointImpl >
All Base Classes: BasicDatapointImpl < IoT::Devices::ScalarDatapoint, MovingAverageDatapointImpl >
Member Summary
Member Functions: forceUpdate, getAccess, getDeviceIdentifier, getDisplayValue, getName, getPhysicalQuantity, getPhysicalUnit, getSymbolicName, getType, getUpdated, getValueChangedDelta, getValueChangedPeriod, invalidate, setValueChangedDelta, setValueChangedPeriod, unsafeUpdate, update, valid, validValue, value
Types Aliases
Interface
using Interface = IoT::Devices::ScalarDatapoint;
Params
using Params = MovingAverageDatapointParams;
Constructors
MovingAverageDatapointImpl
MovingAverageDatapointImpl() = delete;
MovingAverageDatapointImpl
MovingAverageDatapointImpl(
const std::string & id,
const Params & params,
Poco::Util::Timer & timer
);
Creates the MovingAverageDatapointImpl.
Destructor
~MovingAverageDatapointImpl
~MovingAverageDatapointImpl();
Destroys the MovingAverageDatapointImpl.
Member Functions
forceUpdate
void forceUpdate(
double value
);
Force an update, without performing an access check.
invalidate
void invalidate();
update
void update(
double value
);
valid
bool valid() const;
validValue
Poco::Optional < double > validValue() const;
value
double value() const;
getAccess
Poco::Any getAccess(
const std::string & param42
) const;
getDeviceIdentifier
Poco::Any getDeviceIdentifier(
const std::string & param35
) const;
getDisplayValue
Poco::Any getDisplayValue(
const std::string & param34
) const;
getName
Poco::Any getName(
const std::string & param36
) const;
getPhysicalQuantity
Poco::Any getPhysicalQuantity(
const std::string & param39
) const;
getPhysicalUnit
Poco::Any getPhysicalUnit(
const std::string & param40
) const;
getSymbolicName
Poco::Any getSymbolicName(
const std::string & param38
) const;
getType
Poco::Any getType(
const std::string & param37
) const;
getUpdated
Poco::Any getUpdated(
const std::string & param41
) const;
getValueChangedDelta
Poco::Any getValueChangedDelta(
const std::string & param32
) const;
getValueChangedPeriod
Poco::Any getValueChangedPeriod(
const std::string & param30
) const;
setValueChangedDelta
void setValueChangedDelta(
const std::string & param33,
const Poco::Any & value
);
setValueChangedPeriod
void setValueChangedPeriod(
const std::string & param31,
const Poco::Any & value
);
unsafeUpdate
void unsafeUpdate(
double value
);
Variables
SYMBOLIC_NAME
static const std::string SYMBOLIC_NAME;
TYPE
static const std::string TYPE;