Exercise 1: Importing and examining the Rose sample model

In this exercise, you import the Rose model (RoseSampleModel.mdl) provided in the Samples Gallery and then examine the Java.epx profile created. Specifically, you learn how to check the version of a profile. In addition, you also look at the default__Class stereotype property set defined from the Rose C++ Add-In and see how it looks after import.

The Rose Model Import wizard converts Rose model property sets and stereotype configuration files to UML 2.0 profiles. UML 2.0 profiles have an .epx file name extension.

Importing the first Rose sample model (RoseImportSample.mdl)

Follow these steps to import the first sample model into Software Architect or Software Modeler.

  1. Import the model by navigating to the Samples Gallery.
  2. Expand Technology samples, expand Rose Model Import and click Rose model import sample.
  3. On the Rose model import sample page, click Setup instructions.
  4. Follow the setup instructions and import the first Rose model (RoseImportSample.mdl).

Examining the imported Java™ UML 2.0 profile

Once you import the model, use the Model Explorer view and look at the UML 2.0 profiles to see how they were created from Rose property sets and stereotype configuration files. Specifically, examine the Java.epx file to learn about the profile versioning mechanism.

  1. In the Model Explorer view, expand the SampleRoseModel_profiles project and observe the generated profiles to understand how property sets and stereotype configuration files import as UML 2.0 profiles.
  2. Navigate to the Java.epx profile. Notice how the stereotypes, properties, and enumerations are structured and correspond to similar elements in the original Rose model properties.
  3. In the Model Explorer view, click the Java profile element that resides directly under the Java.epx file.
  4. In the Properties view, click the General tab and notice the profile version number of 8.2. This number will become more meaningful in Exercise 2 because you will import another model that references the same profile, which will cause the version number to change.
If you have already imported a Rose model in your same workspace that contains the Java.epx profile, the profile version number may be different than 8.2. The number may be different for other reasons as well. For example, if you are importing a model from a version of Rose other than 2003.06.13, the profile version number may be different than 8.2.

Observing the default__Class property set stereotype

Once you import the model, use the Model Explorer view to look at the stereotypes applied to the CLoanDataSet class.

  1. In the imported model (RoseImportSample.mdl), open the Start Here diagram located in the Logical View package.
  2. Double-click the hyperlinked 06.1 C++ Implementation Package Overview diagram note to jump to the diagram in the model.
  3. In the diagram editor, click the CLoanDataSet class and then click the Stereotypes tab in the Properties view.
  4. Observe the default (default__Class) stereotype created from the ANSI C++ Add-in default__Class property set. The stereotype properties are displayed in the Stereotype Properties table, including the body (BodySourceFile) and header (HeaderSourceFile) source file names.
  5. Close the model and all profiles to prepare for the next exercise.
Now you are ready to add content to an existing profile (Java.epx) in Exercise 2.
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.