- 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:

- ETL數據整合與處理(Kettle)
- Mastering Ninject for Dependency Injection
- 數據結構與算法(C語言版)
- 揭秘云計算與大數據
- Sybase數據庫在UNIX、Windows上的實施和管理
- 數亦有道:Python數據科學指南
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- 淘寶、天貓電商數據分析與挖掘實戰(第2版)
- 數據分析師養成寶典
- 二進制分析實戰
- 區塊鏈應用開發指南:業務場景剖析與實戰
- 大數據計算系統原理、技術與應用
- 一本書講透數據治理:戰略、方法、工具與實踐
- Oracle數據庫性能優化的藝術
- MySQL應用實戰與性能調優