Posts Tagged ‘Java Simulation’

Java Traffic simulation

November 3, 2007

Some people asked me to post the code for java trafic sumulation. So here it is.

What is it?

“Traffic simulations attempts to imitate the situation encountered when traveling on highway at peak times. It attempts to answer the question whether or not having meters control the traffic flow has any effect on the average commute time.

To answer this question we approximated some of the variables:

The speed is adjusted based on the number of cars on the highway. We didn’t take into account other factors such as driving conditions or time of day.” Want to know more? Here it is : Trafic Simulation Doc.