Creating capsule-based UML models

You can use a template to create capsule-based models.

About this task

A corresponding C++ project is needed for the generated source, and can be created through the template wizard.

To create a capsule-based model from a template:

Procedure

  1. Click File > New > Project.
  2. In the New Project wizard, on the Select a wizard page, expand Modeling, click UML Project, and click Next.
  3. On the Create Model Project page, type a project name, and specify the workspace directory.
  4. Optional: To create the new model in a modeling project, select the check box.
  5. Select Standard template, and click Next.
  6. On the Create Model page, select the UML Capsule Development category, select UML Capsule C++ Development Model template, and click Next.
  7. In the UML Modeling Project view, click Create. Make sure that you have Cygwin installed, and that Show project types and toolchains only if they are supported on the platform is not selected.
  8. In C++ Project view, the Project type field, type a name for the new model and specify the destination folder.
  9. Optional: On the Target page, to use an existing C++ target project, click Browse and select the target project.
  10. Select RT Executable and Cygwin GCC, and click Next.
  11. Select C++ TargetRTS Settings location and configuration, and click Next.
  12. Optional: On the Model Capabilities page, complete one of the following steps:
    • To enable all capabilities in the model, click Enable All.
    • To enable specific capabilities for the model, select the Enable check box and select the check boxes for the capabilities to use.
  13. If the Referenced projects page is displayed, select the check boxes for the models that the new model references.
  14. Click Finish.

Results

The UML Development perspective opens and a new model and target C++ projects are displayed in the Project Explorer view.

What to do next

You can now add a class diagram to the model and create capsules that describe each of the classes in the system.

Feedback