-
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.
- Loading branch information
1 parent
0ec310a
commit 23015f4
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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,29 @@ | ||
# 实验七:状态建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握对象状态建模(状态图,Statechart)。 | ||
|
||
## 二、实验内容 | ||
|
||
1. 观看视频学习对象的状态概念和状态建模; | ||
2. 提取选题中的对象并分析其状态; | ||
3. 画出状态图。 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 寻找一个关键的状态:演唱会门票; | ||
2. 设计演唱会门票的关键状态:已上线的、已售的、过期的; | ||
3. 设计状态之间的转变条件; | ||
4. 编写实验文档。 | ||
|
||
## 四、实验结果 | ||
|
||
![演唱会门票的状态图](https://github.com/stop-imagine/uml-modeling-2020/blob/master/students/1714080902325/Lab7_StatechartDiagram.jpg) | ||
图1:演唱会门票的状态图 | ||
|
||
## 五、实验体会 | ||
|
||
1. 描述状态是一个形容词,不能写不存在的状态; | ||
2. 分析对象的状态时,不要拘束于自己所选择的功能; | ||
3. 整个状态图都是在描述一个对象。 |