1 / 7

Mid-Level Design Patterns Categories

Learn about the need for classification of mid-level design patterns and explore the three categories in the scheme: Broker, Generator, and Reactor patterns.

miltonj
Download Presentation

Mid-Level Design Patterns Categories

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. Mid-Level Design Patterns Categories

  2. Objectives • To propose a classification scheme to help remember patterns • To present the three categories in the scheme

  3. Topics • The need for classification • Pattern categories

  4. The Need for Classification • Since their introduction in the mid-1990s, hundreds of mid-level design patterns have been published. • How can designers keep them all in mind? • Many are not that important or have narrow application. • A pattern classification scheme can help designers remember many important patterns.

  5. Pattern Categories • Broker patterns have a client that needs a service from a supplier, and a broker that mediates the interaction between client and supplier. • Generator patterns have a client who needs a new instance of a product, and a generator class that supplies the instance. • Reactor patterns have a client that needs to respond to an event in a target. The client delegates this responsibility to a reactor.

  6. Category Analogies • Brokers are like stock brokers who mediate interactions between an investor (client) and the stock market (supplier). • Generators are like interior designers who obtain material from manufacturers (products) on behalf of their clients. • Reactors are like lawn service companies that respond to conditions in a lawn (target) on behalf of a homeowner (client).

  7. Summary • There are hundreds of design patterns and they are hard to remember. • One way to help remember them is to classify them. • Our pattern collection is classified into three categories: • Broker patterns • Generator patterns • Reactor patterns

More Related