共查询到20条相似文献,搜索用时 93 毫秒
1.
2.
陈丁山 《数字社区&智能家居》2007,(12):1346-1348
设计模式是面向对象理论的进一步深化,其基本目的是为防止程序各模块间产生太多关联而尽量保持类与类之间的相互独立,并使设计出的各种模式具有普遍的应用意义从而避免重复的代码编写。介绍了设计模式的概念以及当前设计模式的一般分类,然后以适配器模式为例,对设计模式的应用进行了研究探讨。通过对同一应用的不同实现方式的比较.突出了设计模式在实际开发应用中的优势。 相似文献
3.
设计模式和形式化是软件工程领域研究的两个重要方面。本文首先介绍了设计模式和形式化方法等基本知识,其次介绍了设计模式中类和函数间存在的各种基本关系和层次概念,最后利用Z语言形式化描述适配器模式。 相似文献
4.
Struts框架控制器及其进化的模式分析 总被引:1,自引:0,他引:1
Struts框架为Web应用提供了预备的软件架构和相关的软件包,它的实现源代码使用设计模式以满足框架本身的复用性要求。简要介绍了Struts框架如何实现MVC模式,通过分析Struts框架控制器源码所使用的经典设计模式和J2EE模式阐明了Struts框架的工作原理及设计思想。针对该框架只能支持HTML格式终端数据的问题,讨论了如何使用具体设计模式将其控制器进化为以XML格式数据为应用处理核心来屏蔽各种客户终端。 相似文献
5.
陈丁山 《数字社区&智能家居》2007,(23)
设计模式是面向对象理论的进一步深化,其基本目的是为防止程序各模块间产生太多关联而尽量保持类与类之间的相互独立,并使设计出的各种模式具有普遍的应用意义从而避免重复的代码编写.介绍了设计模式的概念以及当前设计模式的一般分类,然后以适配器模式为例,对设计模式的应用进行了研究探讨.通过对同一应用的不同实现方式的比较,突出了设计模式在实际开发应用中的优势. 相似文献
6.
首先介绍MVC设计模式的基本思想,然后利用MVC模式,在数据库方面采用分布式的设计思想,实现了一个基于J2EE的网络付费平台。该平台可应用于各种母系统。 相似文献
7.
设计模式对于构建可复用的软件框架有重要意义。本文用构造型说明法讨论了满足结构化要求的各种元设计模式应具备的语义特性。提出了用构造型说明来描述基于元模式的模式规约的思想。 相似文献
8.
9.
物流信息系统中设计模式的应用 总被引:1,自引:0,他引:1
随着信息系统的不断发展,客户对软件系统提出了更高的要求。由于软件开发固有的复杂性、软件实现的不易复制性,软件的生产过程面临许多问题。设计模式提供了对问题簇的设计精良的解决方案。文中通过在物流信息系统中引入设计模式,具体分析了三种代表性的设计模式在物流信息系统中的应用,证明了模式设计的引入有助于提高软件的可复用性、可维护性以及稳定性和安全性。 相似文献
10.
设计模式将新的设计建立在以往工作的基础上,复用以往成功的设计方案。在内容管理系统发布程序的设计中引入设计模式使得整个程序结构清晰、各部分功能明确,提高了系统的扩展性和可维护性。 相似文献
11.
成功地利用模式可以有效提高软件的开发效率和设计质量,通用模式具有较强的普适性,结合具体领域特点形成的实例模式具有更强、更具体的指导作用。为了实现一个辅助设计模式复用的CASE工具,对设计模式的几个面向对象的原则进行分析,提出了一种面向对象的分布式软件实例模式库来存储设计模式,并给出相应的类层次库组织结构、分布式的交互管理和基于聚类的多级索引方法及面向对象的嵌套索引方法。依此存储模式以更有效地管理和利用模式。 相似文献
12.
In recent years, the influences of design patterns on software quality have attracted increasing attention in the area of
software engineering, as design patterns encapsulate valuable knowledge to resolve design problems, and more importantly to
improve the design quality. One of the key challenges in object-oriented design is how to apply appropriate design patterns
during the system development. In this paper, design pattern is analyzed from different perspectives to see how it can facilitate
design activities, handle non-functional requirement, solve design problems and resolve design conflicts. Based on the analysis,
various kinds of applicability of design patterns are explored and integrated with a goal-driven approach to guiding developers
to construct the object-oriented design model in a systematic manner. There are three benefits to the proposed approach: making
it easy to meet requirements, helping resolve design conflicts, and facilitating improvement of the design quality. 相似文献
13.
The object-oriented approach has been the most popular software design methodology for the past twenty-five years. Several design patterns and principles are defined to improve the design quality of object-oriented software systems. In addition, designers can use unique design motifs that are designed for the specific application domains. Another commonly used technique is cloning and modifying some parts of the software while creating new modules. Therefore, object-oriented programs can include many identical design structures. This work proposes a sub-graph mining-based approach for detecting identical design structures in object-oriented systems. By identifying and analyzing these structures, we can obtain useful information about the design, such as commonly-used design patterns, most frequent design defects, domain-specific patterns, and reused design clones, which could help developers to improve their knowledge about the software architecture. Furthermore, problematic parts of frequent identical design structures are appropriate refactoring opportunities because they affect multiple areas of the architecture. Experiments with several open-source and industrial projects show that we can successfully find many identical design structures within a project (intra-project) and between different projects (inter-project). We observe that usually most of the detected identical structures are an implementation of common design patterns; however, we also detect various anti-patterns, domain-specific patterns, reused design parts and design-level clones. 相似文献
14.
15.
16.
17.
Ashish Kumar Dwivedi Anand Tirkey Santanu Kumar Rath 《Frontiers of Computer Science》2018,12(5):908-922
Design patterns are often used in the development of object-oriented software. It offers reusable abstract information that is helpful in solving recurring design problems. Detecting design patterns is beneficial to the comprehension and maintenance of object-oriented software systems. Several pattern detection techniques based on static analysis often encounter problems when detecting design patterns for identical structures of patterns. In this study, we attempt to detect software design patterns by using software metrics and classification-based techniques. Our study is conducted in two phases: creation of metrics-oriented dataset and detection of software design patterns. The datasets are prepared by using software metrics for the learning of classifiers. Then, pattern detection is performed by using classification-based techniques. To evaluate the proposed method, experiments are conducted using three open source software programs, JHotDraw, QuickUML, and JUnit, and the results are analyzed. 相似文献
18.
面向对象可复用软件设计思想分析 总被引:6,自引:0,他引:6
软件复用技术是有效利用已有的软件资源,提高软件开发效率,降低开发成本的技术.但是如何才能设计出一个可以复用的软件,这是我们大家都很关心的问题,Erich Gamma博士在这方面进行了有益的尝试,他的研究方法是总结前人在面向对象软件开发过程中所积累的经验,即模式,但是模式是如何总结出来的,在总结模式时,或者说在设计可复用的软件时应该如何思考问题,这比总结模式本身更重要.本文主要从软件复用的关键——隔离变化入手,深入探讨和分析了面向对象的软件系统构造过程中可能发生变化的点,并给出了屏蔽这些变化点的方法,并提出了一个设计面向对象可复用软件的新的可操作的思路、 相似文献
19.
20.
大数量大粒度实体对象管理方案的设计与实现 总被引:2,自引:0,他引:2
大量的耗费内存资源的实体对象正在日益成为面向对象软件系统的沉重负担。该文依照面向对象设计的原则,对实体对象的管理问题做出分析,依据“createondemand”的思想,将数据实体设计、载入导出方式以及管理控制策略独立开来,并在典型的设计模式的基础上进行扩展,形成一个基本的设计框架,最后在方案的可重用性、可扩展性、系统的运行效率以及数据的一致性等方面进行了一定的讨论。 相似文献