Basic sequence diagram example


Download as MP4

Quick questions

Q1 In a sequence diagram time flows
from left to right
from right to left
from top to bottom
from bottom to top

Q2 An activation bar represents
the lifetime of an object
the time from when an object receives a message to when it sends a message
the time during with the object is the one performing computation
the time from when an object receives a message to when it sends a reply to that message

Q3 The order of lifelines from left to right represents:
the order in which objects send messages
the order in which objects were created
nothing except how the modeller found it convenient to draw them
the order of importance of the objects

Q4 Consider (and sketch on a piece of paper, or at least imagine doing so) a simple sequence diagram in which the messages and returns, in time order, are: (1) an actor sends m() to a; (2) a sends p() to b; (3) c sends q() to b; (4) b replies to q(); (5) b replies to p(); (6) a replies to m(). Is this legal and sensible?
No, because nothing causes q()
No, because nothing should happen in between a message and the reply to it
Yes
Yes, provided c doesn't have the same class as a

More complex sequence diagram example


Download as MP4
The diagram as PDF; it's Fig 14.11 in the superstucture document from here.

Requests

Any questions, things you'd like me to go over in a lecture, comments? (If you want me to have your name and/or email address, include it, otherwise I won't.)


This page is maintained by Perdita Stevens (perdita@inf.ed.ac.uk)


Home : Teaching : Courses : Seoc : 2012_2013 

Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections. Logging and Cookies
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh