#include <deterministic_finite_automaton.hh>
Inheritance diagram for mpcl::automaton::TDeterministicFiniteAutomaton< TState, TEvent >:

Public Methods | |
| TDeterministicFiniteAutomaton (void) | |
| Builds a new instance. | |
| virtual | ~TDeterministicFiniteAutomaton (void) |
| Destroys the instance. | |
| virtual void | move (const TState &rktSTATE) |
| TState | current (void) const |
| TState | initial (void) const |
| virtual bool | isFinal (const TState &rktSOURCE_STATE) const |
| const TState & | next (const TEvent &rktSOURCE_EVENT) const throw (TNotFoundException) |
Protected Types | |
| typedef pair< TState, TEvent > | TPair |
| Pairs state with input event type. | |
| typedef TMap< TPair, TState > | TTransitionMap |
| Map with state with input event to state transitions type. | |
| typedef set< TState > | TStateSet |
| Set of final states type. | |
Protected Attributes | |
| TState | tCurrentState |
| Current state (initially it musts contain initial state). | |
| TStateSet | tFinalStateSet |
| Set of final states. | |
| TState | tInitialState |
| Initial state. | |
| TTransitionMap | tTransitionMap |
| Map with state with input event to state transitions. | |
Definition at line 50 of file deterministic_finite_automaton.hh.
|
||||||||||
|
Returns current state.
Definition at line 113 of file deterministic_finite_automaton.hh. Referenced by mpcl::automaton::TStreamableDfa< TState, TEvent >::start(). |
|
||||||||||
|
Returns initial state.
Definition at line 122 of file deterministic_finite_automaton.hh. |
|
||||||||||
|
Returns true if rktSOURCE_STATE is a final state.
Definition at line 132 of file deterministic_finite_automaton.hh. |
|
||||||||||
|
Move to the state ktSTATE.
Reimplemented in mpcl::automaton::TExecutableStreamableDfa< TState, TEvent >. Definition at line 97 of file deterministic_finite_automaton.hh. Referenced by mpcl::automaton::TStreamableDfa< TState, TEvent >::start(). |
|
||||||||||
|
Gets next state from current state and the input event rktSOURCE_EVENT.
Definition at line 144 of file deterministic_finite_automaton.hh. Referenced by mpcl::automaton::TStreamableDfa< TState, TEvent >::start(). |
1.2.18