Component definition diagram (IDL code)
A Component Definition Diagram allows you to create the following items.
• Components
• Connectors
• Port Types
• Interfaces
Through Generalizations you can define inheritance between two Components, two Connectors, two Port Types and two Interfaces.
All Component Definition Diagrams are shown in the
![](../../Integrity_Modeler/images/idl-elements-pane.gif)
IDL Elements pane - expand the Component Definition Diagram folder.
A Component Definition Diagram is based on a UML Text Diagram.
A Component Definition Diagram can show the following IDL items.
Component
To create a Component: click the
![](../../Integrity_Modeler/images/but-component.gif)
Component button, and then click in free space on the diagram.
To add an existing Component to the diagram: drag the Component from an appropriate pane to free space on the diagram.
Note that a Component's view options are set through the Class entry.
Connector
To create a Connector: click the
![](../../Integrity_Modeler/images/di-connector_21.gif)
Connector button, and then click in free space on the diagram.
To add an existing Connector to the diagram: drag the Connector from an appropriate pane to free space on the diagram.
Note that a Connector's view options are set through the Class entry.
Generalization (UML item)
You can create a Generalization between two Components, two Connectors, two Interfaces or two Port Types.
To create a Generalization: click the
![](../../Integrity_Modeler/images/but-generalization_26.gif)
Generalization button, click the sub item, and then click the super item.
To add missing Generalizations to the diagram: right-click an item or the diagram background, point to Populate, and then click Inheritance.
Interface
To create a Connector: click the
![](../../Integrity_Modeler/images/di-interface_109.gif)
Interface button, and then click in free space on the diagram.
To add an existing Interface to the diagram: drag the Interface from an appropriate pane to free space on the diagram.
Note that an Interface's view options are set through the Interface entry.
Port Type
To create a Port Type: click the
![](../../Integrity_Modeler/images/di-port-type.gif)
Port Type button, and then click in free space on the diagram.
To add an existing Port Type to the diagram: drag the Port Type from an appropriate pane to free space on the diagram.
Note that a Port Type's view options are set through the Class entry.
The following sections provide information about how a Component Definition Diagram is used in the model.
Owned By
![](../../Integrity_Modeler/images/di-model_186.gif)
Model (UML item)
![](../../Integrity_Modeler/images/di-package_230.gif)
Package (UML item)
Creates or shows these items
![](../../Integrity_Modeler/images/di-generalization_71.gif)
Generalization (UML item)
![](../../Integrity_Modeler/images/di-interface_109.gif)
Interface (UML item)
IDL Profile properties
None.