Opc.Ua.Server.StateMachine.ParentMachineStateChanged C# (CSharp) Method

ParentMachineStateChanged() public method

Updates the state after the parent state changes.
public ParentMachineStateChanged ( QualifiedName state, QualifiedName transition ) : void
state QualifiedName
transition QualifiedName
return void
        public void ParentMachineStateChanged(QualifiedName state, QualifiedName transition)
        {
            if (state != m_parentState)
            {
                UpdateState(null, null);
            }
            else
            {
                if (m_lastState == null)
                {
                    UpdateState(m_initialStateName, null);
                }
                else
                {
                    UpdateState(m_lastState, null);
                }
            }
        }