Chapter 4. Sequence Diagrams

Sequence Diagrams

Sequence diagrams are the most common of the dynamic models drawn by UML users. As you might expect, UML provides lots and lots of goodies to help you draw truly incomprehensible diagrams. In this chapter we'll study those goodies, and try to convince you to use them with great restraint.

I once consulted for a team that had decided to create sequence diagrams for every method of every class. Please don't do this, it's a terrible waste of time. Use sequence diagrams when you have an immediate need to describe to someone how a group of objects collaborate, or when you want to visualize that collaboration for yourself. ...

Get UML FOR JAVA™ PROGRAMMERS 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.