Skip to main content

Technical Green Signal Headway

The plugin Technical Green Signal Headway contains a snippet and a script template to extract the necessary data to calculate the Technical Green Signal Headway (TGSH).

TGSH

TGSH is the ...

Quick start

  1. Install or enable the Technical Green Signal Headway plugin.
  2. In a Scripted Simulation projects, right click on the project node, then New, Groovy script, and paste the following example:
    snippet('lib/TGSH',
    micro: 'Micro',
    rollingStock: 'RollingStock',
    timetable: 'Timetable',
    minStopTime: 30.seconds,
    trainsets: [ '315', 345']
    )
  3. Customize the snippet.
    • rollingStock, timetable and micro: the projects to be used for the simulation.
    • minStopTime: (optional) override the minimum stop time of every train
    • trainsets: (optional) override the trainset of every train
  4. Execute the simulation.

How it works

This is the template of the script:

?

All the logic is contained in the lib/TGSH.snippet snippet, the body of the script contains only the configuration.

Examples

snippet('lib/TGSH',
micro: 'Micro',
rollingStock: 'RollingStock',
timetable: 'Timetable',
minStopTime: 30.seconds,
trainsets: [ '315', 345']
)