LLStateMachine Class Reference

#include <llstatemachine.h>

Collaboration diagram for LLStateMachine:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLStateMachine ()
virtual ~LLStateMachine ()
void setStateDiagram (LLStateDiagram *diagram)
void processTransition (LLFSMTransition &transition, void *user_data)
LLFSMStategetCurrentState () const
void runCurrentState (void *data)
BOOL setCurrentState (LLFSMState *initial_state, void *user_data, BOOL skip_entry=TRUE)
BOOL setCurrentState (U32 state_id, void *user_data, BOOL skip_entry=TRUE)

Protected Attributes

LLFSMStatemCurrentState
LLFSMStatemLastState
LLFSMTransitionmLastTransition
LLStateDiagrammStateDiagram

Detailed Description

Definition at line 122 of file llstatemachine.h.


Constructor & Destructor Documentation

LLStateMachine::LLStateMachine (  ) 

Definition at line 302 of file llstatemachine.cpp.

References mCurrentState, mLastState, mStateDiagram, and NULL.

LLStateMachine::~LLStateMachine (  )  [virtual]

Definition at line 310 of file llstatemachine.cpp.


Member Function Documentation

LLFSMState * LLStateMachine::getCurrentState (  )  const

Definition at line 316 of file llstatemachine.cpp.

References mCurrentState.

void LLStateMachine::processTransition ( LLFSMTransition transition,
void user_data 
)

Definition at line 364 of file llstatemachine.cpp.

References LLFSMTransition::getName(), LLFSMState::getName(), llassert, llendl, llinfos, llwarns, mCurrentState, mLastState, mLastTransition, mStateDiagram, NULL, LLFSMState::onEntry(), LLFSMState::onExit(), and LLStateDiagram::processTransition().

void LLStateMachine::runCurrentState ( void data  ) 

Definition at line 322 of file llstatemachine.cpp.

References LLFSMState::execute(), and mCurrentState.

BOOL LLStateMachine::setCurrentState ( U32  state_id,
void user_data,
BOOL  skip_entry = TRUE 
)

Definition at line 345 of file llstatemachine.cpp.

References FALSE, LLStateDiagram::getState(), llassert, mCurrentState, mLastState, mStateDiagram, LLFSMState::onEntry(), and TRUE.

BOOL LLStateMachine::setCurrentState ( LLFSMState initial_state,
void user_data,
BOOL  skip_entry = TRUE 
)

Definition at line 328 of file llstatemachine.cpp.

References FALSE, llassert, mCurrentState, mLastState, mStateDiagram, LLFSMState::onEntry(), LLStateDiagram::stateIsValid(), and TRUE.

void LLStateMachine::setStateDiagram ( LLStateDiagram diagram  ) 

Definition at line 398 of file llstatemachine.cpp.

References mStateDiagram.


Member Data Documentation

LLFSMState* LLStateMachine::mCurrentState [protected]

Definition at line 125 of file llstatemachine.h.

Referenced by getCurrentState(), LLStateMachine(), processTransition(), runCurrentState(), and setCurrentState().

LLFSMState* LLStateMachine::mLastState [protected]

Definition at line 126 of file llstatemachine.h.

Referenced by LLStateMachine(), processTransition(), and setCurrentState().

LLFSMTransition* LLStateMachine::mLastTransition [protected]

Definition at line 127 of file llstatemachine.h.

Referenced by processTransition().

LLStateDiagram* LLStateMachine::mStateDiagram [protected]

Definition at line 128 of file llstatemachine.h.

Referenced by LLStateMachine(), processTransition(), setCurrentState(), and setStateDiagram().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:48 2010 for Second Life Viewer by  doxygen 1.4.7