Поиск артефактов проектирования. Обзор подходов
Змеев Олег Алексеевич, Лидия Сергеевна Иванова · Вестник Томского государственного университета. Управление, вычислительная техника и информатика · 2015
In this paper, the review of the literature dedicated to the detection of the different artifacts (patterns, defects, errors, antipatterns and etc.) in software source code, documentation and other information sources is given. The systematization of the approaches on several grounds is achieved. In the study approaches the following artifacts can be used as the purpose for the search: 1. Design patterns. Patterns detection in the source code is important part of the reverse design. The automation of this process makes it possible to significantly increase the quality of the collected information and to decrease both time and material costs. 2. Antipatterns, design principle violations, code defects. Antipatterns and other design defects detection makes it possible to increase the quality of developed applications. 3. Micro pattern is traceable patterns, which are limited by the one class/interface. Their detection creates foundation for determining more complex constructions. Secondly, the classification of approaches is based on the data source for conducting the analysis. There are 3 types of the analysis in the literature: 1. The static analysis is the analysis of the source code and documentation. Programming languages Java and C++ are the most popular for source code writing. Also, some researchers use UML-diagrams as documentation for analysis. 2. The dynamic analysis is that of application in runtime. Java-bytecode is used as the source data. 3. The combined analysis is combination of static and dynamic analysis. The static analysis of the source code is used for the detection of candidates, dynamic analysis is used for checking candidates if they correspond to one or another design pattern. The following detection strategies are proposed in the study approaches: 1. Metrics. 2. Graphs. 3. Visual analysis. 4. Bayesian Belief Networks. 5. Java-annotations. 6. Predicates. 7. Bit arrays operations. 8. Analysis of textual representation of visual language. Besides those enumerated above, researchers proposed the different methods of the manual detection of artifacts. The corresponding realizations were developed by authors on the base of several described approaches. The most of them are IDE Eclipse plugins and analyses Java source code. Open source code of popular frameworks (JHotDraw and etc.) is used for testing such plugins. Approaches for antipatterns detection so have several realizations. Besides plugins for source code analysis, the approach realization for design patterns refactoring in UML-diagrams is accessible in the Internet. The analysis of literature showed that the DPD issue is sufficiently popular. The procedures proposed by researchers have both advantages and disadvantages. The main disadvantage in the majority of the approaches proposed is dependence on the concrete programming language. It is necessary to perform work in the domain of the analysis of UMLdiagrams and others language information sources, which are independent of the realization.
Cited by 0 works.