Class UnitTypeNode
java.lang.Object
org.eclipse.milo.opcua.sdk.client.nodes.UaNode
org.eclipse.milo.opcua.sdk.client.nodes.UaObjectNode
org.eclipse.milo.opcua.sdk.client.model.objects.BaseObjectTypeNode
org.eclipse.milo.opcua.sdk.client.model.objects.UnitTypeNode
- All Implemented Interfaces:
BaseObjectType,UnitType,org.eclipse.milo.opcua.sdk.core.nodes.Node,org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode
- Direct Known Subclasses:
AlternativeUnitTypeNode,ServerUnitTypeNode
-
Field Summary
Fields inherited from interface org.eclipse.milo.opcua.sdk.client.model.objects.UnitType
DISCIPLINE, SYMBOL, UNIT_SYSTEM -
Constructor Summary
ConstructorsConstructorDescriptionUnitTypeNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier) -
Method Summary
Modifier and TypeMethodDescriptionGet the local value of the Discipline Node.Get the DisciplinePropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyTypeNode>Asynchronous implementation ofUnitType.getDisciplineNode().org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextGet the local value of the Symbol Node.Get the SymbolPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyTypeNode>Asynchronous implementation ofUnitType.getSymbolNode().Get the local value of the UnitSystem Node.Get the UnitSystemPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyTypeNode>Asynchronous implementation ofUnitType.getUnitSystemNode().Read the value of the Discipline Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends String>An asynchronous implementation ofUnitType.readDiscipline().org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextRead the value of the Symbol Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText>An asynchronous implementation ofUnitType.readSymbol().Read the value of the UnitSystem Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends String>An asynchronous implementation ofUnitType.readUnitSystem().voidsetDiscipline(String value) Set the local value of the Discipline Node.voidsetSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) Set the local value of the Symbol Node.voidsetUnitSystem(String value) Set the local value of the UnitSystem Node.voidwriteDiscipline(String value) Write a new value for the Discipline Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeDisciplineAsync(String discipline) An asynchronous implementation ofUnitType.writeDiscipline(java.lang.String).voidwriteSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) Write a new value for the Symbol Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeSymbolAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText symbol) An asynchronous implementation ofUnitType.writeSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText).voidwriteUnitSystem(String value) Write a new value for the UnitSystem Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeUnitSystemAsync(String unitSystem) An asynchronous implementation ofUnitType.writeUnitSystem(java.lang.String).Methods inherited from class org.eclipse.milo.opcua.sdk.client.nodes.UaObjectNode
callMethod, callMethod, callMethodAsync, callMethodAsync, getAttributeValue, getEventNotifier, getIconAsync, getMethod, getMethod, getMethodAsync, getMethodAsync, getNamingRuleAsync, getNodeVersionAsync, getObjectComponent, getObjectComponent, getObjectComponent, getObjectComponentAsync, getObjectComponentAsync, getObjectComponentAsync, getTypeDefinition, getTypeDefinitionAsync, getVariableComponent, getVariableComponent, getVariableComponent, getVariableComponentAsync, getVariableComponentAsync, getVariableComponentAsync, readEventNotifier, setAttributeValue, setEventNotifier, setIconAsync, setNamingRuleAsync, setNodeVersionAsync, writeEventNotifierMethods inherited from class org.eclipse.milo.opcua.sdk.client.nodes.UaNode
browse, browse, browseAsync, browseAsync, browseNodes, browseNodes, browseNodesAsync, browseNodesAsync, canonicalize, cast, findMemberNodeId, getAccessRestrictions, getBrowseName, getComponentAsync, getDescription, getDisplayName, getMemberNodeAsync, getNodeClass, getNodeId, getProperty, getPropertyNodeAsync, getPropertyNodeAsync, getRolePermissions, getUserRolePermissions, getUserWriteMask, getWriteMask, invalidate, readAccessRestrictions, readAttribute, readAttributeAsync, readBrowseName, readDescription, readDisplayName, readNamespaceIndex, readNodeClass, readNodeId, readProperty, readRolePermissions, readUserRolePermissions, readUserWriteMask, readWriteMask, refresh, refreshAsync, setAccessRestrictions, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setRolePermissions, setUserRolePermissions, setUserWriteMask, setWriteMask, synchronize, synchronizeAsync, writeAccessRestrictions, writeAttribute, writeAttributeAsync, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeProperty, writeRolePermissions, writeUserRolePermissions, writeUserWriteMask, writeWriteMaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.milo.opcua.sdk.core.nodes.Node
getAccessRestrictions, getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getRolePermissions, getUserRolePermissions, getUserWriteMask, getWriteMask, setAccessRestrictions, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setRolePermissions, setUserRolePermissions, setUserWriteMask, setWriteMaskMethods inherited from interface org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode
getEventNotifier, setEventNotifier
-
Constructor Details
-
UnitTypeNode
public UnitTypeNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)
-
-
Method Details
-
getSymbol
public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText getSymbol() throws org.eclipse.milo.opcua.stack.core.UaExceptionDescription copied from interface:UnitTypeGet the local value of the Symbol Node.The returned value is the last seen; it is not read live from the server.
-
setSymbol
public void setSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException Description copied from interface:UnitTypeSet the local value of the Symbol Node.The value is only updated locally; it is not written to the server.
-
readSymbol
public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText readSymbol() throws org.eclipse.milo.opcua.stack.core.UaExceptionDescription copied from interface:UnitTypeRead the value of the Symbol Node from the server and update the local value if the operation succeeds.- Specified by:
readSymbolin interfaceUnitType- Returns:
- the
LocalizedTextvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeSymbol
public void writeSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException Description copied from interface:UnitTypeWrite a new value for the Symbol Node to the server and update the local value if the operation succeeds.- Specified by:
writeSymbolin interfaceUnitType- Parameters:
value- theLocalizedTextvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readSymbolAsync
public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText> readSymbolAsync()Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.readSymbol().- Specified by:
readSymbolAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeSymbolAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeSymbolAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText symbol) Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.writeSymbol(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText).- Specified by:
writeSymbolAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getSymbolNode
Description copied from interface:UnitTypeGet the SymbolPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Specified by:
getSymbolNodein interfaceUnitType- Returns:
- the Symbol
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getSymbolNodeAsync
Description copied from interface:UnitTypeAsynchronous implementation ofUnitType.getSymbolNode().- Specified by:
getSymbolNodeAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getUnitSystem
Description copied from interface:UnitTypeGet the local value of the UnitSystem Node.The returned value is the last seen; it is not read live from the server.
- Specified by:
getUnitSystemin interfaceUnitType- Returns:
- the local value of the UnitSystem Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the UnitSystem Node.
-
setUnitSystem
Description copied from interface:UnitTypeSet the local value of the UnitSystem Node.The value is only updated locally; it is not written to the server.
- Specified by:
setUnitSystemin interfaceUnitType- Parameters:
value- the local value to set for the UnitSystem Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the UnitSystem Node.
-
readUnitSystem
Description copied from interface:UnitTypeRead the value of the UnitSystem Node from the server and update the local value if the operation succeeds.- Specified by:
readUnitSystemin interfaceUnitType- Returns:
- the
Stringvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeUnitSystem
Description copied from interface:UnitTypeWrite a new value for the UnitSystem Node to the server and update the local value if the operation succeeds.- Specified by:
writeUnitSystemin interfaceUnitType- Parameters:
value- theStringvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readUnitSystemAsync
Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.readUnitSystem().- Specified by:
readUnitSystemAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeUnitSystemAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeUnitSystemAsync(String unitSystem) Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.writeUnitSystem(java.lang.String).- Specified by:
writeUnitSystemAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getUnitSystemNode
Description copied from interface:UnitTypeGet the UnitSystemPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Specified by:
getUnitSystemNodein interfaceUnitType- Returns:
- the UnitSystem
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getUnitSystemNodeAsync
Description copied from interface:UnitTypeAsynchronous implementation ofUnitType.getUnitSystemNode().- Specified by:
getUnitSystemNodeAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getDiscipline
Description copied from interface:UnitTypeGet the local value of the Discipline Node.The returned value is the last seen; it is not read live from the server.
- Specified by:
getDisciplinein interfaceUnitType- Returns:
- the local value of the Discipline Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Discipline Node.
-
setDiscipline
Description copied from interface:UnitTypeSet the local value of the Discipline Node.The value is only updated locally; it is not written to the server.
- Specified by:
setDisciplinein interfaceUnitType- Parameters:
value- the local value to set for the Discipline Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Discipline Node.
-
readDiscipline
Description copied from interface:UnitTypeRead the value of the Discipline Node from the server and update the local value if the operation succeeds.- Specified by:
readDisciplinein interfaceUnitType- Returns:
- the
Stringvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeDiscipline
Description copied from interface:UnitTypeWrite a new value for the Discipline Node to the server and update the local value if the operation succeeds.- Specified by:
writeDisciplinein interfaceUnitType- Parameters:
value- theStringvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readDisciplineAsync
Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.readDiscipline().- Specified by:
readDisciplineAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeDisciplineAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeDisciplineAsync(String discipline) Description copied from interface:UnitTypeAn asynchronous implementation ofUnitType.writeDiscipline(java.lang.String).- Specified by:
writeDisciplineAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getDisciplineNode
Description copied from interface:UnitTypeGet the DisciplinePropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Specified by:
getDisciplineNodein interfaceUnitType- Returns:
- the Discipline
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getDisciplineNodeAsync
Description copied from interface:UnitTypeAsynchronous implementation ofUnitType.getDisciplineNode().- Specified by:
getDisciplineNodeAsyncin interfaceUnitType- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-