A UML model can become quite complex. Different aspects of available information are important to different people at different times. A UML tool should provide comprehesive yet simple-to-use mechanisms to access and change that information. Therefore, Poseidon for UML offers various ways of navigating between model elements to accomodate all of these needs. We will now take a closer look at the most important ones.
The central mechanism for moving through the models is the Navigation pane, mentioned above. It organizes the complete UML model into a tree view that provides access to almost all parts of that model via the opening and closing of subtrees. At the top of the Navigation pane you will find a drop-down menu where you can choose between a number of views.
Views available from the Navigation pane
Class Centric
Diagram Centric
Inheritance Centric
Model Index
Package Centric
State Centric
UseCase Centric
Each view organizes the tree structure with its own different focus. By default, the Package Centric view is displayed. We have already changed the view to the Diagram Centric view in a previous section.
Now you can see all of the diagrams contained in the model at one glance. By clicking on one of the diagram names or icons, the corresponding diagram is shown in the Diagram pane. The elements contained in that diagram are displayed when the subtree is expanded.
The first two views (Class Centric and Diagram Centric) are the most commonly used views. The others are primarily used for more limited cases; for example, to find out the inheritance structure of the model or the structure of the navigation paths.
Remember that the Navigation pane displays the complete model, while a single diagram will only show you specific aspects of it. It is possible that there may be elements that are not contained in any diagram at all and are therefore only accessible from the Navigation pane.
Take a look at the Model Index view by selecting
from the drop-down menu. The Navigation pane will change to display an alphabetical list of all elements in the model. This illustrates yet another useful way to locate elements.The Properties tab in the Details pane provides a very convenient method of drill-down navigation. Navigating in such a way is very intuitive due to the relational nature of the elements and therefore of the navigation between them. It is easy to visualize moving from a class to a method of that class to a parameter of the method.
From the Model Index view, open the Classes subtree and select the class Clients.
Take a look at the left side of the Properties tab. Listed here are properties of the class itself which can be modified, such as name and visibility. To the right are components of the class, elements in and of themselves. These components have their own properties in their own properties tab.
Double-click on the attribute called 'login'. Notice that the Properties tab has changed and now displays the properties of the attribute. Notice, also, that the fields present on the left side have changed to details which are useful for attributes instead of classes. The right side shows us that this attribute has two accessor methods, and to modify those methods we need only double-click on their names to bring up the properties of the selected accessor method.