首页> 外文期刊>Software >Understanding design patterns - what is the problem?
【24h】

Understanding design patterns - what is the problem?

机译:了解设计模式-问题是什么?

获取原文
获取原文并翻译 | 示例
       

摘要

Design patterns codify proven solutions to recurring design problems. Their proper use within a development context requires that: (i) we understand them; (ii) we ascertain their applicability or relevance to the design problem at hand; and (iii) we apply them faithfully to the problem at hand. We argue that an explicit representation of the design problem solved by a design pattern is key to supporting the three tasks in an integrated fashion. We propose a model-driven representation of design patterns consisting of triples where MP is a model of the problem solved by the pattern, MS is a model of the solution proposed by the pattern, and T is a model transformation of an instance of the problem into an instance of the solution. Given an object-oriented design model, we look for model fragments that match MP (call them instances of MP), and when one is found, we apply the transformation T yielding an instance of MS. Easier said than done. Experimentation with an Eclipse Modeling Framework-based implementation of our approach applied to a number of open-source software application's raised fundamental questions about: (i) the nature of design patterns in general, and the ones that lend themselves to our approach, and (ii) our understanding and codification of seemingly simple design patterns. In this paper, we present the principles behind our approach, report on the results of applying the approach to the Gang of Four (GoF) design patterns, and discuss the representability of design problems solved by these patterns.
机译:设计模式将经过验证的解决方案编纂为反复出现的设计问题。在开发环境中正确使用它们需要:(i)我们了解它们; (ii)我们确定其对当前设计问题的适用性或相关性; (iii)我们忠实地将其应用于当前的问题。我们认为,通过设计模式解决的设计问题的明确表示形式是以集成方式支持这三个任务的关键。我们提出了由模型模型驱动的表示形式,该模型由三元组组成,其中MP是模型所解决问题的模型,MS是模型所提出的解决方案的模型,而T是模型所提出的解决方案的模型将问题的实例转换为解决方案的实例。给定一个面向对象的设计模型,我们将寻找与MP匹配的模型片段(称为MP实例),当找到一个模型片段时,我们应用转换T生成MS实例。说起来容易做起来难。对基于Eclipse Modeling Framework的我们的方法的实现进行试验,将其应用于许多开源软件应用程序,这些问题提出了以下基本问题:(i)一般设计模式的性质以及那些适合我们方法的设计模式,以及( ii)我们对看似简单的设计模式的理解和整理。在本文中,我们介绍了我们的方法背后的原理,报告了将该方法应用于四人组(GoF)设计模式的结果,并讨论了由这些模式解决的设计问题的可表示性。

著录项

  • 来源
    《Software》 |2012年第12期|p.1495-1529|共35页
  • 作者单位

    Ecole de Technologie Superieure, Montreal, Canada,LATECE Laboratory, Universite du Quebec a Montreal, Montreal, Canada;

    LATECE Laboratory, Universite du Quebec a Montreal, Montreal, Canada;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    design patterns; design problems; pattern detection; model-driven development;

    机译:设计模式;设计问题;模式检测;模型驱动的开发;
  • 入库时间 2022-08-17 13:03:51

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号