com.ewon.ewonitf
Class EvtTagAlarmListener
java.lang.Object
com.ewon.ewonitf.TagControl
com.ewon.ewonitf.EvtTagListener
com.ewon.ewonitf.EvtTagAlarmListener
- All Implemented Interfaces:
- EvtListener
public abstract class EvtTagAlarmListener
- extends EvtTagListener
This is an abstract class from which user's tag alarm listener must be derived.
An example is given in DefaultEventHandler
- Since:
- javaetk 1.3
Fields inherited from class com.ewon.ewonitf.TagControl |
ALARM_STATUS_ACK, ALARM_STATUS_ALM, ALARM_STATUS_NONE, ALARM_STATUS_RTN, ALARM_TYPE_HIGH, ALARM_TYPE_HIGH_HIGH, ALARM_TYPE_LEVEL, ALARM_TYPE_LOW, ALARM_TYPE_LOW_LOW, ALARM_TYPE_NONE, BY_ID, BY_NDX |
Method Summary |
int |
getAlarmStatus()
Read the Alarm status at the time the event occured. |
int |
getAlarmType()
Read the Alarm type at the time the event occured. |
Methods inherited from class com.ewon.ewonitf.TagControl |
ackAlarm, ackAlarm, getTagId, getTagName, getTagValueAsDouble, getTagValueAsLong, logTag, setTagId, setTagName, setTagValueAsDouble, setTagValueAsInt, setTagValueAsLong |
EvtTagAlarmListener
public EvtTagAlarmListener(TagControl tagControl)
- Creates a new instance of EvtTagListener
EvtTagAlarmListener
public EvtTagAlarmListener(int RecordId)
EvtTagAlarmListener
public EvtTagAlarmListener(int RecordRefType,
int RecordRef)
throws EWException
- Throws:
EWException
EvtTagAlarmListener
public EvtTagAlarmListener(String RecordName)
throws EWException
- Throws:
EWException
EvtTagAlarmListener
public EvtTagAlarmListener()
getAlarmStatus
public int getAlarmStatus()
- Read the Alarm status at the time the event occured.
- Overrides:
getAlarmStatus
in class TagControl
- Returns:
- Alarm status. See
TagControl
for valid alarm status values: TagControl.ALARM_STATUS_NONE,
TagControl.ALARM_STATUS_ALM,TagControl.ALARM_STATUS_ACK,TagControl.ALARM_STATUS_RTN
getAlarmType
public int getAlarmType()
- Read the Alarm type at the time the event occured.
- Overrides:
getAlarmType
in class TagControl
- Returns:
- Alarm type. See
TagControl
for valid alarm type values: TagControl.ALARM_TYPE_NONE,TagControl.ALARM_TYPE_HIGH,TagControl.ALARM_TYPE_LOW,
TagControl.ALARM_TYPE_LEVEL,TagControl.ALARM_TYPE_HIGH_HIGH,TagControl.ALARM_TYPE_LOW_LOW
www.eWON.biz: Your Eyes Watching Over Net