public abstract class AbstractGatewayTag extends java.lang.Object implements ExecutableTag
Modifier and Type | Field and Description |
---|---|
protected static java.util.EnumSet<TagProp> |
RUNTIME_PROPERTIES |
protected TagChangeListener |
tagChangeListener |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGatewayTag() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Tag that) |
void |
configure(Tag def) |
protected TagChangeEvent |
createTagChangeEvent(TagProp prop,
int[] indexes) |
protected void |
fireChangeEvent(TagProp prop) |
protected void |
fireChangeEvent(TagProp prop,
int[] indexes) |
AlarmConfiguration |
getAlarmStates()
Returns the list of alarm states for this tag
|
TagValue |
getAttribute(TagProp prop)
Subclasses can override this to provide more efficient or complete implementations.
|
TagConfigProvider |
getConfigProvider() |
EntityId |
getEntityId() |
TagEventScripts |
getEventScripts() |
TagExecutor |
getExecutor() |
java.lang.String |
getName()
Returns the name of the tag.
|
TagChangeListener |
getTagChangeListener()
Returns the current listener - used for transferring listeners when swapping out tags.
|
protected org.apache.log4j.Logger |
getTagLogger() |
TagPath |
getTagPath()
Returns the path of the tag, mainly used for error reporting purposes.
|
void |
setConfigProvider(TagConfigProvider value) |
void |
setEntityId(EntityId entityId) |
void |
setExecutor(TagExecutor owner) |
void |
setTagChangeListener(TagChangeListener listener)
Right now we only allow 1 change listener per GatewayTag (it ought to be enough for anyone, right?)
|
void |
setTagPath(TagPath path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, evaluateHistory, initialize, isEvaluated, isWritable, resetEvaluation, setAttribute, supportsCurrentValueUpdate, unInitialize, updateCurrentValue, write
getAccessRights, getDataType, getPermissionModel, getType, getValue, isAlarmingSupported, isEnabled
sampleDiagnostics
protected static final java.util.EnumSet<TagProp> RUNTIME_PROPERTIES
protected TagChangeListener tagChangeListener
public void setExecutor(TagExecutor owner)
setExecutor
in interface ExecutableTag
public TagExecutor getExecutor()
getExecutor
in interface ExecutableTag
protected org.apache.log4j.Logger getTagLogger()
public void configure(Tag def)
public TagPath getTagPath()
GatewayTag
getTagPath
in interface GatewayTag
public void setTagPath(TagPath path)
public java.lang.String getName()
Tag
public EntityId getEntityId()
getEntityId
in interface ExecutableTag
public void setEntityId(EntityId entityId)
public void setConfigProvider(TagConfigProvider value)
setConfigProvider
in interface ExecutableTag
public TagConfigProvider getConfigProvider()
getConfigProvider
in interface ExecutableTag
public void setTagChangeListener(TagChangeListener listener)
GatewayTag
setTagChangeListener
in interface GatewayTag
public TagValue getAttribute(TagProp prop)
getAttribute
in interface Tag
public AlarmConfiguration getAlarmStates()
Tag
getAlarmStates
in interface Tag
public TagEventScripts getEventScripts()
getEventScripts
in interface Tag
public TagChangeListener getTagChangeListener()
GatewayTag
getTagChangeListener
in interface GatewayTag
protected void fireChangeEvent(TagProp prop)
protected void fireChangeEvent(TagProp prop, int[] indexes)
protected TagChangeEvent createTagChangeEvent(TagProp prop, int[] indexes)