public class UaObjectImpl extends UaInstanceImpl implements UaObject
UaObject.
It keeps all attributes in memory.
UaNode.ParametersaddressSpace, references, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
UaObjectImpl(AddressSpace addressSpace,
NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
AttributeWriteMask writeMask,
AttributeWriteMask userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
EventNotifierType eventNotifier) |
|
UaObjectImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName)
Create a new object node
|
|
UaObjectImpl(AddressSpace addressSpace,
NodeId nodeId,
String name,
Locale locale)
Create a new object node with name.
|
protected |
UaObjectImpl(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
UaReference |
addComponent(UaNode node)
Adds a new component to the Object.
|
protected <T> T |
call(NodeId methodId,
MethodArgumentTransformer<T> outputTransformer,
Object... inputArgs)
Helper method for generated code.
|
Variant[] |
call(NodeId methodId,
Object... args)
Call a method for this object in the server.
|
Variant[] |
call(NodeId methodId,
Variant[] variantArgs)
Call a method for this object in the server.
|
protected <T> AsyncResult<T> |
callAsync(NodeId methodId,
MethodArgumentTransformer<T> outputTransformer,
Object... inputArgs)
Helper method for generated code.
|
AsyncResult<Object[]> |
callAsync(NodeId nodeId,
Object... inputArgs)
Call a method on the object asynchronously.
|
AsyncResult<Object[]> |
callAsync(NodeId methodId,
Variant[] variantArgs)
Call a method for this object in the server.
|
Object[] |
callMethod(NodeId methodId,
Object... inputArgs)
Call a method on the object.
|
NodeAttributes |
getAttributes()
Returns the current attribute values of the node in a NodeAttributes structure.
|
protected NodeAttributes |
getAttributes(ObjectAttributes attributes) |
protected void |
getAttributesMap(Map<UnsignedInteger,Object> map) |
EventNotifierType |
getEventNotifier()
Defines whether the node can be used to subscribe to events.
|
UaProperty |
getIcon()
The Icon Property provides an image that can be used by clients when displaying the Node.
|
NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
setAttributes(ObjectAttributes objectAttributes) |
void |
setEventNotifier(EventNotifierType eventNotifier)
Define which kind of events the object generates.
|
void |
setIcon(UaProperty icon)
Set the value of the Icon property.
|
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
getTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionIdaddProperties, addProperty, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, assertTypeSupport, assertTypeSupport, beforeAddReference, deleteReference, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, equals, findPlaceholders, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeId, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyValue, getReference, getReferenceList, getReferences, getSupportedAttributes, getUaNodeId, getUserWriteMask, getWriteMask, hashCode, hasProperty, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, referenceTypeInherits, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributegetForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionIdaddOrganizes, addProperty, 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, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaObjectImpl(AddressSpace addressSpace, NodeId nodeId, NodeClass nodeClass, QualifiedName browseName, LocalizedText displayName, LocalizedText description, AttributeWriteMask writeMask, AttributeWriteMask userWriteMask, UaClientReference[] references, UaProperty[] properties, EventNotifierType eventNotifier)
public UaObjectImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
nodeId - The node identifierbrowseName - The BrowseName of the nodedisplayName - The DisplayName of the nodepublic UaObjectImpl(AddressSpace addressSpace, NodeId nodeId, String name, Locale locale)
nodeId - The node identifiername - The browse and display name of the object. The NamespaceIndex of the nodeId is also
used for the BrowseName.locale - The locale of the name, used for the DisplayNameprotected UaObjectImpl(UaNode.Parameters parameters)
public UaReference addComponent(UaNode node) throws IllegalArgumentException
addComponent in interface UaNodeaddComponent in class UaNodeImplnode - the component nodeIllegalArgumentException - if the node is not of the correct class (see above)UaNode.addReference(UaNode, NodeId, boolean)public Variant[] call(NodeId methodId, Object... args) throws MethodCallStatusException, ServiceException
This is a shortcut to UaClient.call(NodeId, NodeId, Variant...).
methodId - the method to callargs - values for the method input arguments: they will be converted to variants before
making the call.ServiceException - if the call fails due to connection problems, etc.MethodCallStatusException - if the call fails due to invalid arguments or something like
that.public Variant[] call(NodeId methodId, Variant[] variantArgs) throws ServiceException, MethodCallStatusException
This is a shortcut to UaClient.call(NodeId, NodeId, Variant...).
methodId - the method to callvariantArgs - values for the method input argumentsServiceException - if the call fails due to connection problems, etc.MethodCallStatusException - if the call fails due to invalid arguments or something like
that.public AsyncResult<Object[]> callAsync(NodeId nodeId, Object... inputArgs)
methodId - id of the methodinputArgs - input arguments for the method callpublic AsyncResult<Object[]> callAsync(NodeId methodId, Variant[] variantArgs)
This is a shortcut to UaClient.call(NodeId, NodeId, Variant...).
methodId - the method to callvariantArgs - values for the method input argumentspublic Object[] callMethod(NodeId methodId, Object... inputArgs) throws MethodCallStatusException, ServiceException
callMethod in interface UaObjectmethodId - id of the methodinputArgs - input arguments for the method callServiceException - if the call fails due to connection problems, etc.MethodCallStatusException - if the call fails due to invalid arguments or something like
that.public NodeAttributes getAttributes()
UaNodegetAttributes in interface UaNodepublic EventNotifierType getEventNotifier()
UaObject| Value | Description |
|---|---|
| SubscribeToEvents | Indicates if it can be used to subscribe to Events (0 means cannot be used to subscribe to Events, 1 means can be used to subscribe to Events). |
| HistoryRead | Indicates if the history of the Events is readable (0 means not readable, 1 means readable). |
| HistoryWrite | Indicates if the history of the Events is writable (0 means not writable, 1 means writable). |
getEventNotifier in interface UaObjectpublic UaProperty getIcon()
UaObjectpublic final NodeClass getNodeClass()
UaNodegetNodeClass in interface UaNodegetNodeClass in class UaNodeImplpublic void setAttributes(ObjectAttributes objectAttributes)
public void setEventNotifier(EventNotifierType eventNotifier)
UaObjectsetEventNotifier in interface UaObjecteventNotifier - the set of event types that the object generatespublic void setIcon(UaProperty icon) throws StatusException
UaObjectsetIcon in interface UaObjecticon - the Icon to setStatusExceptionUaObject.getIcon()public String toString()
toString in class UaInstanceImplprotected <T> T call(NodeId methodId, MethodArgumentTransformer<T> outputTransformer, Object... inputArgs) throws MethodCallStatusException, ServiceException
protected <T> AsyncResult<T> callAsync(NodeId methodId, MethodArgumentTransformer<T> outputTransformer, Object... inputArgs)
protected NodeAttributes getAttributes(ObjectAttributes attributes)
protected void getAttributesMap(Map<UnsignedInteger,Object> map)
getAttributesMap in class UaNodeImplprotected void initSupportedAttributes(List<UnsignedInteger> l)
initSupportedAttributes in class UaNodeImplprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
UaNodeImplreadAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - on failureprotected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class UaNodeImplStatusExceptionCopyright © 2026. All rights reserved.