设计模式变体的描述与验证* |
| |
引用本文: | 肖卓宇,何锫,陈俊旭. 设计模式变体的描述与验证*[J]. 计算机应用研究, 2017, 34(6) |
| |
作者姓名: | 肖卓宇 何锫 陈俊旭 |
| |
作者单位: | 中南林业科技大学涉外学院,北京大学高可信软件技术教育部重点实验室,中南林业科技大学 |
| |
基金项目: | 国家自然科学基金资助项目;省/市自然科学基金资助项目;省自然科学基金资助项目 |
| |
摘 要: | 为解决标准设计模式演化后难以检测的问题,引入设计模式变体思想,以Bridge模式为例,给出了八种常用的变体实现,并以人工形式挖掘了四种开源系统中Bridge模式变体的基准数,接着在Apache Ant1.6.2与JHotDraw5.1开源系统中通过六种主流设计模式检测工具进行了变体检测实验。试验结果表明,FCA-CBR方法简单有效,对2种开源系统中Bridge模式变体检测的精确率达到60%与48.1%,与先前方法相比有了较大的提高。
|
关 键 词: | 程序理解 设计模式识别 变体 基准 |
收稿时间: | 2016-08-14 |
修稿时间: | 2017-04-08 |
Xiao Zhuo-yu1, He Pei2,3,4, Chen Junxu1 |
| |
Affiliation: | Central South University of Forestry and Technology,Key Laboratory of High Confidence Software Technologies of Ministry of Education, Peking University,Central South University of Forestry and Technology |
| |
Abstract: | To solve hard detection of standard design pattern evolution, this paper introduced variants ideology of design pattern, and took the bridge pattern as examples, focusing on eight variants of the bridge pattern, manual work mined benchmark of four open source system. Using six kinds of design pattern detection tools to carry out the variation test based on Apache Ant1.6.2 open source system and JHotDraw5.1 open source system. The experimental results show that the accuracy of the FCA-CBR detection method is between 60% and 48.1% of Apache Ant1.6.2 open source system and JHotDraw5.1 open source system., and has certainly increased the recognition accuracy. |
| |
Keywords: | Program comprehension Design pattern recognition Variants Benchmark |
|
| 点击此处可从《计算机应用研究》浏览原始摘要信息 |
|
点击此处可从《计算机应用研究》下载全文 |
|