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, wait
allAlarmEvents, counters, maxSize
public AlarmEvent firstEvent()
AlarmHistory
AlarmEvent
.firstEvent
in interface AlarmHistory
public AlarmEvent lastEvent()
AlarmHistory
AlarmEvent
.lastEvent
in interface AlarmHistory
public AlarmEvent eventAt(int position)
AlarmHistory
AlarmEvent
at the given position
in the buffer.eventAt
in interface AlarmHistory
position
- 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)
AlarmHistory
AlarmEvent
at the given position
in the buffer counted from the end.eventAtEnd
in interface AlarmHistory
position
- 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 AlarmHistory
public void resetAllCounters()
AlarmHistory
resetAllCounters
in interface AlarmHistory
public int activateCounter()
AlarmHistory
activate()
method and the trigger()
method with an activate trigger is called.activateCounter
in interface AlarmHistory
public void resetActivateCounter()
AlarmHistory
resetActivateCounter
in interface AlarmHistory