State Machine

Model a system as a set of explicit states with transitions between them.

Many systems react to stimuli differently, depending on some internal property. Sometimes it's useful to classify these different internal states and describe both the differences in response and what causes the system to move between these states. A State Machine can be used to describe and perhaps to control this behavior.

For more details see chapter 51 of the DSL book

| Catalog of DSL patterns |