Class ProgramStateMachineNode

    • Constructor Detail

      • ProgramStateMachineNode

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

      • getCreatable

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.plccom.opc.ua.builtintypes.StatusCode setMaxRecycleCount​(com.plccom.opc.ua.builtintypes.UnsignedInteger value)
                                                                     throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute MAX_RECYCLE_COUNT of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the MAX_RECYCLE_COUNT attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • 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
        Overrides:
        getCurrentState in class FiniteStateMachineNode
        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
        Overrides:
        setCurrentState in class FiniteStateMachineNode
        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
        Overrides:
        getLastTransition in class FiniteStateMachineNode
        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
        Overrides:
        setLastTransition in class FiniteStateMachineNode
        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
      • getProgramDiagnostics

        public com.plccom.opc.ua.core.ProgramDiagnosticDataType getProgramDiagnostics()
                                                                               throws com.plccom.opc.ua.encoding.DecodingException,
                                                                                      com.plccom.opc.ua.common.ServiceFaultException,
                                                                                      com.plccom.opc.ua.common.ServiceResultException
        Returns the ProgramDiagnostics
        Returns:
        the ProgramDiagnostics
        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
      • setProgramDiagnostics

        public com.plccom.opc.ua.builtintypes.StatusCode setProgramDiagnostics​(com.plccom.opc.ua.core.ProgramDiagnosticDataType value)
                                                                        throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                               com.plccom.opc.ua.common.ServiceResultException
        Sets the ProgramDiagnostics
        Parameters:
        value - the new ProgramDiagnostics
        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
      • getFinalResultData

        public BaseObjectNode getFinalResultData()
                                          throws com.plccom.opc.ua.common.ServiceResultException
        Returns the FinalResultData value
        Returns:
        the FinalResultData value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getReady

        public StateNode getReady()
                           throws com.plccom.opc.ua.common.ServiceResultException
        Returns the Ready value
        Returns:
        the Ready value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getRunning

        public StateNode getRunning()
                             throws com.plccom.opc.ua.common.ServiceResultException
        Returns the Running value
        Returns:
        the Running value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getSuspended

        public StateNode getSuspended()
                               throws com.plccom.opc.ua.common.ServiceResultException
        Returns the Suspended value
        Returns:
        the Suspended value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getHalted

        public StateNode getHalted()
                            throws com.plccom.opc.ua.common.ServiceResultException
        Returns the Halted value
        Returns:
        the Halted value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getHaltedToReady

        public TransitionNode getHaltedToReady()
                                        throws com.plccom.opc.ua.common.ServiceResultException
        Returns the HaltedToReady value
        Returns:
        the HaltedToReady value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getReadyToRunning

        public TransitionNode getReadyToRunning()
                                         throws com.plccom.opc.ua.common.ServiceResultException
        Returns the ReadyToRunning value
        Returns:
        the ReadyToRunning value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getRunningToHalted

        public TransitionNode getRunningToHalted()
                                          throws com.plccom.opc.ua.common.ServiceResultException
        Returns the RunningToHalted value
        Returns:
        the RunningToHalted value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getRunningToReady

        public TransitionNode getRunningToReady()
                                         throws com.plccom.opc.ua.common.ServiceResultException
        Returns the RunningToReady value
        Returns:
        the RunningToReady value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getRunningToSuspended

        public TransitionNode getRunningToSuspended()
                                             throws com.plccom.opc.ua.common.ServiceResultException
        Returns the RunningToSuspended value
        Returns:
        the RunningToSuspended value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getSuspendedToRunning

        public TransitionNode getSuspendedToRunning()
                                             throws com.plccom.opc.ua.common.ServiceResultException
        Returns the SuspendedToRunning value
        Returns:
        the SuspendedToRunning value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getSuspendedToHalted

        public TransitionNode getSuspendedToHalted()
                                            throws com.plccom.opc.ua.common.ServiceResultException
        Returns the SuspendedToHalted value
        Returns:
        the SuspendedToHalted value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getSuspendedToReady

        public TransitionNode getSuspendedToReady()
                                           throws com.plccom.opc.ua.common.ServiceResultException
        Returns the SuspendedToReady value
        Returns:
        the SuspendedToReady value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getReadyToHalted

        public TransitionNode getReadyToHalted()
                                        throws com.plccom.opc.ua.common.ServiceResultException
        Returns the ReadyToHalted value
        Returns:
        the ReadyToHalted value
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error