public class CallbackInstanceVariable extends InstanceVariable
InstanceVariable. The variable will retrieve the current value using
a callback method only.UaNode.Parameters| Modifier and Type | Field and Description |
|---|---|
protected UaVariableCallback |
callback |
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Constructor and Description |
|---|
CallbackInstanceVariable(NodeManagerUaNode nodeManager,
NodeId nodeId,
NodeId instanceDeclarationId)
Create a new node, referring to an instance declaration node.
|
CallbackInstanceVariable(NodeManagerUaNode nodeManager,
NodeId nodeId,
UaVariable instanceDeclaration)
Create a new node, referring to an instance declaration node.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSetValue(DataValue value)
Perform the actual value set.
|
UaVariableCallback |
getCallback() |
DataValue |
getValue() |
void |
setCallback(UaVariableCallback callback) |
addReference, beforeAddReference, deleteReference, getAccessLevel, getArrayDimensions, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDataType, getDataTypeId, getDescription, getDisplayName, getHistorizing, getMethod, getMinimumSamplingInterval, getNodeClass, getNodeVersionNode, getProperties, getProperty, getPropertyTypeNode, getReference, getReferencesAsList, getStatus, getTypeDefinition, getTypeDefinitionId, getTypeDefinitionReference, getUserAccessLevel, getUserWriteMask, getValueRank, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAccessLevel, setArrayDimensions, setAttribute, setAttributes, setBrowseName, setDataType, setDataTypeId, setDescription, setDisplayName, setHistorizing, setMinimumSamplingInterval, setReferences, setStatus, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId, setUserAccessLevel, setUserWriteMask, setValue, setValue, setValueRank, setWriteMask, writeAttributeaddComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getNodeSetExtensions, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, getUaNodeId, hashCode, hasReference, initSupportedAttributes, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setNodeSetExtensions, supportsAttribute, toString, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain, writeAttributeValuegetForwardReferences, getInverseReferences, getReferences, getReferences, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddDataChangeListener, removeDataChangeListeneraddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getBrowsePaths, getForwardReferences, getInverseReferences, getNodeId, getOrganizedNode, getOrganizedNodes, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, setUserData, supportsAttributeprotected UaVariableCallback callback
public CallbackInstanceVariable(NodeManagerUaNode nodeManager, NodeId nodeId, NodeId instanceDeclarationId) throws StatusException
nodeManager - The node manager to which the node is created.nodeId - The ID of the new node.instanceDeclarationId - The ID of the instance declaration node, which this node is
referring to. I.e. the same variable or property as this one, but under the type,
instead of the instance.StatusException - if instanceDeclarationId cannot be converted to a variable nodepublic CallbackInstanceVariable(NodeManagerUaNode nodeManager, NodeId nodeId, UaVariable instanceDeclaration)
nodeManager - The node manager to which the node is created.nodeId - The ID of the new node.instanceDeclaration - The instance declaration node, which this node is referring to. I.e.
the same variable or property as this one, but under the type, instead of the instance.public UaVariableCallback getCallback()
public DataValue getValue()
public void setCallback(UaVariableCallback callback)
protected void doSetValue(DataValue value) throws StatusException
InstanceVariabledoSetValue in class InstanceVariableStatusExceptionCopyright © 2026. All rights reserved.