Visualizing Design Patterns in Their Applications and Compositions

Visualizing Design Patterns in Their Applications and Compositions
复制标题

DOI:
10.1109/tse.2007.1012
复制
发表时间:
2007
影响因子:
7.4
通讯作者:
Jing Dong;Sheng Yang;Kang Zhang
Jing Dong;Sheng Yang;Kang Zhang
中科院分区:
计算机科学1区
文献类型:
--
作者:
Jing Dong;Sheng Yang;Kang Zhang

文献摘要

被引文献

相似文献

设计模式是通用的设计解决方案,可以在不同的应用程序中应用和组合,其中与模式相关的信息通常隐含在应用程序的统一建模语言(UML)图中。不清楚每个建模元素(如类、属性和操作)参与哪些模式实例。设计人员很难找到应用程序设计中使用的设计模式。因此,设计模式的好处受到了损害,因为设计人员无法就他们使用的设计模式以及他们的设计决策和权衡进行相互交流。在这篇文章中,我们介绍了一个定义了新的构造型、标记值和约束的UML概要文件,用于跟踪UML图中的设计模式。这些新的构造型和标记值被附加到建模元素,以显式地表示建模元素在设计模式中所扮演的角色,以便用户可以在UML图中识别该模式。基于这个概要文件,我们还开发了一个Web服务(工具),用于显式地可视化UML图中的设计模式。有了这项服务,用户能够在他们的应用程序和组合中可视化设计模式,因为模式相关的信息可以动态显示。一个真实世界的案例研究和与现有方法的对比实验被用来评估我们的方法。
Design patterns are generic design solutions that can be applied and composed in different applications where pattern-related information is generally implicit in the Unified Modeling Language (UML) diagrams of the applications. It is unclear in which pattern instances each modeling element, such as class, attribute, and operation, participates. It is hard for a designer to find the design patterns used in an application design. Consequently, the benefits of design patterns are compromised because designers cannot communicate with each other in terms of the design patterns they used and their design decisions and trade-offs. In this paper, we present a UML profile that defines new stereotypes, tagged values, and constraints for tracing design patterns in UML diagrams. These new stereotypes and tagged values are attached to a modeling element to explicitly represent the role the modeling element plays in a design pattern so that the user can identify the pattern in a UML diagram. Based on this profile, we also develop a Web service (tool) for explicitly visualizing design patterns in UML diagrams. With this service, users are able to visualize design patterns in their applications and compositions because pattern-related information can be dynamically displayed. A real-world case study and a comparative experiment with existing approaches are conducted to evaluate our approach.