IoT::Datapoints

class MovingAverageDatapointImpl

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
);

Destructor

~MovingAverageDatapointImpl

~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 protected

Poco::Any getAccess(
    const std::string & param42
) const;

getDeviceIdentifier protected

Poco::Any getDeviceIdentifier(
    const std::string & param35
) const;

getDisplayValue protected

Poco::Any getDisplayValue(
    const std::string & param34
) const;

getName protected

Poco::Any getName(
    const std::string & param36
) const;

getPhysicalQuantity protected

Poco::Any getPhysicalQuantity(
    const std::string & param39
) const;

getPhysicalUnit protected

Poco::Any getPhysicalUnit(
    const std::string & param40
) const;

getSymbolicName protected

Poco::Any getSymbolicName(
    const std::string & param38
) const;

getType protected

Poco::Any getType(
    const std::string & param37
) const;

getUpdated protected

Poco::Any getUpdated(
    const std::string & param41
) const;

getValueChangedDelta protected

Poco::Any getValueChangedDelta(
    const std::string & param32
) const;

getValueChangedPeriod protected

Poco::Any getValueChangedPeriod(
    const std::string & param30
) const;

setValueChangedDelta protected

void setValueChangedDelta(
    const std::string & param33,
    const Poco::Any & value
);

setValueChangedPeriod protected

void setValueChangedPeriod(
    const std::string & param31,
    const Poco::Any & value
);

unsafeUpdate protected

void unsafeUpdate(
    double value
);

Variables

SYMBOLIC_NAME static

static const std::string SYMBOLIC_NAME;

TYPE static

static const std::string TYPE;

Securely control IoT edge devices from anywhere   Connect a Device