public class ExternalTag extends AbstractGatewayTag
It's only used for execution (tag reference), so it shouldn't be browsable through the SQLTags system (you would browse the original source tag in the driving system).
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
driver |
protected DataType |
dType |
protected boolean |
isStale |
protected java.lang.String |
scanClass |
protected TagType |
tagType |
protected Quality |
trueQuality |
protected TagValue |
value |
RUNTIME_PROPERTIES, tagChangeListener
Constructor and Description |
---|
ExternalTag(ExternalTag copy) |
ExternalTag(TagType tagType) |
Modifier and Type | Method and Description |
---|---|
protected TagValue |
coerceAndCheck(TagValue incoming)
Converts the incoming value to the tag's data type.
|
void |
configure(Tag def) |
void |
evaluate()
Evaluates the tag for any outstanding changes.
|
void |
evaluateHistory(TagEvaluationContext context) |
AccessRightsType |
getAccessRights()
Gets the type of access rights for this tag
|
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.
|
DataType |
getDataType()
Returns the datatype of this tag's value property
|
TagPermissionsModel |
getPermissionModel()
Returns this tags permission model, if any
|
TagType |
getType()
Returns the type of this tag.
|
TagValue |
getValue()
Returns the value in qualified form- along with quality and timestamp.
|
void |
initialize(TagInitializationContext context)
ExecutableTag
|
boolean |
isAlarmingSupported()
Returns true if this tag supports alarming, false otherwise
|
boolean |
isEnabled()
Returns the enabled bit for this tag
|
boolean |
isEvaluated() |
boolean |
isWritable()
Returns whether or not a tag can be written to.
|
void |
resetEvaluation() |
void |
sampleDiagnostics(DiagnosticsSample sample)
Provides the sample upon which the object can set diagnostics information.
|
protected void |
setCurrentValue(TagValue value,
boolean internal) |
void |
setStale(boolean isStale) |
boolean |
supportsCurrentValueUpdate()
Returns whether the current value can be set directly.
|
void |
unInitialize(TagUninitializeContext context) |
void |
updateCurrentValue(TagValue value)
Updates the current value, if supportsCurrentValueUpdate is true.
|
void |
write(TagWriteContext context,
AsyncWriteRequest<TagPath> value)
This function can be called at any time to write a value to the tag.
|
compareTo, createTagChangeEvent, fireChangeEvent, fireChangeEvent, getConfigProvider, getEntityId, getEventScripts, getExecutor, getName, getTagChangeListener, getTagLogger, getTagPath, setConfigProvider, setEntityId, setExecutor, setTagChangeListener, setTagChangeListener, setTagPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAttribute
protected TagType tagType
protected boolean isStale
protected Quality trueQuality
protected TagValue value
protected DataType dType
protected java.lang.String scanClass
protected java.lang.String driver
public ExternalTag(TagType tagType)
public ExternalTag(ExternalTag copy)
public boolean isEnabled()
Tag
public TagValue getValue()
Tag
public void configure(Tag def)
configure
in class AbstractGatewayTag
public void setStale(boolean isStale)
public void updateCurrentValue(TagValue value)
ExecutableTag
protected void setCurrentValue(TagValue value, boolean internal)
protected TagValue coerceAndCheck(TagValue incoming)
public TagType getType()
Tag
public DataType getDataType()
Tag
public TagValue getAttribute(TagProp prop)
AbstractGatewayTag
getAttribute
in interface Tag
getAttribute
in class AbstractGatewayTag
public boolean supportsCurrentValueUpdate()
ExecutableTag
public void sampleDiagnostics(DiagnosticsSample sample)
Diagnosable
public void initialize(TagInitializationContext context)
ExecutableTag
public void unInitialize(TagUninitializeContext context)
public boolean isEvaluated()
public void resetEvaluation()
public void evaluate()
ExecutableTag
public void evaluateHistory(TagEvaluationContext context)
public boolean isWritable()
ExecutableTag
public void write(TagWriteContext context, AsyncWriteRequest<TagPath> value)
ExecutableTag
value
- WriteValue to be used. The function can set the write value response
right away to indicate the write has be completed, or it can process it and pass
it on to the context or some other function.public AccessRightsType getAccessRights()
Tag
public TagPermissionsModel getPermissionModel()
Tag
public AlarmConfiguration getAlarmStates()
Tag
getAlarmStates
in interface Tag
getAlarmStates
in class AbstractGatewayTag
public boolean isAlarmingSupported()
Tag