def add_machine(self, machine):
self._logger.debug('<STR_LIT>'.format(machine.id))<EOL>machine._driver = self<EOL>machine._reset()<EOL>if machine.id is not None:<EOL><INDENT>Driver._stms_by_id[machine.id] = machine<EOL>self._add_event(event_id=None, args=[], kwargs={}, stm=machine)<EOL><DEDENT>
Add the state machine to this driver.