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

public class StateVariableTypeNode extends BaseDataVariableTypeNode implements StateVariableType
  • Constructor Details

    • StateVariableTypeNode

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

    • getId

      public Object getId() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Get the local value of the Id Node.

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

      Specified by:
      getId in interface StateVariableType
      Returns:
      the local value of the Id Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Id Node.
    • setId

      public void setId(Object value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Set the local value of the Id Node.

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

      Specified by:
      setId in interface StateVariableType
      Parameters:
      value - the local value to set for the Id Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Id Node.
    • readId

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

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

      public CompletableFuture<?> readIdAsync()
      Description copied from interface: StateVariableType
      An asynchronous implementation of StateVariableType.readId().
      Specified by:
      readIdAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeIdAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeIdAsync(Object id)
      Description copied from interface: StateVariableType
      An asynchronous implementation of StateVariableType.writeId(java.lang.Object).
      Specified by:
      writeIdAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getIdNode

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

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

      Specified by:
      getIdNode in interface StateVariableType
      Returns:
      the Id 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.
    • getIdNodeAsync

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

      public org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName getName() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Get the local value of the Name Node.

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

      Specified by:
      getName in interface StateVariableType
      Returns:
      the local value of the Name Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Name Node.
    • setName

      public void setName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Set the local value of the Name Node.

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

      Specified by:
      setName in interface StateVariableType
      Parameters:
      value - the local value to set for the Name Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Name Node.
    • readName

      public org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName readName() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Read the value of the Name Node from the server and update the local value if the operation succeeds.
      Specified by:
      readName in interface StateVariableType
      Returns:
      the QualifiedName value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeName

      public void writeName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Write a new value for the Name Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeName in interface StateVariableType
      Parameters:
      value - the QualifiedName value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readNameAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName> readNameAsync()
      Description copied from interface: StateVariableType
      An asynchronous implementation of StateVariableType.readName().
      Specified by:
      readNameAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeNameAsync

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

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

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

      Specified by:
      getNameNode in interface StateVariableType
      Returns:
      the Name 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.
    • getNameNodeAsync

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

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getNumber() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Get the local value of the Number Node.

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

      Specified by:
      getNumber in interface StateVariableType
      Returns:
      the local value of the Number Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Number Node.
    • setNumber

      public void setNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Set the local value of the Number Node.

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

      Specified by:
      setNumber in interface StateVariableType
      Parameters:
      value - the local value to set for the Number Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Number Node.
    • readNumber

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger readNumber() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Read the value of the Number Node from the server and update the local value if the operation succeeds.
      Specified by:
      readNumber in interface StateVariableType
      Returns:
      the UInteger value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeNumber

      public void writeNumber(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Write a new value for the Number Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeNumber in interface StateVariableType
      Parameters:
      value - the UInteger value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readNumberAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> readNumberAsync()
      Description copied from interface: StateVariableType
      An asynchronous implementation of StateVariableType.readNumber().
      Specified by:
      readNumberAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeNumberAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNumberAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger number)
      Description copied from interface: StateVariableType
      Specified by:
      writeNumberAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getNumberNode

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

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

      Specified by:
      getNumberNode in interface StateVariableType
      Returns:
      the Number 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.
    • getNumberNodeAsync

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

      public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText getEffectiveDisplayName() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Get the local value of the EffectiveDisplayName Node.

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

      Specified by:
      getEffectiveDisplayName in interface StateVariableType
      Returns:
      the local value of the EffectiveDisplayName Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the EffectiveDisplayName Node.
    • setEffectiveDisplayName

      public void setEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Set the local value of the EffectiveDisplayName Node.

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

      Specified by:
      setEffectiveDisplayName in interface StateVariableType
      Parameters:
      value - the local value to set for the EffectiveDisplayName Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the EffectiveDisplayName Node.
    • readEffectiveDisplayName

      public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText readEffectiveDisplayName() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Read the value of the EffectiveDisplayName Node from the server and update the local value if the operation succeeds.
      Specified by:
      readEffectiveDisplayName in interface StateVariableType
      Returns:
      the LocalizedText value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeEffectiveDisplayName

      public void writeEffectiveDisplayName(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: StateVariableType
      Write a new value for the EffectiveDisplayName Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeEffectiveDisplayName in interface StateVariableType
      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.
    • readEffectiveDisplayNameAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText> readEffectiveDisplayNameAsync()
      Description copied from interface: StateVariableType
      An asynchronous implementation of StateVariableType.readEffectiveDisplayName().
      Specified by:
      readEffectiveDisplayNameAsync in interface StateVariableType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeEffectiveDisplayNameAsync

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

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

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

      Specified by:
      getEffectiveDisplayNameNode in interface StateVariableType
      Returns:
      the EffectiveDisplayName 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.
    • getEffectiveDisplayNameNodeAsync

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