#include <llstatemachine.h>
Definition at line 70 of file llstatemachine.h.
typedef std::map<LLFSMTransition*, LLFSMState*> LLStateDiagram::Transitions [private] |
Definition at line 72 of file llstatemachine.h.
typedef std::map<LLFSMState*, Transitions> LLStateDiagram::StateMap [protected] |
Definition at line 78 of file llstatemachine.h.
LLStateDiagram::LLStateDiagram | ( | ) |
LLStateDiagram::~LLStateDiagram | ( | ) | [virtual] |
Definition at line 59 of file llstatemachine.cpp.
BOOL LLStateDiagram::addState | ( | LLFSMState * | state | ) | [protected] |
Definition at line 65 of file llstatemachine.cpp.
Referenced by addTransition().
BOOL LLStateDiagram::addTransition | ( | LLFSMState & | start_state, | |
LLFSMState & | end_state, | |||
LLFSMTransition & | transition | |||
) | [protected] |
Definition at line 72 of file llstatemachine.cpp.
References addState(), FALSE, llendl, llerrs, mStates, NULL, and TRUE.
Referenced by addUndirectedTransition().
BOOL LLStateDiagram::addUndirectedTransition | ( | LLFSMState & | start_state, | |
LLFSMState & | end_state, | |||
LLFSMTransition & | transition | |||
) | [protected] |
Definition at line 104 of file llstatemachine.cpp.
References addTransition().
void LLStateDiagram::addDefaultTransition | ( | LLFSMState & | end_state, | |
LLFSMTransition & | transition | |||
) | [protected] |
LLFSMState * LLStateDiagram::processTransition | ( | LLFSMState & | start_state, | |
LLFSMTransition & | transition | |||
) | [protected] |
Definition at line 122 of file llstatemachine.cpp.
References mDefaultState, mDefaultTransitions, mStates, mUseDefaultState, and NULL.
Referenced by LLStateMachine::processTransition().
void LLStateDiagram::setDefaultState | ( | LLFSMState & | default_state | ) | [protected] |
Definition at line 167 of file llstatemachine.cpp.
References mDefaultState, mUseDefaultState, and TRUE.
S32 LLStateDiagram::numDeadendStates | ( | ) | [protected] |
BOOL LLStateDiagram::stateIsValid | ( | LLFSMState & | state | ) | [protected] |
Definition at line 187 of file llstatemachine.cpp.
References FALSE, mStates, and TRUE.
Referenced by LLStateMachine::setCurrentState().
LLFSMState * LLStateDiagram::getState | ( | U32 | state_id | ) | [protected] |
Definition at line 196 of file llstatemachine.cpp.
Referenced by LLStateMachine::setCurrentState().
BOOL LLStateDiagram::saveDotFile | ( | const char * | filename | ) |
Definition at line 209 of file llstatemachine.cpp.
References FALSE, LLFSMState::getName(), ll_apr_file_open(), LL_APR_W, llendl, llwarns, mDefaultState, mDefaultTransitions, mStates, and TRUE.
friend class LLStateMachine [friend] |
Definition at line 75 of file llstatemachine.h.
std::ostream& operator<< | ( | std::ostream & | s, | |
LLStateDiagram & | FSM | |||
) | [friend] |
Definition at line 265 of file llstatemachine.cpp.
StateMap LLStateDiagram::mStates [protected] |
Definition at line 79 of file llstatemachine.h.
Referenced by addState(), addTransition(), getState(), numDeadendStates(), operator<<(), processTransition(), saveDotFile(), and stateIsValid().
Transitions LLStateDiagram::mDefaultTransitions [protected] |
Definition at line 80 of file llstatemachine.h.
Referenced by addDefaultTransition(), operator<<(), processTransition(), and saveDotFile().
LLFSMState* LLStateDiagram::mDefaultState [protected] |
Definition at line 81 of file llstatemachine.h.
Referenced by operator<<(), processTransition(), saveDotFile(), and setDefaultState().
BOOL LLStateDiagram::mUseDefaultState [protected] |
Definition at line 82 of file llstatemachine.h.
Referenced by LLStateDiagram(), processTransition(), and setDefaultState().