This project demos a state machine concept, using 'state-machine' library.
In the project directory, run
The following classes are provided:
Machine:
- transition(event: Event)
abstract State
- transition(event: Event)
- getPayload()
abstract Event
- getName()
Machine should be initialized with an initial state
Concrete State classes should implement the 'transition' method
Event name should be a unique identifier