The following example shows how to apply together in the Vs. NET environment. This example is quite simple. It imitates and implements The implementation model of audio and video rental stores. There are two major actor involved: a clerk and a customer. The clerk manages the live video recordings in the store, while the customer manages the live video recordings. . First, create a new project file: video store (figure 5) in vs. net ). Figure 5: Create a vs. Net project file Then vs creates a new project file named video. Store. Select View> together vs. Net Model The View menu command opens a module view (this is a default view generated by together for the newly created project file, figure 6 ): Figure 6: modul view in the default Project The following figure shows a user use case digoal. Select default> video_store> Add> Other digoal (figure 7 ): Figure 7: create a user use case diagram) Together will pop up a dialog box (Figure 8). Enter video store use case to create a use case map: Figure 8: create a user Diagram Note: If you want to open a previously created project file and want to apply together, Select "together vs. Net" in "Project Manager ". Support, a dialog box is displayed (Figure 9). Select it and confirm to open the existing module File (Figure 10 ).
|
|
Figure 9. Open together for an existing project |
Figure 10: apply together to an existing project |
After the creation is successful, select the use case chart. A dedicated graph creation tool is displayed in the left-side toolbox, Including actor and use. Case, communicates, extends, Des, generalization, System Boundary, pattern, note, note Link and other items, we select an actor, add it to the use case diagram, and change its name to clerk to represent the sales person. You can double-click the icon or press the F2 key to change the name. When you select a chart, there will be a border around it. You can also drag the border to adjust the image size. Select system boundary Button, create a system boundary in the figure, rename it as "Inventory System", and use "use case Button, create two use cases in the system boundary. One is "find item by keywords" and the other is "find item The keyword used to find the video or the title used to find the video. Select "communicates button", select the actor (clerk) in the figure, and drag it to use case (fig. 11 ): Figure 11: Example Select actor (clerk) and press F4 to open the Properties window on the right (by default) and select general- > In the dialog box on the Right of stereotype (Figure 12), a dialog box is displayed. Select the role's prototype. Here you can select Manager (representing the manager, Figure 13 ):
|
|
Figure 12: Clerk attribute window |
Figure 13: Define the stereotype of clerk |
Add a new use case rent item to System Boundery, add an actor-customer, and use the communicates link to connect the customer and rent Item. The final use case diagram (Figure 14 ): Figure 14: use case diagram of rental videotape |