예제 #1
0
 def dump(self, file):
     from transitions import state_set_str
     for new_state in self.new_machine.states:
         old_state_set = self.new_to_old_dict[id(new_state)]
         file.write("   State %s <-- %s\n" %
                    (new_state['number'], state_set_str(old_state_set)))
예제 #2
0
파일: dfa.py 프로젝트: xrh003/pybombs
    def dump(self, file):
        from transitions import state_set_str

        for new_state in self.new_machine.states:
            old_state_set = self.new_to_old_dict[id(new_state)]
            file.write("   State %s <-- %s\n" % (new_state["number"], state_set_str(old_state_set)))