UML Designer User's Guide

Adding associations to the diagram

To show the associations between the elements in the library catalog system, follow these steps:

  1. Use Conformance figure icon Conformance to connect the CatalogEntry class figure to the <CatalogEntry> protocol figure. This indicates that the CatalogEntry class conforms to the <CatalogEntry> protocol.
  2. Use Association figure icon Association to connect the Catalog class figure (the source) to the CatalogEntry class figure (the destination). This indicates that an association exists between the two elements (a Catalog must keep track of CatalogEntry objects).

    When first created, an association is labeled with the default generated name, which is based on the name of the destination element. We will change this label later to more correctly describe the association.

  3. Use Association figure icon Association to connect the Library class figure (the source) to the Catalog class figure (the destination). Again, this indicates that an association exists (in this case, a Library uses one or more Catalog objects to keep track of its books).
  4. Finally, use Dependency figure icon Dependency to connect the Catalog class figure (the source) to the <CatalogEntry> protocol figure (the destination). This indicates that the Catalog class figure depends upon the interface specified by the <CatalogEntry> protocol. This is because some of the methods of Catalog require parameters of type <CatalogEntry>.

With all of the relationships added, the relationships in the diagram should look something like this (you may have arranged the figures differently):
Figure vamclsd1 not displayed.


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