Identification of Design Motifs with Pattern Matching Algorithms. Kaczor, O., Gu�h�neuc, Y., & Hamel, S. Information and Software Technology (IST), 52(2):152–168, Elsevier, February, 2010. 16 pages.
Identification of Design Motifs with Pattern Matching Algorithms [pdf]Paper  abstract   bibtex   
Design patterns are important in software maintenance because they help in understanding and re-engineering systems. They propose design motifs, solutions to recurring design problems. The identification of occurrences of design motifs in large systems consists of identifying classes whose structure and organization match exactly or approximately the structure and organization of classes as suggested by the motif. We adapt two classical approximate string matching algorithms based on automata simulation and bit-vector processing to efficiently identify exact and approximate occurrences of motifs. We then carry out two case studies to show the performance, precision, and recall of our algorithms. In the first case study, we assess the performance of our algorithms on seven medium-to-large systems. In the second case study, we compare our approach with three existing approaches (an explanation-based constraint approach, a metric-enhanced explanation-based constraint approach, and a similarity scoring approach) by applying the algorithms on three small-to-medium size systems, \JHotDraw, \ygg@productJuzzle, and \ygg@productQuickUML. Our studies show that approximate string matching based on bit-vector processing provides efficient algorithms to identify design motifs.

Downloads: 0