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
- Install or enable the Technical Green Signal Headway plugin.
- 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']
) - Customize the snippet.
rollingStock,timetableandmicro: the projects to be used for the simulation.minStopTime: (optional) override the minimum stop time of every traintrainsets: (optional) override the trainset of every train
- 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']
)