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; }
public void DeregisterErrorHandler() { _errorHandler = null; }
public void RegisterErrorHandler(StateErrorHandler errorHandler) { _errorHandler = errorHandler; }