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.
- Loading branch information
Showing
3 changed files
with
32 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.
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,32 @@ | ||
# 实验四五:类建模 | ||
|
||
## 一、 实验目标 | ||
|
||
1. 掌握类建模; | ||
2. 了解MVC或你熟悉的设计模式; | ||
3.掌握类图的画法(Class Diagram) | ||
|
||
## 二、 实验内容 | ||
|
||
1.基于MVC模式设计类 | ||
2.设计类的关系 | ||
3.画出类图 | ||
|
||
## 三、 实验步骤 | ||
|
||
1. 创建查找公交车的类图项目 | ||
2. 根据用例规约创建公交车类,实时地图类,乘客类,查找公交车控制器类,实时位置显示页面类 | ||
3. 用依赖线连接查找公交车控制器类和其他类,使用聚合线连接公交车类,实时地图类,乘客类 | ||
4. 创建寻找路线的类图项目 | ||
5. 根据用例规约创建目的地类,实时地图类,乘客类,道路类,寻找路线控制器类,路线显示界面类 | ||
6. 用依赖线连接寻找路线控制器类图和其他类,使用聚合线连接实时地图类,目的地类,乘客类,道路类 | ||
|
||
## 四、 实验结果 | ||
|
||
![查询公交车的类图](./ClassDiagram1.jpg) | ||
|
||
图1:查询公交车的类图 | ||
|
||
![寻找路线的类图](./ClassDiagram2.jpg) | ||
|
||
图2:寻找路线的类图 |