chapter 7 Flashcards
What is the primary purpose of a UML sequence diagram?
- to model the dynamic interactions between objects during the execution of a single use case in a system.
_______ 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 _______
- class diagrams
- sequence diagrams
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
- Identify more classes that we may have missed in class diagram
- Identify methods of those classes
how do we represent objects in a seq diagram?
in a rectangle
- <objectname> : <classname>
- Smith : Patient</classname></objectname>
- :<classname>. - anonymous object
</classname>- :Patient
- <object>. - if class is unknown
- Smith
</object>
how do we represent Messages / Method calls between objects?
- are indicated by arrow to other object
- Method(arg1, arg2 …)
- Admit( patientID, roomType )
explain types of arrow used in messages.
- message is indicated by arrow to other object
– dashed arrow back indicates return - d/t [ flat flow, procedure, async ]
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