Class MultiStateValueDiscreteTypeNode

All Implemented Interfaces:
BaseDataVariableType, BaseVariableType, DataItemType, DiscreteItemType, MultiStateValueDiscreteType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.VariableNode
Direct Known Subclasses:
MultiStateDictionaryEntryDiscreteBaseTypeNode

public class MultiStateValueDiscreteTypeNode extends DiscreteItemTypeNode implements MultiStateValueDiscreteType
  • Constructor Details

    • MultiStateValueDiscreteTypeNode

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

    • getEnumValues

      public org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] getEnumValues() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: MultiStateValueDiscreteType
      Get the local value of the EnumValues Node.

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

      Specified by:
      getEnumValues in interface MultiStateValueDiscreteType
      Returns:
      the local value of the EnumValues Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the EnumValues Node.
    • setEnumValues

      public void setEnumValues(org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: MultiStateValueDiscreteType
      Set the local value of the EnumValues Node.

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

      Specified by:
      setEnumValues in interface MultiStateValueDiscreteType
      Parameters:
      value - the local value to set for the EnumValues Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the EnumValues Node.
    • readEnumValues

      public org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] readEnumValues() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: MultiStateValueDiscreteType
      Read the value of the EnumValues Node from the server and update the local value if the operation succeeds.
      Specified by:
      readEnumValues in interface MultiStateValueDiscreteType
      Returns:
      the EnumValueType value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeEnumValues

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

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

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeEnumValuesAsync(org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] enumValues)
      Description copied from interface: MultiStateValueDiscreteType
      Specified by:
      writeEnumValuesAsync in interface MultiStateValueDiscreteType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getEnumValuesNode

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

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

      Specified by:
      getEnumValuesNode in interface MultiStateValueDiscreteType
      Returns:
      the EnumValues 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.
    • getEnumValuesNodeAsync

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

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

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

      Specified by:
      getValueAsText in interface MultiStateValueDiscreteType
      Returns:
      the local value of the ValueAsText Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ValueAsText Node.
    • setValueAsText

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

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

      Specified by:
      setValueAsText in interface MultiStateValueDiscreteType
      Parameters:
      value - the local value to set for the ValueAsText Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the ValueAsText Node.
    • readValueAsText

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

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

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText> readValueAsTextAsync()
      Description copied from class: UaVariableNode
      Get the value of the VariableNodeProperties.ValueAsText Property, if it exists.
      Specified by:
      readValueAsTextAsync in interface MultiStateValueDiscreteType
      Overrides:
      readValueAsTextAsync in class UaVariableNode
      Returns:
      the value of the ValueAsText Property, if it exists.
      See Also:
      • VariableNodeProperties
    • writeValueAsTextAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeValueAsTextAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText valueAsText)
      Description copied from class: UaVariableNode
      Set the value of the VariableNodeProperties.ValueAsText Property, if it exists.
      Specified by:
      writeValueAsTextAsync in interface MultiStateValueDiscreteType
      Overrides:
      writeValueAsTextAsync in class UaVariableNode
      Parameters:
      valueAsText - the value to set.
      Returns:
      a CompletableFuture that completes with the StatusCode of the write operation.
      See Also:
      • VariableNodeProperties
    • getValueAsTextNode

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

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

      Specified by:
      getValueAsTextNode in interface MultiStateValueDiscreteType
      Returns:
      the ValueAsText 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.
    • getValueAsTextNodeAsync

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