The Separation of Powers: Scheduler vs. Dispatcher
In a railway network, there are two distinct problems:
- deciding which route a train should take,
- and safely managing trains that are already running.
Although these two problems are related, they are handled separately in the simulation.
The Scheduler (route planning):
The Scheduler is responsible for calculating each train's itinerary before it starts moving.
Its function is to answer questions such as:
Which route should it take?
Which switches must it pass through?
What is the best available route?
The result is an ordered list of block sections defining the train's planned route.
In real-world systems, this problem is usually solved using pathfinding algorithms such as Dijkstra or A*.
Dispatcher: traffic control:
The Dispatcher (CTC) does not calculate routes.
It assumes that each train already knows its itinerary and is solely responsible for managing traffic in real time.
Its responsibilities are:
reserving block sections,
protecting crossings and conflicts,
switching points,
and authorizing or stopping trains according to the state of the network.
Its main objective is to ensure that two incompatible trains do not occupy the same infrastructure simultaneously.
Model Scope
Only the Dispatcher is implemented in this simulation.
The Scheduler is outside the scope of the model because it specifically requires a prior simulation capable of determining whether a new train service can be introduced into the network without creating conflicts.