1 / 21

Design Pattern Modelling and Instantiation Using DMPL

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.

doli
Download Presentation

Design Pattern Modelling and Instantiation Using DMPL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 Proceeding Series; Vol. 21

  3. Outline • Introduction • Modelling Design Pattern Soluations • Design Pattern Instantiation and Realisation • 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 modelling 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 Realisation • 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 Realisation • Tool Support:DPTool • Conclusions

  11. Design Pattern Instantiation and Realisation • Proxy’ elements are participants and 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 Realisation • Tool Support: DPTool • Conclusions

  16. Tool Support: DPTool • As mentioned earlier the DPML was designed 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 Realisation • 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

More Related