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

Class Select

SM --+
     |
    Select

Machine whose input is a structure list and whose output is the kth element of that list.

Instance Methods
 
__init__(self, k)
 
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, k)
(Constructor)

 
Parameters:
  • k - positive integer describing which element of input structure to select