All Implemented Interfaces:
AcknowledgeableConditionType, AlarmConditionType, BaseEventType, BaseObjectType, ConditionType, DiscrepancyAlarmType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode

public class DiscrepancyAlarmTypeNode extends AlarmConditionTypeNode implements DiscrepancyAlarmType
  • Constructor Details

    • DiscrepancyAlarmTypeNode

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

    • getTargetValueNode

      public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getTargetValueNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Get the local value of the TargetValueNode Node.

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

      Specified by:
      getTargetValueNode in interface DiscrepancyAlarmType
      Returns:
      the local value of the TargetValueNode Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the TargetValueNode Node.
    • setTargetValueNode

      public void setTargetValueNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Set the local value of the TargetValueNode Node.

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

      Specified by:
      setTargetValueNode in interface DiscrepancyAlarmType
      Parameters:
      value - the local value to set for the TargetValueNode Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the TargetValueNode Node.
    • readTargetValueNode

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

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

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

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

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

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

      Specified by:
      getTargetValueNodeNode in interface DiscrepancyAlarmType
      Returns:
      the TargetValueNode 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.
    • getTargetValueNodeNodeAsync

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

      public Double getExpectedTime() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Get the local value of the ExpectedTime Node.

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

      Specified by:
      getExpectedTime in interface DiscrepancyAlarmType
      Returns:
      the local value of the ExpectedTime Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ExpectedTime Node.
    • setExpectedTime

      public void setExpectedTime(Double value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Set the local value of the ExpectedTime Node.

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

      Specified by:
      setExpectedTime in interface DiscrepancyAlarmType
      Parameters:
      value - the local value to set for the ExpectedTime Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ExpectedTime Node.
    • readExpectedTime

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

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

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

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

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

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

      Specified by:
      getExpectedTimeNode in interface DiscrepancyAlarmType
      Returns:
      the ExpectedTime 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.
    • getExpectedTimeNodeAsync

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

      public Double getTolerance() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Get the local value of the Tolerance Node.

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

      Specified by:
      getTolerance in interface DiscrepancyAlarmType
      Returns:
      the local value of the Tolerance Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Tolerance Node.
    • setTolerance

      public void setTolerance(Double value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: DiscrepancyAlarmType
      Set the local value of the Tolerance Node.

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

      Specified by:
      setTolerance in interface DiscrepancyAlarmType
      Parameters:
      value - the local value to set for the Tolerance Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Tolerance Node.
    • readTolerance

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

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

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

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

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

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

      Specified by:
      getToleranceNode in interface DiscrepancyAlarmType
      Returns:
      the Tolerance 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.
    • getToleranceNodeAsync

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