Domain-Driven Design: Tackling Complexity in the Heart of Software



Download 7,21 Mb.
Pdf ko'rish
bet115/343
Sana17.11.2022
Hajmi7,21 Mb.
#867526
1   ...   111   112   113   114   115   116   117   118   ...   343
Bog'liq
Eric Evans 2003 - Domain-Driven Design - Tackling Complexity in the Heart of Software

AGGREGATE
 roots.
For now there is no 
Handling Event Repository
, because we decided to implement the
association with 
Delivery History
as a collection in the first iteration, and we have no application
requirement to find out what has been loaded onto a 
Carrier Movement
. Either of these reasons
could change; if they did, then we would add a 
REPOSITORY
.


[ Team LiB ]


[ Team LiB ]
Walking Through Scenarios
To cross-check all these decisions, we have to constantly step through scenarios to confirm that
we can solve application problems effectively.
Sample Application Feature: Changing the Destination of a Cargo
Occasionally a 
Customer
calls up and says, "Oh no! We said to send our cargo to Hackensack, but
we really need it in Hoboken." We are here to serve, so the system is required to provide for this
change.
Delivery Specification
is a 
VALUE OBJECT
, so it would be simplest to just to throw it away and get
a new one, then use a setter method on 
Cargo
to replace the old one with the new one.
Sample Application Feature: Repeat Business
The users say that repeated bookings from the same 
Customers
tend to be similar, so they want
to use old 
Cargoes
as prototypes for new ones. The application will allow them to find a 
Cargo
in
the 
REPOSITORY
and then select a command to create a new 
Cargo
based on the selected one.
We'll design this using the 
PROTOTYPE
pattern (Gamma et al. 1995).
Cargo
is an 
ENTITY
and is the root of an 
AGGREGATE
. Therefore, it must be copied carefully; we
need to consider what should happen to each object or attribute enclosed by its 
AGGREGATE
boundary. Let's go over each one:

Download 7,21 Mb.

Do'stlaringiz bilan baham:
1   ...   111   112   113   114   115   116   117   118   ...   343




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish