public interface AlarmEvaluator extends Diagnosable
AlarmManager
based on an AlarmConfiguration
. When the entity that is feeding it values is
destroyed, it should call release() so that the alarming system knows that the alarm is no longer in use.Modifier and Type | Method and Description |
---|---|
void |
evaluate(QualifiedValue value)
Evaluates a value against the configured conditions.
|
AlarmStateSummary |
getState() |
boolean |
isEvaluationEnabled()
Indicates whether this AlarmEvaluator is enabled.
|
void |
reattach()
Re-activates the alarm after release() has been called.
|
void |
release()
Releases the alarm evaluator, deregistering the alarm configuration from the system.
|
void |
setAlarmObserver(AlarmObserver value)
Each alarm can have one observer, that will be notified about transitions.Note: The observer is cleared
when release() is called, and therefore should be re-added when calling reattach();
|
void |
setEvaluationEnabled(boolean value)
Sets whether or not the alarm should evaluate.
|
sampleDiagnostics
AlarmStateSummary getState()
void evaluate(QualifiedValue value)
value
- void release()
void reattach()
void setEvaluationEnabled(boolean value)
value
- boolean isEvaluationEnabled()
void setAlarmObserver(AlarmObserver value)
value
-