首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到18条相似文献,搜索用时 406 毫秒
1.
从源码中抽取设计模式对于提高软件可理解性和可维护性、软件设计重用以及软件重构具有重要意义。研究设计模式抽取技术的方法框架,并根据该框架对目前流行的几种设计模式抽取方法进行分类和比较,分析这些技术的优缺点,探讨该领域未来的研究方向和趋势。  相似文献   

2.
基于MVC设计模式的WEB应用框架研究   总被引:5,自引:0,他引:5  
MVC设计模式是基于J2EE的WEB应用开发的首选模式,当前许多流行的框架也都是基于MVC设计模式的。本文简要介绍了MVC设计模式和Struts框架,并提出了一种基于MVC模式的新型WEB应用开发框架——WebFramework,并对该框架的各个层次的组成、功能进行了详细的描述。  相似文献   

3.
基于LePUS的设计模式CASE工具的设计与实现   总被引:1,自引:0,他引:1  
蔡亮  袁捷  周洪亮 《计算机工程与设计》2004,25(11):2074-2076,2084
设计模式是软件工程界的热点,在面向对象软件设计中扮演着重要角色,自动化支持设计模式非常必要。为此,以LePUS语言为基础,提出了一个支持设计模式的CASE工具原型模型,该工具支持设计模式代码框架的自动生成,更重要的是该工具可以通过加入新的设计模式而得以扩展。此外,详细分析了实现中的源程序内部表示、设计模式实例化、动态模板生成技术等关键技术。  相似文献   

4.
提出了应用框架的结构,以及应用框架的通用技术-设计模式,并依据抽象工厂设计模式设计并实现了一种数据加密服务.由于该服务采用框架技术设计,可供业务应用程序直接调用,保证了数据加密模块的独立性、可重用性、可扩展性,另外,该服务实现了对称加密、非对称加密等加密功能,有效地解决了程序中数据安全性的问题.  相似文献   

5.
MVC设计模式是当前软件开发最流行的设计模式之一。本文结合实例给出了MVC设计模式在J2EEWeb层的一种有效的应用,并运用开源的Struts框架实现了MVC设计模式。本文还对MVC模式与Struts框架的内部实现机制进行了分析,并在实践中体现出MVC设计模式与Struts框架的高效和结构清晰的优点。  相似文献   

6.
黄建 《现代计算机》2010,(4):195-197
针对ThinkPHP框架下的ActiveRecord设计模式--一种数据持久层的对象关系映射技术进行研究分析研究.简单介绍对象关系映射技术的必要性,详细介绍对象关系映射技术和ActiveRecord设计模式的基本原理,阐述ThinkPHP框架下ActiveRecord设计模式的原理和特点.以用户评论系统为例,展示ActiveRecord设计模式的强大的特性.  相似文献   

7.
结合实例给出了MVC 设计模式在J2EE Web层的一种有效的应用,并运用开源的Struts框架实现了MVC设计模式,还对MVC模式与Struts框架的内部实现机制进行了分析,并在实践中体现出MVC设计模式与Struts框架的高效和结构清晰的优点.  相似文献   

8.
本文针对J2EE技术进行深入研究,对Struts框架进行深入剖析,研究Struts框架的内部结构、运作流程,以及对MVC设计模式的分析研究和对MYSQL数据库进行深入了解,并提出了一个以J2EE为平台,使用Struts框架,引入MVC设计模式的基于J2EE的新闻发布系统。本系统提高了用户获取新闻信息的及时性,使用户能更...  相似文献   

9.
基于设计模式的软件设计恢复方法研究   总被引:1,自引:0,他引:1  
从源码中抽取设计模式对于提高软件可理解性和可维护性、软件设计重用以及软件重构具有重要意义.本文研究基于设计模式的软件设计恢复方法框架,并根据该框架对设计模式实例查找过程可能遇到的关键问题予以分析解答,探讨该领域未来的研究方向和趋势.  相似文献   

10.
李勇  唐慧丰 《现代计算机》2010,(7):186-188,202
企业级应用涉及的资源众多,数据量大,安全性高,为了高效地开发企业级应用程序,分析企业级应用框架设计的目标和选择合适设计模式准则,阐述如何选择合适的设计模式,并重点研究和设计一种基于J2EE设计模式的框架。该框架在多个管理信息系统中得到应用,取得良好的效果。  相似文献   

11.
Liu  Dong  Ren  Zhi-Lei  Long  Zhong-Tian  Gao  Guo-Jun  Jiang  He 《计算机科学技术学报》2020,35(5):963-978

In common design pattern collections, e.g., design pattern books, design patterns are documented with templates that consist of multiple attributes, such as intent, structure, and sample code. To adapt to modern developers, the depictions of design patterns, especially some specific attributes, should advance with the current programming technologies, for example, “known uses”, which exemplifies the use scenarios of design patterns in practice, and “related patterns”, which describes the relatedness between a design pattern and the others within a context. However, it is not easy to update the contents of these attributes manually due to the diversity of the programming technologies. To address this problem, in this work, we conducted a case study to mine design pattern use scenarios and related design pattern pairs from Stack Overflow posts to enrich the two attributes. We first extracted the question posts relevant to each design pattern by identifying the design pattern tags. Then, the topics of the posts were discovered by applying topic modeling techniques. Finally, by analyzing the topics specified for each design pattern, we detected 195 design pattern use scenarios and 70 related design pattern pairs, involving 61 design patterns totally. These findings are associated with a variety of popular software frameworks and programming techniques. They could complement the existing design pattern collections and help developers better acknowledge the usage and relatedness of design patterns in today’s programming practice.

  相似文献   

