$30 off During Our Annual Pro Sale. View Details »

CSE564 Lecture 19

CSE564 Lecture 19

Software Design
Assignment 04
(202011)

Javier Gonzalez-Sanchez
PRO

September 19, 2020
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs
    CSE 564
    Software Design
    Lecture 19: Connecting the Dots I
    Dr. Javier Gonzalez-Sanchez
    [email protected]
    javiergs.engineering.asu.edu | javiergs.com
    PERALTA 230U
    Office Hours: By appointment

    View Slide

  2. jgs
    Previously …

    View Slide

  3. jgs
    564 00010100
    Patterns

    View Slide

  4. jgs
    564 00010100
    Abstract Factory

    View Slide

  5. jgs
    564 00010100
    Builder

    View Slide

  6. jgs
    564 00010100
    Chain of Responsibility vs Composite vs Decorator

    View Slide

  7. jgs
    564 00010100
    Strategy vs Bridge
    Bridge Pattern makes a distinction
    between an abstraction and an
    implementation in such a way that the
    two can vary independently
    Car - Engine
    changing the behavior
    of an object at run
    time.
    Game: Weapons

    View Slide

  8. jgs
    564 00010100
    You Have a Quiz

    View Slide

  9. jgs
    Let’s Play

    View Slide

  10. jgs
    564 00010100
    Warning!
    hypothetical scenario ahead, just for fun

    View Slide

  11. jgs
    564 00010100
    Idea
    Main
    Factory
    Gift Ball Box Envelop
    random size

    View Slide

  12. jgs
    564 00010100
    Idea 1
    Main
    Factory
    Gift Ball Box Envelop
    Handler
    Supervisor
    Bin

    View Slide

  13. jgs
    564 00010100
    Idea (and this is NOT a class diagram)
    wrapper2
    Main wrapper1
    Factory
    decoration
    Envelope
    Box
    Gift
    wrapper3
    ball Supervisor
    Is big > 10, box
    Is small < 5, envelop
    Is not big and It is not small,
    no decoration

    View Slide

  14. jgs
    564 00010100
    Idea 2
    Main
    Factory
    Gift Ball Box Envelop
    Handler
    Supervisor
    Bin
    GUI

    View Slide

  15. jgs
    564 00010100
    Think about it!
    We will solve it
    next lecture

    View Slide

  16. jgs
    564 00010100
    Questions

    View Slide

  17. jgs
    CSE 564 Software Design
    Javier Gonzalez-Sanchez, Ph.D.
    [email protected]
    Fall 2021
    Copyright. These slides can only be used as study material for the class CSE564 at ASU.
    They cannot be distributed or used for another purpose.

    View Slide