Download StreetSim

So far there is only a Windows/DOS program. Load this folder to C:\StreetSim, open it and double-click on streetsim.exe to run the simulation.

CAUTION! 
Don't press mouse buttons while running the program. Because then the program lost control over the keyboard and the simulation can't be stopped or controlled otherwise. 

For that reason there is an emergency exit: moving the mouse arrow to the upper left corner, which will exit the program (without clicks). Therefore, avoid to place the arrow at the upper left corner.


StreetSim tutorial


To let a person mrX move on the map from one position to another, starting at a certain time and moving with a certain velocity, write the instructions below in the file simfile.txt (which should be cleared before):

time 23:05 blue person mrX
100 200 begin-path
250 200 5 km/h
end-path

When running StreetSim with this simfile a blue label with the white text 'mrX' will move horizontally from a position 100 pixels from the left margin of the map to a position 250 pixels from the margin. To let mrX turn around a corner at the position 250 200 and walk upwards to a position 250 150, extend the instruction:

time 23:05 blue person mrX
100 200 begin-path
250 200 5 km/h
250 150 5 km/h
end-path

This way mrX could be instructed to move along any polygon (path of piecewise straight lines). To make him stop for a while and then go back to 250 200, write:

time 23:05 blue person mrX
100 200 begin-path
250 200 5 km/h
250 150 5 km/h
wait 10 seconds
250 200 5 km/h
end-path

To let missY walk simultaneously, add to the simfile the instructions:

time 23:10 rose person missY
250 20 begin-path
250 200 7 km/h
end-path

It doesn't matter if the instructions of mrX or missY comes first. The only difference is that the first persons label will occur under the the other persons label if they somewhere coincides.

One can also use dm/s instead of km/h for velocities, minutes instead of seconds for pauses and car instead of person.

To place a fixed label on the map at the position 250 200, write:

250 200 green label meeting

There can be no spaces in the names of labels, persons or cars.

1 kommentar: