Interface RationalNumberType
- All Superinterfaces:
BaseDataVariableType,BaseVariableType,org.eclipse.milo.opcua.sdk.core.nodes.Node,org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
- All Known Implementing Classes:
RationalNumberTypeNode
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegerGet the local value of the Denominator Node.Get the DenominatorBaseDataVariableTypeNode, ornullif it does not exist.CompletableFuture<? extends BaseDataVariableType>Asynchronous implementation ofgetDenominatorNode().Get the local value of the Numerator Node.Get the NumeratorBaseDataVariableTypeNode, ornullif it does not exist.CompletableFuture<? extends BaseDataVariableType>Asynchronous implementation ofgetNumeratorNode().org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegerRead the value of the Denominator Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger>An asynchronous implementation ofreadDenominator().Read the value of the Numerator Node from the server and update the local value if the operation succeeds.CompletableFuture<? extends Integer>An asynchronous implementation ofreadNumerator().voidsetDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) Set the local value of the Denominator Node.voidsetNumerator(Integer value) Set the local value of the Numerator Node.voidwriteDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) Write a new value for the Denominator Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeDenominatorAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) An asynchronous implementation ofwriteDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger).voidwriteNumerator(Integer value) Write a new value for the Numerator Node to the server and update the local value if the operation succeeds.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeNumeratorAsync(Integer value) An asynchronous implementation ofwriteNumerator(java.lang.Integer).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
-
Method Details
-
getNumerator
Get the local value of the Numerator Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Numerator Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Numerator Node.
-
setNumerator
Set the local value of the Numerator Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Numerator Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Numerator Node.
-
readNumerator
Read the value of the Numerator Node from the server and update the local value if the operation succeeds.- Returns:
- the
Integervalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeNumerator
Write a new value for the Numerator Node to the server and update the local value if the operation succeeds.- Parameters:
value- theIntegervalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readNumeratorAsync
CompletableFuture<? extends Integer> readNumeratorAsync()An asynchronous implementation ofreadNumerator().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeNumeratorAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNumeratorAsync(Integer value) An asynchronous implementation ofwriteNumerator(java.lang.Integer).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getNumeratorNode
Get the NumeratorBaseDataVariableTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Numerator
BaseDataVariableTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getNumeratorNodeAsync
CompletableFuture<? extends BaseDataVariableType> getNumeratorNodeAsync()Asynchronous implementation ofgetNumeratorNode().- Returns:
- a CompletableFuture that completes successfully with the BaseDataVariableType Node or completes exceptionally if an error occurs creating or getting the Node.
-
getDenominator
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getDenominator() throws org.eclipse.milo.opcua.stack.core.UaExceptionGet the local value of the Denominator Node.The returned value is the last seen; it is not read live from the server.
- Returns:
- the local value of the Denominator Node.
- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Denominator Node.
-
setDenominator
void setDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException Set the local value of the Denominator Node.The value is only updated locally; it is not written to the server.
- Parameters:
value- the local value to set for the Denominator Node.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Denominator Node.
-
readDenominator
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger readDenominator() throws org.eclipse.milo.opcua.stack.core.UaExceptionRead the value of the Denominator Node from the server and update the local value if the operation succeeds.- Returns:
- the
UIntegervalue read from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeDenominator
void writeDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException Write a new value for the Denominator Node to the server and update the local value if the operation succeeds.- Parameters:
value- theUIntegervalue to write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readDenominatorAsync
CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> readDenominatorAsync()An asynchronous implementation ofreadDenominator().- Returns:
- a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
-
writeDenominatorAsync
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeDenominatorAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) An asynchronous implementation ofwriteDenominator(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger).- Returns:
- a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
-
getDenominatorNode
Get the DenominatorBaseDataVariableTypeNode, ornullif it does not exist.The Node is created when first accessed and cached for subsequent calls.
- Returns:
- the Denominator
BaseDataVariableTypeNode, ornullif it does not exist. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs creating or getting the Node.
-
getDenominatorNodeAsync
CompletableFuture<? extends BaseDataVariableType> getDenominatorNodeAsync()Asynchronous implementation ofgetDenominatorNode().- Returns:
- a CompletableFuture that completes successfully with the BaseDataVariableType Node or completes exceptionally if an error occurs creating or getting the Node.
-