|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.alarm.AlarmHistory.AlarmHistoryMixin
public abstract static class AlarmHistory.AlarmHistoryMixin
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.library.alarm.AlarmHistory |
---|
AlarmHistory.AlarmHistoryMixin |
Constructor Summary | |
---|---|
AlarmHistory.AlarmHistoryMixin()
|
Method Summary | |
---|---|
int |
activateCounter()
Returns the Counter of activate triggers. |
void |
addEvent(AlarmEvent event,
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.qi4j.library.alarm.AlarmHistory |
---|
allAlarmEvents, counters, maxSize |
Constructor Detail |
---|
public AlarmHistory.AlarmHistoryMixin()
Method Detail |
---|
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, java.lang.String trigger)
addEvent
in interface AlarmHistory
public java.lang.String toString()
toString
in class java.lang.Object
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |