A Block Chain Approach to Extract Design Patterns from Source Code

Author:

Rezaei Shahla1,Esmaeilpour Mansour1,Hatamlou Abdolreza1,Adabi Sepideh1

Affiliation:

1. Islamic Azad University

Abstract

Abstract Design patterns are an effective technique to develop software. However, a lack of suitable documents often reduces traceability, and advantages remain unclear in source lines of code (SLOC). Design patterns have proved to be reliable solutions to a number of frequent problems in object-oriented software design. The detection of design patterns in a software system contributes to maintainability and re-engineering and facilitates the understanding of codes. Furthermore, different implementations of a design pattern impede the detection of code pattern instances. A design pattern is a set of roles played by the code classes. Roles are the main details and determinants in patterns. A pattern can be detected in its defined role since it is an instance of a role. It is also of great importance in system documentation. The proposed method exploits blockchain-based approaches in order to identify code links, inter-code relationships, and pattern similarities to the code. The results demonstrate that the blockchain is effective and efficient in extracting the connections of features from source codes and adapting to design patterns with precision 97%.

Publisher

Research Square Platform LLC

Reference60 articles.

1. Gamma, E., Helm, R., Johnson, R.: and J. Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Pub Co (1995)

2. Shi, N., Olsson, R.A.: Reverse engineering of design patterns from java source code. in In: ASE’06, pp. 123–134. IEEE Computer Society, Washington, USA (2006)

3. Smith, J.M., Stotts, D.: “SPQR: Flexible Automated Design Pattern Extraction from Source Code,” Proc. 18th IEEE Int’l Conf. Automated Software Eng. (ASE ’03), Oct. (2003)

4. The state of the art on design patterns: A systematic mapping of the literature;Bafandeh Mayvan B;J. Syst. Softw.,2017

5. Design pattern detection based on the graph theory;Mayvan BB;Knowl. Based Syst.,2017

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3