-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2342 from nekodevelopers/master
- Loading branch information
Showing
8 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 实验七:状态建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握对象状态建模。 | ||
|
||
## 二、实验内容 | ||
|
||
1. 理解对象的概念; | ||
2. 理解状态的概念; | ||
3. 学习状态图的画法。 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 找出关键对象:应用 | ||
|
||
2. 设计该对象的关键状态: | ||
- 将要删除的 | ||
- 加锁成功的 | ||
- 加锁失败的 | ||
- 删除成功的 | ||
3. 描述状态间的转变条件 | ||
|
||
## 四、实验结果 | ||
|
||
应用状态图: | ||
|
||
应用删除时需要加锁防止重复删除,只有加锁成功的才能获取到线程进行删除操作,删除时会反馈一个删除状态表明成功失败 | ||
|
||
![删除应用状态图](./delstate.jpg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.