com.ewon.ewonitf
Class EvtTagListener
java.lang.Object
com.ewon.ewonitf.TagControl
com.ewon.ewonitf.EvtTagListener
- All Implemented Interfaces:
- EvtListener
- Direct Known Subclasses:
- EvtTagAlarmListener, EvtTagValueListener
public abstract class EvtTagListener
- extends TagControl
- implements EvtListener
This is an abstract class from which EvtTagAlarmListener
and EvtTagValueListener
classes
are derived.
- 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 |
void |
call(int eventHandler,
String nullStr,
int tagId)
Internal use only, this will trigger execution of the user defined callTagChanged method. |
abstract void |
callTagChanged()
Must be user defined and will be called when the actual event will occur (tag change or alarm change). |
long |
getEventTime()
Return the date and time when the event occured. |
protected static int |
getTypeInfo(int eventHandler)
|
Methods inherited from class com.ewon.ewonitf.TagControl |
ackAlarm, ackAlarm, getAlarmStatus, getAlarmType, getTagId, getTagName, getTagValueAsDouble, getTagValueAsLong, logTag, setTagId, setTagName, setTagValueAsDouble, setTagValueAsInt, setTagValueAsLong |
mEventHandler
protected int mEventHandler
- Internal use
EvtTagListener
public EvtTagListener(TagControl tagControl)
EvtTagListener
public EvtTagListener(int RecordId)
EvtTagListener
public EvtTagListener(int RecordRefType,
int RecordRef)
throws EWException
- Throws:
EWException
EvtTagListener
public EvtTagListener(String RecordName)
throws EWException
- Throws:
EWException
EvtTagListener
public EvtTagListener()
callTagChanged
public abstract void callTagChanged()
- Must be user defined and will be called when the actual event will occur (tag change or alarm change).
getEventTime
public long getEventTime()
- Return the date and time when the event occured.
- Returns:
- The difference, measured in milliseconds, between the event time.
time and midnight, January 1, 1970 UTC. The
Calendar.setTimeInMillis(long)
function
can be used to help you manipulate this time.
call
public void call(int eventHandler,
String nullStr,
int tagId)
- Internal use only, this will trigger execution of the user defined callTagChanged method.
- Specified by:
call
in interface EvtListener
getTypeInfo
protected static int getTypeInfo(int eventHandler)
www.eWON.biz: Your Eyes Watching Over Net