eWON JTK

com.ewon.ewonitf
Class EvtTagListener

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

Field Summary
protected  int mEventHandler
          Internal use
 
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
EvtTagListener()
           
EvtTagListener(int RecordId)
           
EvtTagListener(int RecordRefType, int RecordRef)
           
EvtTagListener(String RecordName)
           
EvtTagListener(TagControl tagControl)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mEventHandler

protected int mEventHandler
Internal use

Constructor Detail

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

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)

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net