作者:徐晓东, 徐志跃, 周强
作者单位:北京航空航天大学自动化科学与电气工程学院, 北京 100191
关键词:自动化; 虚拟仪器; 层次结构; 设计模式; 舵机
摘要:
测试软件的复用性是摆在测试界面前亟待解决的重要问题.运用面向对象的设计方法,基于层次体系结构理论,以舵机测试系统为模型,提出了一种通用测试软件的三层结构.在实现中,按照面向对象设计原则,采用uml进行建模,使用设计模式和c#反射机制提高软件复用性,达到了使用同一套软件完成舵机测试领域内同一系列产品测试的目标.
design of universal test software for actuator based on hierarchical architecture
xu xiao-dong, xu zhi-yue, zhou qiang
school of automation science and electrical engineering, beihang university, beijing 100191, china
abstract: at present, the generality is a problem need to be solved for test software. based on object-oriented design methods and the theories of hierarchical architecture, three-tier structure was proposed for constructing the universal test software. according to the function of each layer, the design method and the reasons were described. in the design, unified modeling language(uml) was used for modeling and the principles of object-oriented design also played an important role in the implementation. design patterns and c# reflection mechanism were used to improve software genrality. so the target that the rudder of the same family can be tested by the same set of software is achieved.
keywords: automation; virtual instruments; hierarchy-based; design pattern; actuator
2011, 37(5): 79-82 收稿日期: 2010-8-11;收到修改稿日期: 2010-10-25
基金项目:
作者简介: 徐晓东(1985-), 男, 湖北随州市人, 硕士研究生, 专业方向为虚拟仪器和通用测试系统.
参考文献
[1] 谢化勇, 肖明清. 某型导发架通用测试系统软件复用性设计[j]. 火力与指挥控制, 2010(1): 156-159.
[2] 叶海明, 周绍磊, 王昆平. 通用测试系统软件平台设计[j].国外电子测量技术, 2010(2): 54-57.
[3] 王邦千. 计算机操作系统体系结构综述[j]. 达县师范高等专科学校学报: 自然科学版, 2005(9): 30-32.
[4] 宛延闿, 定海. 面向对象设计与分析[m]. 北京: 清华大学出版社, 2001.
[5] 赵池龙, 杨林, 孙伟. 实用软件工程[m]. 2版. 北京: 电子工业出版社, 2006.
[6] 王霞俊. 浅谈软件体系结构[j]. 常州轻工职业技术学院学报, 2007, 3(1): 12-15.
[7] freeman e. head first设计模式[m]. oreily taiwan公司, 译. 北京: 中国电力出版社, 2007.
[8] 华铨平, 庞倩超, 谢颖. 抽象工厂设计模式在3层结构开发中的应用[j]. 大庆石油学院学报, 2009(6): 112-115.
[9] nagel c, evjen b. c#高级编程[m]. 6版. 北京: 清华大学出版社, 2008.

