a) Powerful GUI with strong user interaction.
(contrary to web applets)
b) Accurate traffic simulation using various algorithms
> Crash Analysis
Jinyu Liu Pd. 3
Visual Traffic Simulation
by Tom Fotherby
11,000 lines of Java code, fully featured traffic simulation
with customizable user interface.
The Thing That Failed:
Various C GUI's
MUI, PLUI, GLUI
Includes buttons, checkboxes, textboxes
within the swing class.
NetBeans = easy GUI creation.
Netbeans 3.6 vs. netbeans 5.5.1, forms
There were still compatibility issues between
versions of NetBeans
> form compatibility issues
NetBeans Form Designer
Options available as of
2) reaction time
3) individual car
4) traffic light duration
> Jmenu: File, View, Exit, About, Settings
(eventually to be implemented)
> Jpanel (left side): Visual traffic simulation
> Right side: Main GUI functionality, including:
) Number of cars
) Traffic light length
) Car speed
) Car acceleration
> Users allowed to place cars and change the
road network under which the simulation runs.
) Add more GUI functions like being able to modify
acceleration, reaction time, and braking distance along with
traffic signal variables.
) Implement vertical roads + traffic lights (intersections)
a) Implement various traffic algorithms (for braking and
accelerating and general movement)
) Begin implementation of crash analysis (if time allows)