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

Class R

SM --+
     |
    R

Machine whose output is the input, but delayed by one time step. Specify initial output in initializer.

Instance Methods
 
__init__(self, v0=0)
 
getNextValues(self, state, inp)
Default version of this method.

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

Class Variables

Inherited from SM: legalInputs, name

Instance Variables
  startState
State is the previous input

Inherited from SM: state

Method Details

__init__(self, v0=0)
(Constructor)

 
Parameters:
  • v0 - initial output value

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.getNextValues
(inherited documentation)