visualizing design patterns in their applications and compositions

14

Upload: dava

Post on 19-Jan-2016

27 views

Category:

Documents


0 download

DESCRIPTION

Visualizing Design Patterns in Their Applications and Compositions. Design pattern overview. A design pattern is a formally documented solution to a design problem. Patterns are used to communicate architectural knowledge, teach new design paradigms, and convey design experience - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Visualizing Design Patterns in Their Applications and Compositions
Page 2: Visualizing Design Patterns in Their Applications and Compositions

A design pattern is a formally documented solution to a design problem.

Patterns are used to communicate architectural knowledge, teach new design paradigms, and convey design experience

They are normally modeled in natural languages and visual notations (UML)

Page 3: Visualizing Design Patterns in Their Applications and Compositions

Each design pattern typically contains several participants.

When the pattern is applied names are changed to suit the application domain

This means pattern information represented by the role names is lost.

When this happens it becomes difficult to identify the patterns used in the system.

Page 4: Visualizing Design Patterns in Their Applications and Compositions
Page 5: Visualizing Design Patterns in Their Applications and Compositions

Several approaches have been suggested.

-Venn diagram-style annotation -UML collaboration annotation -Pattern:role annotation

Page 6: Visualizing Design Patterns in Their Applications and Compositions

COMPOSITION OF PATTERNS VENN DIAGRAM-STYLE

Page 7: Visualizing Design Patterns in Their Applications and Compositions

UML COLLABORATION PATTERN:ROLE

Page 8: Visualizing Design Patterns in Their Applications and Compositions

Static notations attached to UML diagrams

Cannot distinguish between two instantiations of the same pattern

Only applied in class diagrams not in sequence or behavioral diagrams

Do not cover the roles of operations or attributes.

Page 9: Visualizing Design Patterns in Their Applications and Compositions

Design pattern modeling language (DPML) Adds new symbols to UML

Design recovery frameworksLogic based languagesSpecialized version of UML meta-

model

Page 10: Visualizing Design Patterns in Their Applications and Compositions

An extension to the existing UML specification through stereotypes

Tagged Values for each stereotype role@name [instance]

Multiple tags per class are allowed.

Page 11: Visualizing Design Patterns in Their Applications and Compositions

On-demand visualization techniques based on coloring and mouse movement

VisDP – tool that can hide/show design pattern information on demand.

Mouse-over a class in a pattern, and all classes in that pattern turn a different color.

Pattern information overlaid over diagram

Page 12: Visualizing Design Patterns in Their Applications and Compositions
Page 13: Visualizing Design Patterns in Their Applications and Compositions
Page 14: Visualizing Design Patterns in Their Applications and Compositions