|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Mixins(value=AlarmHistory.AlarmHistoryMixin.class) public interface AlarmHistory
History of an AlarmPoint.
AlarmPoint system should implement AlarmHistory
classes to
record the events of an AlarmPoint
.
Nested Class Summary | |
---|---|
static class |
AlarmHistory.AlarmHistoryMixin
|
Method Summary | |
---|---|
int |
activateCounter()
Returns the Counter of activate triggers. |
void |
addEvent(AlarmEvent event,
java.lang.String trigger)
|
Property<java.util.List<AlarmEvent>> |
allAlarmEvents()
Returns a java.util.List of all recorded AlarmEvents . |
Property<java.util.Map<java.lang.String,java.lang.Integer>> |
counters()
Returns all the Counters of triggers. |
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 . |
Property<java.lang.Integer> |
maxSize()
The maximum size of the history buffer. |
void |
resetActivateCounter()
Resets the Activate counter. |
void |
resetAllCounters()
Resets all counters. |
Method Detail |
---|
AlarmEvent lastEvent()
AlarmEvent
.
AlarmEvent firstEvent()
AlarmEvent
.
AlarmEvent eventAt(int position)
AlarmEvent
at the given position
in the buffer.
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.AlarmEvent eventAtEnd(int position)
AlarmEvent
at the given position
in the buffer counted from the end.
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.@UseDefaults Property<java.util.List<AlarmEvent>> allAlarmEvents()
java.util.List
of all recorded AlarmEvents
.
java.util.List
of all recorded AlarmEvents
.@UseDefaults Property<java.lang.Integer> maxSize()
AlarmEvents
should be removed
so that the number of stored events are equal to the new MaxSize.
@UseDefaults Property<java.util.Map<java.lang.String,java.lang.Integer>> counters()
trigger()
method is called,
a Counter is incremented. That means that after the first
time the following the sequence is called
activate();
acknowledge();
deactivate();
, the Map contains (String) activate | (Integer) 1 |
(String) deactivate | (Integer) 1 |
(String) acknowledge | (Integer) 1 |
void resetAllCounters()
int activateCounter()
activate()
method and the trigger()
method with an activate trigger is called.
void resetActivateCounter()
void addEvent(AlarmEvent event, java.lang.String trigger)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |