(二 〇 〇 八 年 六 摘 要 本科毕业设计说明书学校代码: 10128学 号:040202530题 目 : 电子交通模拟器的 JAVA 应用与开发学 生 姓 名 : 李金昌学 院 : 信息工程学院系 别 : 计算机系专 业 : 计算机科学与技术班 级 : 计算机 04-2指 导 老 师 : 谢秀兰 讲师钱庭荣 工程师随着城市车辆的不断增加,现代社会的交通运行能力面临着越来越大的考验。如何提高城市交通的运行能力也就成为现代社会急待解决的问题之一。电子交通模拟器主要是对现实的交通状况进行模拟,并要及时的将相关车流量信息写入日志,以便日后方便对交通状况进行分析和讨论。本系统主要包括以下几个功能模块:配置模块,主要是用来实例化其它模块,以降低系统的耦合度。模拟模块,主要来模拟交通路口的实际情况。备份模块,用来记录一段时间内该路口的车流量的相关信息。同时,为了更好的将系统封装,该系统还增加了登录模块,不仅可以防止恶意访问,也提高了系统的安全性。本系统采纳 C/S 架构进行开发,是一个客户端运行程序。系统主要包括实时交通状况的模拟以及记录日志两个方面。该系统以 JAVA 技术为基础,涉及到相关的Swing,JDBC 等技术。具有良好的可操作性、可维护性、可扩展性和可移植性。同时也具有较友好的界面,使用户使用起来比较方便。关键词:JAVA;Swing;Thread;交通模拟;日志AbstractWith the vehicles of the city increased day by day, the traffic of the modern society runs an ability be confronted with the more and more big ordeal. How to improve the operational ability becomes one of modern society emergency after solve problem also right away.Electronic traffic simulator is the reality to simulate the traffic situation and be going to write relevance vehicle rate of flow information in daily record in time, to be in progress in the future conveniently to traffic situation, analysis and research. This system includes several the following functions module mainly: Configuration module is primarily used for examples of other modules, to reduce the coupling of the system. Simulation module mainly simulates th...