Design patterns are important in software maintenance because they help in designing, in understanding, and in re-engineering programs. The identification of occurrences of a design pattern consists in identifying, in a program, classes which structure and organisation match - strictly or approximately - the structure and organisation of classes as suggested by the design pattern. We express the problem of design pattern identification with operations on finite sets of bit-vectors. We use the inherent parallelism of bit-wise operations to derive an efficient bit-vector algorithm that finds exact and approximate occurrences of design patterns in a program. We apply our algorithm on three small-to-medium size programs, JHOTDRAW, JUZZLE, and QUICKUML, with the Abstract Factory and Composite design patterns and compare its performance and results with two existing constraint-based approaches. © 2006 IEEE.
Mendeley helps you to discover research relevant for your work.
CITATION STYLE
Kaczor, O., Guéhéneuc, Y. G., & Hamel, S. (2006). Efficient identification of design patterns with bit-vector algorithm. In Proceedings of the European Conference on Software Maintenance and Reengineering, CSMR (pp. 175–184). https://doi.org/10.1109/CSMR.2006.25