cho phép bạn sử dụng lại sơ đồ sơ đồ. Nói cách khác, nếu bạn tạo ra một lớp học cho một sơ đồ, bạn nên có thể sử dụng nó một lần nữa bằng cách chọn nó từ từ điển và kéo và thả nó vào một. Cuối cùng, một số cao cấp (đọc "đắt tiền") công cụ mô hình cho phép bạn để tạo ra mã từ các mô hình của bạn. | 436 Appendix B enables you to reuse them from diagram to diagram. In other words if you create a class for one diagram you should be able to use it again by selecting it from the dictionary and dragging-and-dropping it onto another. Finally some high-end read expensive modeling tools allow you to generate code from your models. When I wrote the earlier editions of this book only a few UML modeling tools were available and I discussed three of them. Since those earlier editions the number of modeling tools has grown substantially. Two that come to mind for example are Together a recent acquisition of Borland and Poseidon a product of Gentleware. Rather than survey the entire field I thought that this time around I d give you a feel for what it s like to work with a modeling tool I ll take you through some steps with one of them Microsoft Visio Professional Edition. If you re familiar with Visio that s helpful. If not that s OK too. Working with UML in Visio Professional Edition One of the best-known diagramming tools Visio Professional Edition adds a number of UML-related capabilities that turn it into a surprisingly strong modeling tool. UML is just one of Visio s capabilities. I ll walk you through the creation of a class diagram an object diagram and a sequence diagram. As I do I ll point out the features of this tool. To give you an idea of where you re headed I ll start by showing you the diagrams I m going to create. The diagrams will form a rudimentary model of our solar system. Because I m focusing on the tool rather than on the UML I ll keep the diagrams simple. Because our particular solar system is an instance of a planetary system you ll begin with a class model of a planetary system as shown in Figure . Figure is an object diagram of Earth and the sun. If you re feeling ambitious you can fill in the remaining planets. Working with a UML Modeling Tool 437 FIGURE A class model of a planetary system. FIGURE An object model of Earth and the .