100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Samenvatting Advanced Software Development II $5.57   Add to cart

Summary

Samenvatting Advanced Software Development II

 26 views  1 purchase
  • Course
  • Institution

Advanced Software Development II

Preview 3 out of 23  pages

  • October 21, 2022
  • 23
  • 2021/2022
  • Summary
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller easyIT. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.57. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

84669 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.57  1x  sold
  • (0)
  Add to cart