Research and Application of Design Patterns and Refactoring

Author
HanFei
Advisor
ShangGuanYouLi
School
Beijing University of Posts and Telecommunications
Major
Computer Applications
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2006
Downloads
237
Citations
11

Request the full text

Abstract

Nowadays, most of software is developed out on the basis of some existing work. The software is supposed to be more and more maintainable and reusable. Meanwhile, the maintaining of the software has occupied more and more weight in the whole software life cycle.In order to improve the software maintainability and reusability, make sure refer to the existing design patterns in the course of system design so as to make a good design of the system. Meanwhile, make sure refactor the software code actively so as to improve the system design.Design patterns are to describe those classes and objects that are used to solve some general design problems in the given scenes. Each design pattern has described its application field and basic principle. Design patterns supply the reusability and flexibility in the design level, and make the software less sensitive to the changes of requirement.Refactoring is aimed to modify the internal structure of software without changing its observable behavior. Refactoring likes the modification of the code on the surface. However, it modifies the underlying design of the code actually. In a sense, design patterns guide the refactoring as its objective.Here, first nine design patterns (such as command, prototype, singleton pattern and so on) are researched, and applications of these design patterns are analyzed and summed up in the virtual experiment system. Second principles, characteristics and methods of refactoring are researched. Finally applications of these refactoring methods are analyzed and summed up in the virtual experiment system.

Table of contents

The first chapter 7-15 1.1 issues raised 1.2 design patterns 7-11 1.2.1 design pattern background nbsp 1.3 refactoring; 7-8 1.2.2 design patterns defined 8-10 1.2.3 Design Patterns advantages 10-11 11-12 1.3.1 reconstructed background 11 1.3.2 Definition of reconstructed 11-12 refactoring in 1.3.3 advantages 12 1.4 virtual experimental system 12-14 1.4.1 Background 12-13 1.4.2 Introduction 13 - 14 1.5 This work 14-15 Chapter II design mode 15-38 2.1 Adapter (object adapter) mode 15 - 17 the 2.1.1 Object Adapter pattern of elements 15-16 the 2.1.2 Object Adapter model system 16-17 2.2 Builder (Builder) mode 17-19 the 2.2.1 generator mode elements 17-18 2.2.2 generator mode system 18-19 2.3 Chain of Responsibility (responsibilities chain) mode the 19-21 2.3.1 Responsibilities chain model elements 19-20 2.3. 2 duty chain system 20-21 2.4 Command (command) mode 21-24 the 2.4.1 command mode elements 21 - 23 the 2.4.2 command mode system nbsp 23-24 2.5 Facade (appearance) mode; 24-27 2.5.1 Facade pattern elements 24-26 2.5.2 Facade pattern system 26-27 2.6 Observer (observer) mode 27-29 2.6.1 Observer pattern elements the observer mode 2.6.2 system 27-29 29 2.7 the Prototype (prototype) mode 29 -32 2.7.1 Elements of the prototype model 29-31 2.7.2 prototype model system 31-32 2.8 Singleton (single piece the) Mode 32-33 2.8.1 single pattern elements 32-33 2.8.2 Single-mode system 33 2.9 Strategy (Strategy) mode 33-36 2.9.1 Strategy pattern elements 33-35 2.9.2 Strategy pattern system 35-36 2.10 Summary 36-38 the third chapter reconstructed 38-55 3.1 The principle of reconstructing 38 <br / > 3.2 remodeling characteristics 38-40 3.3 refactoring timing 40-41 3.4 refactoring 41-45 3.4 .1 class into the reconstruction method reconstruction method is between 41-43 3.4.2 nbsp 43-45 3.5 reconstructed environment; 45-46 3.5.1 C language refactoring support 45-46 3.5.2 C language restrictions remodeling 46 3.6 refactoring The process 46-54 3.6.1 eliminate duplicate 46-48 3.6.2 simplify complex conditional logic 48-51 3.6. 3 simplified method parameter list 51-52 3.6.4 rationalization class duties 52 3.6.5 rationalization class inheritance 52-54 < br /> 3.7 Summary 54-55 Chapter Summary to References 55-56 56-57 Acknowledgements 57 -58 period of study for a degree of academic papers published directory 58

Related dissertations

  1. Introduce the Patterns into Audit Software Design with the Refactoring
    ZhangXiang ·Tianjin University ·2004 ·Master's thesis
  2. A Study on Code Optimization Method of eOLC Control Algorithm
  3. Design and Implementation of a Recommender System Framework Based on Collaborative Filtering Algorithm
    ChiXuan ·Shanghai Jiaotong University ·2013 ·Master's thesis
  4. Design and Implement of Telematics System Service Center Subsystem
    WangHuaChen ·Northeastern University ·2013 ·Master's thesis
  5. Design and application of J2EE persistence layer framework DR-ORM
  6. The Research and Implementation of the College Counselors Skills Competition Training System
    YanSiJing ·Xiangtan University ·2013 ·Master's thesis
  7. Design and Implementation of Human Resource Management System for MIRLE Company
    GuJiaQing ·Dalian University of Technology ·2013 ·Master's thesis
  8. Design and Implementation of Java Refactoring Plug-in Based on Eclipse
  9. The Design and Implementation of Layered Architecture and Design Patterns Based on.NET Platform
  10. Design and Implement of Office Automation System Based on the the MVC Design Pattern
  11. The Software Refactoring Technology Based on Data Mining and Its Application to the Software Asset Management
  12. The Design and Implementation of Agricultural Distribution Information Management System Based on J2EE
  13. Design and Implementation of Laboratory Management System Based on Design Pattern
    ZhangChunQiang ·Dalian University of Technology ·2013 ·Master's thesis
  14. Study on Life-cycle Management Platform for Science and Technology Project
  15. Design and Implementation of the City Government Office System
    LiTianZuo ·Xiamen University ·2014 ·Master's thesis
  16. Injection system research and design of HDCP chip key
  17. The Perspective of People's Jury System under the Judicial Credibility
    LiuZuo ·Liaoning Normal University ·2013 ·Master's thesis
  18. "Hyper realistic" "performers" - Rereading Lucien Floyd's portrait painting
    WangTingZuo ·China Academy of Art ·2013 ·Master's thesis
  19. On paper collage as an art elements in the drawing function
    LiuMei ·Central Academy of Fine Arts ·2014 ·Master's thesis
  20. On the Wander in Miguel De Cervantes Saavedra's Novels
    LiChaoJun ·Xiangtan University ·2013 ·Master's thesis