DFP40182 Sequence Diagram
DFP40182 Sequence Diagram
Diagram
What is a SequenceDiagram?
Sequence diagrams, commonly used by developers,
model the interactions between objects in a single use
case.
• Lifeline Notation
• Activation Bars
• Message Arrows
• Comment
i) Lifeline Notation
A sequence diagram is made up of several
of these lifeline notations
The message can flow in any direction; from left to right, right to
left and back to the calleritself
i. Synchronous message
ii. Asynchronous message
iii. Return message
iv. Participant creation message
v. Participant destruction message
vi. Reflexive message
A synchronous message is used when the sender waits for the receiver to
process the message and return before carrying on with another message
FE Jun 2018
(9 Marks)
Sequence Diagram Best Practices
Manage complex interactions with sequence fragments
• It can be used
– for the Boolean test
– to test minimum iterations (the loop must execute
not less than the number mentioned)
– to test maximum iterations (the loop mustn’t execute
more than the
number mentioned)
Example (Loop Fragment)
Reference Fragment
• It allows you to reuse or refer to a part of one sequence
diagram in another
• Leaving no blank space between the use case text and the
message arrow