UML Designer User's Guide


Showing multiplicity

For our system, we can assume that a library has only one catalog, so the default association name catalog is fine. However, we need to explicitly show the multiplicity of the association:

  1. Select the association between Library and Catalog.
  2. Select Multiplicity>Edit From from the pop-up menu.
  3. In the window that appears, specify
  4. Now select Multiplicity>1-to-1 from the pop-up menu.

The association between Library and Catalog should now look something like this:
Association illustration (1)

We also need to show multiplicity on the association between Catalog and CatalogEntry. In this case, each catalog must work with multiple entries, though each entry will be associated with only one catalog. To label this association, follow these steps:

  1. Select the association between Catalog and CatalogEntry.
  2. Select Name>Show To from the pop-up menu. The default association name, catalog entry, appears.
  3. Because each catalog is associated with multiple entries, we need to change the association name to be plural. Hold down the Ctrl key and click mouse button 1 on the label to directly edit it so it reads entries. When you are finished editing the label, press Enter or click elsewhere on the diagram.
  4. Select the association again.
  5. Select Multiplicity>1-to-n from the pop-up menu.

The association between Catalog and CatalogEntry should now look something like this:
Association illustration (2)

The complete diagram, with labels, should now look something like this (again, your diagram might be arranged differently):
Class diagram illustration (2)

This diagram shows the relationships between the objects we have defined in initial iteration: Library, Catalog, and CatalogEntry. It also shows protocol conformance and the dependency relationship between Catalog and the <CatalogEntry> protocol. This tells us that any class that conforms to the <CatalogEntry> protocol could be substituted for Catalog in this system.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]