All Implemented Interfaces:
AcknowledgeableConditionType, AlarmConditionType, BaseEventType, BaseObjectType, ConditionType, DiscreteAlarmType, OffNormalAlarmType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode
Direct Known Subclasses:
InstrumentDiagnosticAlarmTypeNode, SystemDiagnosticAlarmTypeNode, SystemOffNormalAlarmTypeNode, TripAlarmTypeNode

public class OffNormalAlarmTypeNode extends DiscreteAlarmTypeNode implements OffNormalAlarmType
  • Constructor Details

    • OffNormalAlarmTypeNode

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

    • getNormalState

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

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

      Specified by:
      getNormalState in interface OffNormalAlarmType
      Returns:
      the local value of the NormalState Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the NormalState Node.
    • setNormalState

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

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

      Specified by:
      setNormalState in interface OffNormalAlarmType
      Parameters:
      value - the local value to set for the NormalState Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the NormalState Node.
    • readNormalState

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

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

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

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

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

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

      Specified by:
      getNormalStateNode in interface OffNormalAlarmType
      Returns:
      the NormalState 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.
    • getNormalStateNodeAsync

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