Part / Role / Part instance / Role instance

A part/role is a child of a class and is created through the class menu called from the browser :

A part instance/role instance is a child or a class instance and is created through the entry Add part/role instance of the class instance menu called from the browser supposing the corresponding class has part/role :

Menus (part/role)

The part/role menu appearing with a right mouse click on its representation in the browser is something like these, supposing it is not read-only nor deleted :

Menu : Add port reference

Only present in case the type of the role/part has at least a port without a corresponding instance into the part/role

.

edit allows to

Menu : edit

edit allows to show/modify the properties of the part/role. In case the part/role is read-only, the fields of the dialog are also read-only.

The proposed types are all the classes defined in the project (with their localization to distinguish synonymous classes). The button type shows a menu proposing :

When you change the type of a role/part the references to the ports already created but illegal for the new type are deleted, but still present in the browser like for any kind of element, you cannot undelete them. If you change again the type of the part/role the deleted reference of ports whose are compatible with the new type are automatically undeleted. Note you can also delete/undelete manually the reference to ports when it is allowed. If you added a port reference on a role / part which is inherited by the type of the role / part then you change the inheritances and some ports stop to be inherited this has no impact on their references, I do that to allow to work on generalization/realization without to strong impact.

Menu : delete

The menu entry delete is only present when the part/role is not read-only not already deleted.

Delete the part/role and all the representation of them in the opened diagrams. After that it is possible to undelete them (from the browser) until you close the project : obviously the deleted items are not saved !

Menu : mark

See mark

Menu : tool

Appears only when at least one plug-out is associated to the part/role. To apply a plug-out on the part/role.

Default stereotypes

The dialog allowing to set the default stereotypes has the tab others for the part/role :

The stereotype of a part/role does not have a special meaning for BOUML.

Menus (part/role instance)

The part/role instance menu appearing with a right mouse click on its representation in the browser is something like these, supposing it is not read-only nor deleted :

Menu : Default ports

At a part instance/role instance level the goal is a priori to have the port references corresponding to the ones of the part/role, so the menu doesn't propose to add the port reference one by one by but to get all. Of course this menu entry is only proposed if the instance doesn't already have all the possible port references as children, or if at least one is deleted, the deleted port reference will be automatically undeleted if you choose this menu entry.

Menu : edit

edit allows to show/modify the properties of the part/role instance. In case the part/role instance is read-only, the fields of the dialog are also read-only.

Part/role instance dialog, tab Uml

It is not possible to change the type of the instance, it was set when you created the instance, the button role/part proposes only to select the type of the instance into the browser

Part/role instance dialog, tab Attributes

This tab allows to set a value to each of the attributes of the type of the role/part typing the instance

Menu : delete

The menu entry delete is only present when the part/role instance is not read-only nor already deleted.

Delete the part/role instance and all the representation of them in the opened diagrams. After that it is possible to undelete them (from the browser) until you close the project : obviously the deleted items are not saved !

Part/role drawing

The part/role are only drawn in a class composite diagram or in the composite compartment of a class in a class diagram

A right mouse click on a part/role in a class composite diagram calls the following menu (supposing the part/role editable) :

Menu : edit

To edit the part/role.

Menu : edit drawing settings

To set the color of the part/role, concerns only the picture for which the menu is called.

Menu tools :

Appears only when at least one plug-out is associated to the part/role. To apply a plug-out on the part/role.

Part/role instance drawing

The part/role instance are only drawn in an object composite diagram or in the composite compartment of a class instance in an object diagram

A right mouse click on a part/role instance in a object composite diagram calls the following menu (supposing the part/role instance editable) :

Menu : edit

To edit the part/role instance.

Menu : edit drawing settings

To set the color of the part/role instance, concerns only the picture for which the menu is called.

Previous : port

Next : extra member