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

Class Mux

SM --+    
     |    
Switch --+
         |
        Mux

Like Switch, but updates both machines no matter whether the condition is true or false. Condition is only used to decide which output to generate. If the condition is true, it generates the output from the first machine, otherwise, from the second.

Instance Methods
 
getNextValues(self, state, inp)
Default version of this method.

Inherited from Switch: __init__, done, printDebugInfo, 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

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)