public static class AlarmSystem.AlarmSystemMixin extends Object implements AlarmSystem
AlarmSystem.AlarmSystemMixin| Constructor and Description |
|---|
AlarmSystemMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlarmListener(AlarmListener listener)
Register AlarmListener to recieve
AlarmEvents from all
Alarms managed by this AlarmSystem. |
void |
alarmFired(AlarmEvent event) |
Query<AlarmPoint> |
alarmList()
Returns a list of all Alarms registered to the service.
|
List<AlarmListener> |
alarmListeners()
Returns an immmutable list of all AlarmListeners registered to the service.
|
List<AlarmModelDescriptor> |
alarmModels()
Returns all the AlarmModels that has been installed.
|
AlarmPoint |
createAlarm(String name,
AlarmCategory category)
Creates an AlarmPoint with the default AlarmModel.
|
AlarmModel |
defaultAlarmModel()
Returns the default AlarmModel.
|
void |
removeAlarmListener(AlarmListener listener)
Remove the
AlarmListener from the AlarmSystem. |
public List<AlarmModelDescriptor> alarmModels()
alarmModels in interface AlarmSystempublic AlarmModel defaultAlarmModel()
defaultAlarmModel in interface AlarmSystempublic AlarmPoint createAlarm(String name, AlarmCategory category)
createAlarm in interface AlarmSystemname - The system name of the AlarmPoint.category - The AlarmPoint Category the created alarm should belong to.public void addAlarmListener(AlarmListener listener)
AlarmEvents from all
Alarms managed by this AlarmSystem.addAlarmListener in interface AlarmSystemlistener - the global listener to be added.public void removeAlarmListener(AlarmListener listener)
AlarmListener from the AlarmSystem.removeAlarmListener in interface AlarmSystemlistener - the global listener to be removed.public Query<AlarmPoint> alarmList()
alarmList in interface AlarmSystempublic List<AlarmListener> alarmListeners()
AlarmSystemalarmListeners in interface AlarmSystempublic void alarmFired(AlarmEvent event)