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
- Click .
- In the New Project wizard,
on the Select a wizard page, expand Modeling, click UML
Project, and click Next.
- On the Create Model Project page, type a project
name, and specify the workspace directory.
- Optional: To create the new model in a modeling project,
select the check box.
- Select Standard template, and click Next.
- On the Create Model page, select the UML
Capsule Development category, select UML Capsule C++
Development Model template, and click Next.
- 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.
- In C++ Project view, the Project type field, type a name for the
new model and specify the destination folder.
- Optional: On the Target page,
to use an existing C++ target project, click Browse and
select the target project.
- Select RT Executable and Cygwin
GCC, and click Next.
- Select C++ TargetRTS Settings location and configuration, and click Next.
- 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.
- If the Referenced projects page is displayed, select the check
boxes for the models that the new model references.
- 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.