Creating a connector (IDL code)
You can create a Connector through a Component Definition Diagram, or from the Model or a Package.
To create a connector through a component definition diagram:
1. Open the Component Definition Diagram on which you want to create the Connector.
2. On the diagram's tab, click the
Connector button.
3. On the diagram, click in free space.
4. Type the name of the Connector, and then press the Enter key.
5. If you want the Connector to inherit from another Connector:
a. Add the Connector you want to inherit from to the Component Definition Diagram.
b. On the diagram tab, click the
Generalization button.
c. Click the Connector you created, and then click the Connector from which it is to inherit.
To create a connector from a package or the model:
1. In the Packages pane, locate the Package or Model that is to own the Connector.
2. Right-click the Package or Model, point to > , and then clickConnector.
3. Type the name of the Connector, and then press the Enter key.
4. If you want the Connector to inherit from another Connector:
a. Add the Connector you created and the Connector you want to inherit from to a Component Definition Diagram.
b. On the diagram’s tab, click the
Generalization button.
c. Click the Connector you created, and then click the Connector from which it is to inherit.