SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
НазадМетки: python
If the Condition returns true, then the transition to a new state is made, and as that transition is made some kind of action occurs (in the previous state machine design, this was the run( ) method):
# StateMachine/stateMachine2/Transition.py
# Transition function object for state machine
class Transition:
def transition(self, input):
assert 0, "transition() not implemented"