public static class SimpleAlarmModelService.SimpleAlarmModelMixin extends Object implements AlarmModel
| Initial State | Trigger | Resulting State | Event Generated |
|---|---|---|---|
| Normal | activate | Activated | activation |
| Normal | deactivate | Normal | - |
| Activated | activate | Activated | - |
| Activated | deactivate | Deactivated | deactivation |
MODEL_BUNDLE_NAME| Constructor and Description |
|---|
SimpleAlarmModelMixin() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
alarmTriggers()
Returns all the supported AlarmPoint triggers.
|
boolean |
computeCondition(AlarmStatus status) |
String |
computeTrigger(AlarmStatus status,
boolean condition) |
AlarmEvent |
evaluate(AlarmPoint alarm,
String trigger)
Execute the required changes upon an AlarmTrigger.
|
String |
modelDescription()
Returns a Description of the AlarmModel in the default Locale.
|
String |
modelDescription(Locale locale)
Returns a Description of the AlarmModel.
|
String |
modelName()
Returns the Name of the AlarmModel.
|
List<String> |
statusList() |
public String modelName()
modelName in interface AlarmModelpublic String modelDescription()
modelDescription in interface AlarmModelpublic String modelDescription(Locale locale)
null, then the
default Locale is used.modelDescription in interface AlarmModellocale - The locale for which the description is wanted.public List<String> statusList()
statusList in interface AlarmModelpublic AlarmEvent evaluate(AlarmPoint alarm, String trigger)
evaluate in interface AlarmModeltrigger - the AlarmTrigger that was used.alarm - The AlarmPoint the trigger is for.public List<String> alarmTriggers()
alarmTriggers in interface AlarmModelpublic String computeTrigger(AlarmStatus status, boolean condition)
computeTrigger in interface AlarmModelpublic boolean computeCondition(AlarmStatus status)
computeCondition in interface AlarmModel