Customizable Traffic Simulation Application for Powerful GUI Interactions
60 likes | 172 Vues
Explore JLSim, a fully featured application with a customizable user interface for accurate traffic simulation using various algorithms. This Java-based tool provides a robust visual representation of traffic scenarios with detailed control over car numbers, traffic lights, speeds, and acceleration. Plan to incorporate a "Design" mode where users can modify the road network and place cars. Enhance your learning curve by leveraging NetBeans for GUI design and implementing advanced traffic algorithms into the simulation.
Customizable Traffic Simulation Application for Powerful GUI Interactions
E N D
Presentation Transcript
Goals: a) Powerful GUI with strong user interaction. (contrary to web applets) b) Accurate traffic simulation using various algorithms 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
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.
SDL/OpenGL C vs. Java First 95% of first quarter, -> Learning openGL -> textured 2d, 3d quads, rotating in 3d space, mouse input -> drawing random car pics in GIMP -> Looking at 7 different GUI's. Next steps: 1) Use netbeans to design the GUI. 2) Implement the visual part of the traffic simulation. 2a) Implement various traffic algorithms