咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Probabilistic detection of GoF... 收藏

Probabilistic detection of GoF design patterns

作     者:Bozorgvar, Niloofar Rasoolzadegan, Abbas Harati, Ahad 

作者机构:Ferdowsi Univ Mashhad Fac Engn Mashhad Razavi Khorasan Iran 

出 版 物:《JOURNAL OF SUPERCOMPUTING》 (超高速计算杂志)

年 卷 期:2023年第79卷第2期

页      面:1654-1682页

核心收录:

学科分类:0808[工学-电气工程] 08[工学] 0812[工学-计算机科学与技术(可授工学、理学学位)] 

主  题:GoF design patterns Design patterns detection Regression Probabilistic 

摘      要:Detecting design patterns from source code of software systems can help to understand the structure and the behavior of the software systems. The better understanding of software systems is helpful in reengineering and refactoring. As software progression, refactoring has become more valuable. One way to reduce the refactoring costs is to detect design patterns. The key criteria for accurately detecting design patterns is signatures. Achieving fine signatures is not an easy forward task. Instead of improving signatures, more accurate detection can be achieved by having probabilistic viewpoints. Since each of the design patterns has variants or may be implemented differently, having a probabilistic approach in detection can increase coverage as well as help in software refactoring. In this study, the main purpose is to identify the design patterns in source code with a non-crisp approach and measuring the possibility of the presence of the design patterns in the source code. Considering main body of design patterns and their corresponding signatures, design patterns are represented as appropriate features. We try to get features from design pattern signatures that do not change in the face of variations that occur during implementation. Then, through these features, the probability of presence of the roles forming the design patterns is determined, using neural network and regression analysis. After this step, using probabilistic graphical models the probability of presenting design patterns in source code is measured. The results of the proposed method show the similarity of each code to the design patterns in the range between 0 and 1. The results of other valid methods are a subset of the results of proposed method. Results that are 50% to 100% similar to the design patterns are presented in the evaluation section.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分