loading...
Using Design Patterns and Constraints to Automate the Detection and Correction of Inter-Class Design Defects
Santa Barbara, California July 29-August 03
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TOOLS.2001.94168239th International Conference and Exh ...
 This Article 
 
PDF
HTML
 
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Yann-Gaël Guéhéneuc, ?cole des Mines de Nantes
Hervé Albin-Amiot, ?cole des Mines de Nantes
Abstract: Developing code free of defects is a major concern for the object-oriented software community. In this paper, we classify design defects as those within classes ( intra-class), those among classes ( inter-classes), and those of semantic nature ( behavioral). Then, we introduce guidelines to automate the detection and correction of inter-class design defects: We assume that design patterns embody good architectural solutions and that a group of entities with organization similar, but not equal, to a design pattern represents an inter-class design defect. Thus, the transformation of such a group of entities, such that its organization complies exactly with a design pattern, corresponds to the correction of an inter-class design defect. We use a meta-model to describe design patterns and we exploit the descriptions to infer sets of detection and transformation rules. A constraints solver with explanations uses the descriptions and rules to recognize groups of entities with organizations similar to the described design patterns. A transformation engine modifies the source code to comply with the recognized distorted design patterns. We apply these guidelines on the Composite pattern using Ptidej, our prototype tool that integrates the complete guidelines.
Index Terms:
OO design, design defects, design patterns, constraints, source code transformation.
Citation:
Yann-Gaël Guéhéneuc, Hervé Albin-Amiot, "Using Design Patterns and Constraints to Automate the Detection and Correction of Inter-Class Design Defects," tools, pp.0296, 39th International Conference and Exhibition on Technology of Object-Oriented Languages and Systems (TOOLS39), 2001
Usage of this product signifies your acceptance of the Terms of Use.