A class instance may be placed under a class view, a use case view or a use case.
A class instance can have sub part/role and composite diagram
The class menu appearing with a right mouse click on its representation is something like this, supposing the instance not read-only nor deleted (see also menu in a diagram) :
To add a new composite diagram.
This entry is visible only when the type of the instance has role/part, to add an instance of one of them.
edit allows to show/modify the instance properties. In case the class is read-only, the fields of the dialog are also read-only.
It is not possible to change the type of an intance having sub part/role or composite diagram, even when they are deleted (in that case save then reload the project to definitively remove the deleted sub elements).
The button class shows a menu proposing :
to select in the browser the class of the instance
if the instance is not read-only and does not have sub element and if a class is selected in the browser and the instance does not have sub element : to set the class of the instance to be this class
if the view containing the class containing the instance is not read-only : to create a new class and to set the attribute type to it
The editor button visible above and associated here to the description, allows to edit the description in an other window, or to call an external editor (for instance Xcoral) specified through the environment dialog. Note that this external editor have to create an own window, its parameter is the pathname of the file containing the description, its execution is done in parallel with BOUML which looks each second at the file contents to get the new definition until the dialog is closed (I do not like very much this polling but this works even QT isn't compiled with the thread support).
This tab allows to specify the value of the attributes of the instance, including the inherited ones :
Unfortunately an attribute can't be set several times, this is a problem when an attribute has a multiplicity greater than 1.
This tab allows to specify the value of the relations of the instance, including the inherited ones:
Unfortunately a relation can't be set several times, this is a problem when a relation has a multiplicity greater than 1.
The menu entry duplicate clone the class instance, except the value of the relations.
To know who reference the current class instance
See mark
The menu entry delete is only present when the class instance is not read-only.
Delete the instance and all the representation of it in the opened diagrams. After that it is possible to undelete it (from the browser) until you close the project : obviously the deleted items are not saved !
The menu entry tool is only present in case at least a plug-out may be applied on a class instance. The selected tool is called and applied on the current class instance.
A class instance is drawn in a sequence diagram as a rectangle or an icon depending on the class's stereotype and the drawing settings, the value of the attributes and relations don't appears:
A right mouse click on a class instance in a sequence diagram calls the following menu (supposing the instance editable) :
Please refer to the chapter sequence diagram for more details.
A class instance is drawn in a collaboration diagram as a rectangle, the value of the attributes and relations don't appears :
A right mouse click on a class instance in a collaboration diagram calls the following menu (supposing the instance editable) :
Please refer to the chapter collaboration diagram for more details.
A class instance is drawn in a collaboration diagram as a rectangle, the value of the attributes and relations appears :
A sub composite diagram can be drawn in the dedicated compartment:
A right mouse click on a class instance in an object diagram calls the following menu (supposing the instance editable) :
Only present when the instance already show one of its composite diagram.
Only present when the instance has at least a composite diagram. When you show a composite diagram into the instance representation this one is duplicated except the fragments (a priori is used to indicate whose instance is described) and nothing appends if you delete the original composite diagram or change it. Use this entry to update the composite diagram in the instance or change it by an other.
Please refer to the chapter object diagram for more details.
Previous : extra member
Next : state