Designing and Researching the Localization Method for Refactoring Based on Slicing Metrics
- Author
- HuangYaZuo
- Advisor
- GaoJianHua
- School
- Shanghai Normal University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 25
- Citations
- 0
Abstract
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.
Table of contents
Abstract 7-8
Abstract 8-11
first chapter 11-14
1.1 thesis background 11-12
1.2 papers 12
1.3 papers innovations
1.4 thesis chapters 12-13
1.5 on the description of the background of the thesis experiment 13-14
the software refactoring Overview
14-17
2.1 software reconfigurable defined 14
2.2 software refactoring steps process 14-15
2.3 refactoring positioning classified 15
2.4 This chapter subsections 15-17
Chapter reconfigurable positioning method 17-25
3.1 a Bad Smell reconstructed positioning-based approach 17-19
3.1.1 Bad Smell definitions 17-18
3.1.2 a Bad Smell reconstructed positioning-based approach 18
3.1.3 based the Bad Smell reconstructed positioning method the characteristics 18-19
3.2 invariant-based refactoring positioning 19-21
3.2.1 invariant definition and classification 19
3.2.2 invariant-based refactoring positioning 19-21
3.2.3 based on the the invariant reconstructed positioning method is characterized 21
3.3 metric rules-based reconstruction of positioning 21-24
3.3.1 Ranging theory 21-22
3.3.2 metric-based reconstruction positioning method 22-23
3.3.3 metric the refactoring positioning method characteristics 23-24
3.4 refactoring positioning method of comparative analysis 24
3.5 This chapter Summary 24-25
the
object-oriented dynamic slicing 25-30
The basic concept of the
4.1 Program Slicing 25
4.1.1 program slicing definition 25
the
4.1.2 slice Standards The 25
4.2 program slicing classification 25-27
4.3 object-oriented dynamic slicing 27-29
4.3.1 object-oriented dynamic slicing 27
4.3.2 object-oriented dynamic slicing algorithm 27-29
4.4 This chapter Summary 29-30
Chapter reconstructed slice-based metrics positioning 30-41
5.1 metric based on dynamic slicing 30-34
5.1.1 Coupling Metrics based on dynamic slicing 30-32
5.1.2 sections based on dynamic hierarchical cohesion metrics 32-34
the
positioned 5.2 based on slice metric reconstruction 34-39
5.2.1 Transverse reconstruction of positioning and vertical refactoring positioning 34-35
5.2.2 the slicing metrics based reconstruction positioning method outlined 35-37
5.2.3 method level the transverse reconstructed positioning algorithm 37
5.2.4 Attribute-level the transverse reconstructed positioning algorithm 37-38
5.2.5 class-level longitudinal reconstructed positioning algorithm 38-39
5.3 based on slices metric reconstruction the positioning process instance analysis 39-40
5.4 This chapter Summary 40-41
Chapter reconstruction positioning tool design and experimental analysis are found; 41-49
the
design framework 6.1 refactoring positioning tool 41-42
6.2 experimental background 42-45
6.3 experimental applications 45-47
6.4 Experiments and analysis 47-48
6.5 This chapter Summary 48-49
Chapter VII Summary and Outlook 49-50
7.1 research summary 49
7.2 further work outlook 49-50
Acknowledgements 50-51
the
References 51-54
studying for a master's degree during the published papers and research projects 54
Related dissertations
- Research on Industrial Control System Base on Software Refactoring and Modular Design
- Research on BRP-Oriented Reconfiguration Sotfware Development Method
- Research in Geostatistical Analysis System of Reservoir Based on Software Refactoring Technology
- Research of Aspect-Oriented Refactoring Technique
- Research on the Scheduling Model of Software Refactoring
- A Environmental Monitoring System for Nuclear Power Plant Based on Refactoring
- Research on Rapidly Reconfigurable Information System and Its Key Technologies
- Three-tier application reconfigurable Research and Implementation
- Study of Key Technology for Reconfigurable ERP System Based on XML
- Research on Software Refactoring in AspectJ Programs
- Based on the reconstructed partial order planning software migration method