Download presentation
Presentation is loading. Please wait.
Published byMyles Nathan Joseph Modified over 6 years ago
1
An OPM-Based Layered Architecture for Modeling Design Patterns
Galia Shlezinger Dr. Iris Berger Prop. Dov Dori
2
Agenda Design pattern Metamodeling framework
Three-layer architecture for modeling design patterns Summery
3
Design patterns A design pattern is defined as a description of a solution to a recurring design problem. The most common use of design patterns is as a reference for the designer. The system model itself usually contains no record of the patterns that were used.
4
Design pattern model Most works on design patterns consider only the solution part of the design pattern. The problem part of the design pattern is not less important than the solution part, as it puts the solution in the correct context and enables reuse of the solution.
5
Modeling the entire design pattern
Pattern and Component Markup Language (PCML)[1] – Supported by a design tool. Design pattern matching [3] – extends the PCML meta-model and allows simplified search of patterns. The pattern model is separate from the system model In both solutions.
6
Classical Framework for metamodeling[2]
Meta-metamodel (M3) OPM UML Metamodel (M2) Structure and semantics Design pattern model M1.5 OPM model UML model Model (M1) Information (M0) System implementation
7
Three design pattern abstraction levels
Meta design pattern level (M2) Design pattern level (M1.5) System level (M1)
8
Meta design pattern level (M2)
9
Design pattern level (M1.5)
The Observer pattern: Problem: Solution:
10
System level (M0) Observer pattern implementation:
The pattern model is mapped to the system model using meta-libraries.
12
Summery All aspects of the design pattern are modeled (and therefore considered). The knowledge of which design patterns are used in a system model is contained in the model itself. OPM meta-libraries are used to map design pattern models (M1.5) to the system model (M1). The design pattern models can be searched to find problems similar to the one at hand.
13
References [1] Object Venture Inc. PCML - Pattern and Component Markup Language, [2] OMG, "Meta Object Facility (MOFTM)", version 1.4, 2003, [3] Petri, D., Csertan, G., "Design Pattern Matching". Periodica Polytechnica Ser. El. Eng. Vol. 46, no. 3-4, pp
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.