5.10. Collaboration Diagrams

Collaboration diagrams and sequence diagrams (discussed in the following section) are the two ways of representing interaction between different classes in UML. Objects in a system interact in order to provide the services defined by the application. Interaction diagrams represent objects in relation to one another.

In a collaboration diagram, objects are represented by rectangles. You draw arrows representing messages between each object. Each arrow is labeled to indicate the nature of the message and the order in which the message is sent.

5.10.1. When to Use Collaboration Diagrams

Use collaboration diagrams early in designing your system so that you can have a picture of how objects will interact. This can help ...

Get Java™ for ColdFusion® Developers 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.