Author: bnPYSse (Original)
From: http://www.51delphi.com
I have learned some things about .NET for recent time because of work needs. In these, the most in touch is. Net About the corporate architecture, some business templates, including VS.NET themselves, to a large extent, greatly simplify the difficulty of enterprise application development.
For enterprise-class development applications, I believe that everyone will think of modeling, how to apply modeling in vs.net is especially important in the development of VS.NET. During this time, I tried several tools, including visio.2003.enterprise.edtion, visaul.uml.v.3.02, etc. I didn't think that I didn't think about the general procedure. Rose is too big. And what XDE does not currently support VS2003. ^ _ ^), Visio2003 Chinese version can be combined with VS.NET, but its UML's modeling function is relatively poor, Visual.uml's running speed is not compliment. Yesterday, I saw that the forum was talking about Boaland's together.for.visaul.net, and the attitude of trying a trial was installed, and it was really good.
Some experiences, don't do it exclusive, and now you have learned to learn from you. If you are in a hurry, improperly, please criticize. To reprint, please indicate the source. If you need to discuss, you can contact me. Thank Xalion's 51Delphi website, if there is no guidance and help, I believe that there is no production in these articles.
Note: The operating environment of this article is the Chinese version of Visual Studio .NET 2003 and Borland Together Edition for Microsfot Visual Studio .NET Version 1.0.
1, Borland Together Edition for Microsoft Visual Studio .NET installation TOGETHER is a cross-platform UML tool, I chose Borland TOGETHER Edition for Microsoft Visual Studio.net Version 1.0 version, from readme, its last update time is August 28, 2003, everyone can download it on Borland's website. Register. The registrar must support JDK.v.1.3, make sure that Java running package is installed on your machine. There is nothing to say, all the way next. Then start VS.NET, if the installation is successful, see the following screen (Figure 1): Figure 1: Boland together Edition for Microsoft Visual Studio .NET installation interface and then execute: Registry Together vs .NET menu command, will be generated The registration number is registered. If the registration is unsuccessful, you can use the License Managerment menu command to delete the invalid registration number, and regenerate (I also first unsuccessful, and then register successfully after registration). 2, brief introduction of Borland Together Edition for Microsoft Visual Studio. NOSOFT VITHER Edition for Microsoft Visual Studio. NET The main features include the following: UML modeling, two-way code generation, mode support, HTML document generation, import, XML format The main features of the main functions. The desired software platform, of course, the primary thing is that the programming language that has been installed on your machine and successfully runs Microsoft Visual Studio .NET 2003 and the programming language used is C # .NET. In addition, the demand for hardware is not too high: Pentiumiii / 500MHz, minimum memory 512m, 30m disk space, SVGA 1024x768, and operating systems that require W2K SP2 or WinXP Professional. Borland TOGETHER Edition for Microsoft Visual Studio .NET is not a separate running program, but is integrated into the environment of VS.NET, there are three major components: the first part is Model View (model view, Figure 2), The second part is Digram View (chart view, Figure 4), and the third part is the attribute window (Figure 3). Figure 2: Model view
Figure 3: Attribute window
Figure 4: Chart View 3, by instance to apply to TOGETHER to see how to apply together in the vs.net environment. This example is quite simple, it simulates the implementation model of a audio and rental store. It involves two Actor mainly: one is a clerk, one is a customer. The clerk is mainly to realize the management function of the interior video, and the customer is mainly the function of realizing the rental tape. First, create a new project file in VS.NET: Video Store (Figure 5).
Figure 5: Create a new VS.NET project file
Then VS will create a new project file video. Select View -> TOGETHER VS .NET MODEL View menu command opens a Module view (this is a default view generated by TOGETHER for the new project file, Figure 6): Figure 6: MODUL view in the default item Create User case (Use case diagram), select default-> video_store-> add-> Other Diagram (Figure 7): Figure 7: Creating a User Diagram (Use Case Diagram) Together Popked a dialog box (Figure 8) , Enter Video Store Use Case to create an example of example: Figure 8: Creating a user diagram Note: If you open a project file that has been established, if you want to apply together, then in the Project Manager ": together vs .NET Support, a dialog box will pop up (Figure 9), select it, then confirm to open an existing module file (Figure 10).
Figure 9. Open together on the existing project
Figure 10: Application to Existing Projects Together
After the creation is successful, select the example of the example, which will display a special table tool in the toolbox on the left, including: actor, use case, communicates, extends, include, generalization, system boundary, pattern, note, note link, etc. Several, we choose an actor to add it in the example of the example and change its name: Clerk to represent the salesperson. You can double-click the icon or select the F2 key to change the name. When you are selected, there will be a border in the surrounding, or you can drag the border to adjust the size of the graph. Select "System Boundary Button", make a system boundary in the figure, and rename "Inventory System", use "Uses Button", create two use cases in the system boundary, one is "Find item by keywords", one is "Find Item By Title", represents two different use cases of the video tape by the keywords, respectively. Select "Communicates Button", select the actor (Clerk) in the figure, and drag it to use case (Figure 11): Figure 11: Select the actor (Clerk) with an example example, press the F4 button, you can open the right (By default) Properties window, select General-> STEREOTYPE on the right side of the right side (Figure 12), will pop up a dialog, please select the original shape of the role, we can choose Manager here (the representative is Manager, Figure 13):
Figure 12: Attribute window of Clerk
Figure 13: Defining Clerk's STEREOTYPE