UML sequence diagram overview
Runtime Tracing for C, C++./span>
The lifeline of an object is represented in the UML/SD Viewer as shown below.
The instance creation box displays the name of the instance.
Example
Below is an example of object lifelines generated by Runtime Tracing from a C++ application.
In this C++ example:
-
Functions and static methods are attached to the World instance.
-
Objects are labelled with obj <number> : <classname>
-
The black cross represents the destruction of the instance.
-
Constructors are displayed as green arrow actions.
-
Destructors are the blue arrows.
-
Return messages are dotted red lines.
-
Other functions and methods are black.
-
Themain() is a function of the World instance called by the same World instance.
You can perform the following tasks from the sequence diagram:
- To jump to the corresponding portion of source code, double-click an element of the object lifeline to open the Text Editor at the corresponding line in the source code
- To jump to the beginning or to the end of an instance:
- Right-click an element of the object lifeline to jump to the beginning or to the end of an instance.
- Select Go to Head or Go to Destruction in the pop-up menu.
- To filter an instance out of the UML sequence diagram:
- Right-click an element of the object lifeline.
- Select Filter instance in the pop-up menu.