1 / 47
文档名称:

软件设计模式库研究和实现.pdf

格式:pdf   页数:47页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

软件设计模式库研究和实现.pdf

上传人:cxmckate1 2015/10/11 文件大小:0 KB

下载得到文件列表

软件设计模式库研究和实现.pdf

相关文档

文档介绍

文档介绍:华中科技大学硕士学位论文

摘要
设计模式是针对某一类特定软件问题的通用解决方案。应用设计模式可以提高
软件的可复用性和可扩展性,降低软件开发和维护的成本。设计模式复用是软件复
用的主要形式之一。
论文研究了设计模式的分类、描述、存储、检索、实例化、自动化等方面。其
中,重点讨论了设计模式检索和设计模式实例化。根据设计模式的相似性定义和度
量,提出了基于模式目标相似性匹配的设计模式检索算法。同时,针对检索条件和
设计模式的一对多情形,给出了匹配度的概念和算法,以方便对检索结果进行相似
性排序。在模式库中找到合适的设计模式后,如何结合用户需求生成应用设计模式
的解决方案,这就涉及到设计模式的实例化方法。每个设计模式都具有模式框架本
身的稳定性和用户需求的可变性,根据这一理论,提出了一种基于 Velocity 模板的
设计模式实例化方案。
最后,基于上述的设计模式检索和设计模式实例化方案,论文提出一种构建设
计模式自动化工具的设计思想,实现了设计模式库 DPStore 系统。DPStore 是一个统
一存储和管理设计模式的容器,作为软件库 SoftStore 的重要组成部分,DPStore 的
有效组织能够为设计人员提供设计模式方面的参考和复用支持,使开发人员充分利
用已有的成功设计经验,实现抽象层次的设计模式复用。借鉴零编程的思想,用户
只需要输入设计问题的需求和必要的参数信息就可以生成应用了合适设计模式的参
考解决方案。
关键词:设计模式;软件复用;设计模式检索;设计模式实例化;设计模式库
I
华中科技大学硕士学位论文

Abstract
Design patterns mon solutions for certain problems of software design. Using
design patterns is good not only for the expansibility and reusability of software, but also
for reducing the cost of software development and maintenance, so reuse of design
patterns is a primary form of software reuse.
Existing key technologies and theories of implementing design pattern library are
analyzed and summarized, including design pattern classification, description, storage,
search, instantiation, automation, and etc. Pattern search and pattern instantiation are the
most important parts of design pattern library, so they are paid great attention to in this
paper. According to definition and measurement of pattern similarity, a pattern search
algorithm based on the match of design pattern motive is brought forward. At the same
time, in terms of the one-to-many case of the conditions for search and design patterns, the
paper presents the concept putational method of match degree, which facilitates
the similarity sort of search results. When the decent design patterns are searched out, how
to generate advisable solutions bined the requirements and design patterns, this
involves the design pattern instantiation. Each design pattern has the stability