Example 5: Running a distributed simulation based on a script

A distributed simulation can run with or without the GUI. If GUI is not used, the simulation runs based on a script file.  To run this example, you need the distributed version of SMARTS, which includes server.jar and worker.jar.

First, download this sample route file and this sample script file. Put the two files in the same directory of server.jar.

Then, run server.jar with an option, “-gui false”, from command line. The command can be like “java -jar server.jar -gui false”.  The program will let you set a few parameters, such the number of workers and the script file. You should launch the workers when asked by the program. The following screenshot shows the progress to run such a simulation.

After the simulation, several data files will be generated in the same directory of server.jar.