Sequence Diagram

The Sequence Diagram represents the interaction between classes and objects along the time axis.

image

Creating a Sequence Diagram

Sequence Diagram can be added by the following procedure:

  • Click [Sequence Diagram] from [Diagram] on the Main Menu.

  • Use the context menu from [Structure] in [Project View].

  • Use Edit InteractionUse.


Diagram Elements of Sequence Diagrams

image
Description of each icon

Type

Icon

Description

Select

select_icon

The basic operations of the Diagram Editor can be executed in this mode.

LifeLine

object_wl_icon

Add a Lifeline.

Message

msg_icon

Add a Message.

Asynchronous Message

asyn_msg_icon

Add an Asynchronous Message.

Create Message

create_msg_icon

Add a Create Message.

Delete Message

destroy_msg_icon

Add a Delete Message.

Reply Message

return_msg_icon

Add a Reply Message.

Stop

termination_icon

Add a Stop.

Duration Constraint

duration_constraint_icon

Add a Duration Constraint.

Time Constraint

time_constraint_icon

Add a Time Constraint. Select from the pull-down of the Duration Constraint icon.

CombinedFragment

combinedfragment_icon

Add a CombinedFragment. You can select either of alt, assert, break, consider, critical, ignore, loop, neg, opt, par, seq, or strict from the pull-down.

InteractionUse

interactionuse_icon

Add an InteractionUse.

StateInvariant

stateinvariant_icon

Add a StateInvariant.

Refer to Common Diagram Elements for information on other items.


LifeLine

Creating a LifeLine

Lifeline can be created by the following procedure:

  • Double-click on the Sequence Diagram.

  • Select [Lifeline] object_wl_icon in the Tool Bar and click on the diagram.

  • Drag and drop the Block or Actor from the [Structure] to the diagram.

image

Editing the LifeLine

Visibility of LifeLine Name/Type Name

Set whether to show or hide the LifeLine name/Type name.

  • Select [Name Visibility] from the context menu.

  • Select [Type Visibility] from the context menu.

When the name is hidden

image

Adjust Lifeline Length

Adjust the LifeLine Length by the following procedure:

  • Drag and drop the end of the LifeLine on the Sequence Diagram.

  • Select the default length from [Adjust Lifeline Length] in the context menu of the LifeLine.

  • Select either of [Default]/[Align to Minimum]/[Align to Maximum] from [Adjust Lifeline Length] in the context menu of the Sequence Diagram.

Adjust ExecutionSpecification Length

Adjust the ExecutionSpecification Length by the following procedure:

  • Drag and drop the end of the Execution Specification View on the Sequence Diagram.

  • Select the default length from [Adjust ExecutionSpecification Length] in the context menu of the Execution Specification View.

  • Select the default length from [Adjust ExecutionSpecification Length] in the context menu of the Sequence Diagram.


Synchronous Message

Creating a Synchronous Message

Synchronous Message can be created by the following procedure:

Using the Tool Bar

  1. Select [Message] msg_icon in the Tool Bar.

  2. Click the LifeLine that sends the message.

  3. Click the LifeLine that receives the message.

Using the Draw Suggest

  • Select [Synchronous Message] in the Draw Suggest.

image

Editing the Synchronous Message

Editign the Synchronous Message Name

Synchronous Message name can be edited by the following procedure:

  • Double-click the name of the Diagram Element on the Diagram Editor and edit the name.

  • Edit from the [Base] tab in the Property View.

Message Parameter/ Parameter Type/Parameter Direction Kind Visibility

Select each visibility from [Message Parameter Visibility], [Message Parameter Type Visibility], or [Message Parameter Direction Kind Visibility].

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.

Adding a Constraint

Constraint can be added by the following procedure:

  • Select [Add Constraint] from the context menu.

  • Add a Constraint from the [Constraint] tab of the Property View.

Constraint Visibility

Constraint visibility can be selected by the following procedure:

  • Select [Constraint Visibility] from the context menu.

Changing the Source/Target of the Synchronous Message

Drag and drop the Execution Specification View that sends or receives the Synchronous Message to another LifeLine to change the LifeLine that sends or receives the Synchronous Message. (There are some restrictions.)


Asynchronous Message

Creating an Asynchronous Message

Asynchronous Message can be created by the following procedure:

Using the Tool Bar

  1. Select [Asynchronous Message] asyn_msg_icon in the Tool Bar.

  2. Click the LifeLine that sends the message.

  3. Click the LifeLine that receives the message.

Using the Draw Suggest

  • Select [Asynchronous Message] in the Draw Suggest.

image

Editing the Asynchronous Message

Refer to Edit Synchronous Message Name for details.


Found Message

Creating a Found Message

