| 注册
首页|期刊导航|计算机技术与发展|设计模式检测的映射机制分类研究

设计模式检测的映射机制分类研究

肖卓宇 陈果 徐运标

计算机技术与发展2025,Vol.35Issue(5):45-53,9.
计算机技术与发展2025,Vol.35Issue(5):45-53,9.DOI:10.20165/j.cnki.ISSN1673-629X.2025.0003

设计模式检测的映射机制分类研究

Research on Classification of Mapping Mechanisms for Design Pattern Detection

肖卓宇 1陈果 1徐运标1

作者信息

  • 1. 湖南工业职业技术学院信息工程学院,湖南长沙 410208
  • 折叠

摘要

Abstract

A classification detection method based on a design pattern mapping mechanism is proposed to address the limitations in traditional design pattern detection,which primarily focuses on structural design patterns but lacks adequate attention to behavioral,creational design patterns,as well as the detection of evolved design patterns,shared instances,and variants.To enhance the precision of design pattern detection,the proposed method takes the structural Bridge design pattern,the behavioral Observer design pattern,and the creational Factory method design pattern as examples to describe a multi-stage mapping mechanism for design pattern participants.By in-troducing design pattern substructures,the mapping mechanism is constrained through Transverse,Merging,and Mapping operations,which progressively integrate candidate substructures of design pattern participants to form candidate instances of design patterns.An algorithm named DP_Mapping is proposed,and a mapping framework for design pattern detection is established.Experiments are conducted on four benchmark systems,such as QuickUML2001,JUnit,JRefactory,and JHotDraw,using structural design patterns such as Bridge and Adapter,behavioral design patterns such as Observer and Command,and creational design patterns including Factory method and Singleton.The experiments are designed for two stages:classification detection of design patterns and detection of shared design pattern instances.The results demonstrate that the proposed approach achieves improved detection effectiveness for design patterns.

关键词

设计模式/设计模式检测/子结构/映射/分类

Key words

design pattern/design pattern detection/substructure/mapping/classification

分类

计算机与自动化

引用本文复制引用

肖卓宇,陈果,徐运标..设计模式检测的映射机制分类研究[J].计算机技术与发展,2025,35(5):45-53,9.

基金项目

湖南省自然科学基金(2024JJ8099) (2024JJ8099)

计算机技术与发展

1673-629X

访问量0
|
下载量0
段落导航相关论文