Identification of Behavioral and Creational Design Motifs through Dynamic Analysis. Ng, J. K., Gu�h�neuc, Y., & Antoniol, G. Journal of Software Maintenance and Evolution: Research and Practice (JSME), 22(8):597–627, Wiley, November, 2009. 30 pages.
Identification of Behavioral and Creational Design Motifs through Dynamic Analysis [pdf]Paper  abstract   bibtex   
Design patterns offer design motifs, solutions to object-oriented design problems. Design motifs lead to well-structured designs and thus are believed to ease software maintenance. However, after use, they are often ``lost" and are consequently of little help during program comprehension and other maintenance activities. Therefore, several works proposed design pattern identification approaches to recover occurrences of the motifs. These approaches mainly used the structure and organisation of classes as input. Consequently, they have a low precision when considering behavioural and creational motifs, which pertain to the assignment of responsibilities and the collaborations among objects at runtime. We propose MoDeC, an approach to describe behavioral and creational motifs as collaborations among objects in the form of scenario diagrams. We identify these motifs using dynamic analysis and constraint programming. Using a proof-of-concept implementation of MoDeC and different scenarios for five other Java programs and \textsfBuilder, \textsfCommand, and \textsfVisitor, we show that MoDeC has a better precision than a state-of-the-art static approaches.

Downloads: 0