- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 295字
- 2021-06-24 14:57:54
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:

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:

- MySQL高可用解決方案:從主從復制到InnoDB Cluster架構
- 大規模數據分析和建模:基于Spark與R
- 數據庫應用實戰
- Google Visualization API Essentials
- Spark大數據分析實戰
- Python金融大數據分析(第2版)
- Spark核心技術與高級應用
- 大話Oracle Grid:云時代的RAC
- 數據庫技術及應用教程
- 網站數據庫技術
- 深入淺出Greenplum分布式數據庫:原理、架構和代碼分析
- Oracle PL/SQL實例精解(原書第5版)
- SQL Server 2012數據庫管理教程
- INSTANT Android Fragmentation Management How-to
- 計算機組裝與維護(微課版)