The Event class holds information about the different events that can be handled
by the state machine. Events are prioritized depending on the importance of the event.
The priority model tries to ensure that old messages are handled before any new ones.