Skip to content

Full Simulation

Yair Feldman edited this page Jun 24, 2018 · 13 revisions

Running the script

We provide a simple script to generate such a full simulation, with a user-specified name of an algorithm.

There are 3 possible algorithms: AdvancedScheduler, MaxOccupancyScheduler and StaticScheduler. You can find a description of the algorithms in the Algorithms Page.

Before using the following script, you should create a simulation using one of the simulation creation sctipts (Creating simulation from scratch or Creating simulation from network ).

This script can be found at SummitBTW/simulator/simulate_full.py.

In order to run this script, run the following command (from the directory SummitBTW):

python -m simulator.simulate_full <path-to-simulation-directory> <name-of-the-algorithm> <path-for-output-directory> (GUI = 1|0)

GUI: 1 for simulation with gui and 0 for simulation without gui.

The script will then generate 2 files and save it in the <destination-directory>:

  • <destination-directory>_detectors-output_<name-of-the-algorithm>.xml: include all lane area detectors in the network.
  • <destination-directory>_tripinfo-output_<name-of-the-algorithm>.xml: FullOutput file.

Clone this wiki locally