What is the primary purpose of a UML sequence diagram?
_______ Shows what messages (method calls) are sent between objects and when
sequence diagram
Class diagrams were static, sequence diagrams are dynamic
t
The 2nd most used diagram next to class diagram is ________
UML diagram
CRC cards are to ________ while use cases are to _______
what are the Key parts of a Sequence diagram?
*participant
*message
*axes
_______ is an object or entity that acts in the diagram
participant
_______ shows communication between
participant objects
message
What do the axes in a sequence diagram represent?
– Horizontal: which object/participant
is acting
– Vertical: time (down = forward
in time)
What is a sequence diagrams Purpose?
– See if our class diagram can satisfy each step of the use case
how do we represent objects in a seq diagram?
in a rectangle
- <objectname> : <classname>
- Smith : Patient</classname></objectname>
how do we represent Messages / Method calls between objects?
explain types of arrow used in messages.
an object created after the start of the scenario appears lower than the others
t
an X at bottom of object’s lifeline indicates ______
deletion
How does Java delete objects?
Java doesn’t explicitly delete objects; they fall out of scope and are garbage-collected
What is activation of method calls?
Thick box over object’s life line
If one diagram is too large or refers to another we will indicate it with:
– an unfinished arrow and comment,
– or a “ref” frame that names the other diagram
Why not just code Sequence diagrams?
– not all code is drawn on diagram
– sequence diagrams can be implemented in
many different languages
– non-coders can do sequence diagrams
– easier to do sequence diagrams as a team
– sequence diagrams provide more visual bandwidth
What is a Control Object
What are the relationships that Boundary, Entity, and Control elements must obey?
Which relationships are generally restricted or not permitted?
______ Depicts data and behavior of a single object throughout its lifetime.
state diagram
When to develop a state chart?