Font Size: a A A

Designing And Researching The Localization Method For Refactoring Based On Slicing Metrics

Posted on:2011-04-30Degree:MasterType:Thesis
Country:ChinaCandidate:Y J HuangFull Text:PDF
GTID:2178360302992253Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In the software life cycle, software refactoring is a key technique to improve the internal software quality, which is to eliminate bad smell code without changing its observable behavior. And the refactoring location is the primary problem in the refactoring. The traditional method of refactoring location is based on human intuition which lack of the automatic supporting tool. At present, the methods of refactoring location are inefficient. Therefore, it is urgent to solve that how to locate the refactoring efficiently.Firstly, it was introduced the software refactoring in the paper. There are particular presentations about the steps about how to carry through software refactoring and the type of the software refactoring.Secondly, it was introduced three methods of refactoring localization as follow: the method based on bad smell, the method based on invariant, the method based on metric. Moreover, we compare with the three methods and analyze their advantages and disadvantages. We find the method based on metric's shortcoming, include ignoring dynamic analyzing program and polymorphic. In order to solve these problems, we propose refactoring location based on slicing measure.Refactoring localization based on metric use dynamic hierarchical slicing to analysis program and calculates the coupling and cohesion on the class level, method level and attribute level. According to the measure result, we can identify the bad smell in the code in order to locate the software horizontally and vertically.At last, the method of refactoring localization was applied into project. Compared with other methods, it is proved that this method is more effective. This method can locate effectively and correctly.
Keywords/Search Tags:Software Refactoring, Refactoring Location, Dynamic Hierarchical Slicing, Slicing measure
PDF Full Text Request
Related items