Rule Builder > Business Object Models > Working With the BOM Property Sheet > Setting the supertypes Property

Using the supertypes property you can create parents for classes present in the BOM. The supertypes property allows you to specify the generalizations between BOM classes and also provides you with the ability to see quickly and easily how the BOM classes are interrelated.

There are two ways that you can set the supertypes property; using the Class Diagram or the Property Sheet. Note that you can have multiple inheritance between classes.

If you create a generalization in the Class Diagram, the Property Sheet is automatically updated. Similarly, if you create a generalization in the Property Sheet, the Class Diagram is automatically updated.

The example give here is based on the CreditAnalysis repository that can be found in the BRE Server Tutorial in the directory <InstallDir\tutorials\bres\task1\data

To set the supertypes property:

  1. Open the CreditAnalysis repository and the BOM Explorer.
  2. Right-click the credit package in the BOM Explorer and then click Add Class on the shortcut menu.
  3. The new class is added to the BOM and its properties are displayed in the Property Sheet
  4. Click the supertypes property to open a small window as an extension of the Property Sheet, see Figure 8.21.

  5. images/bom_supertypeprop.png
  6. Figure 8.21    BOM Class Properties
  7. Click the images/tagplus_icona.png button and then the images/ellipsis_buttona.png button to open the supertypes window, and add the name of the BOM class you want as the supertype, see Figure 8.22.

  8. images/bom_supertypewin.png
  9. Figure 8.22    supertypes Window
  10. Repeat this operation if you want to have multiple inheritance, In this example there are the two supertypes Bankruptcy and Borrower defined, see Figure 8.23.

  11. images/bom_twosupertypes.png
  12. Figure 8.23    Defining Supertypes
  13. Select a supertype and click the images/tagminus_icona.png button to remove it from the window, and if required, use the images/movedown_button.png and images/moveup_button.png buttons to change the order of a supertype in the list.
    Note
    Inheritance of a BOM class from the java.lang.Object is implicit; however, this is not shown by the supertypes property of the class.

See Also

Creating a Class Diagram | Creating Links | BOM Class Properties


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