摘要
针对传统的面向过程的软件设计方法已无法应对市场对燃料电池测试系统快速的需求变化,提出将设计模式应用于燃料电池测试系统软件的开发过程,重点介绍了抽象工厂模式、命令模式、观察者模式、外观模式的应用。实验结果表明,基于面向对象设计模式开发的燃料电池测试系统软件具有良好的架构,实现了程序模块间的低耦合和模块内部的高内聚,提高了程序的可维护性和可复用性,能够灵活应对功能需求的变化。采用该架构开发完成的多款燃料电池测试软件运行稳定可靠。
Because the traditional process-oriented software design methods have been unable to cope with rapidly changing needs of the market for fuel cell test system,the design patterns are proposed to apply to the fuel cell test system software de-velopment process. Four important patterns,including abstract factory pattern,command pattern,observer pattern and facade pattern,are described in detail. The experimental results show that the fuel cell test system software developed on the base of ob-ject-oriented design pattern has a good architecture,as well as implemented low coupling between modules and high cohesion within the module,and make the software more flexible to the functional requirements. The fuel cell test softwares developed with this architecture run stable and reliable.
出处
《现代电子技术》
2014年第22期153-156,共4页
Modern Electronics Technique
关键词
面向对象设计模式
燃料电池
测试系统
软件开发
object-oriented design pattern
fuel cell
test system
software development