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

Class Parallel2

  SM --+    
       |    
Parallel --+
           |
          Parallel2

Like Parallel, but takes two inps. Output of the composite machine is the pair of outputs of the two individual machines.

Instance Methods
 
__init__(self, m1, m2)
 
getNextValues(self, state, inp)
Default version of this method.
 
printDebugInfo(self, depth, state, nextState, inp, out, debugParams)
Default method for printing out all of the debugging information for a primitive machine.

Inherited from Parallel: done, startState

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

Class Variables

Inherited from SM: legalInputs, name

Instance Variables

Inherited from SM: state

Method Details

__init__(self, m1, m2)
(Constructor)

 
Overrides: Parallel.__init__

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)

printDebugInfo(self, depth, state, nextState, inp, out, debugParams)

 

Default method for printing out all of the debugging information for a primitive machine.

Overrides: SM.printDebugInfo
(inherited documentation)