Skip to content

Commit

Permalink
Merge pull request #2342 from nekodevelopers/master
Browse files Browse the repository at this point in the history
#8 #6 #3 #818 实验七
  • Loading branch information
zengsn authored Apr 11, 2020
2 parents 235e8a5 + c5ae72f commit a64269f
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 0 deletions.
Binary file modified students/1714080902233/addClass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902233/addaSequenceDiagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902233/delClass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902233/delSequenceDiagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added students/1714080902233/delstate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions students/1714080902233/lab7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 实验七:状态建模

## 一、实验目标

1. 掌握对象状态建模。

## 二、实验内容

1. 理解对象的概念;
2. 理解状态的概念;
3. 学习状态图的画法。

## 三、实验步骤

1. 找出关键对象:应用

2. 设计该对象的关键状态:
- 将要删除的
- 加锁成功的
- 加锁失败的
- 删除成功的
3. 描述状态间的转变条件

## 四、实验结果

应用状态图:

应用删除时需要加锁防止重复删除,只有加锁成功的才能获取到线程进行删除操作,删除时会反馈一个删除状态表明成功失败

![删除应用状态图](./delstate.jpg)
Binary file modified students/1714080902233/wakeClass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902233/wakeSequenceDiagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a64269f

Please sign in to comment.