-
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 #1890 from TRLVMMR/master
- Loading branch information
Showing
10 changed files
with
81 additions
and
6 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.
File renamed without changes
File renamed without changes
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
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,52 @@ | ||
# 实验四:类建模 | ||
# 实验五:高级类建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握类的概念和构成 | ||
2. 掌握类建模方法 | ||
3. 了解MVC设计模式 | ||
4. 理解类的5种关系 | ||
5. 掌握类之间关系的画法(Class Diagram) | ||
|
||
|
||
## 二、实验内容 | ||
|
||
1. 学习掌握类建模的方法 | ||
2. 学习MVC设计模式 | ||
3. 根据用例规约绘制相应的类图 | ||
- 添加设为精华图 | ||
- 添加发帖图 | ||
- 添加下载资源图 | ||
|
||
|
||
## 三、实验步骤 | ||
|
||
1. 确定使用MVC设计模式 | ||
2. 通过用例规约找出类、页面还有控制器 | ||
3. 在StarUML中创建类图 | ||
- 添加设为精华图 | ||
- 添加发帖图 | ||
- 添加下载资源图 | ||
4. 根据MVC设计模式确定类的关系 | ||
5. 根据最终情况修改用例规约和类图 | ||
|
||
|
||
## 四、实验结果 | ||
|
||
图1 设为精华图 | ||
|
||
![添加关注人类图](./Lab4_ClassDiagram1.jpg) | ||
|
||
|
||
|
||
图2 发帖图 | ||
![发帖图](./Lab4_ClassDiagram2.jpg) | ||
|
||
|
||
|
||
|
||
|
||
图3 下载资源图 | ||
|
||
![下载资源图](Lab4_ClassDiagram3.jpg) |