1 Objectives: Sequence Diagram 1. You will able to create a sequence diagram. 2. Assign objects in...

Preview:

Citation preview

1

Objectives: Sequence Diagram

1. You will able to create a sequence diagram.

2. Assign objects in sequence diagrams to classes

3. Map messages to operations

4. Create scripts for sequence diagrams

5. Create a collaboration diagram from a sequence diagram.

2

Sequence Diagram Toolbar

Selection tool

text

note

Note anchor

Object

Message

Reflexive message

3

Creating a Sequence Diagram

4

Object and Class Representation

(a) Actor

(b) Object only

(c) Class only

(d) Object and Class

5

Another way of assigning an Object to an Existing Classes :

6

Messages

7

To make the message as an operation

a)

c)

b)

8

To create messages from the existing operations

9

Focus of Control

10

Messages Deletion and Focus of Control

Important:

All message within a focus of control are deleted when the message starting the focus is deleted

11

Sequence Diagram with Scripts

Script

12

Collaboration Diagram

13

Exercise : Sequence Diagram

14

Nested Focus of Control