The elements for a sequence diagram are shown below and explained in the text that follows.
Represented on a diagram by a rectangular box with a vertical dashed line descending beneath it. An object lifeline represents the existence of an object over a period of time.
Represented on a diagram by a thin rectangular box superimposed over the dashed line of an object lifeline. An activation represents the time during which an object is performing an operation.
Represented on a diagram by a solid line with a filled arrowhead. A synchronous message is one for which the sender must wait for a response before continuing with processing. Compare with "Asynchronous Message", below.
Represented on a diagram by the shifting down, relative to the originating object, of the rectangle and dashed line that represents the object to be created. A creation message is a message that leads to the creation of an object.
Represented on a diagram by showing the activation at the end of the message with a large cross through it. A stop message is a message that leads to the deletion of an object (or to the indication that an object is no longer needed).
Represented on a diagram by a dashed line with a filled arrowhead. A return message is a message that returns from an object to which a message was previously sent. Return messages are valid only from synchronous messages, and are themselves synchronous.
Represented on a diagram by a stepped line with a stick arrowhead. An asynchronous message is one for which the sender does not have to wait for a response before continuing with processing. Compare with "Synchronous Message", above.
Getting Started
with UML Sequence Diagrams
Creating a UML Sequence Diagram
Copyright © 1997, 2004, Oracle. All rights reserved.