UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory UML Weekend Crash Course™ - To Parent Directory

crnarupa.singidunum.ac.rs
from crnarupa.singidunum.ac.rs More from this publisher
01.01.2015 Views

SESSION 30 UML Modeling Tools Session Checklist ✔ Explaining the purpose and function of modeling tools ✔ Explaining evaluation criteria for modeling tools ✔ Evaluating UML modeling tools You have undoubtedly found that working with the UML diagrams by hand can be timeconsuming and difficult. The problem increases in complexity when you attempt to maintain the integration between the models. You are not alone. Many people in the industry have come to appreciate the value of the modeling tools but have been hindered by the sheer magnitude of the task. Explaining the Purpose and Function of Modeling Tools This is where modeling tools come in. The idea behind these modeling tools is simply that you should be able to use the power of the computer to draw the diagrams, store the information about the diagrams, and use the computer to run the cross checks, maintain the integrity, keep track of versions, and ultimately generate the code. Unfortunately, the early attempts at these tools did not go well. The developers tried to anticipate how you should write your code. In trying to account for every possibility, they delivered tools that generated bloated, unreadable code. The result was that no one trusted the code or the tools. The good news for modeling tools came in the form of object-oriented programming. The elements of the OO diagrams now map so well to elements of OO code that there is little if any difference between the diagrams and the code. So what is a modeling tool Figure 30-1 shows you a screenshot of a typical modeling tool interface. This particular tool is System Architect by Popkin Software, the tool used to generate most of the diagrams in this book.

308 Sunday Afternoon Take a look at the central elements of the tool: Main Menu: At the top of Figure 30-1, you see the typical menu. In a modeling tool, you will also find a menu, often called Tools or something similar, that gives you access to the code generation features, database schema creation, export and import of models, and links to related tools like data modeling tools and Integrated Development Environments (IDEs) or coding environments. Figure 30-1 Modeling tool interface Model Navigation: Each tool typically provides a navigation window. Figure 30-1 shows the navigation window in the left side panel. The upper portion looks a lot like a directory tree. Notice that it uses packages (folder icons) containing diagrams and definition files. The lower half of the left side is a detail window that displays the properties of the currently selected item. Often this is a thumbnail view of a diagram or audit details about a package or other selected item. Canvas: The large white area on the right side of Figure 30-1 is the drawing canvas. This is where you create, view, and maintain all your diagrams. Just above the canvas is a row of buttons, or a toolbar, for each diagram element. This toolbar may also appear to the immediate left of the canvas or float over the canvas depending on the tool. The contents of the toolbar change depending upon which diagram you are drawing. Explaining Evaluation Criteria for Modeling Tools The next big question is, “How do I choose the right tool for my project” As with any decision, you first must decide what your needs are. Modeling tools come in all shapes and

308<br />

Sunday Afternoon<br />

Take a look at the central elements of the tool:<br />

Main Menu: At the top of Figure 30-1, you see the typical menu. In a modeling tool, you<br />

will also find a menu, often called <strong>To</strong>ols or something similar, that gives you access to the<br />

code generation features, database schema creation, export and import of models, and links<br />

to related tools like data modeling tools and Integrated Development Environments (IDEs)<br />

or coding environments.<br />

Figure 30-1 Modeling tool interface<br />

Model Navigation: Each tool typically provides a navigation window. Figure 30-1 shows<br />

the navigation window in the left side panel. The upper portion looks a lot like a directory<br />

tree. Notice that it uses packages (folder icons) containing diagrams and definition files.<br />

The lower half of the left side is a detail window that displays the properties of the<br />

currently selected item. Often this is a thumbnail view of a diagram or audit details about a<br />

package or other selected item.<br />

Canvas: The large white area on the right side of Figure 30-1 is the drawing canvas. This<br />

is where you create, view, and maintain all your diagrams. Just above the canvas is a row of<br />

buttons, or a toolbar, for each diagram element. This toolbar may also appear to the immediate<br />

left of the canvas or float over the canvas depending on the tool. The contents of the<br />

toolbar change depending upon which diagram you are drawing.<br />

Explaining Evaluation Criteria for Modeling <strong>To</strong>ols<br />

The next big question is, “How do I choose the right tool for my project” As with any<br />

decision, you first must decide what your needs are. Modeling tools come in all shapes and

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!