A Study about Improving Component Build Based on COM

Author
ZhangWang
Advisor
ZhangWeiQun
School
Southwestern University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
46
Citations
7

Request the full text

Abstract

Since the 90s of the last century , the object-oriented software development technology to become mainstream technology , software development makes object-oriented software reuse is considered to solve the software crisis, a realistic way . In accordance with the different levels of reuse , software reuse is divided into design reuse and code reuse . The design model is the design level of software reuse . The factory pattern is one of the main one . The so-called factory , is a founding member of the class of the component , to hide the details of the component creation . Makes single customer responsibilities , that is, only use the components without creating components . COM is a component technology , software reuse code level . COM traditional factory pattern to create COM components , and allow customers to manage their own memory resources . This makes the traditional the COM model component creation process is extremely complex , memory management is extremely tedious and error-prone . In this paper, the traditional model of COM components created and defects of the memory management aspects of the following work : 1 . Defects of the traditional factory model a simple factory pattern class registration implementations , the factory is no longer responsible for the creation of the component but with a container to save the name of the component and the corresponding creation function , when the client components obtained from the factory when the factory on the search for the vessel to create a function to find the components of customer needs , then this function to create components and returned to the client . To make it more in line with the principle of \Proposed use class registration factory pattern to create COM components to optimize the process . Upcoming COM factory with Class Registration factory replacement . 3 Handle class to manage the COM memory resources , handle the class is a wrapper Class C built- pointer by it instead of customer management COM memory resources . By an instance , to understand the COM component creation process and its memory management optimization , validation class registration factory pattern and the feasibility and effectiveness of the handle , the experiments show that the the COM model optimized system structure simple, the system easier to extend .

Table of contents

Summary 5-6 Abstract 6-7 Chapter 1 Introduction 7-9 1.1 Background and status quo < br /> 1.2 thesis and main work 1.3 innovation nbsp 7-8 1.4 papers organizational structure; 8-9 first Chapter 2 traditional factory pattern 9-14 2.1 simple factory pattern 9-10 2.1.1 simple factory mode structure and role 9-10 2.1.2 simple factory pattern to achieve the advantages and disadvantages of 2.1.3 simple factory model 10 2.2 factory method pattern 10-11 the 2.2.1 factory method mode structure and role 10-11 2.2.2 factory method pattern and simple factory pattern 11 the 2.2.3 factory method pattern excellent shortcomings 11 2.3 abstract factory pattern 11-13 2.3.1 abstract factory pattern structure and role 11-12 2.3.2 abstract mode when the factory 12 2.3.3 The advantages and disadvantages of the abstract factory pattern 12-13 2.4 Summary 13-14 Chapter 3 component technology and the COM model 14-25 3.1 component technology 14-16 3.1.1 software components generated 14-15 <br / > 3.1.2 software component model 15 3.1.3 software component advantages 15 3.1.4 software components to achieve conditions 15 - 16 3.2 COM model Introduction 16-17 3.2.1 COM generated 16 3.2.2 COM concept 16-17 3.3 COM interface 17-18 3.3.1 COM interface memory model 17-18 3.3.2 COM interface characteristics 18 <br / > 3.4 COM components the 3.4.1 reference count of 18-21 18-20 3.4.2 About the QueryInterface 20-21 3.5 the COM component creation the 21-23 3.5.1 CoCreateInstance the factory 21-22 3.5.2 COM 22-23 3.6 COM existing the 23-25 ??the 3.6.1 the COM factory mode mode 23-24 3.6.2 COM memory management 24-25 Chapter 4 a simple factory pattern class registration implementations handle to a 25-30 4.1 simple factory pattern class registration implementations 25-27 4.1. a traditional factory pattern exists 25 4.1.2 Basic concept 25-26 4.1.3 implementations Role Description 26 <br / > 4.1.4 design class registration method steps 26-27 4.2 handle 27-30 4.2.1 handle constructor, destructor, and assignment 28 4.2.2 handle the extraction operation 28-30 Chapter 5 COM optimization 30-39 5.1 COM resource management optimization 30-33 5.1.1 Review handle class 30-31 5.1.2 using handles the COM memory resources 31-33 5.1.3 handle COM in use 33 5.2 COM class factory class registration model optimization 33-37 5.2.1 Recalling the COM component creation process 33-35 < br /> 5.2.2 class registration factories in COM achieve 35-37 5.3 the COM components before and after the creation process optimization contrast 37-39 Chapter 6 experiments Analysis and results 39-45 6.1 System Requirements 39 6.2 development platform and tools 39 6.3 System Analysis and Design 39 -40 6.4 Experimental Procedure 40-41 6.5 analysis comparing the 41-44 6.5.1 memory resource management Comparative Analysis 41-42 6.5.2 comparative analysis of the complexity of the system 42-43 6.5.3 extensions comparative analysis the 43-44 6.6 summarizes 44 -45 Chapter 7 Conclusions and Prospects the 45-46 7.1 work summarizes 45 7.2 Future Work Looking 45-46 References 46-48 Acknowledgements papers and participate in issues during the 48-49 for Master 49

Related dissertations

  1. Design and Implementation of Pattern Evaluation Management System for Liaoning Provincial Institute of Measurement
    ZhangHuan ·Northeastern University ·2013 ·Master's thesis
  2. Database Management System Application in CDMA Switching System
    WangPeiPei ·Jilin University ·2013 ·Master's thesis
  3. Study on the Rapid and Precise Simulation of Surface Acoustic Wave Devices
    WangZuo ·Nanjing University ·2013 ·Doctoral dissertation
  4. Study on Quick Decoposition of Tobacco Waste and Application Effect of the Compost in the Corn
    HeYunLong ·Hunan Agricultural University ·2013 ·Master's thesis
  5. The Visualization Research of Turbocharger Floating Ring Bearing Lubrication System
    MaoWenLiang ·Hebei University of Technology ·2013 ·Master's thesis
  6. The Design and Exploiture of Highway Management Information System
    WangMin ·Chang'an University ·2013 ·Master's thesis
  7. The Analysis of Risk of the Investment Guarantee Company in Henan Province and Response Measures
    MaLiNa ·Zhengzhou University ·2013 ·Master's thesis
  8. Study on the Food Safety Crisis Emergency Handling
    LiHui ·Jilin University ·2012 ·Master's thesis
  9. Research and Application of OPC in SCADA System
  10. Development of Thermal Control System Performance Assessment Software Based on OPC Technology
  11. Design and Implementation of Communication Converting Platform Base on OLE for Process Control
  12. Research of OPC DA Server Based on Modbus/TCP
    WangZhan ·Donghua University ·2013 ·Master's thesis
  13. The Application Research of Using OPC Technology and SQL Server in the Configuration Sotfware Development
  14. Design and Implementation of OPC DA Server in Semi-physical Simulation System
  15. Design and Implementation of OPC Client in Semi-Physical Simulation System
  16. The Design of Image Information Collecting Handheld System Based on S3C2440and Windows CE6.0
    ChenYu ·Guangxi Normal University ·2012 ·Master's thesis
  17. The Key Research on Interactive Develop Platform for ATS Simulation System in Urban Rail Transit
    WangHaiYang ·Shenyang Aerospace University ·2012 ·Master's thesis
  18. Research of Component Technology and Applying in the Trademark Review System
  19. Design and Realization of OPC Data Access Server Based on DLL
  20. The Design and Implementation of Electronic Official Document Approving System Based on WORD Document
    LiuGuangZhi ·Shandong University ·2013 ·Master's thesis