Rose Panther Link


Chapter 4 . Generating Service Components

You can generate a Panther service component in two ways, through the Generate Component feature or the Generation Wizard. The Generate Component feature is useful for generating one or two components at a time. The Generation Wizard is appropriate for multiple components.


Generating Panther Service Components

How to Generate a Panther Service Component via Generate Component

  1. Select all the classes you want to use.
  2. Display the Generate Component window by performing one of the following tasks:
  3. On the Generate Component window, you can see a summary of what components and code will be generated; on Details, what the components will contain. This dialog is read-only.

  4. Choose OK.

Generation Wizard

You can use the Generation Wizard to generate components, and to make changes at the last minute. This makes Generation Wizard ideal for generating multiple components.

How to Generate Panther Service Components via the Generation Wizard

  1. 1. Run the Generation Wizard by performing one of the following tasks:
  2. Select the Rose to Panther tab.
  3. In the Diagram list box, specify which model diagram to use.
  4. Select the desired classes by doing one of the following:
  5. Specify the destination library by choosing Browse and selecting a library or by entering a new library name. If the library does not exist, the wizard creates it.
  6. Choose Open to open the library.
  7. When ready, choose Generate.
  8. When you are finished generating components, choose Done.

    Note: For information on the Panther to Rose tab, refer to Chapter 5, "Reverse-Engineering:From Panther to Rose."


Viewing the Components in Panther

In Panther 4.1 for Windows or later, you can view the generated service components.

How to View Your Service Components

  1. Open the application library containing your Rose-modeled components.
  2. View a list of the generated service components using one of the following methods:
  3. To view the generated component's interface, choose ViewComponent Interface.

    The Rose class Attributes and Operations are mapped to the public interface's Properties and Methods.

  4. To view the generated code, choose one of the following options:
  5. Comments are visible in the Properties window (ViewProperties).