public class CacheVariable extends UaVariableNode
UaNode.ParameterssynchronizeStructuresNODE_VERSION_PROPERTY_NAME, useQuickPropertyLookupeventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
CacheVariable(NodeManagerUaNode nodeManager,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName)
Create a new cache variable.
|
|
CacheVariable(NodeManagerUaNode nodeManager,
NodeId nodeId,
String name,
Locale locale)
Create a new cache variable.
|
protected |
CacheVariable(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSetValue(DataValue value)
Perform the actual value set.
|
DataValue |
getValue() |
void |
updateValue(Object newValue)
Update the current value and status.
|
void |
updateValue(Object newValue,
StatusCode status,
DateTime sourceTime,
UnsignedShort sourcePicoseconds)
Update the current value and status.
|
addProperty, addReflectiveVariable, beforeAddReference, checkPropertyType, checkPropertyType, createDataValue, exposeStructureWithReflectiveVariables, getAccessLevel, getArrayDimensions, getAttributes, getAttributes, getAttributesMap, getDataType, getDataTypeId, getDefaultTypeDefinition, getHistorizing, getMinimumSamplingInterval, getNodeClass, getProperties, getStatus, getUserAccessLevel, getValueRank, hasUserWriteAccess, hasWriteAccess, initSupportedAttributes, isPropertyType, notifyValueChanging, notifyValueChanging, readAttributeValue, semanticsChanged, setAccessLevel, setArrayDimensions, setAttributes, setDataType, setDataTypeId, setHistorizing, setMinimumSamplingInterval, setStatus, setTypeDefinition, setTypeDefinitionId, setUserAccessLevel, setValue, setValue, setValueRank, structureChanged, toString, writeAttributeValueaddModellingRule, getTypeDefinition, getTypeDefinitionId, hasTypeDefinition, registerOverridePlainMethod, setTypeDefinitionId, supportsTypeDefinitionNodeaddPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionNode, getProperty, getPropertyReference, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setUserWriteMask, setWriteMask, writeAttributeaddComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addReference, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getNodeSetExtensions, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, getUaNodeId, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setNodeSetExtensions, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChaingetForwardReferences, getInverseReferences, getReferences, getReferences, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddDataChangeListener, removeDataChangeListenergetTypeDefinition, getTypeDefinitionId, setTypeDefinitionIdaddComponent, addOrganizes, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersionNode, getOrganizedNode, getOrganizedNodes, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic CacheVariable(NodeManagerUaNode nodeManager, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
nodeManager - the nodeManager to which the variable is addednodeId - the nodeId of the variablebrowseName - the browseName of the variabledisplayName - the displayName of the variablepublic CacheVariable(NodeManagerUaNode nodeManager, NodeId nodeId, String name, Locale locale)
nodeManager - the nodeManager to which the variable is addednodeId - the nodeId of the variablename - the name of the variablelocale - the locale of the DisplayName (which is equal to name)protected CacheVariable(UaNode.Parameters parameters)
public DataValue getValue()
public void updateValue(Object newValue) throws StatusException
UaVariableNodeupdateValue in class UaVariableNodenewValue - The new value for the variable. This should be of the correct DataType or a
Variant. Or it can be a DataValue, in which case, it is copied to value with a new
timestamp.StatusException - if newValue is not valid for the variablepublic void updateValue(Object newValue, StatusCode status, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
UaVariableNodeupdateValue in class UaVariableNodenewValue - The new value for the variable. This should be of the correct DataType or a
Variant. Or it can be a DataValue, in which case, it is copied to value with a new
timestamp.status - The new status for the variable.StatusException - if newValue is not valid for the variableprotected void doSetValue(DataValue value) throws StatusException
UaVariableNodedoSetValue in class UaVariableNodevalue - StatusExceptionCopyright © 2026. All rights reserved.