Sequence diagrams are used to capture time ordering of message flow and collaboration diagrams are used to understand the structural organization of the system. Generally a set of sequence and collaboration diagrams are used to model an entire system
A sequence diagram shows elements as they interact over time, showing an interaction or interaction instance. Sequence diagrams are organized along two axes:
- the horizontal axis shows the elements that are involved in the interaction, and
- the vertical axis represents time proceeding down the page.
The elements on the horizontal axis may appear in any order.