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
Slide 2
Slide 2 text
jgs
Previously …
Slide 3
Slide 3 text
jgs
564 00010100
Patterns
Slide 4
Slide 4 text
jgs
564 00010100
Abstract Factory
Slide 5
Slide 5 text
jgs
564 00010100
Builder
Slide 6
Slide 6 text
jgs
564 00010100
Chain of Responsibility vs Composite vs Decorator
Slide 7
Slide 7 text
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
Slide 8
Slide 8 text
jgs
564 00010100
You Have a Quiz
Slide 9
Slide 9 text
jgs
Let’s Play
Slide 10
Slide 10 text
jgs
564 00010100
Warning!
hypothetical scenario ahead, just for fun
Slide 11
Slide 11 text
jgs
564 00010100
Idea
Main
Factory
Gift Ball Box Envelop
random size
Slide 12
Slide 12 text
jgs
564 00010100
Idea 1
Main
Factory
Gift Ball Box Envelop
Handler
Supervisor
Bin
Slide 13
Slide 13 text
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
Slide 14
Slide 14 text
jgs
564 00010100
Idea 2
Main
Factory
Gift Ball Box Envelop
Handler
Supervisor
Bin
GUI
Slide 15
Slide 15 text
jgs
564 00010100
Think about it!
We will solve it
next lecture
Slide 16
Slide 16 text
jgs
564 00010100
Questions
Slide 17
Slide 17 text
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.