#include <llstatemachine.h>
Collaboration diagram for LLStateDiagram:
Definition at line 71 of file llstatemachine.h.
typedef std::map<LLFSMState*, Transitions> LLStateDiagram::StateMap [protected] |
Definition at line 79 of file llstatemachine.h.
typedef std::map<LLFSMTransition*, LLFSMState*> LLStateDiagram::Transitions [private] |
Definition at line 73 of file llstatemachine.h.
LLStateDiagram::LLStateDiagram | ( | ) |
LLStateDiagram::~LLStateDiagram | ( | ) | [virtual] |
Definition at line 59 of file llstatemachine.cpp.
void LLStateDiagram::addDefaultTransition | ( | LLFSMState & | end_state, | |
LLFSMTransition & | transition | |||
) | [protected] |
BOOL LLStateDiagram::addState | ( | LLFSMState * | state | ) | [protected] |
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] |
LLFSMState * LLStateDiagram::getState | ( | U32 | state_id | ) | [protected] |
S32 LLStateDiagram::numDeadendStates | ( | ) | [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().
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.
void LLStateDiagram::setDefaultState | ( | LLFSMState & | default_state | ) | [protected] |
Definition at line 167 of file llstatemachine.cpp.
References mDefaultState, mUseDefaultState, and TRUE.
BOOL LLStateDiagram::stateIsValid | ( | LLFSMState & | state | ) | [protected] |
Definition at line 187 of file llstatemachine.cpp.
References FALSE, mStates, and TRUE.
Referenced by LLStateMachine::setCurrentState().
friend class LLStateMachine [friend] |
Definition at line 76 of file llstatemachine.h.
std::ostream& operator<< | ( | std::ostream & | s, | |
LLStateDiagram & | FSM | |||
) | [friend] |
Definition at line 265 of file llstatemachine.cpp.
LLFSMState* LLStateDiagram::mDefaultState [protected] |
Definition at line 82 of file llstatemachine.h.
Referenced by operator<<(), processTransition(), saveDotFile(), and setDefaultState().
Transitions LLStateDiagram::mDefaultTransitions [protected] |
Definition at line 81 of file llstatemachine.h.
Referenced by addDefaultTransition(), operator<<(), processTransition(), and saveDotFile().
StateMap LLStateDiagram::mStates [protected] |
Definition at line 80 of file llstatemachine.h.
Referenced by addState(), addTransition(), getState(), numDeadendStates(), operator<<(), processTransition(), saveDotFile(), and stateIsValid().
BOOL LLStateDiagram::mUseDefaultState [protected] |
Definition at line 83 of file llstatemachine.h.
Referenced by LLStateDiagram(), processTransition(), and setDefaultState().