design pattern modelling and instantiation using dmpl

21
1 Design Pattern Modelling and Instantiation Using DMPL Instructor: Ku-Yaw Chung Student: Han-Chung Lee Pattern Oriented- Design

Upload: doli

Post on 19-Jan-2016

45 views

Category:

Documents


1 download

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 Presentation

TRANSCRIPT

Page 1: Design Pattern Modelling and Instantiation Using DMPL

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

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

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

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

5

Core concepts of DPML

Page 6: Design Pattern Modelling and Instantiation Using DMPL

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

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

8

Basic DPML notation

Page 9: Design Pattern Modelling and Instantiation Using DMPL

9

An Example

Page 10: Design Pattern Modelling and Instantiation Using DMPL

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

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

12

Instantiation Diagram Notation

Page 13: Design Pattern Modelling and Instantiation Using DMPL

13

GUIFactory UML object model

Page 14: Design Pattern Modelling and Instantiation Using DMPL

14

AbstractFactory Pattern

Page 15: Design Pattern Modelling and Instantiation Using DMPL

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

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

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

18

Three diagrams implemented in the prototype DPML tool

Page 19: Design Pattern Modelling and Instantiation Using DMPL

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

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

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