Professional Documents
Culture Documents
More detail:
y http://dn.codegear.com/article/31863#sequence-diagrams
y http://www-128.ibm.com/developerworks/rational/library/3101.html
y http://www.awprofessional.com/articles/article.asp?p=169507&rl=1
y class name
y attributes - all data fields of the object
o visibility name : type
y operations – omit trivial, inherited methods
o visibility name (parameters) : return_type
y visibility:+ public
# protected
- private
y underline static values
CSE 403, Spring 2007, Alverson
Class relationships
y generalization – inheritance between classes
Calendar Calendar
Entry
Executive Conference
Calendar Room
CSE 403, Spring 2007, Alverson
UML Sequence Diagrams
sequence diagram:
details how operations are carried out -- what
messages are sent and when
object of
object anonymous object unknown class
lifeline
requestClassGrades(ClassID)
requestClassGrades(ClassID)
type of
return value Grades synchronous
(full arrow)
return giveRaise(BigNumber)
(dashed line)
CSE 403, Spring 2007, Alverson asynchronous
(half arrow)
Indicating method calls
y activation: thick box over : Instructor : Student
object's life line; drawn
giveTest(Test)
when object's method is
on the stack
o either that object is running
its code, or
o it is on the stack waiting for Results
another object's method to
finish
Results
activation
y deletion: an X at bottom of
object's lifeline
Results
o how do objects get deleted
in java? in C?
CSE 403, Spring 2007, Alverson
deletion
Conditionals and loops (UML2)
iteration frame
loop
control
condition
control
if/then/else
frame
if/then
frame
CSE 403, Spring 2007, Alverson
Example sequence diagram #1
UML1 style of
iteration and
conditionals
object calls
itself
CSE 403, Spring 2007, Alverson
Using visio to create a SD
y Create a sequence diagram to represent a
skier booking a lesson
o your thoughts?
y UML is happening!
o UML is widely known by users, tool vendors,
developers, customers
o Seems a step forward – a standard language for
representing software architecture and design
CSE 403, Spring 2007, Alverson