Module sm :: Class Constant
[frames] | no frames]

Class Constant

SM --+
     |
    Constant

Machine whose output is a constant, independent of the input

Instance Methods
 
__init__(self, c)
 
getNextState(self, state, inp)

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

Class Variables

Inherited from SM: legalInputs, name, startState

Instance Variables

Inherited from SM: state

Method Details

__init__(self, c)
(Constructor)

 
Parameters:
  • c - constant value