Interface DataItemType
- All Superinterfaces:
BaseDataVariableType,BaseVariableType,org.eclipse.milo.opcua.sdk.core.nodes.Node,org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
- All Known Subinterfaces:
AnalogItemType,AnalogUnitRangeType,AnalogUnitType,ArrayItemType,BaseAnalogType,CubeItemType,DiscreteItemType,ImageItemType,MultiStateDictionaryEntryDiscreteBaseType,MultiStateDictionaryEntryDiscreteType,MultiStateDiscreteType,MultiStateValueDiscreteType,NDimensionArrayItemType,TwoStateDiscreteType,XYArrayItemType,YArrayItemType
- All Known Implementing Classes:
AnalogItemTypeNode,AnalogUnitRangeTypeNode,AnalogUnitTypeNode,ArrayItemTypeNode,BaseAnalogTypeNode,CubeItemTypeNode,DataItemTypeNode,DiscreteItemTypeNode,ImageItemTypeNode,MultiStateDictionaryEntryDiscreteBaseTypeNode,MultiStateDictionaryEntryDiscreteTypeNode,MultiStateDiscreteTypeNode,MultiStateValueDiscreteTypeNode,NDimensionArrayItemTypeNode,TwoStateDiscreteTypeNode,XYArrayItemTypeNode,YArrayItemTypeNode
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the local value of the Definition Node.Get the DefinitionPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetDefinitionNode().Get the local value of the ValuePrecision Node.Get the ValuePrecisionPropertyTypeNode, ornullif it does not exist.CompletableFuture<? extends PropertyType>Asynchronous implementation ofgetValuePrecisionNode().Read the value of the Definition Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends String>An asynchronous implementation ofreadDefinition().Read the value of the ValuePrecision Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends Double>An asynchronous implementation ofreadValuePrecision().voidsetDefinition(String value) Set the local value of the Definition Node.voidsetValuePrecision(Double value) Set the local value of the ValuePrecision Node.voidwriteDefinition(String value) Write a new value for the Definition Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeDefinitionAsync(String value) An asynchronous implementation ofwriteDefinition(java.lang.String).voidwriteValuePrecision(Double value) Write a new value for the ValuePrecision Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeValuePrecisionAsync(Double value) An asynchronous implementation ofwriteValuePrecision(java.lang.Double).Methods 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.VariableNode
getAccessLevel, getAccessLevelEx, getArrayDimensions, getDataType, getHistorizing, getMinimumSamplingInterval, getUserAccessLevel, getValue, getValueRank, setAccessLevel, setAccessLevelEx, setArrayDimensions, setDataType, setHistorizing, setMinimumSamplingInterval, setUserAccessLevel, setValue, setValueRank
-
Field Details
-
DEFINITION
-
VALUE_PRECISION
-
-
Method Details
-
getDefinition
Get the local value of the Definition Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Definition Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Definition Node.
-
setDefinition
Set the local value of the Definition Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Definition Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Definition Node.
-
readDefinition
Read the value of the Definition Node from the server and update the local value if the operation succeeds.- Returns:
- the
Stringvalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeDefinition
Write a new value for the Definition Node to the server and update the local value if the operation succeeds.- Parameters:
value- theStringvalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readDefinitionAsync
CompletableFuture<? extends String> readDefinitionAsync()An asynchronous implementation ofreadDefinition().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeDefinitionAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeDefinitionAsync(String value) An asynchronous implementation ofwriteDefinition(java.lang.String).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getDefinitionNode
Get the DefinitionPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Definition
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getDefinitionNodeAsync
CompletableFuture<? extends PropertyType> getDefinitionNodeAsync()Asynchronous implementation ofgetDefinitionNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getValuePrecision
Get the local value of the ValuePrecision Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the ValuePrecision Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the ValuePrecision Node.
-
setValuePrecision
Set the local value of the ValuePrecision Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the ValuePrecision Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the ValuePrecision Node.
-
readValuePrecision
Read the value of the ValuePrecision Node from the server and update the local value if the operation succeeds.- Returns:
- the
Doublevalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeValuePrecision
Write a new value for the ValuePrecision Node to the server and update the local value if the operation succeeds.- Parameters:
value- theDoublevalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readValuePrecisionAsync
CompletableFuture<? extends Double> readValuePrecisionAsync()An asynchronous implementation ofreadValuePrecision().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeValuePrecisionAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeValuePrecisionAsync(Double value) An asynchronous implementation ofwriteValuePrecision(java.lang.Double).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getValuePrecisionNode
Get the ValuePrecisionPropertyTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the ValuePrecision
PropertyTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getValuePrecisionNodeAsync
CompletableFuture<? extends PropertyType> getValuePrecisionNodeAsync()Asynchronous implementation ofgetValuePrecisionNode().- Returns:
- a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
-