|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.alarm.StandardAlarmModelService.StandardAlarmModelMixin
public static class StandardAlarmModelService.StandardAlarmModelMixin
Constructor Summary | |
---|---|
StandardAlarmModelService.StandardAlarmModelMixin()
|
Method Summary | |
---|---|
List<String> |
alarmTriggers()
Returns all the supported Alarm triggers. |
boolean |
computeCondition(AlarmStatus status)
|
String |
computeTrigger(AlarmStatus status,
boolean condition)
|
AlarmEvent |
evaluate(Alarm 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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardAlarmModelService.StandardAlarmModelMixin()
Method Detail |
---|
public String modelName()
modelName
in interface AlarmModel
public String modelDescription()
modelDescription
in interface AlarmModel
public String modelDescription(Locale locale)
null
, then the
default Locale is used.
modelDescription
in interface AlarmModel
locale
- The locale that should be used for the description, or null for the default locale.
public AlarmEvent evaluate(Alarm alarm, String trigger)
evaluate
in interface AlarmModel
alarm
- the Alarm object to be updated.trigger
- the AlarmTrigger that was used.
public List<String> alarmTriggers()
alarmTriggers
in interface AlarmModel
public List<String> statusList()
statusList
in interface AlarmModel
public String computeTrigger(AlarmStatus status, boolean condition)
computeTrigger
in interface AlarmModel
public boolean computeCondition(AlarmStatus status)
computeCondition
in interface AlarmModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |