This function will provide the list of allowed events given the current state of the machine.
This function will provide an indication whether the given event is allowed in the current state.
This function will process the on and advance the state machine according to the FSM definition.