Rule Builder > Business Object Models > Working With the BOM Graphical Editor > Creating Links

You can create two types of link in the BOM Graphical Editor: generalization links and reference links. A generalization link creates an inheritance relationship between a class and its superclass and can take any classes, including the classes that belong to the java.lang and java.util packages.

To create a generalization link between two classes:

  1. Click the Create Generalization images/createGeneralization_buttona.png button in the BOM Graphical Editor toolbar.
  2. Click the subclass in the class diagram.
  3. Click the superclass in the class diagram.

A generalization link is displayed in the BOM Graphical Editor as shown in Figure 8.17. The arrowhead at the end of the line indicates the superclass.

images/bomGeneralization.gif

Figure 8.17    A Generalization Link in the BOM Graphical Editor

To create a reference link between two classes:

  1. Click the Create Reference images/createReference_buttona.png button in the BOM Graphical Editor toolbar.
  2. Click the referencing class in the class diagram.
  3. Click the referenced class in the class diagram.

A reference link is displayed in the BOM Graphical Editor as shown in Figure 8.18. The arrowhead at the end of the line indicates the referenced class.

images/bomReference.gif

Figure 8.18    A Reference Link in the BOM Graphical Editor

To create an inverted reference link:

The arrowhead of the link disappears and the names of two attributes are displayed at each end of the link. An inverted reference link implies a relationship in both directions.

If you delete one of the two references after having created an inverse reference, the whole link is deleted.

See Also

Adding Elements to a BOM | BOM Graphical Editor Toolbar


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT