Design Pattern Modelling and Instantiation Using DMPL
description
Transcript of Design Pattern Modelling and Instantiation Using DMPL
![Page 1: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/1.jpg)
1
Design Pattern Modelling and Instantiation Using DMPL
Instructor:Ku-Yaw Chung
Student:Han-Chung Lee
Pattern Oriented-Design
![Page 2: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/2.jpg)
2
Author & Source
Author: David Mapelsden John Hosking John Grundy
Source: ACM International Conference Proceedin
g Series; Vol. 21
![Page 3: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/3.jpg)
3
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
![Page 4: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/4.jpg)
4
Introduction
A visual language for modelling design pattern soluations
Defines a metamodel and a notation Can be used as a stand-alone modelli
ng language or in conjunction with UML to also model solution instances within UML object models
![Page 5: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/5.jpg)
5
Core concepts of DPML
![Page 6: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/6.jpg)
6
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
![Page 7: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/7.jpg)
7
Modelling Design Pattern Soluations
Models design pattern soluations as a collection of participants
A participants represents a structurally significant feature of a design pattern, that when instantiated, will be linked to objects from the object model to realise the pattern.
![Page 8: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/8.jpg)
8
Basic DPML notation
![Page 9: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/9.jpg)
9
An Example
![Page 10: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/10.jpg)
10
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
![Page 11: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/11.jpg)
11
Design Pattern Instantiation and Realisation Proxy’ elements are participants an
d relations inherited from the base design pattern solution and are therefore immutable in the instance
‘Real’ elements are participants and relations added to a design pattern instance to tailor that instance.
![Page 12: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/12.jpg)
12
Instantiation Diagram Notation
![Page 13: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/13.jpg)
13
GUIFactory UML object model
![Page 14: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/14.jpg)
14
AbstractFactory Pattern
![Page 15: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/15.jpg)
15
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support: DPTool Conclusions
![Page 16: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/16.jpg)
16
Tool Support: DPTool As mentioned earlier the DPML was de
signed specifically to facilitate the provision of tool support.
They have successfully implement a prototype DPML CASE tool they call DPTool.
![Page 17: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/17.jpg)
17
Benefits of DPTool Consistent, multiple views of UML and DPML. Model management mechanisms, so user can
create, save and reload UML and DPML models. An automatic design pattern instantiation
mechanism, to create pattern instances from design patterns
An automatic model verification mechanism ensures the UML object model and all design pattern instances within that object model
An automates consistency mechanism between design pattern instances and base design patterns.
![Page 18: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/18.jpg)
18
Three diagrams implemented in the prototype DPML tool
![Page 19: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/19.jpg)
19
Pattern and instance and validation manager examples
Figure 10. Pattern and instance manager and pattern validation manager examples
![Page 20: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/20.jpg)
20
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
![Page 21: Design Pattern Modelling and Instantiation Using DMPL](https://reader036.fdocuments.in/reader036/viewer/2022062423/56814e7e550346895dbc1ba4/html5/thumbnails/21.jpg)
21
Conclusions
Support for design pattern composition to create other patterns
Support for specification of dynamic aspects of design patterns
Extending the pattern concept Support for classification scheme for
design patterns