Class Instruction

Description

Instruction class

Located in /Instruction.php (line 15)


	
			
Class Constant Summary
 MOVE_L = 'L'
 MOVE_R = 'R'
Method Summary
Instruction __construct (string $initial_state, int $prereq_symbol, char $print, char $move, string $next)
string getInitialState ()
char getNextMove ()
string getNextState ()
char getPrerequisite ()
Methods
Constructor __construct (line 36)
  • access: public
Instruction __construct (string $initial_state, int $prereq_symbol, char $print, char $move, string $next)
  • string $initial_state: The name of the Instruction
  • int $prereq_symbol: The prerequisite read symbol
  • char $print: The symbol to print next
  • char $move: The action to perform
  • string $next: The name of the next Instruction to run
getInitialState (line 52)

Returns the Instruction's name

  • access: public
string getInitialState ()
getNextMove (line 88)

Return the next required Head move

  • access: public
char getNextMove ()
getNextState (line 100)

Return the next State name

  • access: public
string getNextState ()
getPrerequisite (line 64)

Returns the Instruction's prerequisite

  • access: public
char getPrerequisite ()
getSymbolToWrite (line 76)

Return the next symbol to print

  • access: public
char getSymbolToWrite ()
Class Constants
MOVE_L = 'L' (line 19)
MOVE_R = 'R' (line 18)

Documentation generated on Tue, 15 Nov 2005 10:37:52 +0000 by phpDocumentor 1.3.0RC3