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


Cargo has some meaning even when considered apart from the  Cargo



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

Cargo
has some meaning even when
considered apart from the 
Cargo
itself. So the 
Handling Event
should be the root of its own
AGGREGATE
.
Figure 7.3. A
GGREGATE
 boundaries imposed on the model. (Note: An
ENTITY
 outside a drawn boundary is implied to be the root of its own
AGGREGATE
.)


[ Team LiB ]


[ Team LiB ]
Selecting R
EPOSITORIES
There are five 
ENTITIES
in the design that are roots of 
AGGREGATES
, so we can limit our
consideration to these, since none of the other objects is allowed to have 
REPOSITORIES
.
To decide which of these candidates should actually have a 
REPOSITORY
, we must go back to the
application requirements. In order to take a booking through the 
Booking Application
, the user
needs to select the 
Customer(s)
playing the various roles (shipper, receiver, and so on). So we
need a 
Customer Repository
. We also need to find a 
Location
to specify as the destination for
the 
Cargo
, so we create a 
Location Repository
.
The 
Activity Logging Application
needs to allow the user to look up the 
Carrier Movement
that a 
Cargo
is being loaded onto, so we need a 
Carrier Movement Repository
. This user must
also tell the system which 
Cargo
has been loaded, so we need a 
Cargo Repository
.
Figure 7.4. R
EPOSITORIES
 give access to selected 

Download 7,21 Mb.

Do'stlaringiz bilan baham:
1   ...   110   111   112   113   114   115   116   117   ...   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