项目报告
出租车计价器设计与实现
在我国,出租车行业是八十年代初兴起的一项新兴行业,随着出租车的产生,计价
器也就应运而生。但当时在全国没有一家企业能够生产,因而那个时期的计价器是由台
湾引进。台湾是计价器的主要生产场地,目前全世界的计价器中有 90%为台湾生产。
现今我国生产计价器的企业有上百家,主要是集中在北京.上海.沈阳和广州等地。在我
国,经济尚处于发展阶段,由于人民的生活水平以及道路交通的限制,私家汽车的拥有
率在短期内不会有较大的提高,因此出租车扮演者重要的角色。出租车计价器则是出则
车上必不可少的重要仪器,它是负责出租车应运收费的专用智能化仪表。我国的第一家
生产计价器企业是重庆市起重机厂,最早的计价器全部采用机械齿轮结构,只能完成简
单的计程功能,可以说早期的计价器就是一个里程表。随着科学技术的发展,产生了第
二代计价器。它采用了手摇计算机与机械结构相结合的方式,实现了半机械半电子化。
此时它在计程的同时还可以完成计价的工作。大规模集成电路 的发展又产生了第三代
计价器,也就是全电子化的计价器。它的功能也在不断完善.当单片机出现并应用于计
价器后,现代出租车计价器的模型也就基本具备了,它可以完成计程,计价,显示等基
本工作。
在出租车是城市交通的重要组成部分,行业健康和发展也获得越来越多的关注。汽
车计价器是乘客与司机双方的交易准则,它是出租车行业发展的重要标志,是出租车中
最重要的工具。它关系着交易双方的利益。具有良好性能的计价器无论是对广大出租车
司机朋友还是乘客来说都是很必要的。因此,汽车计价器的研究也是十分有应用价值的。
出租车计价器不仅可以解决电子系统小型化、低功耗、高可靠性等问题,而且其开发周
期短、开发软件投入少、,特别是对小批量、多品种的产品需求。通过本课题的设计,
能够综合运用学过的数字系统、C#语言等知识,学习 MyEclipse 软件编辑器与 jdk 软件
编辑器的使用方法。研究内容:按照计费标准能实现计费功能。计价器是出租汽车的经
营者和乘坐出租汽车的消费者之间用于公平贸易结算的工具,因而计价器计价准确与否,
直接关系到经营者和消费者的经济利益。依据国家有关法律、法规,出租汽车计价器是
列入国家首批强制检定的工作计量器具之一,也是近年来国家质量技术监督部门强化管
理的六类重点计量器具之一。在出租车是城市交通的重要组成部分,行业健康和发展也
获得越来越多的关注。汽车计价器是乘客与司机双方的交易准则,它是出租车行业发展
的重要标志,是出租车中最重要的工具。它关系着交易双方的利益。具有良好性能的计
价器无论是对广大出租车司机朋友还是乘客来说都是很必要的。
关键词:出租车计价系统;java 语言;MyEclipse 软件编辑器;Jdk 软件编辑器;单片
机
The taxi pricing system design andimplementationof a taxi
valuation system design and implementation
Abstract
In our country, the taxi industry is rising in the early eighty s, a new industry with a taxi,
the meter is also arises at the historic moment.But at that time, no firm can produce
throughout the country, and the period of the meter is introduced from Taiwan.Taiwan is the
main production area of the meter, 90% of the world of the meter for production in
Taiwan.Today hundreds meter production enterprises in China, mainly concentrated in
Beijing. Shanghai. Shenyang and guangzhou and other places.In China, the economy was
still in the stage of development, people's living standard and the limitation of road traffic,
private car ownership in the short term will not have a larger increase, thus played a crucial
role for the taxi.The taxi meter is an important instrument is out of the car, it is responsible
for the taxi should charge special intelligent instrument.Our country is the first production of
the meter enterprises crane factory in chongqing, one of the earliest meter are all made of
mechanical gear structure, can only do simple log function, a meter of the meter is an early,
so to speak.With the development of science and technology, the second generation of the
meter.It USES the hand computer with a combination of mechanical structure, realizes the
mechanical and electronic.At this point it at the time of log can also complete the valuation
work.The development of large scale integrated circuit and the third generation of the meter,
which is all electronic meter.Its functions are perfect. After the single-chip computer
appeared and applied to the meter, modern model is basically the taxi meters, it can complete
the log, valuation, the basic work. Such as show.
In the taxi is an important part of urban traffic, industry growth, health and get more and
more attention.Auto meter is rule of passengers and the driver both sides of the transaction, it
is an important symbol of the taxi industry development, is the most important tools in the
taxi.It was about the interests of both parties.Have good performance of the meter to the taxi
driver friend or passengers is very necessary.Therefore, the study of the auto meter is also
very has the application value.Taxi meter can not only solve the electronic system
miniaturization, low power consumption, high reliability, and the software development
cycle is short, low cost, and especially for small batch and many varieties of product
demand.Through this topic design, can the integrated use of learned knowledge such as
digital system, the c # language, learning MyEclipse software editor with the use of the JDK
software editor.The research content: according to the charging standards can realize
functions.Is the meter taxi operators and taking a taxi consumers between tool for fair trade
settlement, therefore the meter denominated in accurate or not, is directly related to the
economic interests of the operators and consumers.According to relevant state laws and
regulations, and the taxi meter is included in one of the first batch of national compulsory
verification work measuring instruments, and in recent years, the state administration of
quality and technical supervision departments strengthen the management of one of the six
key measuring instruments.In the taxi is an important part of urban traffic, industry growth,
health and get more and more attention.Auto meter is rule of passengers and the driver both
sides of the transaction, it is an important symbol of the taxi industry development, is the
most important tools in the taxi.It was about the interests of both parties.Have good
performance of the meter to the taxi driver friend or passengers is very necessary.
Keywords: taxi billing system ;MyEclipse ;Java language ;
software (t1) editorThe Jdk; single-chip microcomputer software editor
目 录
1 绪论 ...............................................................................................................................1
1.1 系统开发背景 .........................................................................................................1
1.2 系统开发目的 .........................................................................................................2
1.3 系统开发目标 .........................................................................................................2
2 系统开发技术和工具....................................................................................................3
1.4 系统开发的工具 .....................................................................................................3
1.4.1 MyEclipse 8.5 ...................................................................................................3
1.4.2 Tomcat 6.0 ........................................................................................................4
1.4.3 SQLyog .............................................................................................................6
1.5 系统开发技术 .........................................................................................................6
1.5.1 编程框架..........................................................................................................6
1.5.2 Java 的基本概念 ..............................................................................................6
1.5.3 Java 层结构的特点 .........................................................................................7
1.5.4 MVC 框架 ........................................................................................................8
1.5.5 Swing ................................................................................................................8
1.5.6 Jpanel ................................................................................................................9
1.5.7 Java 多线程 ......................................................................................................9
2 可行性分析 ................................................................................................................10
2.1 可行性分析 ...........................................................................................................10
2.1.1 技术可行性....................................................................................................10
2.1.2 经济可行性....................................................................................................10
2.1.3 操作可行性....................................................................................................10
2.2 设计目标 ...............................................................................................................10
2.3 功能要求 ...............................................................................................................11
2.3.1 出租车维护....................................................................................................11
2.3.2 司机信息的维护............................................................................................11
2.3.3 订单信息的生成............................................................................................11
2.3.4 订单信息的维护............................................................................................11
2.4 系统开发环境配置 ...............................................................................................12
2.5 系统开发工具 .......................................................................................................12
2.5.1 开发语言—JSP..............................................................................................12
2.5.2 Eclipse 简介....................................................................................................13
2.5.3 Tomcat 简介 ...................................................................................................14
3 需求分析 ....................................................................................................................16
3.1 需求分析描述 .......................................................................................................16
3.1.1 需求分析的任务............................................................................................16