public abstract static class AlarmHistory.AlarmHistoryMixin extends Object implements AlarmHistory
AlarmHistory.AlarmHistoryMixin| Constructor and Description |
|---|
AlarmHistoryMixin() |
| Modifier and Type | Method and Description |
|---|---|
int |
activateCounter()
Returns the Counter of activate triggers.
|
void |
addEvent(AlarmEvent event,
String trigger) |
AlarmEvent |
eventAt(int position)
Returns the recorded
AlarmEvent at the given position
in the buffer. |
AlarmEvent |
eventAtEnd(int position)
Returns the recorded
AlarmEvent at the given position
in the buffer counted from the end. |
AlarmEvent |
firstEvent()
Returns the oldest recorded
AlarmEvent. |
AlarmEvent |
lastEvent()
Returns the newest recorded
AlarmEvent. |
void |
resetActivateCounter()
Resets the Activate counter.
|
void |
resetAllCounters()
Resets all counters.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallAlarmEvents, counters, maxSizepublic AlarmEvent firstEvent()
AlarmHistoryAlarmEvent.firstEvent in interface AlarmHistorypublic AlarmEvent lastEvent()
AlarmHistoryAlarmEvent.lastEvent in interface AlarmHistorypublic AlarmEvent eventAt(int position)
AlarmHistoryAlarmEvent at the given position
in the buffer.eventAt in interface AlarmHistoryposition - the position in the buffer, counted from the beginning to obtain the AlarmEvent from.
0 means the first element.AlarmEvent at the given position in the buffer.public AlarmEvent eventAtEnd(int position)
AlarmHistoryAlarmEvent at the given position
in the buffer counted from the end.eventAtEnd in interface AlarmHistoryposition - the position in the buffer, counted from the end to obtain the AlarmEvent from.
0 means the last element.AlarmEvent at the given position in the buffer counted from the end.public void addEvent(AlarmEvent event, String trigger)
addEvent in interface AlarmHistorypublic void resetAllCounters()
AlarmHistoryresetAllCounters in interface AlarmHistorypublic int activateCounter()
AlarmHistoryactivate() method and the trigger()
method with an activate trigger is called.activateCounter in interface AlarmHistorypublic void resetActivateCounter()
AlarmHistoryresetActivateCounter in interface AlarmHistory