DEV Community

0 seconds of 3 minutes, 2 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
03:02
 
Kevin Gilpin for AppMap

Posted on

6

How to interpret a sequence diagram

Follow along on this tour of a sequence diagram, covering the following concepts:

  1. Lifeline: A vertical line that represents an object or component in the system. The lifeline shows the lifetime of the object/component and its existence over time.
  2. Object header: The rectangular box attached to the top of the lifeline that contains the name of the component (package, class, etc.) that the lifeline represents.
  3. Activation bar: A horizontal line that represents the duration of time when an object is performing an action or processing a message. It is shown as a solid line on top of the lifeline.
  4. Message: A horizontal arrow that represents the communication between objects or components. It is shown as a line with an arrowhead pointing from the sender to the receiver. Messages can be synchronous, asynchronous, or self-referential.
  5. Return message: A horizontal arrow with a dashed line that represents the return message from the receiver to the sender.
  6. Self-message: A message that is sent by an object to itself.
  7. Combined fragment: A diagram fragment representing a specific flow of control. It is shown as a box with a label that indicates the condition under which it is executed.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay