Class ProvisionableDeviceTypeNode

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

public class ProvisionableDeviceTypeNode extends BaseObjectTypeNode implements ProvisionableDeviceType
  • Constructor Details

    • ProvisionableDeviceTypeNode

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

    • getIsSingleton

      public Boolean getIsSingleton() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProvisionableDeviceType
      Get the local value of the IsSingleton Node.

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

      Specified by:
      getIsSingleton in interface ProvisionableDeviceType
      Returns:
      the local value of the IsSingleton Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the IsSingleton Node.
    • setIsSingleton

      public void setIsSingleton(Boolean value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProvisionableDeviceType
      Set the local value of the IsSingleton Node.

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

      Specified by:
      setIsSingleton in interface ProvisionableDeviceType
      Parameters:
      value - the local value to set for the IsSingleton Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the IsSingleton Node.
    • readIsSingleton

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

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

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

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

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

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

      Specified by:
      getIsSingletonNode in interface ProvisionableDeviceType
      Returns:
      the IsSingleton 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.
    • getIsSingletonNodeAsync

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