Class StateNode

    • Constructor Detail

      • StateNode

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

      • getStateNumber

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

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