eWON JTK

com.ewon.ewonitf
Class EvtTagValueListener

java.lang.Object
  extended by com.ewon.ewonitf.TagControl
      extended by com.ewon.ewonitf.EvtTagListener
          extended by com.ewon.ewonitf.EvtTagValueListener
All Implemented Interfaces:
EvtListener

public abstract class EvtTagValueListener
extends EvtTagListener

This is an abstract class from which user's tag value 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
EvtTagValueListener()
           
EvtTagValueListener(int RecordId)
           
EvtTagValueListener(int RecordRefType, int RecordRef)
           
EvtTagValueListener(String RecordName)
           
EvtTagValueListener(TagControl tagControl)
          Creates a new instance of EvtTagListener
 
Method Summary
 double getChangedValueAsDouble()
          Value of tag at the time the vent occured.
 int getTagValueType()
          The tag 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, 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
 

Constructor Detail

EvtTagValueListener

public EvtTagValueListener(TagControl tagControl)
Creates a new instance of EvtTagListener


EvtTagValueListener

public EvtTagValueListener(int RecordId)

EvtTagValueListener

public EvtTagValueListener(int RecordRefType,
                           int RecordRef)
                    throws EWException
Throws:
EWException

EvtTagValueListener

public EvtTagValueListener(String RecordName)
                    throws EWException
Throws:
EWException

EvtTagValueListener

public EvtTagValueListener()
Method Detail

getTagValueType

public int getTagValueType()
The tag type at the time the event occured. This is probably the same as the TagControl tag type, except if configuration has changed between the moment the tag changed and the moment the callTagChanged listener is called.

Returns:
The tag type.

getChangedValueAsDouble

public double getChangedValueAsDouble()
Value of tag at the time the vent occured.

Returns:
The tag value converted to double.

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net