UML2 Use Case chart operation instructions

Source: Internet
Author: User

1. Use Case Model Based on UML2 standards

The Unified Modeling Language (UML) is a visual Modeling Language that is easy to express and powerful. It is a well-defined standard Language suitable for common businesses. Currently, UML2 standards are integrated with the latest ideas, methods, and technologies in the software engineering field. Therefore, UML2 standards should not be limited to object-oriented analysis and design, it can be applied to the whole process of software development starting from requirement analysis.

The use case diagram in the UML2 standard is a system function used to express the understanding of the participants (Actor). It is used in the demand analysis phase to list the use cases and participants in the system and display the relationships between them, that is, which participant executes the use cases

The following uses UML for analysis and modeling, mainly to find out all the use cases in the system and describe the use cases. We also need to discuss the potential users, models are drawn using Trufun Plato UML2 modeling tools (available on www.trufun.net for free)

Example Diagram

Use Case modeling includes the use case diagram and use case description. A Use Case diagram consists of a participant (role Actor), a Use Case, a system boundary, and a link. It is provided in the Trufun Plato UML2 modeling tool using the Use Case diagram toolbar, select the required tool and use the drawing method in the drawing area.

The use case diagram is a simple description of the system using the diagram. However, more details are required for each use case, which requires the use case description. The general use case description includes: brief description, preconditions, basic events, other event streams, and post conditions.

3. Use Trufun Plato to create a case model

Trufun Plato is a professional UML2 modeling tool. Each UML2 standard frame diagram provides related commonly used toolbar. Its interface consists of four work parts:

1. Drawing area: used to create, browse, delete, and modify model elements;

2. Attribute dialog box: used to define and modify the attributes of model elements;

3. Model Browser: organizes and displays the model elements created in the project;

4. Tool frame: elements required by the UML2 related block diagram.

Follow these steps to use the Trufun Plato UML2 modeling tool:

Trufun Plato UML2 modeling tool is a green product. After downloading related software from www.trufun.net, decompress the software to the corresponding directory, open the decompressed directory, and click trufun. bat to start the software. Trufun supports Chinese and English operating systems and Trufun. the bat file automatically identifies the operating system to display the relevant language interface, and also provides the Trufun_English.bat English interface for the Chinese operating system to start the Trufun_Chinese.bat file.

When the trufun software is started for the first time, a dialog box for selecting a workspace is displayed, as shown in. After you confirm the workspace for saving the project, if you do not need to prompt every start, you can select "use this value as the default value and stop asking" at the bottom of the dialog box. Otherwise, you will be prompted to select a workspace each time you start the dialog box.

After confirming the workspace, click "OK" to enter the Trufun welcome page. You can first open the Trufun help system and learn about the functions and basic operations of Trufun, if you do not need it, you can close this welcome page and directly go to the Trufun work interface.

For the working interface of the Trufun software that has not yet been created for any project, the subsequent startup interface will automatically display the status saved during the last close.

Create UML2 project: to create an UML2 use case map, first create an UML2 project and select "new-Project" in the menu file or "New Project" in the toolbar shortcut. The following dialog box is displayed, expand "TrufunUML modeling" and select "create UML2.x project ".

Then select the project type and name the project. After the project is created, the system generates the relevant content for creating and displaying the project in the Model Browser, in the main work area, open the model information of the project and the main drawing area.

In general, we analyze a project to manage multiple packages. We can create a classification package in the main workspace and then create a relevant block diagram in the package.

Create a Use Case chart, select <UML2 Model> (old version is model) in the Model Browser, right-click the menu, and select "Create a diagram". The system will open the use case chart in the Main drawing area, the related tool box is displayed, as shown in figure

Create a Use Case chart topic: select the icon that represents the topic in the use case chart toolbar, drag it into the drawing area, or click in the drawing area to generate a topic that is newly added to the UML2 standard, this element was not used in previous tools. The topic is represented by a rectangle. It is generally used to distinguish between the inside and outside of the system. Generally, the role is placed outside the topic, and the use case is placed within the topic.

Create a role in the use case diagram: select the icon indicating the role in the Use Case toolbar, and then click or drag it into the drawing area. You can rename the role directly, you can also define other attributes of a role in the dialog box below, for example:

Create a Use Case: select the use case icon in the use case toolbar and drag it into the drawing area or click in the drawing area to generate a UseCase. When you need to create multiple use cases at the same time, you can also use the tool bar shortcut provided by Trufun to "Lock ".

Create relationships between roles and use cases, roles, and roles: Provide Associations (one-way associations), generalization, dependency, inclusion, and extension in the use case toolbar, used to indicate different communication relationships. General relations are used between roles. Include or expand relations are used between use cases and use cases, and associate or one-way Association is used between roles and use cases. For example:

Create Case Description: select the case to describe in the Trufun drawing area, in the following attribute box, select brief description, preconditions, basic events, other event streams, and post conditions to describe the use case, for example:

Like other applications, the Trufun Plato UML2 modeling software can save the current project or diagram by saving it in the menu or toolbar.

We can also publish the model created by Trufun to the Web page so that others can browse the model. The procedure is as follows: select "Export"-"export as HTML" from the menu item "UML modeling", select the webpage address to save, you can generate a webpage for the model, open it directly after it is generated, or open the index.html file to view it. For example, the relevant model is expanded using the tree structure on the right, which is the same as the display structure in the software.

You can also publish the model created by Trufun as a Word document for communication. Operation steps: Select "Export"-"export as a document" in the menu item "UML modeling ", you can choose to generate a "Software Design Manual" or generate a "requirement/Use Case Implementation Specification" if you have a detailed use case description ". The procedure for generating specific documents will be detailed in other articles. Welcome to www.trufun.net for more UML2 application articles!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.