0% found this document useful (0 votes)
15 views

UML Class Sequence

Uploaded by

miss.nandini26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

UML Class Sequence

Uploaded by

miss.nandini26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Interaction Diagrams

• show how objects interact with one another

• UML supports two types of interaction diagrams


 Sequence diagrams
 Collaboration diagrams
Interaction Diagrams
• Interaction diagrams are dynamic -- they
describe how objects collaborate.
• A Sequence Diagram:
– Indicates what messages are sent and when
– Time progresses from top to bottom
– Objects involved are listed left to right
– Messages are sent left to right between objects in
sequence
Object Types
Sequence Diagram(make a phone call)

Caller Phone Recipient

Picks up

Dial tone

Dial

Ring notification Ring

Picks up

Hello
Sequence Diagrams – Object Life Spans

• Creation
A
 Create message
 Object life starts at that point
• Activation Create
B
 Symbolized by rectangular stripes
 Place on the lifeline where object is
activated.
 Rectangle also denotes when object
is deactivated.
• Deletion Activation bar
X
Return
 Placing an ‘X’ on lifeline Deletion
 Object’s life ends at that point Lifeline
Sequence Diagram Format
Actor from
Use Case Objects

2
Activation 3

Lifeline Calls = Solid Lines


Returns = Dashed Lines
Sequence Diagram Example
Hotel Reservation

You might also like