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

- 我們都是數(shù)據(jù)控:用大數(shù)據(jù)改變商業(yè)、生活和思維方式
- Redis使用手冊(cè)
- 數(shù)據(jù)庫(kù)基礎(chǔ)與應(yīng)用:Access 2010
- 計(jì)算機(jī)信息技術(shù)基礎(chǔ)實(shí)驗(yàn)與習(xí)題
- Hadoop與大數(shù)據(jù)挖掘(第2版)
- 數(shù)據(jù)驅(qū)動(dòng):從方法到實(shí)踐
- Dependency Injection with AngularJS
- Scratch 3.0 藝術(shù)進(jìn)階
- 中國(guó)數(shù)字流域
- 科研統(tǒng)計(jì)思維與方法:SPSS實(shí)戰(zhàn)
- 達(dá)夢(mèng)數(shù)據(jù)庫(kù)運(yùn)維實(shí)戰(zhàn)
- 企業(yè)級(jí)容器云架構(gòu)開發(fā)指南
- Oracle RAC日記
- 區(qū)塊鏈技術(shù)應(yīng)用與實(shí)踐案例
- 實(shí)用數(shù)據(jù)結(jié)構(gòu)