All Implemented Interfaces:
AlarmRateVariableType, BaseDataVariableType, BaseVariableType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.VariableNode

public class AlarmRateVariableTypeNode extends BaseDataVariableTypeNode implements AlarmRateVariableType
  • Constructor Details

    • AlarmRateVariableTypeNode

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

    • getRate

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort getRate() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AlarmRateVariableType
      Get the local value of the Rate Node.

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

      Specified by:
      getRate in interface AlarmRateVariableType
      Returns:
      the local value of the Rate Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Rate Node.
    • setRate

      public void setRate(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AlarmRateVariableType
      Set the local value of the Rate Node.

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

      Specified by:
      setRate in interface AlarmRateVariableType
      Parameters:
      value - the local value to set for the Rate Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Rate Node.
    • readRate

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

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

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

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

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

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

      Specified by:
      getRateNode in interface AlarmRateVariableType
      Returns:
      the Rate 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.
    • getRateNodeAsync

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