• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 23 pages
Summary

Samenvatting Advanced Software Development II

Document preview thumbnail
Preview 3 out of 23 pages

Advanced Software Development II

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

Document information

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

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
4.0
(5)
Sold
86
Followers
30
Items
23
Last sold
1 week ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions