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

public class ServerUnitTypeNode extends UnitTypeNode implements ServerUnitType
  • Constructor Details

    • ServerUnitTypeNode

      public ServerUnitTypeNode(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

    • getConversionLimit

      public org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum getConversionLimit() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ServerUnitType
      Get the local value of the ConversionLimit Node.

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

      Specified by:
      getConversionLimit in interface ServerUnitType
      Returns:
      the local value of the ConversionLimit Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ConversionLimit Node.
    • setConversionLimit

      public void setConversionLimit(org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ServerUnitType
      Set the local value of the ConversionLimit Node.

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

      Specified by:
      setConversionLimit in interface ServerUnitType
      Parameters:
      value - the local value to set for the ConversionLimit Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ConversionLimit Node.
    • readConversionLimit

      public org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum readConversionLimit() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ServerUnitType
      Read the value of the ConversionLimit Node from the server and update the local value if the operation succeeds.
      Specified by:
      readConversionLimit in interface ServerUnitType
      Returns:
      the ConversionLimitEnum value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeConversionLimit

      public void writeConversionLimit(org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ServerUnitType
      Write a new value for the ConversionLimit Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeConversionLimit in interface ServerUnitType
      Parameters:
      value - the ConversionLimitEnum value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readConversionLimitAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum> readConversionLimitAsync()
      Description copied from interface: ServerUnitType
      An asynchronous implementation of ServerUnitType.readConversionLimit().
      Specified by:
      readConversionLimitAsync in interface ServerUnitType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeConversionLimitAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeConversionLimitAsync(org.eclipse.milo.opcua.stack.core.types.enumerated.ConversionLimitEnum conversionLimit)
      Description copied from interface: ServerUnitType
      Specified by:
      writeConversionLimitAsync in interface ServerUnitType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getConversionLimitNode

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

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

      Specified by:
      getConversionLimitNode in interface ServerUnitType
      Returns:
      the ConversionLimit 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.
    • getConversionLimitNodeAsync

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

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

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

      Specified by:
      getAlternativeUnitsNode in interface ServerUnitType
      Returns:
      the AlternativeUnits 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.
    • getAlternativeUnitsNodeAsync

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

      public UnitTypeNode getCoherentUnitNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ServerUnitType
      Get the CoherentUnit UnitType Node, or null if it does not exist.

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

      Specified by:
      getCoherentUnitNode in interface ServerUnitType
      Returns:
      the CoherentUnit UnitType 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.
    • getCoherentUnitNodeAsync

      public CompletableFuture<? extends UnitTypeNode> getCoherentUnitNodeAsync()
      Description copied from interface: ServerUnitType
      Asynchronous implementation of ServerUnitType.getCoherentUnitNode().
      Specified by:
      getCoherentUnitNodeAsync in interface ServerUnitType
      Returns:
      a CompletableFuture that completes successfully with the UnitType Node or completes exceptionally if an error occurs creating or getting the Node.