When customizing
the map file to import IBM® Rational® System Architect elements
into an IBM Rational Rhapsody® model,
modify the standard map structure.
A map block begins and
ends with the MAP keyword.
Use these entries to describe the map:
- Name is the
map name
- Default set to "Yes" indicates that a map
is selected as
the default for import operations.
- Rhapsody_domain describes
the Rational Rhapsody model
type such as DODAF or SysML
- SA_domain describes the
type of Rational System Architect model
being imported.
- Description explains the purpose of
the map file.
Required blocks
For
each imported type, the map has an element or relation block.
- element defines any model element (including diagrams)
that is not a relation.
- relation defines
any line in a diagram that connects two
elements.
Each
element and
relation block
includes the following parameters:
- SA_Type identifies
the Rational System Architect source.
- Rhapsody_Metaclass indicates the type of Rational Rhapsody element
that results from the import operation.
Optional
parameters
You might want to use these optional parameters
for the element and relation map
entries:
- Rhapsody_Stereotype specifies
which stereotype
is attached to the imported element, and if the stereotype is specific
to a Rational Rhapsody profile
- Rhapsody_Profile completes the definition. (Adding
the Rhapsody_Profile automatically adds the profile
to the resulting model.)
Attributes
To identify the characteristics of each element and relation, use
the
attribute keyword with these parameters:
- SA_Property indicates
the attribute type being
imported.
- Rhapsody_Field indicates the attribute
type set
in the Rational Rhapsody model.
An attribute block might use the
SA_AttribType optional
parameter. If this property is held as a collection in
Rational System Architect,
this entry contains the
Collection keyword.
Default
maps
A default map element block contains the SA_Type parameter
set to "*"
A default map relation block contains the SA_Type parameter
set to "*"
A default diagram map holds an element block with the SA_Type parameter
set to "Diagram*"
A default map attribute holds an attribute block with the SA_Property parameter
set to "*"
Import map sample
The following
import map
sample shows a Rational System Architect System
Node mapped to a Rational Rhapsody Block:
<element Rhapsody_MetaClass="Class" Rhapsody_StereoType="block" Rhapsody_Profile="SysML" SA_Type="System Node">
<attribute Rhapsody_Field="Description" SA_Property="Description"/>