mlpy.agents.fsm.Event¶
-
class
mlpy.agents.fsm.
Event
(name, state=None, machine=None, delay=None, *args, **kwargs)[source]¶ Bases:
object
Transition event definition.
When transitioning from a source state to a destination state a transition event is fired.
Parameters: name : str
Name of the event.
state : FSMState, optional
The current state.
machine : StateMachine, optional
Reference to the state machine.
delay : int, optional
The amount of time (milliseconds) by which checking this event is delayed. Default is 0.
args : tuple, optional
Positional parameters passed to the next state.
kwargs : dict, optional
Non-positional parameters passed to the next state.
Methods
ready
()Check if the event is ready.