Semantics
A component instance is an instance of a component that resides on a node instance. A component instance may have a state.
Procedure for creating component instance
In order to create ComponentInstance,
1. | Click [Toolbox] -> [Component] -> [ComponentInstance] button. |
![ch05_754](ch05_754.jpg)
2. | And click at the position where ComponentInstance will be placed in the [main window]. |
![ch05_755](ch05_755.jpg)
3. | Enter the component instance name at the quick dialog and press [Enter] key. The result is as follows. |
![ch05_756](ch05_756.jpg)
Procedure for adding attribute to component instance
There are two way to add AttributeLink to component instance.
· | using ComponentInstance model in the main diagram or the [model explorer] |
· | using [collection editor] |
In the case of using ComponentInstance model,
1. | Select ComponentInstance in the [main window] or in the [model explorer]. |
![ch05_757](ch05_757.jpg)
2. | Right-click the selected ComponentInstance, select [Add] -> [Attribute Link] popup menu. |
![ch05_758](ch05_758.jpg)
3. | and you can add Attribute Link. |
![ch05_759](ch05_759.jpg)
In the other case,
1. | Select [Collection Editor...] popup menu of ComponentInstance. |
![ch05_760](ch05_760.jpg)
2. | Click button in slots property on properties window. |
![ch05_762](ch05_762.jpg)
3. | At [Slots] tab of the [collection editor], you can add attribute link by using button. |
![ch05_764](ch05_764.jpg)
|