protected class AbstractExecutableTag.AlarmConfigHarness extends java.lang.Object implements AlarmEvaluator
Constructor and Description |
---|
AlarmConfigHarness(AlarmConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(QualifiedValue value)
Evaluates a value against the configured conditions.
|
AlarmStateSummary |
getState() |
AlarmEvaluator |
initialize() |
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 |
sampleDiagnostics(DiagnosticsSample sample)
Provides the sample upon which the object can set diagnostics information.
|
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.
|
public AlarmConfigHarness(AlarmConfiguration config)
public AlarmEvaluator initialize()
public void evaluate(QualifiedValue value)
AlarmEvaluator
evaluate
in interface AlarmEvaluator
public void release()
AlarmEvaluator
release
in interface AlarmEvaluator
public void reattach()
AlarmEvaluator
reattach
in interface AlarmEvaluator
public AlarmStateSummary getState()
getState
in interface AlarmEvaluator
public boolean isEvaluationEnabled()
AlarmEvaluator
isEvaluationEnabled
in interface AlarmEvaluator
public void setEvaluationEnabled(boolean value)
AlarmEvaluator
setEvaluationEnabled
in interface AlarmEvaluator
public void setAlarmObserver(AlarmObserver value)
AlarmEvaluator
setAlarmObserver
in interface AlarmEvaluator
public void sampleDiagnostics(DiagnosticsSample sample)
Diagnosable
sampleDiagnostics
in interface Diagnosable