Prev | Current Page 385 | Next

Tim Weilkiens

"Systems Engineering with SysML/UML: Modeling, Analysis, Design"


The body of a lifeline does justice to the name of the model element and is
denoted as a dashed line. It shows the lifecycle of the object that assumes the role
specifi ed by the lifeline. If the object is destroyed during the interaction, then the
line ends, and the destruction event is additionally shown with a cross ( Figure 3.70 ).
FIGURE 3-70
Destruction of a lifeline.
sd Unregister customer
:On-board
computer control
user:Customer
unregisterCustomer()
terminate()
206 CHAPTER 3 UML??”Unifi ed Modeling Language
All lifelines end at the end of the interaction. However, unless there is a destruction
event, the objects are not destroyed, but continue living even after the interaction.
On the other hand, the header of the lifeline at the beginning of the interaction
does not mean that the pertaining objects are only created at this point.
If an object comes into being in the course of an interaction, then the lifeline
header is drawn accordingly further below. The message created by that object
points directly to the header ( Figure 3.


Pages:
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397