Package | twaver |
Class | public class AlarmElementMapping |
Inheritance | AlarmElementMapping ![]() |
Implements | IAlarmElementMapping |
To understand more about AlarmElementMapping, please check the demo with name "Alarm Mapping Demo" in TWaver Flex online demo and the source code.
AlarmElementMapping is the default implementation of interface IAlarmElementMapping. In this default implementation, TWaver will connect the alarm and element with alarm.elementID and element.id.
See also
Method | Defined By | ||
---|---|---|---|
Constructor of this class. | AlarmElementMapping | ||
dispose():void
Dispose the resources used in this class. | AlarmElementMapping | ||
getCorrespondingAlarms(element:IElement):Array
Get all corresponding alarms for the given element object. | AlarmElementMapping | ||
getCorrespondingElements(alarm:IAlarm):Array
Get all corresponding elements for the given alarm object. | AlarmElementMapping |
AlarmElementMapping | () | Constructor |
public function AlarmElementMapping(alarmBox:AlarmBox, elementBox:ElementBox)
Constructor of this class.
ParametersalarmBox:AlarmBox — the AlarmBox this mapping class connected to.
| |
elementBox:ElementBox — the ElementBox this mapping class connected to.
|
dispose | () | method |
public function dispose():void
Dispose the resources used in this class.
getCorrespondingAlarms | () | method |
public function getCorrespondingAlarms(element:IElement):Array
Get all corresponding alarms for the given element object. In this default implementation, TWaver Flex will try to find all alarms which elementID is given element's ID.
Parameters
element:IElement — the element object need to find alarms on it.
|
Array — all corresponding alarms for this given element.
|
getCorrespondingElements | () | method |
public function getCorrespondingElements(alarm:IAlarm):Array
Get all corresponding elements for the given alarm object. In this default implementation, TWaver Flex will try to find the element which id is given alarm's elementID, return by an Array.
Parameters
alarm:IAlarm — the alarm object.
|
Array — all corresponding elements for this given alarm. In this defaul
implementations class, TWaver will return the element which id equals
to the given alarm's elementID.
|