Conflict-aware schedule of software refactorings
Authors:
- 20 October 2008
- journal article
- Published by Institution of Engineering and Technology (IET) in IET Software
- Vol. 2 (5) , 446-460
Abstract
Software refactoring is to restructure the internal structure of object-oriented software to improve software quality, especially maintainability, extensibility and reusability while preserving its external behaviours. According to predefined refactoring rules, we may find many places in the software where refactorings can be applied. Applying each refactoring, we may achieve some effect (quality improvement). If we can apply all of the available refactorings, we can achieve the greatest effect. However, the conflicts among refactorings usually make it impossible. The application of a refactoring may change or delete elements necessary for other refactorings, and thus disables these refactorings. As a result, the application order (schedule) of the available refactorings determines which refactorings will be applied, and thus determines the total effect achieved by the refactoring activity. Consequently, conflicting refactorings had better be scheduled rationally so as to promote the total effect of refactoring activities. However, how to schedule conflicting refactorings is rarely discussed.In this paper, a conflict-aware scheduling approach is proposed. It schedules refactorings according to the conflict matrix of refactorings and effects of each individual refactoring. The scheduling model is a multi-objective optimisation model. We propose a heuristic algorithm to solve the scheduling model. We also evaluate the proposed scheduling approach in non-trivial projects. Evaluation results suggest that refactoring activities with the scheduling approach lead to greater effect (quality improvement) than refactoring activities without explicit scheduling.Keywords
This publication has 17 references indexed in Scilit:
- A novel approach to optimize clone refactoring activity2006
- Detecting Structural Refactoring Conflicts Using Critical Pair AnalysisElectronic Notes in Theoretical Computer Science, 2005
- A Graphical Specification of Model Transformations with Triple Graph Grammars2005
- A survey of software refactoringIEEE Transactions on Software Engineering, 2004
- A metric-based approach to enhance design quality through meta-pattern transformations2003
- Metrics based refactoring2003
- A hierarchical model for object-oriented design quality assessmentIEEE Transactions on Software Engineering, 2002
- Can metrics help to bridge the gap between the improvement of OO design quality and its automation?2000
- A refactoring tool for smalltalkTheory and Practice of Object Systems, 1997
- A model for software product qualityIEEE Transactions on Software Engineering, 1995