Optional orderingFunction: AgentOrderingFunctionProtected agentsAgents managed by this scheduler
Private creationCached agent creation order
Protected lastPerformance tracking
Private modeScheduling mode
Private orderingCustom ordering function
Protected randomRandom seed for deterministic scheduling
Private reversedWhether to reverse the order
Protected stepCurrent step number
Protected totalStatic prefixedAdd agent to scheduling
Cache agent creation order
Private comparePrivate compareProtected getGet current mode
Protected getGet scheduling statistics
Protected onHook for subclasses when agent is added
Protected onHook for subclasses when agent is removed
Remove agent from scheduling
Set scheduling mode
Optional orderingFunction: AgentOrderingFunctionPrivate sortStatic createCreate common ordering functions
Order by creation time
Order by distance from origin
Order by energy level (lowest first)
Order by energy level (highest first)
Random ordering (for sequential scheduler with random element)
Order by agent type (if agents have type property)
SequentialScheduler - Activates agents in deterministic order
Features:
Educational Context: Simulates structured environments where community members follow predictable patterns, such as hierarchical organizations or systematic processes.