public interface ExecutableTag extends GatewayTag, Diagnosable
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluates the tag for any outstanding changes.
|
void |
evaluateHistory(TagEvaluationContext context) |
TagConfigProvider |
getConfigProvider() |
EntityId |
getEntityId() |
TagExecutor |
getExecutor() |
void |
initialize(TagInitializationContext context)
ExecutableTag
|
boolean |
isEvaluated() |
boolean |
isWritable()
Returns whether or not a tag can be written to.
|
void |
resetEvaluation() |
default void |
setAttribute(TagProp property,
TagValue value)
This function should only be called when updates are received from redundancy, or we don't want the value to propagate back to redundancy.
|
void |
setConfigProvider(TagConfigProvider value) |
void |
setExecutor(TagExecutor value) |
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.
|
getTagChangeListener, getTagPath, setTagChangeListener
getAccessRights, getAlarmStates, getAttribute, getDataType, getEventScripts, getName, getPermissionModel, getType, getValue, isAlarmingSupported, isEnabled
sampleDiagnostics
EntityId getEntityId()
void initialize(TagInitializationContext context)
void unInitialize(TagUninitializeContext context)
void setExecutor(TagExecutor value)
TagConfigProvider getConfigProvider()
void setConfigProvider(TagConfigProvider value)
TagExecutor getExecutor()
boolean isEvaluated()
void resetEvaluation()
void evaluate()
void evaluateHistory(TagEvaluationContext context)
boolean isWritable()
boolean supportsCurrentValueUpdate()
void updateCurrentValue(TagValue value)
value
- void write(TagWriteContext context, AsyncWriteRequest<TagPath> value)
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.default void setAttribute(TagProp property, TagValue value)
property
- value
-