Predicting the Existence of Design Patterns based on Semantics and Metrics

Predicting the Existence of Design Patterns based on Semantics and Metrics

Imène Issaoui1, Nadia Bouassida2 and Hanêne Ben-Abdallah3

1Institut Preparatory to engineering studies of the University of Monastir, Tunisia

2Department of Computer Science, University of Sfax, Tunisia

3Faculty of Computing and Information Technology, King Abdulaziz University, KSA

Abstract: As part of the reengineering process, the identification of design patterns offers important information to the designer. In fact, the identification of implemented design patterns could be useful for the comprehension of an existing design and provides the grounds for further code/design improvements. However, existing pattern detection approaches generally have problems in detecting patterns in an optimal manner. They either detect exact pattern instantiations or have no guidelines in deciding which pattern to look for first amongst the various patterns. To overcome these two limitations, we propose to optimize any pattern detection approach by preceding it by a preliminary “sniffing” step that detects the potential existence of patterns and orders the candidate patterns in terms of their degree of resemblance to design fragments. Our approach uses design metrics to characterize the structure and semantics of the various design patterns.

Keywords: Metrics, design pattern, quality assurance, sniffer.

Received September 3, 2013; accepted April 27, 2014

Read 2193 times
Share
Top
We use cookies to improve our website. By continuing to use this website, you are giving consent to cookies being used. More details…