Finding the Pattern You Need The Design Pattern

  • Slides: 10
Download presentation
Finding the Pattern You Need: The Design Pattern Intent Ontology Holger Kampffmeyer, Steffen Zschaler

Finding the Pattern You Need: The Design Pattern Intent Ontology Holger Kampffmeyer, Steffen Zschaler Technische Universität Dresden, Germany 04 October, 2007

Outline Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie 1. 2. 3. 4.

Outline Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie 1. 2. 3. 4. Motivation Modelling Design-Pattern Intent Searching for Patterns Conclusions TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 2

Motivation Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Design Patterns How to

Motivation Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Design Patterns How to solve? But: Which Pattern Fits? Software Developer with Design Problem TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 3

Motivation (2) Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie 1. • •

Motivation (2) Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie 1. • • Pattern catalogues: Rough categorisation No tool support Useful for small collections of patterns only 2. Formal representations of patterns: • Good for tool-supported search • Focus on structure and behaviour Developers need to search by problem Problems solved by a pattern are described in Intent (mainly) Need a searchable formalisation of pattern Intent TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 4

Modelling Design-Pattern Intent Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Design. Pattern

Modelling Design-Pattern Intent Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Design. Pattern solves * * DPProblem. Concept Constraint decouples Algorithm. Decoupling TU Dresden, 04. 10. 2007 Algorithm (c) Steffen Zschaler 5

Modelling Design-Pattern Intent (2) Problem Hierarchy Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl

Modelling Design-Pattern Intent (2) Problem Hierarchy Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Based on Intent descriptions from Go. F catalogue TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 6

Modelling Design-Pattern Intent (3) Ontologies Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie

Modelling Design-Pattern Intent (3) Ontologies Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Ontologies allow easy expression of knowledge bases Queries executed by Reasoning Engines Design. Pattern solves * * DPProblem. Concept Constraint “Find all instances of Design. Pattern that are a solution to a problem where an algorithm is varied. ” (retrieve (? x ) (and (? x |Design. Pattern|) (? x ? p |is. Solution. To|) (? p ? a |varies|) (? a |Algortihm|) )) n. RQL TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 7

Searching for Patterns Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie TU Dresden,

Searching for Patterns Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 8

Conclusions & Outlook Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Presented a

Conclusions & Outlook Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Presented a new approach to formalise Design Patterns à Based on pattern intent à Useful for looking up a pattern to solve a design problem Future work à Represent more design patterns à User study with wizard à Is this the right representation of design problems? TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 9

Discussion Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Thank you for your

Discussion Fakultät Informatik, Institut für Software- und Multimediatechnik, Lehrstuhl Softwaretechnologie Thank you for your attention! Questions welcome! TU Dresden, 04. 10. 2007 (c) Steffen Zschaler 10