Sequence diagrams - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Sequence diagrams

Description:

An active object owns a thread of control (path of execution) ... have its own thread of control. operations execute under a control thread of an active object ... – PowerPoint PPT presentation

Number of Views:107
Avg rating:3.0/5.0
Slides: 8
Provided by: GillesF8
Category:

less

Transcript and Presenter's Notes

Title: Sequence diagrams


1
Sequence diagrams

G. Falquet, L. Nerima
2
Objectives
  • To show object interactions arranged in time
    sequence
  • To show messages exchanged

objects messages
time
3
Example message window
active objects
obj1 messageManager
create()
obj2 msgWindow
writeMessage()
buttonClicked()
btnOK readUserInput()
close()
X
4
Active and passive objects
  • An active object owns a thread of control (path
    of execution)
  • A passive object does not have its own thread of
    control
  • operations execute under a control thread of an
    active object
  • activation execution of an operation

5
Procedural flow of control
passive object
obj3
obj2
obj1
operationX()
activation
operationY()
return
operationZ()
return
return
6
Concurrent threads of control
obj3
obj2
obj1
opA()
fork threads
opB()
join threads
7
Showing state changes
obj3resInterface
obj2Book
obj1
return()
available
reserve()
reserved
Write a Comment
User Comments (0)
About PowerShow.com