期刊文献+

软件重构中Visitor设计模式和应用 被引量:5

Visitor design pattern in software refactoring and application
在线阅读 下载PDF
导出
摘要 对当前软件重构领域中的研究作了概括性介绍。对作为重构的主导思想和系统体系结构的总体转换方向的设计模式进行介绍,针对原有的Visitor设计模式在运行中操作调用频繁时资源消耗过大和运行效率降低的不足,在原模式基础上进行改良和优化,生成一种新的设计模式Visitor,并对其具体分析,通过操作函数的上移和accept方法的重定义,实现了操作定义由Element层到Visitor层的等价转化,大大节省资源和提高运行效率。最后运用Visitor实现了一个面向对象设计过程中的重构,并结合一些重要概念对其进行具体分析。 A relatively concise introduction of existing research in the field of software refactoring is generally provided. Design pattern as the primary idea for refactoring and the whole transformation direction of system architecture is illustrated. Based on previous Visitor design pattern, a new design pattern called Visitor^* is designed aiming at the disadvantage of excessive resource consuming and running efficiency decreasing due to frequently called operation in running and make a concrete demonstration of it, the Element-to-Visitor hierarchy equal transformation of the operate definition is realized by moving operate function and redefining accept method, is reduced and running is enhanced. Finally it is applied in realizing the refactoring in an object-oriented programming and analyzed concretely on other main concepts.
出处 《计算机工程与设计》 CSCD 北大核心 2006年第24期4817-4820,共4页 Computer Engineering and Design
关键词 重构技术 形式化方法 重构工具 设计模式 类层次体系架构 refactoring techniques formalisms for refactoring refactoring tools design pattern class hierarchy architecture
  • 相关文献

参考文献10

  • 1Opdyke W F.Refactoring:A program restructuring aid in designing object-oriented application frameworks[D].University of Illinois at Urbana-Champaign.1992.
  • 2Fowler M.重构-改善既有代码的设计[M].北京:中国电力出版社,2003.
  • 3Tom Mens,Tom Tourw.A survey of software refactoring[J].IEEE Transaction on Software Engineering,2004,30(2):126-127.
  • 4Gamma.设计模式:可复用面向对象软件的基础[M].北京:机械工业出版社,2002.
  • 5Coplien J O.Software design patterns:Common questions and answers[M].NY:The Patterns Handbook:Techniques,Strategies,and Applications.Cambridge University Press,1998.311-320.
  • 6Mikkonen T.Formalizing design patterns[D].Proceedings of ICSE,1998.115-124.
  • 7Alexandrescu A.Modern C++ design:Generic programming and design patterns applied[M].Addison-Wesley,2001.
  • 8B(a)umer D,Riehle D,Siberski W.Role object pattern[R].Proceedings of PLoP'97,Technical Report WUCS-97-34,Washington University Department of Computer Science,1997.
  • 9赵方圆,魏志强,林勇.基于构件的可重构软件开发平台技术研究[J].计算机工程与设计,2005,26(1):33-36. 被引量:15
  • 10李小满,蒋建春,卿斯汉.面向对象的安全评估方法[J].计算机工程与设计,2005,26(1):103-106. 被引量:5

二级参考文献22

  • 1Morisio M D Romano, Starnelos I. Quality, productivity, and learning in framework-based development:An exploratory case study[J].IEEE Trans on Software Engineering, 2002, 28(9):876-888.
  • 2Kang, Kyo C, Kim, et al. A feature‐oriented reuse method with domain‐specific reference architectures[J]. Annals of Software Engineering, 1998, (5): 143-168.
  • 3Dobrica L, Niemela E. A survey on software architecture analysis methods[J]. IEEE Trans on Software Engineering, 2002, 28(7):638-653.
  • 4Mili,Rym, Raymond, et al. Towards a formal framework for software reuse[J]. Information Sciences, 1998, 110 (3-4):135-149.
  • 5Brown A. Large-scale component_based development[M]. New Jersey:Prentice Hall, 2000.
  • 6Ravindran B. Engineering dynamic real-time distributed systems: architecture, system description language,and middleware[J].IEEE Trans on Software Engineering, 2002, 28(1): 30-57.
  • 7Stankovic N, Kang Zhang. A distributed parallel programming framework[J]. IEEE Trans on Software Engineering, 2002, 28(5): 478-493.
  • 8De Souza, M A F, Ferreira, et al. Designing reusable rule-based architectures with design patterns[J]. Expert Systems with Applications, 2002, 23(4): 395-403.
  • 9Hwang, Yih-Feng, Rine, et al. Verifying the reusability of software component specifications framework and algorithms [J].Information Sciences, 1998, 112(1-4):169-197.
  • 10Griss, Martin L, Wentzel, et al. Hybrid domain-specific kits[J].Journal of Systems and Software, 1995, 30(3): 213-230.

共引文献21

同被引文献17

引证文献5

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部