Design Patterns Ein Muster (pattern) ist eine Idee, die sich in einem praktischen Kontext als nützlich erwiesen hat und dies auch in anderen sein wird.

Slides:



Advertisements
Ähnliche Präsentationen
Finding the Pattern You Need: The Design Pattern Intent Ontology
Advertisements

R. Zankl – Ch. Oelschlegel – M. Schüler – M. Karg – H. Obermayer R. Gottanka – F. Rösch – P. Keidler – A. Spangler th Expert Meeting Business.
Hör zu! Auf dem Land In einer Großstadt In einem Dorf In einer Kleinstadt GernNicht gern Logo 4, Seite 84, Übung 1a.
Starter – Match up – Write the German AND English
Reflexive Verbs Command Forms Frau Comstock River Hill High School.
Multi electron atoms Atoms with Z>1 contain >1 electron. This changes the atomic structure considerably because in addition to the electron-nucleus interaction,
Fakultät für informatik informatik 12 technische universität dortmund Specifications Peter Marwedel TU Dortmund, Informatik 12 Graphics: © Alexandra Nolte,
Peter Marwedel TU Dortmund, Informatik 12
Fakultät für informatik informatik 12 technische universität dortmund Hardware/Software Partitioning Peter Marwedel Informatik 12 TU Dortmund Germany Chapter.
Subjects and Direct Objects When to use der vs. den.
Lehrstuhl Informatik III: Datenbanksysteme Andreas Scholz 1 Programming Database Web Applications Web Service Technologies Andreas Scholz.
Comparative Adjectives. The term comparison of adjectives is used when two or more persons or things have the same quality (height, size, color, any characteristic)
Frank Fischer Manager Evangelism and Marketing Microsoft Deutschland GmbH.
Adjektive Endungen von Frau Templeton.
Abkürzungen mit Präpositionen German Prepositional Contractions
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
Sabine Dennerlein Nice to meet you! Enjoy 60 seconds of your precious time for yourself! Cornelia Renate Gottwald Your personal holistic health coach.
How many more nouns can you think of?
Institut AIFB, Universität Karlsruhe (TH) Forschungsuniversität gegründet 1825 Towards Automatic Composition of Processes based on Semantic.
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
Deutsch 1 G Stunde. Donnerstag, der 18. Oktober 2012 Deutsch 1, G Stunde Heute ist ein D- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
Deutsch 1 G Stunde. Montag, der 10. September 2012 Deutsch 1 (G Stunde)Heute ist ein D - Tag Unit: Introduction to German & Germany Objectives: Introducing.
Wortschatz angenehm comfortable anstrengend tiring ausgezeichnet outstanding bequem comfortable berühmt famous besser better blöd stupid einfach easy fantastisch.
Wortschatz der Schulhof the playground die Aula the hall
INTAKT- Interkulturelle Berufsfelderkundungen als ausbildungsbezogene Lerneinheiten in berufsqualifizierenden Auslandspraktika DE/10/LLP-LdV/TOI/
DEUTSCHLAND UND DIE MEDIEN
A person who has not studied German can form no idea of what a perplexing language it is:[...] Mark Twain.
Verben Wiederholung Deutsch III Notizen.
Miteinander Leben Deutch III Notizen Einheit 5. In this unit you will: Learn vocabulary for talking about relationships Learn vocabulary for various emotions.
Tage der Woche German Early Level Montag Dienstag Mittwoch Donnerstag
Objective: By the end of this lesson you should be able to talk confidently about what you have done in the past tense. Quick Starter! How do you form.
Past Perfect Tense.
Berner Fachhochschule Hochschule für Agrar-, Forst- und Lebensmittelwissenschaften HAFL Recent activities on ammonia emissions: Emission inventory Rindvieh.
The most obvious or direct use of auch is to mean also. Ich möchte auch Gitarre lernen. Auch ich möchte Gitarre lernen. I would like to learn Guitar. Someone.
Ein Herz besteht aus vielen Räumen, A heart consist of many rooms, Manche groß, Andere klein, Many big, others small, aber das soll nicht heißen, dass.
Nouns. What is a noun O A noun is the name of a person, O place, O animal O or thing.
Talking about yourself
Welcome Instructor: Dominik Dwight Zethmeier
By: Jade Bowerman. German numbers are quite a bit like our own. You start with one through ten and then you add 20, 30, 40 or 50 to them. For time you.
German Early Level The Weather.
Negation is when you dont have or dont do something.
Adjectiv Endungen Lite: Adjective following articles and pre-ceeding nouns. Colors and Clothes.
Relativpronomen / Relativsätze:
Greetings and goodbyes Deutschland v. USA
Sentence Structure Subject and verb are always together. Subject and verb are always together. Subject and verb must agree Subject and verb must agree.
To school => zu der Schule With friends => mit den Freunden On top of the desk => auf dem Schreibtisch Through the wall => durch die Wand.
2 Exkurs: Der personenzentrierte Ansatz nach Carl R. Rogers
Separable Verbs Turn to page R22 in your German One Book R22 is in the back of the book There are examples at the top of the page.
THE PERFECT TENSE IN GERMAN
Adjective Endings Nominative & Accusative Cases describing auf deutsch The information contained in this document may not be duplicated or distributed.
SEPARABLE VERBS. Separable verbs have prefixes on them. These prefixes are adverbs and prepositions that are detached from the verb when it is conjugated.
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
Instrumente und Unterhaltung End of Unit Assessment.
You need to use your mouse to see this presentation
By Martin L. Loeffler.  The basic sentence has a subject and a verb.  The subject and verb need to be together.  The subject and verb need to agree.
Warm-up: Kickers ‘ob’, ‘dass’, ‘weil’
Adjective Declension in German
Most commonly spoke language. This interesting map comes from Ben Blatt of Slate, who used data from the Census Bureau’s American Community Survey. He.
Deutsch lernen; Deutsch sprechen?
Someone who wants to help you might ask:Your response might be: Was soll ich jetzt tun? What should I do now? Geh für mich einkaufen! Go shopping for me.
Lust auf Lesen Treffpunkt Deutsch Sixth Edition. Relative Pronoun object of a preposition Recall from chapter 9 that relative clauses describe people,
Memorisation techniques
Here‘s what we‘ll do... Talk to the person sitting in front of you. Introduce each other, and ask each other questions concerning the information on your.
What’s the odd one out and why? TeeBananenBier Orangensaft WasserMilsch KaffeeFisch PizzaSalatSchokoladeSandwich SchokoladeOrangenZitronenApfel PizzaFischOrangeChips.
Volume 1, Chapter 8.
Volume 1, Chapter 2.
Aspect-Oriented Programming: Fad or the Future
THE PERFECT TENSE IN GERMAN
Practical Exercises and Theory
 Präsentation transkript:

