ComponentInstance

StarUML

ComponentInstance

Top  Previous  Next

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

2.And click at the position where ComponentInstance will be placed in the [main window].

ch05_755

3.Enter the component instance name at the quick dialog and press [Enter] key. The result is as follows.

ch05_756

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

2.Right-click the selected ComponentInstance, select [Add] -> [Attribute Link] popup menu.

ch05_758

3.and you can add Attribute Link.

ch05_759

In the other case,

1.Select [Collection Editor...] popup menu of ComponentInstance.

ch05_760

2.Click ch05_761 button in slots property on properties window.

ch05_762

3.At [Slots] tab of the [collection editor], you can add attribute link by using ch05_763 button.

ch05_764