摘要
采用多设计模式的方法设计某试验台测控系统的DAS软件,可以实现采集设备的高效管理与自动控制,采集数据的有效处理,同时为今后测控软件系统的扩展或更新提供接口。介绍了适配器、装饰者模式、单例模式的基本原理,并给出采用此3种软件设计模式构建DAS软件模块的模型,实现程序代码的有效复用,并提升应用软件的可维护性与可扩展性。
The design method based on multiple design patterns is used to design the DAS software for a test-bed measurement and control system,which can be used to realize the high-efficient management and automatic control of the collecting device and high-efficient processing of the collected data;meanwhile,the interface is provided for extending or updating this software.This article introduces the basic principle of adapter,decorator and singleton patterns,and sets up a software design model of the data acquisition system based on these design patterns,which can be used to make the program codes reused richly,thus improving the maintainability and expansibility of application software.
作者
段从武
李亭亭
赵世平
DUAN Congwu;LI Tingting;ZHAO Shiping(School of Manufacturing Science and Engineering,Sichuan University,Chengdu 610065,China)
出处
《机械制造与自动化》
2018年第6期190-193,共4页
Machine Building & Automation
关键词
设计模式
DAS
测控系统
代码复用
可扩展性
design patterns
DAS
measurement and control system
code reuse
expandability