All Implemented Interfaces:
BaseObjectType, QuantityType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode

public class QuantityTypeNode extends BaseObjectTypeNode implements QuantityType
  • Constructor Details

    • QuantityTypeNode

      public QuantityTypeNode(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.UaException
      Description copied from interface: QuantityType
      Get the local value of the Symbol Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getSymbol in interface QuantityType
      Returns:
      the local value of the Symbol Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Symbol Node.
    • 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: QuantityType
      Set the local value of the Symbol Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setSymbol in interface QuantityType
      Parameters:
      value - the local value to set for the Symbol Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Symbol Node.
    • readSymbol

      public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText readSymbol() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Read the value of the Symbol Node from the server and update the local value if the operation succeeds.
      Specified by:
      readSymbol in interface QuantityType
      Returns:
      the LocalizedText value 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: QuantityType
      Write a new value for the Symbol Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeSymbol in interface QuantityType
      Parameters:
      value - the LocalizedText value 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: QuantityType
      An asynchronous implementation of QuantityType.readSymbol().
      Specified by:
      readSymbolAsync in interface QuantityType
      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: QuantityType
      Specified by:
      writeSymbolAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getSymbolNode

      public PropertyTypeNode getSymbolNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the Symbol PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getSymbolNode in interface QuantityType
      Returns:
      the Symbol PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getSymbolNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getSymbolNodeAsync()
      Description copied from interface: QuantityType
      Asynchronous implementation of QuantityType.getSymbolNode().
      Specified by:
      getSymbolNodeAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
    • getAnnotation

      public org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[] getAnnotation() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the local value of the Annotation Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getAnnotation in interface QuantityType
      Returns:
      the local value of the Annotation Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Annotation Node.
    • setAnnotation

      public void setAnnotation(org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[] value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Set the local value of the Annotation Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setAnnotation in interface QuantityType
      Parameters:
      value - the local value to set for the Annotation Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Annotation Node.
    • readAnnotation

      public org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[] readAnnotation() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Read the value of the Annotation Node from the server and update the local value if the operation succeeds.
      Specified by:
      readAnnotation in interface QuantityType
      Returns:
      the AnnotationDataType value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeAnnotation

      public void writeAnnotation(org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[] value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Write a new value for the Annotation Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeAnnotation in interface QuantityType
      Parameters:
      value - the AnnotationDataType value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readAnnotationAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[]> readAnnotationAsync()
      Description copied from interface: QuantityType
      An asynchronous implementation of QuantityType.readAnnotation().
      Specified by:
      readAnnotationAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeAnnotationAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeAnnotationAsync(org.eclipse.milo.opcua.stack.core.types.structured.AnnotationDataType[] annotation)
      Description copied from interface: QuantityType
      Specified by:
      writeAnnotationAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getAnnotationNode

      public PropertyTypeNode getAnnotationNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the Annotation PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getAnnotationNode in interface QuantityType
      Returns:
      the Annotation PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getAnnotationNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getAnnotationNodeAsync()
      Description copied from interface: QuantityType
      Asynchronous implementation of QuantityType.getAnnotationNode().
      Specified by:
      getAnnotationNodeAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
    • getConversionService

      public String getConversionService() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the local value of the ConversionService Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getConversionService in interface QuantityType
      Returns:
      the local value of the ConversionService Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ConversionService Node.
    • setConversionService

      public void setConversionService(String value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Set the local value of the ConversionService Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setConversionService in interface QuantityType
      Parameters:
      value - the local value to set for the ConversionService Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ConversionService Node.
    • readConversionService

      public String readConversionService() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Read the value of the ConversionService Node from the server and update the local value if the operation succeeds.
      Specified by:
      readConversionService in interface QuantityType
      Returns:
      the String value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeConversionService

      public void writeConversionService(String value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Write a new value for the ConversionService Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeConversionService in interface QuantityType
      Parameters:
      value - the String value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readConversionServiceAsync

      public CompletableFuture<? extends String> readConversionServiceAsync()
      Description copied from interface: QuantityType
      An asynchronous implementation of QuantityType.readConversionService().
      Specified by:
      readConversionServiceAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeConversionServiceAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeConversionServiceAsync(String conversionService)
      Description copied from interface: QuantityType
      Specified by:
      writeConversionServiceAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getConversionServiceNode

      public PropertyTypeNode getConversionServiceNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the ConversionService PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getConversionServiceNode in interface QuantityType
      Returns:
      the ConversionService PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getConversionServiceNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getConversionServiceNodeAsync()
      Description copied from interface: QuantityType
      Asynchronous implementation of QuantityType.getConversionServiceNode().
      Specified by:
      getConversionServiceNodeAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
    • getDimension

      public org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension getDimension() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the local value of the Dimension Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getDimension in interface QuantityType
      Returns:
      the local value of the Dimension Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Dimension Node.
    • setDimension

      public void setDimension(org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Set the local value of the Dimension Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setDimension in interface QuantityType
      Parameters:
      value - the local value to set for the Dimension Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Dimension Node.
    • readDimension

      public org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension readDimension() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Read the value of the Dimension Node from the server and update the local value if the operation succeeds.
      Specified by:
      readDimension in interface QuantityType
      Returns:
      the QuantityDimension value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeDimension

      public void writeDimension(org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Write a new value for the Dimension Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeDimension in interface QuantityType
      Parameters:
      value - the QuantityDimension value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readDimensionAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension> readDimensionAsync()
      Description copied from interface: QuantityType
      An asynchronous implementation of QuantityType.readDimension().
      Specified by:
      readDimensionAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeDimensionAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeDimensionAsync(org.eclipse.milo.opcua.stack.core.types.structured.QuantityDimension dimension)
      Description copied from interface: QuantityType
      Specified by:
      writeDimensionAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getDimensionNode

      public PropertyTypeNode getDimensionNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the Dimension PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getDimensionNode in interface QuantityType
      Returns:
      the Dimension PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getDimensionNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getDimensionNodeAsync()
      Description copied from interface: QuantityType
      Asynchronous implementation of QuantityType.getDimensionNode().
      Specified by:
      getDimensionNodeAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.
    • getServerUnitsNode

      public BaseObjectTypeNode getServerUnitsNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: QuantityType
      Get the ServerUnits BaseObjectType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getServerUnitsNode in interface QuantityType
      Returns:
      the ServerUnits BaseObjectType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getServerUnitsNodeAsync

      public CompletableFuture<? extends BaseObjectTypeNode> getServerUnitsNodeAsync()
      Description copied from interface: QuantityType
      Asynchronous implementation of QuantityType.getServerUnitsNode().
      Specified by:
      getServerUnitsNodeAsync in interface QuantityType
      Returns:
      a CompletableFuture that completes successfully with the BaseObjectType Node or completes exceptionally if an error occurs creating or getting the Node.