Skip to main content Accessibility help
×
Hostname: page-component-6d856f89d9-72csx Total loading time: 0 Render date: 2024-07-16T06:07:40.484Z Has data issue: false hasContentIssue false

3 - Guidelines for Common UML Modeling Elements

Published online by Cambridge University Press:  17 December 2010

Scott W. Ambler
Affiliation:
Ronin International
Get access

Summary

An important benefit of the UML is that it is consistent, and part of that consistency is the application of common modeling elements across different diagrams. This chapter describes guidelines for

  1. ■ Notes

  2. ■ Stereotypes

  3. ■ Frames

  4. ■ Interfaces

Guidelines for UML Notes

A UML note is a modeling construct for adding textual information—such as a comment, constraint definition, or method body—to UML diagrams. As you can see in Figure 6, notes are depicted as rectangles with the top right corners folded over.

Describe Diagrams with Notes

Ever look at a diagram and not know what it represents? A simple solution is to include a UML note on each diagram that provides a simple and concise description. This is often referred to as a “legend.” In Figure 6 you can see that the name of the system, the purpose of the diagram, and its owner are indicated. It is common also to indicate when the diagram was last updated and the contact information for the owner.

Set a Convention for Placement of Diagram Legends

Placing diagram legends in the same place on all your diagrams increases their usability by making them easy to find. Common spots are one of the corners or the bottom center of a diagram.

Left-Justify Text in Notes

It is common practice to left-justify text in UML notes, as you can see in Figure 6.

Prefer Notes over OCL or ASL to Indicate Constraints

Source code, describing a constraint or processing logic, can be modeled on any UML diagram using a note.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2005

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×