Finite State Machine
Sometimes we need to apply a state in some cases when we want to modify a status of an object. A basic example is water state: gaseous, liquid and solid and the events responsible for change it:
Object: Water
Event: Fusion
States: From solid…