官术网_书友最值得收藏!

Use case diagrams

Use case diagrams document the interactions between your users and your system. This is typically done with text, but UML does support use cases.

Let's start by looking at use cases in text, and then review a UML diagram representing the same use cases. We will use an example of a grade book for an online education institution. 

The student logs on to the system and selects their class. The student then selects the assignment and uploads their document. Next, the student enters text and selects the submit button. 

The instructor logs on to the system and selects their class. The instructor then selects the assignment, and the student. They grade the assignment, enter a grade, and select the submit button.

These use cases are pretty basic and easy to understand in text. There are only a few constructs for the use case diagram in UML:

A use case diagram for an online grade book system

There are several visual components to the UML use case diagram:

  • Actor: The stick figure is referred to as an actor. In our example, student and instructor were both actors. These are the users that use your system. Often, there are multiple user roles in a system.
  • Relationship: The solid lines indicate which actors interact with which use case items.
  • System: The overall system is represented by a rectangle. Actors are placed outside of the system and use case items are placed within the system.
  • Use Case Item: Use case items are represented in ovals, as seen in our preceding Online Grade Book example. These are the components of your use case.

These visual components are further illustrated as follows:

Another use case diagram for an online grade book system
主站蜘蛛池模板: 靖安县| 新营市| 阿合奇县| 珠海市| 陵水| 称多县| 深水埗区| 崇礼县| 定西市| 奉节县| 潮安县| 通河县| 凌源市| 固阳县| 凤庆县| 德州市| 巴林右旗| 大埔区| 瑞昌市| 富阳市| 曲麻莱县| 安阳市| 陵川县| 息烽县| 东宁县| 潼南县| 同江市| 赣榆县| 高唐县| 许昌县| 腾冲县| 永安市| 临湘市| 平昌县| 贵南县| 衡水市| 饶阳县| 二手房| 酒泉市| 岑溪市| 胶南市|