O'Reilly logo

Learning UML by Sinan Si Alhir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required