Sequence Diagrams

Sequence diagrams describe system behaviors by modeling the interactions between the participants (systems, sub-systems, and actors in the associated environment). The interactions are represented as messages exchanged between the participants over time.

In sequence diagrams, each participant has a vertical lifeline and messages are sent from one lifeline to another in sequence from top to bottom.

In this example, the sequence diagram describes the behavior of starting a hybrid electric vehicle by specifying the interactions between the actor Driver and the block instances Power Controller lifeline, Electric Engine, and Combustion Engine.

To create a sequence diagram, click the Create New Model command in the homepage Quick Links card (see Creating a Model), enter a name, select Object-Oriented Model in the Type list and SysML Sequence Diagram in the Template list, and click Create.

Alternatively, you can create sequence diagrams as a sub-diagram of a block (see State Machine Blocks): Open a block definition diagram (see Block Definition Diagrams), select the block (see Blocks) that you want to analyze and click Create Sequence Diagram.The new sequence diagram is listed in the Diagrams tab All Diagrams category of the block’s property sheet.

The following tools are available in sequence diagrams:

Tool

Description

Reuse Model Objects. Opens a list to allow you to drag existing model objects into the diagram.

Actors. See Actors.

Lifelines. See Lifelines.

Combined Fragments. See Combined Fragments.

Note. Add notes to your diagram and link them to your symbols.

Messages (See Messages) - Select:

  • Async Messages

  • Sync Messages

  • Reply Messages

  • Create Messages

  • Destroy Messages

  • Lost Messages

  • Found Messages

Link – Provides an alternative way to create a link. Select the tool and connect two objects with a default link, then choose Change Link Type to change to another link as appropriate.

This tool is available in both the diagram toolbox and in the context menu of the relevant objects.

Lasso. Select multiple symbols by dragging over them.