
What is finite state machine?
It’s a model/state of the art where each of status/condition treated as a state and the model will govern how each status relationship with each other.
A single state are guaranteed are active one at a time, and the model will transition between states one at a time!
Reference: