|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.alarm.AlarmElementMapping
public class AlarmElementMapping
In general the elementID property of alarm is used to connected
the alarm to corresponding element. So normally it's one-to-one
relationship determined by element id, but in some cases you maybe need
one-to-many relation or determine the relationship by other alarm property,
then you can implement AlarmElementMapping
interface to do this job.
Alarm.getElementId()
,
Data.getId()
,
AlarmBox.setAlarmElementMapping(IAlarmElementMapping)
Constructor Summary | |
---|---|
AlarmElementMapping(AlarmBox alarmBox)
Constructor of this class. |
Method Summary | |
---|---|
void |
dispose()
Dispose the resources used in this class. |
AlarmBox |
getAlarmBox()
|
java.util.List<Alarm> |
getCorrespondingAlarms(Element element)
Get all corresponding alarms for the given element object. |
java.util.List<Element> |
getCorrespondingElements(Alarm alarm)
Get all corresponding elements for the given alarm object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlarmElementMapping(AlarmBox alarmBox)
alarmBox
- the AlarmBox this mapping class connected to.Method Detail |
---|
public AlarmBox getAlarmBox()
public java.util.List<Alarm> getCorrespondingAlarms(Element element)
getCorrespondingAlarms
in interface IAlarmElementMapping
element
- the element object need to find alarms on it.
public java.util.List<Element> getCorrespondingElements(Alarm alarm)
getCorrespondingElements
in interface IAlarmElementMapping
alarm
- the alarm object.
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |