没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
公交查询系统是城市道路交通的重要组成部分,是城市发展的必然产物,是
联系国民生活、社会生产和流通领域的关键环节。我国城市公交查询系统的发展
处于一个较落后的水平,人们可以获得信息的方式很少,为了解决这种问题,设计
出基于 J2EE 的公交查询系统。
本论文详细介绍了整个系统的已实现的功能。首先,实现多种查询功能,包
括根据商厦名称、公交车号、日常站点、和任意两个站点查询乘车路线。其次,
采用最短路径算法查找任意两个站点之间的最短乘车路线。最后,提供了用户留
言的功能、用户管理功能和后台车次管理功能;用户留言功能,主要是收集用户
的留言信息,可以根据用户提供的留言信息或是提出的建议,对系统进行修改和
完善;用户管理功能,主要是删除用户信息和修改用户基本信息;后台车次管理
功能主要包含添加车次和站点功能、更新车次和站点功能、删除车次和站点功能,
这样做到系统实时更新,为用户查询提供更为准确的信息。
关键词:J2EE;最短路径算法;公交查询
Design and Realization of Public Transport Inquiry System
Based on J2EE
Abstract
Urban public transportation is an important part in traffic and transportation
domain, and it's also the inevitable result of social economy's development in urban
areas. As an important part of urban transportation system, urban public transportation
system is acting a key role in human living, in social production and in transportation
domain .But the inquiry system of public transportation developments in our country
is in a comparatively backward level. The general passengers have less way to obtain
the information. In order to solve this kind of problem, an inquiry system of public
transport based on J2EE is designed.
The thesis has introduced the realized functions of entire system in detail. Firstly,
the system has realized many inquiry functions. The system can search bus route by
the name of business mansion, the number of public transport, ordinary bus station
and two arbitrary stations. Secondly, the system uses the shortest path algorithm to
find the shortest travel routes between any two stations. Finally, the system provides
the functions of consumer message, the bus number managing on the backstage and
the consumer managing. The function of consumer message mainly collects
suggestions from consumer to modify and perfect the system functions. The function
of user managing is to delete user information mainly and revises the fundamental
user information. The functions of bus number managing are mainly to add, update
and delete the bus number and the station on the backstage. These can enable the
system have the quality of real-time updating to provide the accurate information for
user.
Key words:J2EE; Shortest path algorithm; public transport inquiry
目录
1 引言 .......................................................................................................................................................1
1.1 选题背景 .......................................................................................................................................1
1.2 项目的主要研究工作 ...................................................................................................................2
1.3 开发环境 .......................................................................................................................................2
2 理论基础 ...............................................................................................................................................2
2.1 概念 ...............................................................................................................................................2
2.1.1 J2EE 的概念
..........................................................................................................................2
2.1.2 JSP 的概念
............................................................................................................................3
2.1.3 Java Bean 的概念
................................................................................................................3
2.1.4 Java Servlet 的概念
..........................................................................................................3
2.1.5 Session 对象
........................................................................................................................3
2.2 J2EE 的结构 ..................................................................................................................................3
2.3 J2EE 的容器类型 ..........................................................................................................................4
2.4 J2EE 的体系与模式 ......................................................................................................................4
2.
4.1
J2EE 的体系(分布式计算)
....................................................................................................4
2.4.2 J2EE 的模式
..........................................................................................................................4
3 公交查询系统功能分析.......................................................................................................................4
3.1 公交查询系统的需求 ...................................................................................................................4
3.1.1 系统需求描述
.......................................................................................................................4
3.1.2 系统数据流图
.......................................................................................................................5
3.2 公交查询系统的功能 ...................................................................................................................5
3.3 公交查询系统的数据库设计 .......................................................................................................6
3.3.1
E-R
图
...................................................................................................................................6
3.3.2 数据库表设计
.......................................................................................................................7
4 公交查询系统的设计与实现...............................................................................................................9
4.1 创建管理员登录的 SERVLET...........................................................................................................9
4.2 创建用户登录的 SERVLET.............................................................................................................11
4.3 公交系统查询模块 .....................................................................................................................12
4.3.1 车次信息查询
.....................................................................................................................12
4.3.2 站点信息查询
.....................................................................................................................15
4.3.3 两个站点间的信息查询
.....................................................................................................16
4.4 公交系统添加模块 .....................................................................................................................21
4.4.1 添加车次
.............................................................................................................................21
4.4.2 添加站点
.............................................................................................................................22
4.5 公交系统删除模块 .....................................................................................................................22
4.5.1 删除车次
.............................................................................................................................22
4.5.2 删除站点
.............................................................................................................................23
4.6 公交系统更新模块 .....................................................................................................................23
4.7 公交系统留言板模块 .................................................................................................................24
4.7.1 发表留言
.............................................................................................................................24
4.7.2 查看留言
.............................................................................................................................24
4.7.3 删除留言
.............................................................................................................................25
5 系统测试与分析 .................................................................................................................................25
结 论 .................................................................................................................................................26
参考文献 .................................................................................................................................................26
致 谢 .................................................................................................................................................27
剩余23页未读,继续阅读
资源评论
Q_97095639
- 粉丝: 380
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功