摘要
诊断软件由于其诊断对象的复杂性和诊断策略的多样性,为设计模式的使用提供了较大空间.将设计模式引入船用机电设备故障红外智能诊断软件的开发,并具体讨论了一些常见的模式如Adapter、Bridge、Strategy和Observer等在软件各个模块和环节中的应用.实验证明,设计模式的使用,简化、明晰了软件的结构,加强了软件的通用性、稳定性和灵活性,提高了软件的可理解性和可维护性,并使得丰富红外诊断软件的接口和功能变得更为容易,进一步拓宽了软件的使用范围.
Because of the complexity of the diagnosed objects and the flexibility of the diagnosis method and strategy, the fault diagnosis software provides a wide space fov the application of design patterns. Some fiequently-used and important patterns, such as the Adapter Pattern, the Bridge Pattern, the Strategy Pattern and the Observer Pattern, etc. were discussed and were applied in each module of the infrared fault diagnosis software. The practices show that the design patterns refine the structure, improve the universality, stability and flexibility and enhance the understandability and maintainability of the software and make it easier to enrich the interfaces and functions of the software and widen its application area.
出处
《机电设备》
2007年第11期29-33,13,共6页
Mechanical and Electrical Equipment
基金
总装"十一五"装备维修改革基金项目(KY38010914)
关键词
设计模式
红外
故障
智能算法
诊断软件
面向对象
design pattern
infrared
fault
intelligent algorithm
diagnosis software
object-oriented