Collaborations

As well as containing classes, a package can contain collaborations. A collaboration is a name given to the interaction among two or more classes. Typically, this is an interaction, as described in an interaction diagram. Thus, the sequence diagram in Figure 7-3 describes the Make Sale collaboration.

Figure 7-3. Sequence Diagram for Making a Sale

This collaboration might show the implementation of an operation or the realization of a use case. You can model the collaboration before deciding what operation invokes it.

A collaboration can be described with more than one interaction diagram, with each one showing a different path. ...

Get UML Distilled: A Brief Guide to the Standard Object Modeling Language, Second Edition 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.