SAD-Lecture 6 - Sequence Diagram
SAD-Lecture 6 - Sequence Diagram
Lecture 6
Interaction Models
All systems involve interaction of some kind…
• This can be user interaction, which involves user inputs and outputs
• Interaction between the system being developed and other systems
• Or interaction between the components of the system
Actors Objects
Sequence Diagram Notation
:Object 1 :Object 2
Lifelines
Identify the existence of the object over time.
Sequence Diagram Notation
:Object 1 :Object 2
Activations
Indicate when an object is performing an action
Sequence Diagram Notation
:Object 1 :Object 2
message
Messages
Indicate the communications between objects
Sequence Diagram Notation
:Object 1 :Object 2
message
message
Sequence
Vertical position signifies sequence – earlier
messages appear nearer the top.
Sequence Diagram (make a phone call)
A Simpler Example - Sending an email
E-mail Interface
Working From a Scenario
Sending an email
Now the user can see the email page and use it.
The next three steps are filling in the details on
the email page
The User then clicks Send
Now consider how to do the
sending
• Suggestion:
:System
System Sequence Diagrams
• For a particular scenario of use-case an SSD shows-
• The external actors that interact directly with the system.
:Object1
Notation (2)
• Actor: An Actor is modeled using the usual symbol, the stick figure.
actor1
Notation (3)
• Lifeline: The LifeLine identifies the existence of the object
over time. The notation for a Lifeline is a vertical dotted line
extending from an object.
Notation (4)
• Message: Messages, modeled as horizontal arrows between Activations,
indicate the communications between objects.
messageName(argumen
t)
Example of an SSD