File Information
Library: IoT/Devices
Package: Devices
Header: IoT/Devices/EventModerationPolicy.h
Description
This event moderation policy will fire an event whenever the value of an event variable changes more than the given minimum delta since the last time an event was sent.
This moderation policy can only be used with numeric (int, float, etc.) event value types.
Inheritance
Direct Base Classes: EventModerationPolicy < T >
All Base Classes: EventModerationPolicy < T >
Member Summary
Member Functions: getMinimumDelta, operator =, setMinimumDelta, valueChanged
Types
Event
typedef Poco::BasicEvent < const T > Event;
Constructors
MinimumDeltaModerationPolicy
MinimumDeltaModerationPolicy(
const MinimumDeltaModerationPolicy & other
);
MinimumDeltaModerationPolicy
MinimumDeltaModerationPolicy(
Event & event,
T initialValue,
T minimumDelta
);
Member Functions
getMinimumDelta
T getMinimumDelta() const;
operator =
MinimumDeltaModerationPolicy & operator = (
const MinimumDeltaModerationPolicy & other
);
setMinimumDelta
void setMinimumDelta(
T value
);
valueChanged
void valueChanged(
const T & value
);