Class UaObjectNode

  • Direct Known Subclasses:
    BaseObjectNode

    public class UaObjectNode
    extends UaNode
    PLCcom sdk UaObjectNode Implementation for Opc Ua, with the UaObjectNode 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 Detail

      • UaObjectNode

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

      • getEventNotifier

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

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

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

        public com.plccom.opc.ua.builtintypes.StatusCode writeEventNotifier​(com.plccom.opc.ua.builtintypes.DataValue value)
                                                                     throws com.plccom.opc.ua.common.ServiceResultException
        Writes the EventNotifier 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
      • browseVariable

        public UaVariableNode browseVariable​(com.plccom.opc.ua.builtintypes.QualifiedName browseName)
                                      throws com.plccom.opc.ua.common.ServiceFaultException,
                                             com.plccom.opc.ua.common.ServiceResultException
        returns the variable component object from node
        Parameters:
        browseName - the browse name
        Returns:
        a UaVariableNode object
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • browseObjectType

        public UaObjectTypeNode browseObjectType()
                                          throws com.plccom.opc.ua.common.ServiceFaultException,
                                                 com.plccom.opc.ua.common.ServiceResultException
        returns the ObjectTypeNode object from node
        Returns:
        a UaObjectTypeNode object
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error