Class Machine

Description

Implements interfaces:

Machine class

Located in /Machine.php (line 15)


	
			
Method Summary
Machine __construct ([string $state = '0'])
string getState ()
void registerObserver (Observer $obs)
void run (Program $program, [Tape $tape = NULL])
Methods
Constructor __construct (line 43)
  • access: public
Machine __construct ([string $state = '0'])
  • string $state: The initial state of the Machine default 0
getState (line 56)

Returns the current state of the Machine

  • access: public
string getState ()
getTape (line 131)

Return the Tape (typically for debugging purposes)

  • access: public
Tape getTape ()
registerObserver (line 143)

Register an Observer

  • access: public
void registerObserver (Observer $obs)
  • Observer $obs
run (line 69)

Loads the Machine with a Program and runs it

  • access: public
void run (Program $program, [Tape $tape = NULL])

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