00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
#ifndef CC_FSM_INL
00011
#define CC_FSM_INL
00012
00013
#include "../GeneralInclude/CompilerSwitches.h"
00014
#include "../GeneralInclude/DebugSupport.h"
00015
#include "../GeneralInclude/Constants.h"
00016
#include "CC_FSM.h"
00017
00018 inline FsmState*
CC_FSM::getState(TD_FsmStateIndex i)
const {
00019 assert( numberOfStates > 0 );
00020 assert( (i < numberOfStates ) && (pState[i] != pNULL) );
00021
return pState[i];
00022 }
00023
00024 inline TD_FsmStateIndex CC_FSM::getCurrentState()
const {
00025 assert( numberOfStates > 0 );
00026
return currentState;
00027 }
00028
00029 inline bool CC_FSM::isTransitionEnabled(TD_FsmStateIndex toState)
const {
00030 assert( toState < numberOfStates );
00031 assert( toState >= 0 );
00032
return transitionEnabled[toState];
00033 }
00034
00035 inline bool CC_FSM::isTransitionEnabled()
const {
00036
return allTransitionEnabled;
00037 }
00038
00039
#endif