【24h】

Formalising Design Patterns in Predicate Logic

机译:谓词逻辑中的正式化设计模式

获取原文

摘要

Design patterns are traditionally outlined in an informal manner. If they could be formalised, we could derive tools that automatically recognise design patterns and refactor designs and code. Our approach is to deploy predicate logic to specify conditions on the class diagrams that describe design patterns. The structure of class diagrams is itself described with a novel meta-notation that can be used for defining any graphical modelling language. As a result, the constraints, while based on UML, are highly readable and have much expressive power. This enables us not only to recognise design patterns in legacy code, but also to reason about them at the design stage, such as showing one pattern to be a special case of another. The paper discusses our specification of the original 23 design patterns and presents a representative sample of some of them.
机译:传统上以非正式方式概述了设计模式。如果它们可以正式化,我们可以推出自动识别设计模式和重构设计和代码的工具。我们的方法是部署谓词逻辑,以指定描述设计模式的类图上的条件。类图的结构本身描述了一种新的元符号,可用于定义任何图形建模语言。结果,基于UML的约束是高度可读的并且具有很大的表现力。这使我们不仅可以识别遗留代码中的设计模式,而且还可以在设计阶段推理它们,例如将一个图案显示为另一个特殊情况。本文讨论了我们对原始23个设计模式的规范,并提出了其中一些的代表性样本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号