Class TagListener
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.TagListener
-
- All Implemented Interfaces:
TagChangeListener
,java.util.EventListener
- Direct Known Subclasses:
ExpressionBindingTagListener
public class TagListener extends java.lang.Object implements TagChangeListener
A class that can listen for tag changes and notify an InteractionListener. It also holds the last value seen internally and will serialize it.
-
-
Constructor Summary
Constructors Constructor Description TagListener()
TagListener(TagPath path, QualifiedValue qv)
TagListener(TagPath path, java.lang.Object value, QualityCode quality)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TagPath
_getTagPath()
void
_setTagPath(TagPath path)
protected TagManager
getTagManager()
java.lang.String
getTagPath()
QualifiedValue
getTagQualifiedValue()
protected void
reSubscribe()
void
setQValue(BasicQualifiedValue bqv)
Deprecated.void
setQValue(BasicQualifiedValue bqv)
Deprecated.void
setQValue(BasicTagValue btv)
Deprecated.void
setTagPath(java.lang.String tagPath)
void
setTagQualifiedValue(QualifiedValue value)
void
setTagValue(BasicTagValue value)
Deprecated.void
shutdown()
void
startup(CommonContext context, InteractionListener listener)
void
tagChanged(TagChangeEvent e)
Invoked when the tag has changed-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.tags.model.event.TagChangeListener
getSecurityContext, isLightweight
-
-
-
-
Constructor Detail
-
TagListener
public TagListener(TagPath path, java.lang.Object value, QualityCode quality)
-
TagListener
public TagListener(TagPath path, QualifiedValue qv)
-
TagListener
public TagListener()
-
-
Method Detail
-
tagChanged
public void tagChanged(TagChangeEvent e)
Description copied from interface:TagChangeListener
Invoked when the tag has changed- Specified by:
tagChanged
in interfaceTagChangeListener
- Parameters:
e
- a ChangeEvent object
-
startup
public void startup(CommonContext context, InteractionListener listener)
-
shutdown
public void shutdown()
-
reSubscribe
protected void reSubscribe()
-
getTagManager
protected TagManager getTagManager()
-
_getTagPath
public TagPath _getTagPath()
-
_setTagPath
public void _setTagPath(TagPath path)
-
getTagPath
public java.lang.String getTagPath()
-
setTagPath
public void setTagPath(java.lang.String tagPath)
-
getTagQualifiedValue
public QualifiedValue getTagQualifiedValue()
-
setTagQualifiedValue
public void setTagQualifiedValue(QualifiedValue value)
-
setTagValue
@Deprecated public void setTagValue(BasicTagValue value)
Deprecated.
-
setQValue
@Deprecated public void setQValue(BasicTagValue btv)
Deprecated.
-
setQValue
@Deprecated public void setQValue(BasicQualifiedValue bqv)
Deprecated.
-
setQValue
@Deprecated public void setQValue(BasicQualifiedValue bqv)
Deprecated.
-
-