To create and structure the model elements that represent the implementation model of a
system.
For each subsystem in the design model (the Logical View) create a corresponding
subsystem in the Component View.
To create a subsystem in the Component View:
- Right-click on the Component View icon in the browser and make the short-cut menu
visible.
- Select Package from the New option on the short-cut menu. A NewPackage#
icon is added to the browser.
- Enter the name of the new package followed by a <CR>.
To create a new component:
- Right-click the component package in the browser to which the new component shall
belong. The short-cut menu is displayed.
- Select Component from the New option on the short-cut menu.
- Double-click on the new component to open its specification.
- On the General tab, give the new component a name in the Name field,
select the type of component in the Stereotype field, and assign an implementation
language to the component in the Language field.
To assign a class (or interface) to one or several components:
- Select the class in the browser or in a diagram, and open its specification.
- On the Components tab, click the Show All Components option.
- Right-click on the appropriate component and click Assign.
Note: You can also drag the component from the browser and drop it on the
appropriate class in a diagram or in the browser, or on the Components tab of the Class
Specification.
To assign several classes (or interfaces) to a single component:
- Select the component in the browser, or in a component diagram, and open its
specification.
- On the Realizes tab, click the Show All Components option.
- For each class that should be assigned to this component, right-click on the class and
click Assign.
Note: You can also drag each class or interface from the browser and drop
it on the appropriate component in a component diagram or in the browser, or on the
Realizes tab of the Component Specification.
To create a component from an existing software module:
- Drag the module from the Microsoft® Explorer and drop it in the component package in
the browser. The drag and drop feature supports the following component types: executables
(.exe), ActiveX (.ocx), Data Link Libraries (.dll), and Type Libraries (.tlb).
Components that are dragged from the Explorer into the model should be restricted to
components that are external to the model, or components used by the modeled system only.
These components are not intended to be reverse engineered into the model since they
rarely contain the complete source code. They are only necessary when building your
system.