13.2. Associations Involving Competition

13.2.1. Competition in the Domain

For some associations, linking objects involves competition for resources. In the online bookstore, customers do not have to compete with one another to place an order; the store can accept as many orders as it likes.[1] Similarly, the association between publishers and products is not competitive; there is a seemingly unending supply of new books (about UML?), and any publisher's desire to publish a book can be satisfied.

[1] We have purposely ignored the problem of limited stock and back ordering. All the mechanisms necessary to build those models are covered in this section.

In contrast, consider how shipping clerks select shipments to pack. The Shipping Clerk statechart ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.