Design Patterns Ein Muster (pattern) ist eine Idee, die sich in einem praktischen Kontext als nützlich erwiesen hat und dies auch in anderen sein wird. Pattern unterstützen die Lösung von Anwendungsproblemen, indem sie für typische Teilprobleme erprobte Lösungsansätze bereitstellen. Das Erkennen solcher Pattern ist jedoch schwierig und erfordert Übung. Ein Pattern ist eine Gruppe von Klassen mit feststehenden Verantwortlichkeiten und Interaktionen. Es kann eine Gruppe von Klassen sein, die durch Beziehungen verknüpft ist, oder eine Gruppe von kommunizierenden Objekten.

Design Patterns It starts with a simple SimUDuck application: Improve the application: make ducks fly

Design Patterns Then something went wrong: a rubberduck was flying other classes are added to the app. Override quack() to squeak Override fly() to do nothing Override quack() to do nothing Override fly() to do nothing Is inheritance a good solution ???

Design Patterns The solution could be an interface: Is this a good solution ???

Design Patterns Design Principle: Identify the aspects of your application that vary and separate them from what stays the same Design Principle: Program to an interface, not to an implementation fly() and quack() are the parts of the SimUDuck application that vary across ducks. The solution is to create a set of new classes to represent each behaviour

Design Patterns Implementing the duck behaviors: With this design, other types of objects can reuse the behavior-classes New behaviors can be added without modifying any existing classes

Design Patterns Integrating the duck behaviors: First add two instance variables to the class Duck Then implement a method that performs the behavior public class MallardDuck extends Duck { public MallardDuck () { quackBehavior = new Quack(); flyBehavior = new FlyWithWings(); } public class Duck { protected QuackBehavior quackBehavior; public void performQuack() { quackBehavoir.quack(); }

Design Patterns The big picture the strategy pattern Client fly behavior quack behavior

Design Patterns Design Principle: Favor composition over inheritance. Composition defines a HAS-A relationship between two classes HAS-A can be better than IS-A For the SimUDuck application the composition can be found between the classes Duck and FlyBehavior