首页    期刊浏览 2024年11月30日 星期六
登录注册

文章基本信息

  • 标题:Detecting Design Patterns in Object-Oriented Program Source Code by Using Metrics and Machine Learning
  • 本地全文:下载
  • 作者:Satoru Uchiyama , Atsuto Kubo , Hironori Washizaki , Yoshiaki Fukazawa
  • 期刊名称:Journal of Software Engineering and Applications
  • 印刷版ISSN:1945-3116
  • 电子版ISSN:1945-3124
  • 出版年度:2014
  • 卷号:07
  • 期号:12
  • 页码:983-998
  • DOI:10.4236/jsea.2014.712086
  • 语种:English
  • 出版社:Scientific Research Publishing
  • 摘要:Detecting well-known design patterns in object-oriented program source code can help maintainers understand the design of a program. Through the detection, the understandability, maintainability, and reusability of object-oriented programs can be improved. There are automated detection techniques; however, many existing techniques are based on static analysis and use strict conditions composed on class structure data. Hence, it is difficult for them to detect and distinguish design patterns in which the class structures are similar. Moreover, it is difficult for them to deal with diversity in design pattern applications. To solve these problems in existing techniques, we propose a design pattern detection technique using source code metrics and machine learning. Our technique judges candidates for the roles that compose design patterns by using machine learning and measurements of several metrics, and it detects design patterns by analyzing the relations between candidates. It suppresses false negatives and distinguishes patterns in which the class structures are similar. As a result of experimental evaluations with a set of programs, we confirmed that our technique is more accurate than two conventional techniques.
  • 关键词:Design Patterns; Software Metrics; Machine Learning; Object-Oriented Programming; Software Maintenance
国家哲学社会科学文献中心版权所有