文档详情

 城市公交信息管理系统.doc

发布:2016-11-28约字共11页下载文档
文本预览下载声明
计算机与信息学院 《数据库系统实践》报告 2009 年 9 月 一、设计要求 1.全面的信息维护功能,包括主要的交通线路,公交车,停靠站等; 2.乘车线路优化算法; 3.综合交通信息查询,包括道路、公交线路、目的地、乘车方案。 二、开发环境与工具 Microsoft Visual Studio 2008 Microsoft SQL Server 2005 Windows XP SP3 三、设计原理 首先使用WinInet编程,从合肥公交网站不断查询公交路线,保存到本地,然后通过解析字符串获得每条路线的公交号和站名建立数据库BusPath。 再次解析保存的文本扫描每条路线,获得站名并判断是否已经插入到数据库中新建名为StationName的数据库。 建好数据库后,通过数据库编程以及数据库建设优化实现公交系统多功能及模糊查询。 四、系统功能描述及软件模块划分 可实现公交路线多功能查询,并且支持模糊查询,大致分为三个模块 4.1 起点和目的地查询 4.1.1 直接查询 支持模糊查询 4.1.2 一次换乘查询 4.2 站点查询 支持模糊查询 4.3 公交线路查询 五、设计步骤 本程序用到的解决方案分为三个工程 5.1 ReadIePage工程功能 不断地查询合肥公交网站,查询到的公交路线结果保存到pathSave.txt文件中。 5.2 CreateDB工程功能 使用ReadIePage工程生成的pathSave.txt文件建立数据库。 5.3 BusSystem工程功能 通过数据库编程实现公交路线的多功能查询。 设计结果 6.1 ReadIePage工程运行界面 运行后pathSave.txt内容 6.2 BusSystem工程运行界面 6.2.1 直达(模糊查询) 结果: 附加功能(保存): 保存后文件为: 6.2.2 一次换乘 结果: 6.2.3 站点查询(模糊查询) 结果: 6.2.4 公交线路查询 结果: 七、软件使用说明 本软件可以人性化的查询公交线路,操作简单 只需按照自己想查询的方式在编辑框中输入相应内容,并点击查询即可。 八、参考资料 1./ 2.数据库系统概论 王珊 萨师煊 九、验收时间及验收情况(注意,不允许提及自己的验收成绩) 2009年9月14日,组员5人一起去验收的,感谢组长吴同学 十、设计体会 在采集数据中,要尽量考虑到数据的完整性和实时数据的更新,比如这个实例,公交线路是会经常改变的,要如何才能保证用户在查看的时候确实是当时的线路情况 near wire normal to. 6.2.2 cable cutting when cutting should be around cable and profile cutting with a cutting knife cutting a week, cutting depth for cable outer (insulation) stripped, cannot hurt the inner insulation layer and core. 6.2.3 before the first cable production, should be based on the amount of cable specifications, models to select the appropriate specifications of heat shrink tube, heat-shrinkable sleeve color near wire normal to. 6.2.2 cable cutting when cutting should be around cable and profile cutting with a cutting knife cutting a week, cutting depth for cable outer (insulation) stripped, cannot hurt the inner insulation layer and core. 6.2.3 before the first cable production, should be based on the amount of cable specifications, models to select the appropriate specifications of heat shrink tube, heat-shrin
显示全部
相似文档