# Advanced Object-Oriented Analysis - PowerPoint PPT Presentation

The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
Title:

Description:

### Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San Jos State University – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 14
Category:
Transcript and Presenter's Notes

1
• Computer Engineering Department, Room 283I
• College of Engineering
• San José State University
• One Washington Square
• San José, CA 95192-0180

2
Lesson 27 Sequence Diagrams
2
3
Lesson Objectives
• Understand how to generate sequence diagrams
• Learn the syntax of sequence diagram
• Explore examples of sequence diagrams

3
4
Drawing Sequence Diagrams
• Place objects that participate in the interaction
at the top of the diagram, across the X-axis
• Place the object that initiates the interaction
at the left, and increasingly more subordinate
objects to the right
• Place messages the objects send and receive along
the Y-axis, in order of increasing time from top
to bottom

4
5
Common Uses
• Use sequence diagrams to model flows of control
by time ordering
• Do a better job of visualizing simple iteration
and branching
• Use collaboration diagrams to model flows of
control by organization
• Do a better job of visualizing complex iteration
and branching and of visualizing multiple
concurrent flows of control

5
6
Sequence Diagrams
• Sequence diagrams have two features
• Object lifeline
• Vertical dashed line that represents the
existence of an object over a period of time
• Focus of control
• A tall, thin rectangle that shows the period of
time during which an object is performing an
action, either directly or through a subordinate
procedure

6
7
Syntax of Sequence Diagram
7
8
Sequence Diagram Example (1)
8
9
Sequence Diagram Example (2)
9
10
Sequence Diagram Example (3)
10
11
Sequence Diagram Example (4)
11
12
Sequence Diagram Example (5)
12
13
Discussion Questions
• T/F
• The participants in the sequence diagrams are
classes and components
• The sequences in the sequence diagram are
connected.
• Sequence diagram is an event-trace diagram
• You can generate a sequence diagram / use case.
• A sequence diagram models flows of control by
time ordering

13