Class FiniteStateMachineNode

    • Constructor Detail

      • FiniteStateMachineNode

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

      • getCurrentState

        public com.plccom.opc.ua.builtintypes.LocalizedText getCurrentState()
                                                                     throws com.plccom.opc.ua.encoding.DecodingException,
                                                                            com.plccom.opc.ua.common.ServiceFaultException,
                                                                            com.plccom.opc.ua.common.ServiceResultException
        Returns the CurrentState object
        Overrides:
        getCurrentState in class StateMachineNode
        Returns:
        the CurrentState
        Throws:
        com.plccom.opc.ua.encoding.DecodingException - throws if internal cast operation throws errors
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setCurrentState

        public com.plccom.opc.ua.builtintypes.StatusCode setCurrentState​(com.plccom.opc.ua.builtintypes.LocalizedText value)
                                                                  throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                         com.plccom.opc.ua.common.ServiceResultException
        Sets the CurrentState object
        Overrides:
        setCurrentState in class StateMachineNode
        Parameters:
        value - the new CurrentState
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getLastTransition

        public com.plccom.opc.ua.builtintypes.LocalizedText getLastTransition()
                                                                       throws com.plccom.opc.ua.encoding.DecodingException,
                                                                              com.plccom.opc.ua.common.ServiceFaultException,
                                                                              com.plccom.opc.ua.common.ServiceResultException
        Returns the LastTransition object
        Overrides:
        getLastTransition in class StateMachineNode
        Returns:
        the LastTransition
        Throws:
        com.plccom.opc.ua.encoding.DecodingException - throws if internal cast operation throws errors
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setLastTransition

        public com.plccom.opc.ua.builtintypes.StatusCode setLastTransition​(com.plccom.opc.ua.builtintypes.LocalizedText value)
                                                                    throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                           com.plccom.opc.ua.common.ServiceResultException
        Sets the LastTransition object
        Overrides:
        setLastTransition in class StateMachineNode
        Parameters:
        value - the new LastTransition
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error