1. Create a generic chart.
Generic charts enable reuse of parts of a specification. A generic chart makes it possible to represent common portions of the model as a single chart that can be instantiated in many places, much like a procedure in a conventional programming language.
Generic charts are linked to the rest of the model by parameters; no other elements (besides the definitions in global definition sets) are recognized by both generic charts and other portions of the model.
For instructions on creating a generic chart, see Creating a New Chart or Diagram.
Note the following:
●
●
Type definitions of all parameters must be complete. (That is, no unresolved data-items or user-defined types can exist in the chart.)
2. In the Charts, Files, or Databank tab of the Rational Statemate main window, select Configuration > Create/Modify Component. The Create/Modify Component window opens.
a. In the Label text box, enter a name for the component. The limit is 64 alpha-numeric and underscore characters (_).
b. Multi-Labeling
The Library Component versioning mechanism allows the association of several labels with a single component version. Association of a new label with an existing version is done by editing the space delimited label list in the Version Label column of the Configuration > Components Version table.
Note: The same label cannot be associated with different versions. Associating an already associated label with a new version results in the removal of the previous association.
c. The Description text box displays the description of the generic chart from the chart’s properties and cannot be edited here.
d. In the Icon Definition area create an icon that will appear in the Component Browser to represent the component. You can create the icon in the following ways:
● Select Create Default Icon to create a default-size pixmap that contains a rectangle and pins to represent stubs on its edge. The number of pins is similar to the number of stubs up to a limit.
● Select the ellipsis (...) beside Import Icon From to navigate to an existing icon name.
● Select Draw Icon, if the General preference “Icon Editor” has been previously set to an icon editor available for your use. The ellipsis (...) beside the Draw Icon button opens this editor on a predefined empty pixmap file.
● Use Existing Icon is available when you are modifying an existing component, but do not want to change its icon.
4. Select Preview to view the component exactly as it will appear later.
5. Click OK.