12.
应用模糊方法的设计模式挖掘策略研究   总被引:1,自引:0,他引:1       下载免费PDF全文
从系统源码中挖掘设计模式对软件的可理解性和可维护性具有重要意义。基于模糊理论,提出一种模式匹配方法,实现设计模式挖掘。其中,使用基于类关系的素数矩阵模型对设计模式结构及源码信息进行描述,并作为匹配的模型基础;采用聚类方法对源码模型进行优化,提高匹配效率;将模糊方法与设计模式匹配策略相结合,引入静态和动态信息,提高匹配的正确性。实验结果证明此方法在精确性和完整性方面得到了很大的提高,并且避免了对特殊模式的失效性。  相似文献   

13.
基于嵌入式操作系统VxWorks的战车虚拟仪表显示技术研究   总被引:1,自引:5,他引:1  
本文研究在嵌入式实时操作系统VxWorks及其图形系统WindML上实现战车虚拟仪表图形系统的技术难点问题。并研究如何应用设计模式提高嵌入式计算机软件代码可复用性和系统可维护性。  相似文献   

14.
面向Java语言的设计模式抽取方法的研究   总被引:1,自引:0,他引:1  
从源码中抽取设计模式对于提高软件可理解性和可维护性、软件设计重用以及软件重构具有重要意义。文章面向Java语言提出了一个从源码中抽取设计模式的方法。具体地,研究了一种特定的设计模式描述方法、定义了源码信息模型及其化简方法,以此为基础提出了设计模式模型和源码模型的匹配方法。特别讨论了在抽取设计模式时与container类相关的问题及其解决方案。最后根据抽取结果从模式及其实例的角度对方法进行了评价,并提出了必要的优化技术。  相似文献   

15.
SmartTools is a semantic framework generator, based on XML and object technologies. Thanks to a process of automatic generation from specifications, SmartTools makes it possible to quickly develop environments dedicated to domain-specific and programming languages. Some of these specifications (XML, DTD, Schemas, XSLT) are issued from the W3C which is an important source of varied emerging domain-specific languages. SmartTools uses object technologies such as visitor patterns and aspect-oriented programming. It provides code generation adapted to the usage of those technologies to support the development of semantic analyses. In this way, we obtain at minimal cost the design and implementation of a modular development platform which is open, interactive, uniform, and most important prone to evolution.  相似文献   

16.
Context—Design patterns represent recommended generic solutions to various design problems, whereas code smells are symptoms of design issues that could hinder further maintenance of a software system. We can intuitively expect that both concepts are mutually exclusive, and the presence of patterns is correlated with the absence of code smells. However, the existing experimental evidence supporting this claim is still insufficient, and studies separately analyzing the impact of smells and patterns on code quality deliver diverse results.Objective—The aim of the paper is threefold: (1) to determine if and how the presence of the design patterns is linked to the presence of code smells, (2) to investigate if and how these relationships change throughout evolution of code, and (3) to identify the relationships between individual patterns and code smells.Method—We analyze nine design patterns and seven code smells in two medium-size, long-evolving, open source Java systems. In particular, we explore how the presence of design patterns impacts the presence of code smells, analyze if this link evolves over time, and extract association rules that describe their individual relationships.Results—Classes participating in design patterns appear to display code smells less frequently than other classes. The observed effect is stronger for some patterns (e.g., Singleton, State-Strategy) and weaker for others (e.g., Composite). The ratio between the relative number of smells in the classes participating in patterns and the relative number of smells in other classes, is approximately stable or slightly decreasing in time.Conclusion—This observation could be used to anticipate the smell-proneness of individual classes, and improve code smell detectors. Overall, our findings indicate that the presence of design patterns is linked with a lower number of code smell instances. This could support programmers in a context-sensitive analysis of smells in code.  相似文献   

17.
从源码中挖掘设计模式实例具有重要意义,它能够提升软件系统的可理解性和可维护性。基于机器学习方法,提出了一个设计模式挖掘方法。其中,使用类关系图表示软件系统和设计模式,采用子图匹配的方法从软件系统中提取出候选设计模式实例,过滤了大量非设计模式实例组合,提高了设计模式挖掘效率;提出了度量指标,将软件系统和设计模式向量化,采用机器学习的方法对候选设计模式实例进行分类,提高了设计模式挖掘的准确率。实验结果证明此方法效率和有效性上得到了一定的提升。  相似文献   

18.
一种通用的嵌入式系统应用框架研究   总被引:3,自引:0,他引:3       下载免费PDF全文
为达到可重用、可扩展、可维护等要求,应用程序框架一般要采用多种设计模式进行设计。消息是Windows平台的基本驱动模式,该文基于消息驱动的方式,采用MVC及Publish等设计模式,讨论了一种通用的应用程序框架结构,给出了系统关键类的部分源码,该架构不受限于具体的嵌入式系统平台。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号