Package modelarium.scheduler
Class InOrderScheduler
java.lang.Object
modelarium.scheduler.InOrderScheduler
- All Implemented Interfaces:
ModelScheduler
A scheduler that executes each agent in the order they appear in the agent set.
This scheduling strategy ensures that all agents are processed sequentially and predictably for each simulation tick.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InOrderScheduler
public InOrderScheduler()
-
-
Method Details
-
runTick
Executes each agent'srun()method in the order they are stored in the agent set.- Specified by:
runTickin interfaceModelScheduler- Parameters:
agentSet- the set of agents to run for this tick
-