コード例 #1
0
        public State(String tID, StateRoutine tRoutine, StateErrorHandler tErrorHandler, AutoResetEvent tEvent, State tParent)
        {
            m_Event        = tEvent;
            m_Parent       = tParent;
            m_ID           = tID;
            m_ErrorHandler = tErrorHandler;

            if (null == m_Event)
            {
                m_Event = new AutoResetEvent(false);
            }

            if (null == m_Parent)
            {
                return;
            }

            if (null == tID)
            {
                return;
            }
            else if ("" == tID.Trim())
            {
                return;
            }
            else if (null == tRoutine)
            {
                return;
            }
            m_Routine = tRoutine;


            m_Status    = Status.FSM_IDLE;
            m_Available = true;
        }
コード例 #2
0
 public void DeregisterErrorHandler()
 {
     _errorHandler = null;
 }
コード例 #3
0
 public void RegisterErrorHandler(StateErrorHandler errorHandler)
 {
     _errorHandler = errorHandler;
 }