State machine

A state machine is a mathematical model of computation. It is an abstract machine that can be in one of a finite number of states. The machine is in only one state at a time; it can change from one state to another when initiated by a triggering event or condition, which is called a … Read more