节点文献

设计模式在FDP系统设计中的应用

The Application of Design Pattern in the Design of FDP System

【作者】 王选

【导师】 李永宁;

【作者基本信息】 四川大学 , 计算机应用技术, 2004, 硕士

【摘要】 文中对空中交通管制(ATC)系统的子系统飞行数据处理(FDP)系统中的若干设计问题做了详尽探讨并给出了相应的解决方案。目前,该套系统已在双流、贵阳等多个机场投入使用,获得用户的一致好评。文章阐述了设计模式的起源以及各种设计模式的设计意图,并分析了使用这些设计模式可以给软件系统带来的好处。本文论述了多种设计模式在飞行数据处理子系统中的应用,分析了空管系统的整体架构,并对各子系统的网络交互做了细致的分析,提出采用工厂模式封装网络包,从而为网络交互提供了统一的接口。对于在整个系统内仅需要提供一个实例的类,作者采用单例模式的设计思想进行封装,并给出了单例模式的两种典型实现方式——饿汉式实现以及懒汉式实现。对飞行计划的处理工作是飞行数据处理子系统的核心任务,文中详细讨论了飞行计划的状态及其变迁,并采用状态模式封装飞行计划的各个子状态,从而把各个子状态包装到相应的子类中,把行为的定义局域化,使得系统状态变化变得明显,而且避免了大量条件转移语句的使用,使系统结构变得清晰。策略模式用来封装一组算法,使其达到可以相互替换的效果,本文利用策略模式的这一特性对飞行计划的来源以及航路的解析策略进行了封装,使用策略模式可以使得新策略的加入变得容易,从而使系统获得良好的可扩充性。文中采用了大量的UML图形描述各个设计模式。文中所提及的设计思想,既可以应用于对现有代码的重构,也可以为后续系统的设计提供参考。

【Abstract】 This paper discusses the design problem of the air traffic control’s(ATC) subsystem — fly data process (FDP), and provides its solution. Now, the system has been adopted by many aerodromes such as shuangliu, guiyang etc.In the design of FDP, the author takes advantage of many kinds of design patterns. The author analyzes the whole structure of air traffic control system and discusses the subsystem’s information exchange by network thoroughly. To provide interface in the same way for network information exchange, the author adopts factory pattern to encapsulate network packet. And the author adopts singleton pattern to ensure one instance for those who need only one instance in the system. The management of fly plan is the core task of fly data process system. The author analyzes the fly plan’s state and its transformation. And the author makes use of state pattern to encapsulate fly plan’s states. Strategy pattern can encapsulate a group of algorithm, and makes the algorithms to be replaced freely. The author uses this character to encapsulate the source of plan and as a decode strategy of route. The paper uses a great deal UML figure to describe the pattern’s structure.The design thought in the paper not only can be used to rebuild current code, but also provide reference for later system design.

【关键词】 空中交通管制飞行数据处理设计模式UMLFDP
【Key words】 air traffic controlfly data processdesign patternUMLFDP
  • 【网络出版投稿人】 四川大学
  • 【网络出版年期】2005年 01期
  • 【分类号】V355
  • 【被引频次】6
  • 【下载频次】129
节点文献中: