Introduction

Updated: 2026-05-28

Trains

The block-based train management algorithm (block sections) is a classic multiple mutual exclusion problem that can hardly be observed and modeled as clearly as it can be in GPSS-Plus.

To address the simulation logic of this environment, it is essential to understand some of the vocabulary and the nature of the logical model.


Rigid Topology (Static Infrastructure):

  • Block sections -> A section of track delimited by point A and point B. It acts as the minimum occupancy unit and the basic mutual exclusion resource.
  • Connections -> Logical junctions linking block sections, designed either to converge (merge two tracks into one) or diverge (split one track into two).
  • Crossing -> Physical intersection of two block sections with atomic mutual exclusion. Trains are not transferred between them, but their paths are mutually incompatible when occupied simultaneously.

Active Topology (Dynamic Control Elements):

  • Switches (points) -> Act as a dynamic switch between three block sections (one common origin and two alternative exits).
  • Signals -> Indications located along the block sections and managed by the CTC.


---------------------------------------------
Active Elements (Entities): 

  • CTC -> Centralized Traffic Control. The core of the simulation model. It is the supervisory system responsible for processing telemetry, controlling signal states, and aligning the switches according to safety and operational rules.
  • Trains -> They flow through the network of block sections. They move by managing their own local attributes of speed, acceleration, and target speed based on the signals they encounter.