摘要
为解决非标准设计模式不易恢复的问题,提出一种非标准设计模式恢复方法,关注设计模式重叠与变体,描述设计模式实例重叠的情形。以Decorator为例总结3种典型的变体实现,通过手工的形式验证经典开源系统中State与Strategy模式重叠实例及Decorator与Composite模式变体的基准数及所处目录位置,以5种主流设计模式恢复工具进行非标准设计模式恢复实验,实验结果表明,矩阵积分评估的策略取得了较好的效果,非标准设计模式恢复值得深入研究。
To solve difficulty recovery of non-standard design pattern,a recovery method for non-standard design pattern was proposed.Focusing on overlap and variant of design pattern,design pattern instance overlap was described.Decorator pattern was taken as an example,focusing on three variants of the bridge pattern.Benchmark and catalog of non-standard design pattern based on overlapping pattern instances of State/Strategy and variant instances of Decorator/Composite in open source system were mined by manual.A nonstandard design pattern test was carried out by five design pattern detection tools based on open source systems.Experimental results show that the method based on the matrix grade evaluation achieves good results,indicating the necessity of non-standard design pattern recovery studies.
作者
肖卓宇
何锫
余波
XIAO Zhuo-yu;HE Pei;YU Bo(Swan College,Central South University of Forestry and Technology,Changsha 410200,China;School of Information Engineering,Hunan Industry Polytechnic,Changsha 410208,China;School of Computer Science and Education Software,Guangzhou University,Guangzhou 510006,China)
出处
《计算机工程与设计》
北大核心
2019年第1期143-148,208,共7页
Computer Engineering and Design
基金
国家自然科学基金项目(61170199)
湖南省普通高等学校教学改革研究基金项目(湘教通[2016]400号1068)
广东省自然科学基金项目(2015A030313501)
广东省普通高校创新团队建设基金项目(2015KCXTD014)
中南林业科技大学涉外学院大学生研究性学习和创新基金项目(2017008)
中南林业科技大学教学改革基金项目(201820)
关键词
设计模式
设计模式恢复
非标准
重叠
变体
design pattern
design pattern recovery
non-standard
overlap
variants