原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
70 原书第09章|How to Model Less Obvious Kinds of Concepts
t Language: Precise Modeling with UML [Warmer and Kleppe 1999].) Example Review: Overbooking Policy
In Chapter 1, we worked with a common shipping business practice: booking 10 percent more cargo than the transports could handle. (Experience has taught shipping firms that this overbooking compensates for last-minute cancellations, so their ships will sail nearly full.) This constraint on the association between Voyage and Cargo was made explicit, both in the diagrams and in the code, by adding a new class that represented the constraint.
Figure 9.11. The model refactored to make policy explicit To review the code and reasoning in the f
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch09lev1sec2_split_000.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce