Chapter 6. Sequence and Collaboration Diagrams

This chapter focuses on sequence and collaboration diagrams. Sequence diagrams depict the dynamic behavior of elements that make up a system as they interact over time. Collaboration diagrams depict the behavior of elements as they interact over time and are related in space. As an architecture-centric process focuses on the architecture of a system across iterations, it is important to understand how elements that make up a system interact and collaborate with one another to provide the functionality of the system. We can use this information to determine how best to develop a system. This allows architects, designers, and developers to ensure that the system, when implemented, satisfies its requirements.

Tip

There is some redundancy between sequence and collaboration diagrams in that they both show how elements interact over time. However, the emphasis of each diagram is somewhat different. Sequence diagrams allow you to focus more on the time line in which events occur, while collaboration diagrams make it easier to show relationships between objects.

First, I introduce sequence and collaboration diagrams and how they are used. Next, I discuss roles that classes, objects, associations, and links play in an interaction and collaboration. Then, I go over the communications they exchange when playing these roles. Finally, I discuss how to capture interactions and collaborations. Many details that were not fleshed out in Chapter 2 are ...

Get Learning UML 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.