Professional Documents
Culture Documents
SYSTEMS ANALYSIS
AND
DESIGN
Week 6 7
Learning Objective
Object Messaging
Objects communicate by sending
messages
Message is an information sent to
objects to execute one of its behaviour.
Sending a message selectDrink() to
DrinkMgr
CustomerPanel
DrinkMgr
selectDrink()
Interaction Diagram
sequence diagram
communication diagram (collaboration diagram)
Interaction overview diagram
Timing diagram
Sequence Diagrams
Sequence Diagrams.
Each use case has a number of flows
(basic flow, exceptional flows and
alternative flows)
Each sequence diagram represents of the
flows through use case diagram.
Elements of Sequence
Diagrams
Actor
- A person/system that participates in a
sequence by sending or receiving
message.
- place across the top of the diagram
using actor symbol (refer use-case
diagram)
Actor
Elements of Sequence
Diagrams
Object
- Place across the top of the diagram using
object symbol. Participates in a sequence by
sending or receiving message.
Object
Elements of Sequence
Diagrams
Message
CustomerPanel
DrinkMgr
Select drink
Elements of Sequence
Diagrams
lifeline
- using dotted line runs vertically below
each actor and object to denote the life
line of the actor/object over time.
I
I
I
I
I
Elements of Sequence
Diagrams
Elements of Sequence
Diagrams
Object
message
Example of Sequence
diagram
Login Panel
StudentInfo
Login Manager
: Student
object
message
press Submit Button
Focus of
control
checkIDPassword
getPassword
A1: Press
Cancel
verifyPassword
DisplaySuccessfulMsg
E1: Invalid
IDPassword
lifeline
Reflexive
message
Communication Diagrams
Elements of communication
Diagrams
Actor
- A person/system that derives benefit
from and is external to the system
- participate in sequence by sending
and/or receiving messages
Actor
Elements of
Communication Diagrams
Object
-Participate in a sequence by sending
and/or receiving messages
anObject
Elements of
Communication Diagrams
Association
-Shows
Elements of
Communication Diagrams
Message
-Conveys
-Sequence
number
is shown by a sequence
1:message
Example of Sequence
diagram
Scenario : Joe, a bank customer withdrawing
$20 from the ATM
The process begins when Joe inserts his card into the
card reader. The card reader reads the number on Joes
card, then tells the ATM screen to initialize itself. The
ATM prompts Joe for his PIN. Joe enters his PIN and
the ATM opens his account. Joes PIN is validated, and
the ATM prompts him for a transaction. Joe selects
Withdraw. The ATM prompts Joe for the withdrawal
amount. Joe enters $20. The ATM verifies that Joes
account has sufficient funds, and subtracts $20 from
the account. The ATM dispenses $20 and ejects Joes
card.
Example of Sequence
diagram
Joe : Cus tom er
Card Reader
ATM Screen
Joe's Account
1. Accept Card
2. Read Card No.
3. Initialize Screen
4. Prom pt PIN
5. Enter PIN
6. Open Account
7. Verify PIN
Example of Communication
Diagrams
2: Read Card No.
1: Accept card
object
Card
Reader
Joe : Customer
5: Enter PIN
3: Initialize Screen
message
ATM
Screen
6: Open Account
7: Verify PIN
association
Joe's
Account
It is organized in
chronological
sequence
Emphasize on the
time ordering of
the messages
being passed
VS Communication
diagram
Not in
chronological
sequence
Emphasize the
flow of messages
through a set of
objects
Communication Diagrams
Set the context define which use case
Identify which objects (actors) and the