eWON JTK

com.ewon.ewonitf
Class EvtTagAlarmListener

java.lang.Object
  extended by com.ewon.ewonitf.TagControl
      extended by com.ewon.ewonitf.EvtTagListener
          extended by 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

Field Summary
 
Fields inherited from class com.ewon.ewonitf.EvtTagListener
mEventHandler
 
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
 
Constructor Summary
EvtTagAlarmListener()
           
EvtTagAlarmListener(int RecordId)
           
EvtTagAlarmListener(int RecordRefType, int RecordRef)
           
EvtTagAlarmListener(String RecordName)
           
EvtTagAlarmListener(TagControl tagControl)
          Creates a new instance of EvtTagListener
 
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.EvtTagListener
call, callTagChanged, getEventTime, getTypeInfo
 
Methods inherited from class com.ewon.ewonitf.TagControl
ackAlarm, ackAlarm, getTagId, getTagName, getTagValueAsDouble, getTagValueAsLong, logTag, setTagId, setTagName, setTagValueAsDouble, setTagValueAsInt, setTagValueAsLong
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net