forked from hzuapps/uml-modeling-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…实验报告重新修改
- Loading branch information
1 parent
8d0c741
commit e3b0ce6
Showing
13 changed files
with
125 additions
and
15 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 |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
|
||
## 四.实验结果 | ||
|
||
![第一个UML图](./model.jpg) | ||
![第一个UML图](./model1.jpg) | ||
第一个UML图 |
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
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
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,43 @@ | ||
# 实验四 类建模 | ||
# 实验五 高级类建模 | ||
## 一、实验目标 | ||
|
||
1. 掌握类建模方法; | ||
2. 掌握UML中类图(Class Diagram)的画法; | ||
3. 熟悉了解MVC设计模式。 | ||
|
||
|
||
## 二、实验内容 | ||
1. 学习类图的基本概念和类与类的关系; | ||
2. 在bilibili观看视频学习类建模方法和MVC设计模式; | ||
2. 根据用例规约使用StarUML画类图。 | ||
|
||
## 三、实验步骤 | ||
1. 在bilibili观看实验四五类建模视频; | ||
2. 在StarUML创建两个类图(Class Diagram): | ||
(1)发布家教类图; | ||
(2)领取家教类图; | ||
3. 根据用例规约画图: | ||
(1)使用Class图形分别画出Model、Controller和View; | ||
(2)使用Dependency表示Controller与Model和View的关系; | ||
(3)使用Aggregation表示Model与View的关系。 | ||
4. 分别导出各类图的JPEG格式图片; | ||
5. 编写lab4.md实验报告文档。 | ||
|
||
## 四、实验结果 | ||
|
||
![发布家教类图](./model4_1.jpg) | ||
图1 发布家教类图 | ||
|
||
![领取家教类图](./model4_2.jpg) | ||
图2 发布家教类图 | ||
|
||
## 五、实验收获 | ||
|
||
1. 了解了类图和类建模的方法: | ||
(1)描述类的类图可分为类名层、属性层和方法层等多层(实验中只画出类名层); | ||
(2)类与类之间的联系:Dependency、Association、Aggregation、Composition等等。 | ||
2. 了解了MVC设计模式的基本概念: | ||
M:Model——模型是应用程序中用于处理应用程序数据逻辑的部分; | ||
V:View——视图是应用程序中处理数据显示的部分; | ||
C:Controller——控制器是应用程序中处理用户交互的部分。 |
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,39 @@ | ||
# 实验六:交互建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 理解系统交互; | ||
2. 掌握UML顺序图的画法; | ||
3. 掌握对象交互的定义与建模方法。 | ||
|
||
|
||
## 二、实验内容 | ||
|
||
1. 根据用例模型和类模型,确定功能所涉及的系统对象; | ||
2. 在顺序图上画出参与者(对象); | ||
3. 在顺序图上画出消息(交互)。 | ||
|
||
|
||
## 三、实验步骤 | ||
|
||
1. 从用例图中找到参与者(1) | ||
2. 从类图找到所有的参与者(N) | ||
3. 在StarUML中创建顺序图 | ||
- 添加关注人顺序图 | ||
- 发布动态顺序图 | ||
4. 通过用例规约画顺序图 | ||
5. 根据最终情况修改用例规约和所有的实验所画的图 | ||
|
||
|
||
## 四、实验结果 | ||
|
||
图1 添加关注人顺序图 | ||
![顺序图](./model6_1.jpg) | ||
|
||
图2 发布动顺序图 | ||
![顺序图](./model6_2.jpg) | ||
|
||
|
||
## 五、实验总结 | ||
|
||
要认真看视频 做起来比较清楚 |
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,31 @@ | ||
# 实验七:状态建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握对象状态建模(状态图,Statechart)。 | ||
|
||
|
||
## 二、实验内容 | ||
|
||
1. 寻找一个关键的对象; | ||
2. 设计该对象的关键状态; | ||
3. 设计状态之间的转变条件。 | ||
|
||
|
||
## 三、实验步骤 | ||
|
||
1. 根据自己的用例规约、活动图、类图和顺序图,选择关键的对象; | ||
2. 确定了要绘制状态图的对象是“动态” | ||
3. 找出家教信息的相关状态 | ||
- 草稿的 | ||
- 发布的 | ||
- 已删除的 | ||
-已领取的 | ||
4. 绘制状态图 | ||
5. 添加相关的结点 | ||
|
||
|
||
## 四、实验结果 | ||
|
||
图1 动态的状态图 | ||
![状态图](./model7_1.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.
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.