Description: Simulation realize intersection traffic management system logic, specific requirements as follows:
1, asynchronous randomly generated according to each route traffic. For example:
From south to north and the vehicle- straight vehicles
And by the west to the southbound vehicles- turn right vehicles
From the east to and to the southbound vehicles-- to turn vehicles
...
2, semaphore yellow lights, considering only ignoring red lights and green.
· 3, should consider left vehicle control lights, turn right vehicle not controlled by the traffic.
· 4, specific light control logic and real life ordinary traffic control logic is same, not consider special situations of control logic.
Note: north-south and east-west vehicles, vehicle alternate release in waiting vehicles should first clears go straight vehicles and then release left vehicles.
· 5, every car through the intersection time for 1 second (hint: can Sleep through threads of simulated) way.
· 6, randomly ge
To Search:
File list (Check if you may need any files):
traffic.rar
traffic.doc
traffic.ppt