appkit  1.5.1
RoadNarrows Robotics Application Kit
State2_3Turing Class Reference

The (2,3) Turing state base class. More...

Inheritance diagram for State2_3Turing:
StateKb StateA StateB StateStart

Public Member Functions

 State2_3Turing (int nStateId, const std::string &strStateName="", const std::string &strRefTag="")
 Initializatoin constuctor. More...
 
virtual ~State2_3Turing ()
 Destructor.
 
int readSymbol ()
 
void writeSymbol (int sym)
 
void moveHeadLeft ()
 Move head left one position on the tape.
 
void moveHeadRight ()
 Move head right one position on the tape.
 
void showTape ()
 Show colorized tape to stdout.
 

Static Public Attributes

static vector< int > Tape
 the tape of symbols More...
 
static int Head
 the tape read/write head
 

Detailed Description

The (2,3) Turing state base class.

Definition at line 239 of file ut-sm.cxx.

Constructor & Destructor Documentation

State2_3Turing::State2_3Turing ( int  nStateId,
const std::string &  strStateName = "",
const std::string &  strRefTag = "" 
)
inline

Initializatoin constuctor.

Parameters
nStateIdState id. Must be state machine unique.
strStateNameState name.
strRefTagState reference id.

Definition at line 252 of file ut-sm.cxx.

254  :
255  StateKb(nStateId, strStateName, strRefTag)
256  {
257  }

The documentation for this class was generated from the following file: