#include <DC_DeltaProfile.h>
Inheritance diagram for DC_DeltaProfile:
This monitoring profile reports a "deviation from profile" if the value of the monitored variable undergoes a change in between two successive checks greater than a certain threshold. The threshold is called the delta threshold. The delta threshold is a settable parameter. Its value must be greater than zero.
Roberto Totaro
Definition at line 34 of file DC_DeltaProfile.h.
Public Member Functions | |
DC_DeltaProfile (void) | |
Instantiate a delta monitoring profile. | |
void | setDeltaThreshold (TD_Float deltaThreshold) |
Set the delta threshold. | |
TD_Float | getDeltaThreshold (void) |
Get the delta threshold. | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check on the monitoring profile: verify that the delta threshold has a value greater than zero. | |
virtual void | reset (void) |
Reset the delta monitoring profile check. | |
Protected Member Functions | |
virtual bool | doProfileCheck (TD_Integer value) |
Version of method doProfileCheck() for monitored variables of type integer. | |
virtual bool | doProfileCheck (TD_Float value) |
Check whether the monitored value differs from its value at the previous activation by more than the delta threshold. |
|
Instantiate a delta monitoring profile. The class identifier is set, the delta threshold is initialized to 0 to signify that the component is not yet configured, and the component is reset. Definition at line 22 of file DC_DeltaProfile.cpp. |
|
Check whether the monitored value differs from its value at the previous activation by more than the delta threshold. If it does, a "deviation from profile" is reported. A pseudo-code implementation for this method is as follows: if ( ( abs(value-previousValue) > deltaThreshold ) && notFirst ) { previousValue = value; return MON_PROFILE_DEVIATION; } notFirst = true; previousValue = value; return NO_MON_PROFILE_DEVIATION;
The value of the
Implements MonitoringProfile. Definition at line 29 of file DC_DeltaProfile.cpp. |
|
Version of method
The check is performed by using the "TD_Float" version of return doProfileCheck( (TD_Float)value );
Implements MonitoringProfile. Definition at line 43 of file DC_DeltaProfile.cpp. |
|
Get the delta threshold.
Definition at line 53 of file DC_DeltaProfile.cpp. |
|
Perform a class-specific configuration check on the monitoring profile: verify that the delta threshold has a value greater than zero.
Reimplemented from CC_RootObject. Definition at line 62 of file DC_DeltaProfile.cpp. |
|
Reset the delta monitoring profile check.
With reference to the implementation of method Reimplemented from MonitoringProfile. Definition at line 58 of file DC_DeltaProfile.cpp. |
|
Set the delta threshold.
Definition at line 48 of file DC_DeltaProfile.cpp. |