2.2.4 Runtime Experiments

1. Open the Object Space Browser in SOLoist Application Control Center.

2. Create several objects of classes Department and Employee: select a class in the model browser and press Create Object.

 

3. View and edit attributes of objects in their details dialogs that you open by double-clicking on the objects.

4. Using objects’ details dialogs, create links of associations assignment and organization:

i) Open an object’s details dialog by double-clicking on the object.

ii) Select the slot for the association end where you want to add a link.

 

iii) Press the Search and Set button. You will get a new popup dialog with a generic search form, just as the one you already saw in the Object Browser, to find an object of the class at that association end.

 

iv) Enter the desired condition to find an object, press Search, and you will get all objects of the class that satisfy the condition.

v) Select one object in the result table and press OK.

vi) When you return to the starting object’s details dialog, you will see the slot updated with the selected object linked to the slot.

 

5. You can delete a link by selecting the linked object in a slot and pressing Delete.

6. Try to delete a Department that has sub-departments. After deletion, try to find any of the sub-departments in the object space. You will see that they have been deleted too, because the

association organization is a composition, implying a propagated deletion of the objects at the subDepts end.