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 with interval-based timing.
For DefaultScheduler, the time parameter is used as the offset.
Remove an agent from the schedule entirely.
The agent to unschedule
The default interval-based scheduler.
Agents tick based on their configured interval:
interval: 1means tick every environment tick (default)interval: 5means tick every 5th environment tickprobability: 0.5means 50% chance to tick on eligible ticksExample
Since
0.6.0