State Machine
A state machine – or Finite state machine (FSM) – is a way to model computations, which is commonly used in programming and logic circuits. In relation to programming, each state is a section of code or a function and each transition is a the method …