|
|
|
|
|
by colanderman
3041 days ago
|
|
> if you need to add a new event, each of the states need to be updated to handle that event Depends on your formalism. I never use state machines of that form for exactly the reason you say. Rather, each state defines the conditions which cause a transition from it. Receiving an event in a state in which it is not expected (say, an I/O completion in a state which should not have outstanding I/O) is a straight-up hard error. |
|