def build_convergence_loop_fsm(reactor, deployer):
 loop = ConvergenceLoop(reactor, deployer)
 fsm = constructFiniteStateMachine(inputs=ConvergenceLoopInputs, outputs=ConvergenceLoopOutputs, states=ConvergenceLoopStates, initial=ConvergenceLoopStates.STOPPED, table=_CONVERGENCE_LOOP_FSM_TABLE, richInputs=[_ClientStatusUpdate, _Sleep], inputContext={}, world=MethodSuffixOutputer(loop))
 loop.fsm = fsm
 return fsm

def build_convergence_loop_fsm ( reactor , deployer ) : loop = ConvergenceLoop ( reactor , deployer ) fsm = constructFiniteStateMachine ( inputs = ConvergenceLoopInputs , outputs = ConvergenceLoopOutputs , states = ConvergenceLoopStates , initial = ConvergenceLoopStates . STOPPED , table = _CONVERGENCE_LOOP_FSM_TABLE , richInputs = [ _ClientStatusUpdate , _Sleep ] , inputContext = { } , world = MethodSuffixOutputer ( loop ) ) loop . fsm = fsm return fsm
create a convergence loop fsm .