Chapter 2 Getting Started with an Object-Oriented Model


Creating an OOM

You can create a new OOM from scratch, or reverse engineer the model from existing OO code.

For information about reverse engineering OO code, see the "Reverse Engineering" chapter.

Steps To create a new OOM:

  1. Select File→New to display the New dialog box.
  2. Select Object-Oriented Model in the list of model types.
  3. Select one of the following radio buttons:

  4. Type a model name in the Model name box. The code of the model, which may be used for script or code generation, is derived from this name according to the model naming conventions.
  5. Select an Object language from the list.

    Object languages are defined in dedicated XML files (with a .XOL extension), which are provided as part of your PowerDesigner installation in the "\Resource Files\Object Languages" directory, and contain all the syntax and specifications for each target language.
  6. Select one of the following radio buttons:

  7. Select the type of the first diagram in the First Diagram list. The first type of diagram selected remains in memory, and is the default for the next time when you create a new OOM.

    You can create as many diagrams as you need in the same OOM. They are sorted alphabetically in the Browser, except the diagram specified here, which is always the first in the list.
  8. [optional] If you want to attach one or more extended model definitions to complement the selected object language, click the Extended Model Definitions tab, and select the extended model definitions of your choice.

    For more information on attaching extended model definition to a model, see the "Extended Model Definitions Reference Guide" chapter in the Advanced User Documentation .
  9. Click OK to create the new OOM in the current Workspace.

Note   Demo example
Several example OOMs are available in the Examples directory.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.