90 likes | 191 Views
Goals: a) Powerful GUI with strong user interaction. (contrary to web applets) b) Accurate traffic simulation using various algorithms c) [Eventually] -> Crash Analysis. JLSim – customizable traffic simulation application. Jinyu Liu Pd. 3. Visual Traffic Simulation “VISSIM”
E N D
Goals: a) Powerful GUI with strong user interaction. (contrary to web applets) b) Accurate traffic simulation using various algorithms c) [Eventually] -> Crash Analysis JLSim – customizable traffic simulation application Jinyu Liu Pd. 3
Visual Traffic Simulation “VISSIM” by Tom Fotherby http://www.tomfotherby.com/Contents/ Education/Project/index.html - 11,000 lines of Java code, fully featured traffic simulation with customizable user interface. - Microscopic traffic approach.
The Thing That Failed: - GLUT/OpenGL - SDL/OpenGL Various C GUI's – MUI, PLUI, GLUI Switch->: Java -Includes buttons, checkboxes, textboxes within the swing class. -NetBeans = easy GUI creation. -Netbeans 3.6 vs. netbeans 5.5.1, forms aren't compatible
Second Quarter: There were still compatibility issues between versions of NetBeans 3.6 [school] vs 5.5 [home] -> form compatibility issues
NetBeans Form Designer -Options available as of now -Obvious ones missing are 1) acceleration 2) reaction time 3) individual car adding 4) traffic light duration and frequency.
Application Design -> Jmenu: File, View, Exit, About, Settings (eventually to be implemented) -> Jpanel (left side): Visual traffic simulation -> Right side: Main GUI functionality, including: 1) Number of cars 2) Traffic light length 3) Car speed 4) Car acceleration Eventually, plan to create a “Design” mode -> Users allowed to place cars and change the road network under which the simulation runs.
Next steps: 1) Add more GUI functions like being able to modify acceleration, reaction time, and braking distance along with traffic signal variables. 2) Implement vertical roads + traffic lights (intersections) 2a) Implement various traffic algorithms (for braking and accelerating and general movement) 3) Begin implementation of crash analysis (if time allows)