mlpy.agents.fsm.StateMachine.post_event¶
-
StateMachine.
post_event
(e, *args, **kwargs)[source]¶ An event is added to the events list.
The first event that meets all the conditions will be executed.
Parameters: e : str | Event
The event
args : tuple, optional
Positional parameters send to the next state.
kwargs : dict, optional
Non-positional parameters send to the next state.
Raises: ValueError
If the event e is not a string or an instance of Event.
ValueError
If event e is not a registered transition event or the event is not registered for the current state.