Sequence Diagrams

Class diagrams show how classes interact with each other, but they do not give you a feel for how instances of those classes will interact in a real situation. Instead, sequence diagrams model this type of behavior. These diagrams do this by showing objects and the messages that pass between these objects. In this appendix, you will learn the UML syntax for sequence diagrams by exploring two examples, the first of which is shown in Figure A.10.

Figure A.10. Sequence Diagram #1.

This first example shows most of the commonly used UML syntax for sequence diagrams. You place actors and boxes that represent objects or classes when ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.