• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2021, Vol. 43 ›› Issue (06): 1014-1023.

• 软件工程 • 上一篇    下一篇

引入线索约束的设计模式变体挖掘研究

肖卓宇1,何锫2,徐运标1,陈果1,郭杰1,黄俊3   

  1. (1.湖南工业职业技术学院信息工程学院,湖南 长沙 410208;2.广州大学计算机科学与网络工程学院,广东 广州 510006;

    3.湖南工业职业技术学院机械工程学院,湖南 长沙 410208)

  • 收稿日期:2020-10-06 修回日期:2020-12-23 接受日期:2021-06-25 出版日期:2021-06-25 发布日期:2021-06-22
  • 基金资助:
    湖南省自然科学基金科教联合项目(2020JJ7035);湖南省教育厅科学研究项目(19C0611);国家自然科学基金(61977018)

Variant mining of design pattern with clue constraint

XIAO Zhuo-yu1,He Pei2,XU Yun-biao1,CHEN Guo1,GUO Jie1,HUANG Jun3   

  1. (1.School of Information Engineering,Hunan Industry Polytechnic,Changsha 410208;

    2.School of Computer Science and Cyber Engineering,Guangzhou University,Guangzhou 510006;

    3.School of Mechanical Engineering,Hunan Industry Polytechnic,Changsha 410208,China)

  • Received:2020-10-06 Revised:2020-12-23 Accepted:2021-06-25 Online:2021-06-25 Published:2021-06-22
  • Supported by:


摘要: 针对设计模式变体挖掘准确率较低的问题,提出引入线索约束的设计模式变体挖掘方法,旨在基于约束满足问题CSP描述设计模式变体线索,给出DPVMC算法,分结构特征约束与时序特征约束2个阶段引入线索。以Proxy、Bridge、Command、Factory Method 模式变体为例,设计了2阶段的单个设计模式变体挖掘实验与集成设计模式变体挖掘实验,通过4种主流设计模式挖掘工具与4种基准系统进行了设计模式挖掘实验,实验结果表明,本文方法取得了较好的效果。

关键词: 设计模式;设计模式变体;线索;CSP;约束 

Abstract: Aiming at the low accuracy issue of variant mining of design pattern, a variant mining method of design pattern is proposed by introducing clue constraints. , which aims to describe variant clues of design pattern based on the constraint satisfaction problem (CSP). The DPVMC (Design Pattern Variant Mining with Clue) algorithm is given, which introduces clues in two stages: structural feature constraints and timing feature constraints. Taking Proxy, Bridge, Command, and Factory Method pattern variants as examples, a two-stage single design pattern variant mining experiment and an integrated design pattern variant mining experiment are designed. Design pattern mining experiments are carried out through 4 mainstream design pattern mining tools and 4 benchmark systems. The experimental results show that this research method achieves good results.


Key words: design pattern, design pattern variant, clue, constraint satisfaction problem, constraint