Creating a component (IDL code)
You can create a Component through a Component Definition Diagram, or from the Model or a Package.
To create a component through a component definition diagram:
1. Open the Component Definition Diagram on which you want to create the Component.
2. On the diagram's tab, click the
Component button.
3. On the diagram, click in free space.
4. Type the name of the Component, and then press the Enter key.
5. If you want the Component to inherit from another Component:
a. Add the Component you want to inherit from to the Component Definition Diagram.
b. On the diagram tab, click the
Generalization button.
c. Click the Component you created, and then click the Component from which it is to inherit.
6. Specify file include directives for the generated file through Dependencies or the includes tag definition (applied through the «Source» stereotype).
Tell me more... 7. If you want the generated IDL file to not be named after the Component item, specify the required IDL file name through the File Name property that can be applied through the «Source» stereotype from the IDL Profile.
Tell me more... 8. If you want ACS to not generate an IDL file for a Component, apply the «Source» stereotype from the IDL Profile to the Component, and then set the tagged value of the Ignore tag definition to TRUE.
To create a component from a package or the model:
1. In the Packages pane, locate the Package or Model that is to own the Component.
2. Right-click the Package or Model, point to > , and then click Component.
3. Type the name of the Component, and then press the Enter key.
4. If you want the Component to inherit from another Component:
a. Add the Component you created and the Component you want to inherit from to a Component Definition Diagram.
b. On the diagram tab, click the
Generalization button.
c. Click the Component you created, and then click the Component from which it is to inherit.
5. Specify file include directives for the generated file through Dependencies or the includes tag definition (applied through the «Source» stereotype).
Tell me more... 6. If you want the generated IDL file to not be named after the Component item, specify the required IDL file name through the File Name property that can be applied through the «Source» stereotype from the IDL Profile.
Tell me more... 7. If you want ACS to not generate an IDL file for a Component, apply the «Source» stereotype from the IDL Profile to the Component, and then set the tagged value of the Ignore tag definition to TRUE.