New Features
Enhanced Features
O/R Mapping
Tips and Tricks
UML Diagrams
VP Suite

Showing Relationships

In modeling class diagrams, various kinds of relationships - association, generalization, realization, dependency and containment are very important when studying the relationships among classes. To let you visualize interested relationships easier, Visual Paradigm provides handy ways of showing relationships in diagram.

Showing Association of Attribute

To show the association of an attribute whose type is specified, right-click on it in the diagram. The following scenarios may occur:

Attribute type not exists

  1. If the attribute type refers to a model that does not exist, select Create Association (TYPE_NAME).
    createassociation.jpg

  2. The model and view of the attribute type together with the association will be created accordingly, with the appropriate navigability and multiplicity assigned.
    createdassociation.jpg

Attribute type exists but not shown in diagram

  1. If the attribute type refers to a model that exists but whose view is not shown in the diagram, select Add Association (TYPE_NAME).
    addassociation.jpg

  2. The view of the attribute type together with the association will be created accordingly, with the appropriate navigability and multiplicity assigned.
    createdassociation.jpg

Attribute type shown in diagram but no association

  1. If the attribute type view is shown in the diagram but there is no association connected between the attribute type and the attribute’s owner class, select Show Association (TYPE_NAME).
    showassociation.jpg

  2. The association will be created and connected between the two classes, with the appropriate navigability and multiplicity assigned.
    shownassociation.jpg

Showing Dependencies of Operation

  1. To show the dependencies of an operation, right-click on it in the diagram and select Show Dependencies from the popup menu.
    showdependencies.jpg
  2. The dependencies of the operation and its parameters to other classes are visualized.
    showndependencies.jpg

Forming Diagram to Show Relationships of Classes

  1. In a large scale class diagram, the information is often too much to read, especially when you want to focus on the relationships of certain classes only. In this case, you can select the classes interested, right-click on the selection and select Form Diagram from the popup menu.
    formdiagrampopup.jpg

  2. A class diagram will be generated which contains the selected classes and all their immediate relationships.
    formeddiagram.jpg

Resources

 
 
Last modified: 2006/06/19 14:51
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory