design pattern modelling and instantiation using dmpl
DESCRIPTION
Design Pattern Modelling and Instantiation Using DMPL. Instructor: Ku-Yaw Chung Student: Han-Chung Lee. Pattern Oriented-Design. Author & Source. Author: David Mapelsden John Hosking John Grundy Source: ACM International Conference Proceeding Series; Vol. 21. Outline. - PowerPoint PPT PresentationTRANSCRIPT
1
Design Pattern Modelling and Instantiation Using DMPL
Instructor:Ku-Yaw Chung
Student:Han-Chung Lee
Pattern Oriented-Design
2
Author & Source
Author: David Mapelsden John Hosking John Grundy
Source: ACM International Conference Proceedin
g Series; Vol. 21
3
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
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
5
Core concepts of DPML
6
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
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.
8
Basic DPML notation
9
An Example
10
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
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.
12
Instantiation Diagram Notation
13
GUIFactory UML object model
14
AbstractFactory Pattern
15
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support: DPTool Conclusions
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.
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.
18
Three diagrams implemented in the prototype DPML tool
19
Pattern and instance and validation manager examples
Figure 10. Pattern and instance manager and pattern validation manager examples
20
Outline
Introduction Modelling Design Pattern Soluations Design Pattern Instantiation and Realis
ation Tool Support:DPTool Conclusions
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