Title : ( Probabilistic detection of GoF design patterns )
Authors: Niloofar Bozorgvar , Abbas Rasoolzadegan , Ahad Harati ,Access to full-text not allowed by authors
Abstract
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 re-engineering 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.
Keywords
, GoF Design Patterns, Design Patterns Detection, Regression, Probabilist@article{paperid:1090744,
author = {Bozorgvar, Niloofar and Rasoolzadegan, Abbas and Harati, Ahad},
title = {Probabilistic detection of GoF design patterns},
journal = {Journal of Supercomputing},
year = {2023},
volume = {79},
number = {2},
month = {February},
issn = {0920-8542},
pages = {1654--1682},
numpages = {28},
keywords = {GoF Design Patterns; Design Patterns Detection; Regression; Probabilist},
}
%0 Journal Article
%T Probabilistic detection of GoF design patterns
%A Bozorgvar, Niloofar
%A Rasoolzadegan, Abbas
%A Harati, Ahad
%J Journal of Supercomputing
%@ 0920-8542
%D 2023