Requirements:
* left hand side driving.
* user can give any positive number for any type of vehicle category.
* given total number of vehicles should move on the four roads randomly.(any direction)
* user can drag and drop Red circle(CA- congestion area) on the road.
* then vehicles stops and animate signal transmitting and pop up a calculation window.
* you can use this dummy calculation code for peak hours and off-peak hours simulation.
* When the start button is clicked total number of vehicles should be moved as a loop
until red circle is dragged and dropped on the road.
1)Off-peak hours: (assume vehicle traffic is controlled by the traffic lights)
i) four way junction traffic is controlled by traffic lights.
ii) traffic lights timing can be changed in back-end and vehicles moving randomly according to the traffic light signal.
iii) any time user can drag and drop a Red Circle and backward vehicles are stoped.
iv) calculation window is pop up.
2)Peak hours: (assume vehicle traffic is controlled by the traffic police)
i) four way junction traffic is controlled by the user.
ii) User can control traffic lights by giving the chance to move the vehicles in any direction of the junction.
(you can use a buttons or easy way to select the particular traffic light change colour as a green, other three traffic lights get red colour)
iii) vehicles are moved randomly according to the traffic light signal.
iv) any time user can drag and drop a Red Circle and backward vehicles stops.
v) calculation window is pop up.