Let’s draw the following sequence diagram. This sequence diagram is based on “Figure D.10 – White Box Interaction for “StartVehicle” (Sequence Diagram)” in the
SysML 1.5 specification, with a bit of additional objects.
If you are starting the tutorial from this page,
you can download Astah SysML and a sample file which contains all the diagrams throughout the previous chapters. Right-click on a “HSUV” block in the structure tree.
Then select [Create Diagram] – [Sequence Diagram] from the pop-up menu.
Then a blank Sequence Diagram will open in the diagram editor.
Rename the sequence diagram to “StartVehicleWhiteBox” in the structure tree or in the properties view of the Sequence diagram.
Actually, you can draw a similar process flow in Sequence diagrams, but the Sequence diagram shows the message exchange between Objects in chronological order
Let’s create Lifelines.
Drag and drop the “ElectricalPowerController” Block from the tree view to diagram
Then a Lifeline with the block type will be created.
In this tutorial, we will omit the object names, as there is no particular distinction between objects.
Let’s create another Lifeline with “PowerControlUnit” Block in the same way. Asynchronous message
Let’s create Messages.
In the sample diagram, the message from the frame to the “PowerControlUnit” object is an asynchronous messages.
Click the fourth button from the left in the tool palette to create the asynchronous message.
Click on the frame and then on the “PowerControlUnit” lifeline. to draw the message arrow.
Rename it to “StartVehicle()”.
Let’s create a synchronous message.
This is a message from the “PowerControlUnit” to the “ElectricalPowerController”.
Click the third button from the left in the tool palette
Click on the bar on the “PowerControlUnit” then click on the lifeline of “ElectricalPowerController”.
Then the message will be created.
Add “enable” for the message name.
Clickthe seventh button from the left in the tool palette
Click on the “ElectricalPowerController” ExecutionSpecification then rename it to “ready”.
Select the “InteractionUse” tool button.
Drag the area you want to place the InteractionUse from the left to right covering the target lifelines.
Then set the name as “Park/ShutdownVehicle”.
Now you have nailed the Sequence Diagram!
You can also download the file that contains this Sequence Diagram from here.
What are you looking for?