Package modelarium.scheduler
Class RandomOrderScheduler
java.lang.Object
modelarium.scheduler.RandomOrderScheduler
- All Implemented Interfaces:
ModelScheduler
A scheduler that executes agents in a randomised order for each tick.
This scheduling strategy helps reduce bias introduced by fixed execution orders and may more closely reflect stochastic processes in real-world systems.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RandomOrderScheduler
public RandomOrderScheduler()
-
-
Method Details
-
runTick
Executes each agent'srun()method in a randomised order.- Specified by:
runTickin interfaceModelScheduler- Parameters:
agentSet- the set of agents to run for this tick
-