Font Size: a A A

Research On General Method Of Framework Design

Posted on:2006-11-19Degree:MasterType:Thesis
Country:ChinaCandidate:Z Q ZhengFull Text:PDF
GTID:2168360152994964Subject:Agricultural mechanization project
Abstract/Summary:PDF Full Text Request
With the development of the software technology and hardware, the software's scale becomes more and more big. To enhance the efficiency of software development, modern software engineering researches on the mechanism of software reuse, and based on code reuse, puts forward the concept of design reuse and proposes some new software theories and methods such as the unified model language and the design model and framework and so on.The framework, which collects the design decisions often applied to some particular field, is a design of re-using the whole or part of the system and often constitutes the classes and the relationships between the classes. It provides the total construction of application system and defines the differences between the classes and the object, the key duty, the cooperation of the classes and the object and the control clues. A total framework plays vital roles in the design of a particular kind of application system. Therefore, it is of great significance to the development of software reuse to research on theories of the framework's design, the general methods and the methods of framework display and instantiation.This paper is an applied and foundational theoretical study. The main method applied is integrating the previous framework theories and methods, analyzing their advantages and disadvantages and using the existent tools to develop and verify the new framework theory. Achievements have been made in this paper in the following three aspects:(1) The UML-F method of framework, firstly, analyze the UML-F method of the framework, which use the stereotypes and tagged values and constrains and stereotypes and put forward {Variable} {Extensible} {Incomplete {Appl-class } {Static}和 {Dynamic} and extend the definition {Optional} - {For all new methods} to form the UML framework. It is very important to form the frameworks using the variety methods and extensible classes and extensible interfaces. Variable methods are methods that have a well-defined signature, but whose implementation varies for each instantiated application. Extensible classes are classes that may have their interfaces extended during the framework instantiation. Extensible interfaces are interfaces or abstract classes that allow the creation of concrete subclasses during the framework instantiation.(2)The hot-spot framework theories. Hook-spot is the fixed part in the system, also call the core of the part; hot-spot is the vary part in the application system. The framework follows the hot-spot according the actual circumstance and need to distinguish hot-spot and hook-spot. Through the combining with the design models, this paper put forward the hot-spot driven framework development: (1) definition of special object model;(2)hot-spot remark;(3) framework re-design (4)usage of framework. Attention must be paid to the fact that it is very important to the distinction of the abstract class, concrete class and inherited methods to use the hot-spot cards which result from the application of the end user or restarting to eliminate the hot-spot relationships in template-hook model.(3)The general methods of framework design. Lastly, this paper put forward the theories and methods of the framework design with connecting the hot-spot framework theories and UML-F. The general methods of the framework design include: (1) the framework system with the logic system, the OOM methods can realize the logic model and abstract the totally characteristics to formation the system model; (2)the viewpoints unification and to form the framework model. The viewpoints describe the different aspects from the different angle and connected with the different application systems, which can get the hot-spot and freezing-spot and formation the template-hook model. But unification the viewpoints must follow the rules: it must use the same name which have the same contents; the name, class, method, characters must independence ; it's name and characters must consistence; it must not circulation inherent. And the unification process to template-hook model is based on the following rules: every class that belongs to the set of viewpoints has a corresponding class, with same name, in the template-hook model; if a method has the same signature and implementation in all the viewpoints it appears, it has a corresponding method ,with same name, signature ,and implementation ,in the template-hook model; if a method exists in more than one viewpoint with different signature it has a corresponding hook method in the template-hook model, with same name but undefined signature and implementation; if a method exists in more than one viewpoint with different implementation it has a corresponding hook method in the template-hook method, with same name and signature but undefined implementation; all the methods that use hook methods are defined as template methods. There is always a hot-spot relationship between the class that has a template method and the class that has its correspondent hook method; the other relationships are maintained in the template-hook model. (3) Eliminating the hot-spot relationship and returning to the verification and making up the framework. One, eliminating the hot-spot relationship with the framework by hot-spot cards and definition the classes and divide the methods in the classes; the other, research for that the hook-spot is belong to the same classes and verify with the views. The whole process is described with the UML-F, and using this method to make the OA for verification. In this methods the viewpoints unification with the high level logical model of the Object-oriented technology and the returning to verification are the creative spot.This paper makes the valid exploration of the methods in the Object-oriented technology, on the basis of which OA framework has been developed by summing up and improving some developed...
Keywords/Search Tags:framework, UML-F, hot-spot
PDF Full Text Request
Related items