![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
Unit test for librnr_appkit StateMach, State, StateEvent, and StateKb classes. More...
#include <stdio.h>#include <string>#include <vector>#include "rnr/rnrconfig.h"#include "rnr/log.h"#include "rnr/appkit/Random.h"#include "rnr/appkit/State.h"#include "rnr/appkit/StateKb.h"#include "rnr/appkit/StateMach.h"#include "gtest/gtest.h"Go to the source code of this file.
Classes | |
| class | StateEventStart |
| Start state event class. More... | |
| class | StateEventRestart |
| Restart state event class. More... | |
| class | StateEventPauseResume |
| Pause/resume state event class. More... | |
| class | StateEventTerminate |
| Terminate state event class. More... | |
| class | State2_3Turing |
| The (2,3) Turing state base class. More... | |
| class | StateStart |
| Start state event class. More... | |
| class | StateEventASym0 |
| (2,3) Turing Machine's state A, symbol 0 event. More... | |
| class | StateEventASym1 |
| (2,3) Turing Machine's state A, symbol 1 event. More... | |
| class | StateEventASym2 |
| (2,3) Turing Machine's state A, symbol 2 event. More... | |
| class | StateA |
| (2,3) Turing Machine's state A. More... | |
| class | StateEventBSym0 |
| (2,3) Turing Machine's state B, symbol 0 event. More... | |
| class | StateEventBSym1 |
| (2,3) Turing Machine's state B, symbol 1 event. More... | |
| class | StateEventBSym2 |
| (2,3) Turing Machine's state B, symbol 2 event. More... | |
| class | StateB |
| (2,3) Turing Machine's state B. More... | |
Functions | |
| static int | testSM () |
| Test State Machine. More... | |
| TEST (SM, SM2_3Turing) | |
| Test State Machine class. More... | |
Variables | |
| static const int | StateIdA = State::StateIdNumOf |
| state A | |
| static const int | StateIdB = State::StateIdNumOf + 1 |
| state B | |
| static const int | EventIdPauseResume = 'p' |
| pause/resume event id | |
| static const int | EventIdTerminate = 'q' |
| terminate event id | |
| static const int | EventIdRestart = 'r' |
| restart event id | |
| static const int | EventIdStart = 's' |
| start event id | |
| static const int | EventIdSymbol [] = {' ', '@', '#'} |
| tape symbol event ids | |
| static const char * | ColorHead = "\033[0;31m" |
| color tape head | |
| static const char * | ColorSymbol [] = {"", "\033[0;33m", "\033[0;35m"} |
| color of symbols | |
| static const char * | ColorEnd [] = {"", "\033[0m", "\033[0m"} |
| end color | |
| static const uint_t | TRead = 500000 |
| read tape time interval | |
| static const char * | TestMenu |
| Test menu. More... | |
Unit test for librnr_appkit StateMach, State, StateEvent, and StateKb classes.
Definition in file ut-sm.cxx.