Font Size: a A A

Research And Application Of Design Pattern Implementation

Posted on:2009-07-29Degree:MasterType:Thesis
Country:ChinaCandidate:S W WangFull Text:PDF
GTID:2178360278971369Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Design patterns are the knowledge and experience registering in the process of the design of object-oriented software. It describes the meanings of design patterns concretely by a series of class structure and object. In the base of the design structure which is defined beforehand, it accomplishes the material design from the special application. The goal of design patterns is reuse the solving scheme of these object-oriented software designs so that we can achieve the accumulation and communication of these abstract solving schemes. As an important research area of software reuse, Design patterns can be an effective solution to the design of the software scalability and maintainability.For all the achievement of design patterns doesn't need a kind of software design languages, but without it we can not understand design patterns, and some technology designed to simplify the patterns to achieve. So in this paper, we analysis the creational patterns and behavioral patterns in-depth, then use the reflection and delegate mechanism of high-level programming language to improve the shortcomings of two types, and analysis the effect through the abstract factory pattern and observer pattern.Finally, the article uses a remote exercise system for background. To meet the system requirements of heterogeneous data sources, we described how to design the data access layer of system, which was used the improved abstract factory pattern with the cache. For some bad solutions in system, we summed up an anti-pattern known as the object state hard-coded in judge logic, and bring up an idea that use state pattern to improve the solution, combined with user management module in the system to describe. In the meanwhile, we use the improved state pattern to design the important function of work arrangement in system. The use of pattern in the process of system design, making the system more flexible, easy-to expand.
Keywords/Search Tags:Design pattern, Exercise system, Abstract factory pattern, State pattern
PDF Full Text Request
Related items