About State Model in State Model
|
|
A finite state machine is a graph-like model of some interaction or behaviour, with "states" being nodes on a graph, and "transitions" being edges between nodes.
By constructing a finite state machine of allowed interactions or behaviour, you can apply all kinds of data input to the model, and states change only when their respective criteria is met.
Provided the model is correct, it is then impossible to end up in a programmatically wrong state, that could cause runtime errors.
|