Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Sequence diagrams

From the browser, create a new sequence diagram called execution.


This sequence diagram will be used to capture what happens in execution. Operation Mode will be discussed later but for this example, it does not matter if Anal sis or !esign is selected.

67

Adding instances
Add a # stem $order to the sequence diagram.

!rag the Display class from the browser onto the sequence diagram.

6"

Drawing a sequence diagram


&ormall , ou would describe an actual scenario similar to this one here, howe'er in this case, ou are more interested in capturing what actuall happens.

For the purpose of this training, ou onl need the s stem border and the !ispla instance line. There is no need to add an operations.

6%

Animated sequence diagrams


#tart the animation and clic) Go.

*f a sequence diagram is open, then +ational +hapsod creates a new animated sequence diagram based on the execution.
&ote that the animated sequence diagram captures operations, timeouts, and states.
7(

Extended exercise I
+ational +hapsod can displa the return 'alue on animated sequence diagrams. To do so, ou must use a macro OM-+.T/+&. *n the implementation of the operation isDone(), replace return with OM_RETURN.

7,

Extended exercise II
Tr adding an extra state pausing. Then ou will see the instance changing states.

70

You might also like