design patterns in opm n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Design Patterns In OPM PowerPoint Presentation
Download Presentation
Design Patterns In OPM

Loading in 2 Seconds...

play fullscreen
1 / 16

Design Patterns In OPM - PowerPoint PPT Presentation


  • 119 Views
  • Uploaded on

Design Patterns In OPM. Presented by: Galia Shlezinger Instructors: Prop. Dov Dori, Dr. Iris Berger. Research purpose. Model known design patterns in OPM Construct a meta-model for design patterns Demonstrate design in OPM using a test-case Develop best practices for design in OPM

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Design Patterns In OPM' - naasir


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
design patterns in opm

Design Patterns In OPM

Presented by: Galia Shlezinger

Instructors: Prop. Dov Dori, Dr. Iris Berger

research purpose
Research purpose
  • Model known design patterns in OPM
  • Construct a meta-model for design patterns
  • Demonstrate design in OPM using a test-case
  • Develop best practices for design in OPM
  • Hopefully, Develop new design patterns for OPM.
topics of this presentation
Topics of this presentation
  • In this presentation we will review three well known Design patterns from “Design patterns: Elements of Reusable Object-Oriented Software”. And how they are modeled in OPM.
  • We will see that these three design patterns are naturally “built into” OPM and their positive consequences are relevant for most OPM models.
the command design pattern
The Command Design Pattern
  • “Intent: Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.”[1]

Menu item

application

interface

paste

document

command in opm
Command in OPM
  • Commands are actually processes
  • Processes can be generalized
the command design pattern1
The Command Design Pattern
  • “Consequences:
    • Decouples the object that invokes the operation from the one that knows how to perform it.
    • Commands are first class objects they can be manipulated and extended like any other object.
    • You can assemble commands into a composite command. (Macro command)
    • Its easy to add new commands, because you don’t have to change existing classes.”

[1].

the template method pattern
The Template Method Pattern
  • “Intent: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure.” [1]
template method in opm
Template method in OPM
  • Methods are processes
  • Processes can be aggregated and generalized.
the template method pattern1
The Template Method Pattern
  • “consequences: template methods are a fundamental technique for code reuse… they are the means for factoring out common behavior … hook operations…” [1].
the visitor design pattern
The Visitor Design Pattern
  • “Intent: Represent an operation to be preformed on the element of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.”[1].

node

Node visitor

VariableRef Node

Type checking visitor

visitor in opm
Visitor in OPM
  • Operations are processes
  • Different operations are all specialization of a common generalized operation that is actually the operation interface.
  • The element object is an instrument of this generalized process.
the visitor design pattern1
The Visitor Design Pattern
  • “Consequences:
    • Visitor makes adding new operations easy…
    • A visitor gathers related operations and separates unrelated ones…
    • Adding new concrete element classes is hard…
    • Breaking encapsulation…”

[1]

conclusions
Conclusions
  • OPM advantages:
    • Decoupling
    • Less sub-classing
    • Breaking encapsulation
  • OPM disadvantages:
    • Breaking encapsulation
some more research goals
Some more research goals
  • Studying design pattern structure using OPM models.
  • Studying the relationship between design patterns using OPM models.
  • Developing best practices and design patterns for solving design problems in OPM.
references
References
  • Gamma, Helm, Johnson, Vlissides, “Design Patterns: Elements of Reusable Object-Oriented Software”, Addison-Wesley 1994.
  • Dori, “Object-Process Methodology: a Holistic Systems Paradigm”, Springer 2002.