Creating an extended port (publisher) (IDL code)
You can create an Extended Port (Publisher) through an Internal Component Diagram or from a Component.
To create an extended port (publisher) through an internal component diagram:
1. Open the Internal Component Diagram on which you want to create the Extended Port (Publisher).
2. On the diagram's tab, click the
Extended Port (Publisher) button.
3. On the diagram, click the Component or Component Part on which you want to create the Extended Port (Publisher).
Note that if you click within a Component Part, the Extended Port (Publisher) is created as a child of Component that is the Component Part's type.
4. From the Type Selector dialog, select a Port Type to use as a type through either a selected or new Bound Module:
◦ To select a Port Type through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module and Connector, and then select the Port Type you want to use as a type.
◦ To select a Port Type through a new Bound Module: select theCreate a New Type option, in the Name box type the name of the Bound Module that will be created, and then click OK. Expand the Template Module that will be instantiated by the new Bound Module, expand the Connector, and then select the Port Type you want to use as a type.
5. Click OK.
6. If you want to name the Extended Port (Publisher):
a. Open Extended Port (Publisher)'s property pages, and then click the General tab.
b. In the Name box, type the name of the Extended Port (Publisher), and then press the Enter key.
7. If you want to add a callout note to show the Extended Port (Publisher)'s Bound Module or Message:
◦ Right-click the Extended Port (Publisher), point to Add Callout Note, and then click Bound Module or Message.
To create an extended port (publisher) from a component:
1. In the Packages pane, locate the Component that is to own the Extended Port (Publisher).
2. Right-click the Component, point to New, and then click Extended Port (Publisher).
3. From the Type Selector dialog, select a Port Type to use as a type through either a selected or new Bound Module:
◦ To select a Port Type through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module and Connector, and then select the Port Type you want to use as a type.
◦ To select a Port Type through a new Bound Module: select the Create a New Type option, in the Name box type the name of the Bound Module that will be created, and then click OK. Expand the Template Module that will be instantiated by the new Bound Module, expand the Connector, and then select the Port Type you want to use as a type.
4. Click OK.
5. Type the name of the Extended Port (Publisher), and then press the Enter key.