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


Cargo delivery  goal is  specified ." "A series of  Carrier Movements



Download 7,21 Mb.
Pdf ko'rish
bet107/343
Sana17.11.2022
Hajmi7,21 Mb.
#867526
1   ...   103   104   105   106   107   108   109   110   ...   343
Bog'liq
Eric Evans 2003 - Domain-Driven Design - Tackling Complexity in the Heart of Software

Cargo
delivery 
goal
is 
specified
."
"A series of 
Carrier Movements
satisfying the 
Specification
will fulfill the delivery 
goal
."
Each object in the model has a clear meaning:

Handling Event
is a discrete action taken with the 
Cargo
, such as loading it onto a ship or
clearing it through customs. This class would probably be elaborated into a hierarchy of different
kinds of incidents, such as loading, unloading, or being claimed by the receiver.
Delivery Specification
defines a delivery goal, which at minimum would include a destination
and an arrival date, but it can be more complex. This class follows the 
SPECIFICATION
pattern (see
Chapter 9).
This responsibility could have been taken on by the 
Cargo
object, but the abstraction of 
Delivery
Specification
gives at least three advantages.
Without 
Delivery Specification
, the 
Cargo
object would be responsible for the detailed
meaning of all those attributes and associations for specifying the delivery goal. This would
clutter up 
Cargo
and make it harder to understand or change.
1.
This abstraction makes it easy and safe to suppress detail when explaining the model as a
whole. For example, there could be other criteria encapsulated in the 
Delivery
Specification
, but a diagram at this level of detail would not have to expose it. The diagram
is telling the reader that there is a 
SPECIFICATION
of delivery, and the details of that are not
important to think about (and, in fact, could be easily changed later).
2.
This model is more expressive. Adding 
Delivery Specification 
says explicitly that the exact
means of delivery of the 

Download 7,21 Mb.

Do'stlaringiz bilan baham:
1   ...   103   104   105   106   107   108   109   110   ...   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