Get all agents scheduled to tick at the given time.
The current environment time
Array of agents that should tick
Get the next time at which any agent is scheduled. Used for event-driven simulation to skip empty time steps.
The next scheduled time, or null if nothing is scheduled
Called when an agent is added to the environment.
The newly added agent
Current environment time
Called when an agent is removed from the environment.
The agent being removed
Reset the scheduler state.
Schedule an agent to tick at a specific time.
The agent to schedule
The time at which the agent should tick
Remove an agent from the schedule entirely.
The agent to unschedule
Interface for agent schedulers.
A scheduler determines which agents should tick at any given time step. Different implementations allow for different scheduling patterns:
Since
0.6.0