All Implemented Interfaces:
BaseDataVariableType, BaseVariableType, VectorType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
Direct Known Subclasses:
ThreeDVectorTypeNode

public class VectorTypeNode extends BaseDataVariableTypeNode implements VectorType
  • Constructor Details

    • VectorTypeNode

      public VectorTypeNode(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.DataValue value, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType, Integer valueRank, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte accessLevel, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte userAccessLevel, Double minimumSamplingInterval, Boolean historizing, org.eclipse.milo.opcua.stack.core.types.structured.AccessLevelExType accessLevelEx)
  • Method Details

    • getVectorUnit

      public org.eclipse.milo.opcua.stack.core.types.structured.EUInformation getVectorUnit() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: VectorType
      Get the local value of the VectorUnit Node.

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

      Specified by:
      getVectorUnit in interface VectorType
      Returns:
      the local value of the VectorUnit Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the VectorUnit Node.
    • setVectorUnit

      public void setVectorUnit(org.eclipse.milo.opcua.stack.core.types.structured.EUInformation value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: VectorType
      Set the local value of the VectorUnit Node.

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

      Specified by:
      setVectorUnit in interface VectorType
      Parameters:
      value - the local value to set for the VectorUnit Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the VectorUnit Node.
    • readVectorUnit

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

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

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

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

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

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

      Specified by:
      getVectorUnitNode in interface VectorType
      Returns:
      the VectorUnit 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.
    • getVectorUnitNodeAsync

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