Glossary: Software Design Patterns in JavaScript
State machine
Also written: state pattern, state
Something that is always in exactly one of a fixed set of states, with rules for which moves between them are allowed. An order's moves are listed in the TRANSITIONS table.