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 :
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 :
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
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 :
to select the classe typing the part/role in the browser
if the part/role is not read-only and if a class is selected in the browser : to set the type to be this class
if the view containing indirectly the part/role is not read-only : to create a new class and to set the part/role type to it
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.
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 !
See mark
Appears only when at least one plug-out is associated to the part/role. To apply a plug-out on the part/role.
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.
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 :
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.
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.
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
This tab allows to set a value to each of the attributes of the type of the role/part typing the instance
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 !
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) :
To edit the part/role.
To set the color of the part/role, concerns only the picture for which the menu is called.
Appears only when at least one plug-out is associated to the part/role. To apply a plug-out on the part/role.
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) :
To edit the part/role instance.
To set the color of the part/role instance, concerns only the picture for which the menu is called.
Previous : port
Next : extra member