100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting Advanced Software Development II

Rating
-
Sold
1
Pages
23
Uploaded on
21-10-2022
Written in
2021/2022

Advanced Software Development II

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
October 21, 2022
Number of pages
23
Written in
2021/2022
Type
Summary

Subjects

Content preview

1



Samenvatting ASDII
1. DP: Simple Factory....................................................................................................................................2
2. DP: Abstract factory..................................................................................................................................3
3. DP: Iterator...............................................................................................................................................4
4. DP: Composite..........................................................................................................................................6
5. DP: Builder................................................................................................................................................8
6. DP: Command.........................................................................................................................................10
7. DP: Adapter.............................................................................................................................................12
8. DP: Template method.............................................................................................................................14
9. DP: Proxy.................................................................................................................................................16
10. DP: Singleton.........................................................................................................................................17
11. JAVA: Multithreading............................................................................................................................18




DP’s: weten welk DP

Kleine delen van DP’s implementeren

NIET: iterator in boomstructuur (dus iterator composite)

 Wel het ontwerp



Multithreading:

 Kleine stukken code aanvullen
 Skip alle exceptions
 Skip worker, task, service, daemon threads, parallel streams

, 2



1.DP: Simple Factory
Wat?
 Basically een interface voor het creëren van objecten. Het laat de subklasse beslissen welke
klasse er geïnstantieerd wordt.
 De ‘fabriek’ waar objecten gemaakt worden, enkel dit deel v/d code refereert naar de concrete
klasses (in dit vb naar de pizza klasses)

UML




Voorbeeld pizzeria
 Code om een pizza (pepperoni, 4kazen, …) te maken verplaatsen naar een klasse die enkel dient
voor het instantiëren van pizza’s: de factory.




 De factory kent de concrete producten (CheesePizza etc)
 In de factory doet ge dan zoiets van ne switch waar ge adhv uw type (string) een nieuwe pizza
maakt en hem retourneert
 In de pizzastore maakt ge dan gwn uw factory en doet ge factory.createPizza(“pepperoni”) en ge
krijgt een Pizza-object weer waar ge dan uw .prepare() etc op kunt doen

, 3



2.DP: Abstract factory
Wat?
 Een interface voor de vervaardiging van reeksen gerelateerde of afhankelijke objecten zonder de
concrete klasse te specificeren

UML




 Dus basically hangt het concrete product af v/d factory
 Dus als ge product A zegt en factory 1 dan gaat hij productA1 creëren
o Product A factory 2  productA2
 & de client weet dus gwn de abstracte klasse

Voorbeeld pizzeria
$6.05
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
easyIT Hogeschool Gent
Follow You need to be logged in order to follow users or courses
Sold
78
Member since
5 year
Number of followers
30
Documents
23
Last sold
1 week ago

4.0

5 reviews

5
2
4
1
3
2
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions