Class UaVariableTypeNode


  • public class UaVariableTypeNode
    extends UaNode
    PLCcom sdk UaReferenceTypeNode Implementation for Opc Ua, with the UaReferenceTypeNode object you can read or write Attributes or values from cache or directly from connected ua server
    Author:
    Indi.An GmbH, www.indi-an.com, support@indi-an.com
    • Constructor Summary

      Constructors 
      Constructor Description
      UaVariableTypeNode​(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
      Standard constructor for a UaVariableTypeNode instances
    • Constructor Detail

      • UaVariableTypeNode

        public UaVariableTypeNode​(UaClient client,
                                  com.plccom.opc.ua.builtintypes.NodeId nodeId)
        Standard constructor for a UaVariableTypeNode instances
        Parameters:
        client - a client instance
        nodeId - the based nodeId
    • Method Detail

      • getValue

        public Object getValue()
                        throws com.plccom.opc.ua.common.ServiceFaultException,
                               com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute value from cache or directly from connected ua server
        Returns:
        the value attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getDataType

        public com.plccom.opc.ua.builtintypes.NodeId getDataType()
                                                          throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                 com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute value from cache or directly from connected ua server
        Returns:
        the value attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getValueRank

        public Integer getValueRank()
                             throws com.plccom.opc.ua.common.ServiceFaultException,
                                    com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute ValueRank from cache or directly from connected ua server
        Returns:
        the ValueRank attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getArrayDimensions

        public com.plccom.opc.ua.builtintypes.UnsignedInteger[] getArrayDimensions()
                                                                            throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                   com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute ArrayDimensions from cache or directly from connected ua server
        Returns:
        the ArrayDimensions attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getIsAbstract

        public Boolean getIsAbstract()
                              throws com.plccom.opc.ua.common.ServiceFaultException,
                                     com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute IsAbstract from cache or directly from connected ua server
        Returns:
        the IsAbstract attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setValue

        public com.plccom.opc.ua.builtintypes.StatusCode setValue​(Object value)
                                                           throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute value of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the value attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setDataType

        public com.plccom.opc.ua.builtintypes.StatusCode setDataType​(com.plccom.opc.ua.builtintypes.NodeId dataType)
                                                              throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute dataType of this node at connected ua server and refreshing the nodecache
        Parameters:
        dataType - the dataType attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setValueRank

        public com.plccom.opc.ua.builtintypes.StatusCode setValueRank​(int valueRank)
                                                               throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute valueRank of this node at connected ua server and refreshing the nodecache
        Parameters:
        valueRank - the setValueRank attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setArrayDimensions

        public com.plccom.opc.ua.builtintypes.StatusCode setArrayDimensions​(com.plccom.opc.ua.builtintypes.UnsignedInteger[] arrayDimensions)
                                                                     throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute arrayDimensions of this node at connected ua server and refreshing the nodecache
        Parameters:
        arrayDimensions - the arrayDimensions attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setIsAbstract

        public com.plccom.opc.ua.builtintypes.StatusCode setIsAbstract​(boolean isAbstract)
                                                                throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute isAbstract of this node at connected ua server and refreshing the nodecache
        Parameters:
        isAbstract - the isAbstract attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • readValue

        public com.plccom.opc.ua.builtintypes.DataValue readValue()
                                                           throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                  com.plccom.opc.ua.common.ServiceResultException
        Reads the complete datavalue of attribute Value this node from cache or directly from connected ua server
        Returns:
        a datavalue object with the attribute Value
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • readDataType

        public com.plccom.opc.ua.builtintypes.DataValue readDataType()
                                                              throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                     com.plccom.opc.ua.common.ServiceResultException
        Reads the complete datavalue of attribute DataType this node from cache or directly from connected ua server
        Returns:
        a datavalue object with the attribute DataType
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • readValueRank

        public com.plccom.opc.ua.builtintypes.DataValue readValueRank()
                                                               throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                      com.plccom.opc.ua.common.ServiceResultException
        Reads the complete datavalue of attribute ValueRank this node from cache or directly from connected ua server
        Returns:
        a datavalue object with the attribute ValueRank
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • readArrayDimensions

        public com.plccom.opc.ua.builtintypes.DataValue readArrayDimensions()
                                                                     throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                            com.plccom.opc.ua.common.ServiceResultException
        Reads the complete datavalue of attribute ArrayDimensions this node from cache or directly from connected ua server
        Returns:
        a datavalue object with the attribute ArrayDimensions
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • readIsAbstract

        public com.plccom.opc.ua.builtintypes.DataValue readIsAbstract()
                                                                throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                       com.plccom.opc.ua.common.ServiceResultException
        Reads the complete datavalue of attribute IsAbstract this node from cache or directly from connected ua server
        Returns:
        a datavalue object with the attribute IsAbstract
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • writeValue

        public com.plccom.opc.ua.builtintypes.StatusCode writeValue​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                             throws com.plccom.opc.ua.common.ServiceResultException
        Writes the Value attribute
        Parameters:
        value - a datavalue object with informations to write
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • writeDataType

        public com.plccom.opc.ua.builtintypes.StatusCode writeDataType​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                                throws com.plccom.opc.ua.common.ServiceResultException
        Writes the DataType attribute
        Parameters:
        value - a datavalue object with informations to write
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • writeValueRank

        public com.plccom.opc.ua.builtintypes.StatusCode writeValueRank​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                                 throws com.plccom.opc.ua.common.ServiceResultException
        Writes the ValueRank attribute
        Parameters:
        value - a datavalue object with informations to write
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • writeArrayDimensions

        public com.plccom.opc.ua.builtintypes.StatusCode writeArrayDimensions​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                                       throws com.plccom.opc.ua.common.ServiceResultException
        Writes the ArrayDimensions attribute
        Parameters:
        value - a datavalue object with informations to write
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • writeIsAbstract

        public com.plccom.opc.ua.builtintypes.StatusCode writeIsAbstract​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                                  throws com.plccom.opc.ua.common.ServiceResultException
        Writes the IsAbstract attribute
        Parameters:
        value - a datavalue object with informations to write
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error