Java Reference
In-Depth Information
Figure C.4. Depictions of objects indicate the objects' names and/or types. A sequence
diagram shows a succession of method calls.
You can show an object by giving its name and type, separated by a colon. You may
optionally show just the name, or just a colon and the type. In any case, underline the
name and/or type of the object.
Use a line between objects to indicate that one object has a reference to another. You
can use an open arrowhead to emphasize the direction of the reference.
You can show a sequence of objects calling methods of other objects, as the lower part
of Figure C.4 shows. The order of method calls is top to bottom, and the dashed lines
indicate the existence of the object over time.
Use the «create» stereotype to show that one object creates another.
Draw a bold outline box around an object to indicate that it is active in another thread,
process, or computer.
States
Figure C.5 shows a UML statechart diagram. Following are notes on illustrating states.
Search WWH ::




Custom Search