Identification of Behavioral and Creational Design Patterns through Dynamic Analysis. Ng, J. K. Master's thesis, Universit� de Montr�al, July, 2008.
Identification of Behavioral and Creational Design Patterns through Dynamic Analysis [pdf]Paper  abstract   bibtex   
The use of design patterns is a simple and elegant way to solve problems when designing object-oriented software systems because it leads to well-structured designs. However, after application, design patterns are lost in the source code, and are thus of little help during program comprehension and subsequent maintenance. In previous work, the structure and organization among classes were the predominant source of data used for the identification of occurrences of design patterns. Yet, the responsibility of each participating object at runtime should not be neglected, as two types of design patterns, behavioral and creational, are mainly concerned with the assignment of responsibilities and the collaborations among objects at runtime. This thesis proposes a metamodel and algorithms to identify automatically behavioral and creational design patterns in the source code. We use metamodelling to describe design patterns and software systems in Java, and dynamic analysis to capture the behavior of the systems at the moment of execution. The proposed metamodel allows the representation of collaborations among the participants that take part in the execution of a system (messages) and their properties (conditions under which a message is executed, repetition of a message). Using this metamodel, the problem of behavioral and creational pattern identification can be translated into an explanation-based constraint satisfaction problem. Solving such kind of problem leads to exact and approximate occurrences of a design pattern.

Downloads: 0