SmartDraw UML Center

HOW TO DRAW UML DIAGRAMS (cont'd)


What is a UML Collaboration Diagram?
A collaboration diagram describes interactions among objects in terms of sequenced messages. Collaboration diagrams represent a combination of information taken from class, sequence, and use case diagrams describing both the static structure and dynamic behavior of a system.



Basic Collaboration Diagram Symbols and Notations


Class roles

Class roles
Class roles describe how objects behave. Use the UML object symbol to illustrate class roles, but don't list object attributes.

Association roles

Association roles
Association roles describe how an association will behave given a particular situation. You can draw association roles using simple lines labeled with stereotypes.
Learn how to draw associations.

Messages

Messages
Unlike sequence diagrams, collaboration diagrams do not have an explicit way to denote time and instead number messages in order of execution. Sequence numbering can become nested using the Dewey decimal system. For example, nested messages under the first message are labeled 1.1, 1.2, 1.3, and so on. The a condition for a message is usually placed in square brackets immediately following the sequence number. Use a * after the sequence number to indicate a loop.
Learn how to add arrows to your lines.

What is a UML Statechart Diagram?
A statechart diagram shows the behavior of classes in response to external stimuli. This diagram models the dynamic flow of control from state to state within a system.



Basic Statechart Diagram Symbols and Notations


States

States
States represent situations during the life of an object. You can easily illustrate a state in SmartDraw by using a rectangle with rounded corners.

Transition

Transition
A solid arrow represents the path between different states of an object. Label the transition with the event that triggered it and the action that results from it.
Learn how to draw lines and arrows in SmartDraw.