#include <DC_StuckDataProfile.h>
Inheritance diagram for DC_StuckDataProfile:
This monitoring profile reports a "deviation from profile" if the value of the monitored variable remains unchanged for more a certain number of consecutive activations. The number of consecutive activations that the monitored variable must remain unchanged before the monitoring check is detected is called the stuck threshold. The stuck threshold is a settable parameter. Its value must be greater than zero.
This type of check only makes sense for monitored variables of integer type. The version of the monitoring check for variables of doble type is therefore implemented as a dummy operation that always returns "deviation from profile has been detected".
Roberto Totaro
Definition at line 41 of file DC_StuckDataProfile.h.
Public Member Functions | |
DC_StuckDataProfile (void) | |
Instantiate a stuck data profile. | |
void | setStuckThreshold (unsigned int stuckThreshold) |
Set the stuck threshold. | |
unsigned int | getStuckThreshold (void) const |
Get the stuck thresholde. | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check on the monitoring profile: verify that the stuck threshold has a value greater than zero. | |
virtual void | reset (void) |
Reset the stuck value profile check. | |
Protected Member Functions | |
virtual bool | doProfileCheck (TD_Integer value) |
Check whether the monitored value is stuck. | |
virtual bool | doProfileCheck (TD_Float value) |
Dummy implementation of a monitoring check that always returns "deviation from profile detected". |
|
Instantiate a stuck data profile. The class identifier is set, the stuck threshold is initialized to 0 to signify that the component is not yet configured, and the component is reset. Definition at line 20 of file DC_StuckDataProfile.cpp. |
|
Dummy implementation of a monitoring check that always returns "deviation from profile detected". This operation should never be called since stuck data monitoring checks on non-integer variables may give unpredictable results due to numerical precision errors.
Implements MonitoringProfile. Definition at line 26 of file DC_StuckDataProfile.cpp. |
|
Check whether the monitored value is stuck. If it is, a "devation from profile" is reported. A pseudo-code implementation for this method is as follows: if ( value == previousValue ) { counter++; previousValue = value; if (counter == stuckThreshold) { counter = 0; return MON_PROFILE_DEVIATION; } else return NO_MON_PROFILE_DEVIATION; } else counter = 0; previousValue = value; return NO_MON_PROFILE_DEVIATION;
The value of
Implements MonitoringProfile. Definition at line 31 of file DC_StuckDataProfile.cpp. |
|
Get the stuck thresholde.
Definition at line 54 of file DC_StuckDataProfile.cpp. |
|
Perform a class-specific configuration check on the monitoring profile: verify that the stuck threshold has a value greater than zero.
Reimplemented from CC_RootObject. Definition at line 63 of file DC_StuckDataProfile.cpp. |
|
Reset the stuck value profile check.
With reference to the implementation of method Reimplemented from MonitoringProfile. Definition at line 58 of file DC_StuckDataProfile.cpp. |
|
Set the stuck threshold.
Definition at line 50 of file DC_StuckDataProfile.cpp. |