Found Message can be created by the following procedure:

  1. Select [Message] msg_icon or [Asynchronous Message] asyn_msg_icon in the Tool Bar.

  2. Click other than the LifeLine and the LifeLine to receive the message in order.

image

Lost Message

Creating a Lost Message

Lost Message can be created by the following procedure:

  1. Select [Message] msg_icon or [Asynchronous Message] asyn_msg_icon in the Tool Bar.

  2. Click the Lifeline that sends the message and other than the LifeLine in order.

image

Gate

Creating a Gate

Gate can be created by the following procedure:

  1. Select [Message] msg_icon or [Asynchronous Message] asyn_msg_icon in the Tool Bar.

  2. Click the Frame and the LifeLine to receive the message in order.

image

Create Message

Creating a Create Message

Create Message can be created by the following procedure:

  1. Select [Create Message] create_msg_icon in the Tool Bar.

  2. Click the Lifeline that sends the message and the LifeLine that receive the message in order.

image

Editing the Create Message

Refer to Edit Synchronous Message Name for details.


Delete Message

Creating a Delete Message

Delete Message can be created by the following procedure:

  1. Select [Delete Message] destroy_msg_icon in the Tool Bar.

  2. Click the Lifeline that sends the message and the LifeLine that receive the message in order.

image

Editing the Delete Message

Refer to Edit Synchronous Message Name for details.


Reply Message

Creating a Reply Message

Reply Message can be created by the following procedure: Set the Execution Specification Visibility of the Base tab in the Property View to ON when the Execution Specification View is hidden.

  • Select [Reply Message] return_msg_icon in the Tool Bar and click the Execution Specification View of the message that sends the Reply Message.

image

Note

Or, create a Reply Message while “Create Reply Message” of the message context menu or [Turn this on if you want to auto-create Reply Messages.] auto_return_messageicon of the Tool Bar is set to on.

Editing the Reply Message

Refer to Edit Synchronous Message Name for details.


Stop

Creating a Stop

Stop can be created by the following procedure:

  • Select [Stop] termination_icon in the Tool Bar and click the LifeLine to set the Stop.

image

Duration Constraint

Creating a Duration Constraint

Duration Constraint can be created by the following procedure:

  1. Select [Duration Constraint] duration_constraint_icon in the Tool Bar.

  2. Click the message to set at the beginning of the Duration Constraint, then click the message to set at the end.

image
  1. Specify the time duration.

image

Time Constraint

Creating a Time Constraint

Time Constraint can be created by the following procedure:

  1. Select [Time Constraint] time_constraint_icon in the Tool Bar.

  2. Click the message to create the Time Constraint.

image
  1. Specify the time duration.

image

CombinedFragment

Creating a CombinedFragment

CombinedFragment can be created by the following procedure:

  • Select [CombinedFragment ] combinedfragment_icon in the Tool Bar and drag it over the LifeLine that the CombinedFragment is to be set.

image

Editing the CombinedFragment

Editing the CombinedFragment Name

CombinedFragment name can be edited by the following procedure:

  • Place the cursor on “alt” on the upper left of the CombinedFragment and double-click to edit it.

  • Edit from the [Base] tab in the Property View.

Adding an Operand

  • Click [Add Operand] in the context menu and double-click [Guard] of the entered Operand to edit the Guard.

  • Add from the [Operand] tab of the Property View.

image

InteractionUse

Creating an InteractionUse

InteractionUse can be created by the following procedure:

  • Select [InteractionUse ] interactionuse_icon in the Tool Bar and drag it over the LifeLine that the InteractionUse is to be set.

image

Editing the InteractionUse

Editing the InteractionUse Name

InteractionUse name can be edited by the following procedure:

  • Double-click the name of the Diagram Element on the Diagram Editor and edit the name.

  • Edit from the [Base] tab in the Property View.

Select the visibility setting of the LifeLine name from [Name Visibility] in the context menu.

Creating a Sequence Diagram

Create a Sequence Diagram from the InteractionUse by the following procedure:

  • Right-click the InteractionUse with no associated Sequence Diagram set and select [Create Sequence Diagram] from the context menu.

  • Double-click the InteractionUse with no associated Sequence Diagram set.

Opening the Associated Sequence Diagram

Sequence Diagram can open by the following procedure:

  • Right-click the InteractionUse with the associated Sequence Diagram set and select [Open Diagram] from the context menu.

  • Double-click the InteractionUse with the associated Sequence Diagram set.


StateInvariant

Creating a StateInvariant

StateInvariant can be created by the following procedure:

  • Select [StateInvariant ] stateinvariant_icon in the Tool Bar and click the LifeLine.

image

Editing the StateInvariant

Editing the StateInvariant Name

StateInvariant Name can be edited by the following procedure:

  • Double-click the name of the Diagram Element on the Diagram Editor and edit the name.

  • Edit from the [Base] tab in the Property View.

image