摘要
设计模式/软件设计模式(Design pattern)是软件设计过程中的经验总结。可以让程序代码易重用、易理解、更稳定。目前总结出来的模式有23种之多,文中主要涉及"工厂模式"在多串口通信软件开发中的应用。作者针对衡器称重系统中常用的仪表、一机一秤、一机多秤等应用场景,提出相应的解决方案。
Design pattern/software design pattern is experience generalization about the software designing, which makes code more reusable, more understandable and steadier. At present, we gain 23 kinds of patterns, and in this paper we focus on apply of factory pattern in multiport serial communication software developing. The author offered related solutions about application such as normal meters in weighting apparatus system, one scale one machine pattern and multiple scales on one machine.
出处
《衡器》
2017年第8期11-14,共4页
Weighing Instrument
关键词
设计模式
C++
串口通信
称重管理软件
工厂模式
design pattern, C++, serial communication, weighing management software, factory pattern.