Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > IDL items (reference information) > Port type item (IDL code)
  
Port type item (IDL code)
Create a Port Type in the following ways:
On a Component Definition Diagram: on the diagram's toolbar, click the Port Type button, and then click in free space.
Right-click the Model or a Package, point to New, point to IDL Profile, and then click Port Type.
When you create a Port Type, you are prompted to set the Port Type Kind property to either 'Subscriber' for an Extended Port (Consumer) or 'Publisher' for an Extended Port (Publisher).
You can define Port Type inheritance on a Component Definition Diagram.
A Port Type can own Clients, Services and Attributes.
The IDL Profile provides the following Port Types in the Typed template module, which resides in the IDL Profile::CCM_DDS package:
DDS_Get - Port type kind is Subscriber
DDS_Listen - Port type kind is Subscriber
DDS_Read - Port type kind is Subscriber
DDS_StateListen - Port type kind is Subscriber
DDS_Update - Port type kind is Publisher
DDS_Write - Port type kind is Publisher
All Port Types are shown in the IDL Elements pane - expand the Port Type folder.
A Port Type is based on a UML Class.
The following sections provide information about how a Port Type is used in the model.
Owned By
Model (UML item)
Package (UML item)
Owns
Attribute(IDL item)
Client
Service
Shown on these diagrams
None.
IDL Profile properties
Port Type kind - specifies whether the Port Type can be used for Extended Port (Publishers) or Extended Port (Consumers).