AFC系统通信中间件的研究与设计

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

学校代号10536 学号0810803550 分类号TP391 密级公开

硕士学位论文

AFC系统通信中间件的研究与设计

学位申请人姓名张良春

培养单位长沙理工大学

导师姓名及职称龙鹏飞教授

学科专业计算机应用技术

研究方向人工智能及应用

论文提交日期2011年3月

学校代号:10536

学号:0810803550

密级:公开

长沙理工大学硕士学位论文

AFC系统通信中间件的研究与设计

学位申请人姓名张良春

导师姓名及职称龙鹏飞教授

培养单位长沙理工大学

专业名称计算机应用技术

论文提交日期2011年3月

论文答辩日期2011年5月

答辩委员会主席车生兵教授

Research and Design of Communication Middleware

on AFC System

by

Zhang Liangchun

B.E.( Hunan City University) 2008

A thesis submitted in partial satisfaction of the

Requirements for the degree of

Master of Engineering

in

Computer Application Technology

in

Changsha University of Science & Technology

Supervisor

Professor Long Pengfei

March, 2011

长沙理工大学

学位论文原创性声明

本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律后果由本人承担。

作者签名:日期:年月日

学位论文版权使用授权书

本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权长沙理工大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。

本学位论文属于

1、保密□,在______年解密后适用本授权书。

2

(请在以上相应方框内打“√”)

作者签名:日期:年月日

导师签名:日期:年月日

摘要

随着城市化进程的加速,城市人口暴增,城市交通压力越来越严重。中国各大城市都在想方设法解决这方面的问题,其中就投入了大量人力物力财力进行城市轨道交通的建设,因此城市轨道交通智能化和信息化的发展空间巨大。自动售检票(Automatic Fare Collection, AFC)系统作为轨道交通智能化设备的重要组成部分,其信息化建设一直备受重视。中间件技术作为一种前沿的软件应用技术,在各种软件系统中发挥着集成度高、可复用性强和提高应用开发效率的优势。本文通过对中间件,特别是通信中间件的研究,阐述了一种通过通信中间件来提高AFC系统软件可靠性、降低开发成本、缩短开发周期的开发体制。

本文根据通用性和易维护性原则设计了一种基于消息的通信中间件,同时利用具备兼容性的C++和socket开发技术,封装了一套为各种系统应用软件提供统一接口的通信模式。该通信中间件屏蔽网络连接,不再考虑通信方面的细节问题。在具体实现过程中,运用了以下几点技术来优化通信中间件的性能:采用多线程技术并发通信,提高了数据传输效率,降低了CPU的占用率;对紧急信息开辟实时的通道,对其做专门的处理,尽可能减少这类消息的延时;对所有消息实行优先级控制,建立数据缓冲机制,应用程序在轮询消息队列时,优先检测级别高的消息队列;提供了加密过程,确保数据传输过程中的安全。

根据实际应用情况,使用通信中间件后,简化了AFC系统的开发,提高了应用软件的开发效率,使开发人员更加专注于对具体业务的研究。

关键词:中间件;消息队列;并发处理;Socket

ABSTRACT

With the acceleration of urbanization process and the explosion of urban population, pressure on urban transport becomes more and more intense. Many big cities in China are trying to solve this problem through investments of a great deal of human, material and financial resources in the construction of urban rail transit system, so the intelligence and information technology development of urban rail transit has a great potential; AFC (Automatic Fare Collection) system acting as an important part of intelligent rail transportation equipment and its information construction has always been given priority. Middleware, as a cutting-edge software application technology, in a variety of software systems has a lot of advantages such as a high integration, a high reusability, and a better application development efficiency. Through studying the middleware, the communication middleware in particular, this paper describes the development system which can improve AFC system’s software reliability, lower development costs and shorten development cycle with its help.

According to the principles of commonality and easy-maintainability, a message based communication middleware is designed, while taking advantages of C++ and Socket technologies, a communication pattern of unified interface for different systems and applications is designed.The communication middleware can shield the network connection and thus it is needless to consider the communication details. In practical implementation, several techniques are used to improve the performance: the multi-thread technology for simultaneous communication to improve the data transmission efficiency as to reduce the occupancy rate of CPU; the real-time channel for emergence messages as to reduce the delay; the priority control and data buffer for all messages as to give priority to higher priority message in polling message sequence; encryption procedure of data transmission as to guarantee the security.

The research shows that the application of communication middleware can simplify the development of AFC system, improve the development efficiency of application software and enable the developers to give a higher focus on the specific business.

Key words:Middleware ; Message Queue ; Concurrent Process ; Socket

相关文档
最新文档