Module coloredHall :: Class TextInputSM
[frames] | no frames]

Class TextInputSM

sm.SM --+
        |
       TextInputSM

Machine that prompts a user for an input on each step. That input is the output of this machine. If the user types 'quit', then the machine terminates.

Instance Methods
 
__init__(self, legalInputs)
 
getNextValues(self, state, inp)
Default version of this method.
 
done(self, state)
By default, machines don't terminate

Inherited from sm.SM: check, doTraceTasks, getStartState, guaranteeName, isDone, printDebugInfo, run, start, step, transduce, transduceF

Class Variables
  startState = False

Inherited from sm.SM: legalInputs, name

Method Details

getNextValues(self, state, inp)

 

Default version of this method. If a subclass only defines getNextState, then we assume that the output of the machine is the same as its next state.

Overrides: sm.SM.getNextValues
(inherited documentation)

done(self, state)

 

By default, machines don't terminate

Overrides: sm.SM.done
(inherited documentation)