1 / 12

Pattern Bridge

Pattern Bridge. Par Jean-Marc Boulerice 2559396 Seg3510. Definition. Decouple an abstraction from its implementation so that the two can vary independently. Diagrame Uml. Abstraction. Visible par les clients Envoie les requêtes du client vers l’implementator

astrid
Download Presentation

Pattern Bridge

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. Pattern Bridge Par Jean-Marc Boulerice 2559396 Seg3510

  2. Definition • Decouple an abstraction from its implementation so that the two can vary independently.

  3. Diagrame Uml

  4. Abstraction • Visible par les clients • Envoie les requêtes du client vers l’implementator • Fournis les fonction de haut niveau

  5. RefineAbstraction • Implémente les différentes abstraction

  6. Implementor • Interface entre plusieurs implémentation • Ne dois pas corresponde a l’interface Abstraction, peu être très différent. • Offre les opérations de bas niveau

  7. ConcreteImplementor • Implémentation de l’interface Implementor • Défini des implémentation concret

  8. Point fort • Découple l’abstraction de l’implémentation • Réduis le nombre de sous classe • Rend le code plus claire • L’abstraction et l’implémentation peuvent vraiment varier

  9. Point faible • Petite baisse de performance causer par la délégation de l’abstraction a l’implémentation

  10. Repas DealRepas DemiLivreBurger PouletBurger QuardLivreBurguer PasDeal MediumDeal Mon exemple du pattern Bridge

  11. Reference • http://www.dofactory.com/Patterns/PatternBridge.aspx • http://cs.colgate.edu/faculty/nevison/cs303web/notes/13 • http://www.cs.uofs.edu/~bi/2003f-html/se516/bridge.htm • http://www.csc.calpoly.edu/~mliu/csc568/notes/bridge.doc

  12. Reference(2) • http://www.codeproject.com/gen/design/bridge.asp?df=100&forumid=1820&exp=0&select=745209 • http://www.netobjectives.com/dpexplained/download/ch09.pdf • http://www.fluffycat.com/java/JavaNotes-GoFBridge.html

More Related