Lines Matching full:machine
180 print '\nExpected one argument: Name of state machine\n'
185 print '\nNo such interactive state machine.\n'
190 def do_is_waiting(self, machine): argument
192 Determine if a machine is waiting for an advance call.
194 @param machine: Case sensitive name of the machine.
195 @return: True if |machine| is waiting to be advanced by the user.
198 ism = self._get_state_machine(machine)
205 print ('\nState machine is %swaiting.\n' %
209 (machine, repr(e)))
215 print ('\nUsage: is_waiting <state-machine-name>\n'
216 'Check whether a state machine is waiting for user action. The '
217 'waiting machine can be advanced using the |advance| command.\n'
218 'state-machine-name is the case sensitive name of the machine'
222 def do_advance(self, machine): argument
224 Advance the given state machine.
226 @param machine: Case sensitive name of the state machine to advance.
227 @returns: True if |machine| was successfully advanced, False otherwise.
230 ism = self._get_state_machine(machine)
238 print '\nError while advancing state machine: |%s|\n' % repr(e)
244 print ('\nUsage: advance <state-machine-name>\n'
245 'Advance a waiting state machine to the next step.\n'
246 'state-machine-name is the case sensitive name of the machine'