Skip to content

Commit

Permalink
Merge pull request #1749 from Sakuraxia/master
Browse files Browse the repository at this point in the history
#4 #5 #581 实验四类建模和实验五高级类建模
  • Loading branch information
zengsn authored Mar 27, 2020
2 parents b9d838a + 3dab3bc commit 0643716
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 15 deletions.
Binary file modified students/1714080902409/Lab2-UseCaseDiagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions students/1714080902409/Lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
- 编写用例规约
## 3.实验步骤
- 确定功能:
(1)业主发布出租信息
(2)租客收藏房源
(1)业主发布房屋
(2)租客收藏房屋
- 画出参与者:业主和租客
- 画出用例
- 建立参与者和用例的联系
Expand All @@ -20,15 +20,15 @@

# 用例规约的编写

## 表1:发布出租信息用例规约
## 表1:发布房屋用例规约

用例编号 | UC01 | 备注
-|:-|-
用例名称 | 发布出租信息 |
用例名称 | 发布房屋 |
前置条件 | 业主已经登录进入房屋出租系统 |
后置条件 | |
基本流程 | 1. 业主点击发布信息按钮 |
~| 2. 系统显示房屋信息发布界面 |
基本流程 | 1. 业主点击发布按钮 |
~| 2. 系统显示房屋发布界面 |
~| 3. 业主填写房屋的价格,地址,租期,外观等信息并且留下自己的联系电话 |
~| 4. 业主点击发布按钮|
~| 5. 系统检查业主的必填内容,必填内容不为空|
Expand All @@ -40,16 +40,16 @@



## 表2:收藏房源用例规约
## 表2:收藏房屋用例规约

用例编号 | UC02 | 备注
-|:-|:--
用例名称 | 收藏房源 |
用例名称 | 收藏房屋 |
前置条件 | 租客已经登录进入房屋出租系统 |
后置条件 | |
基本流程 | 1. 租客点击收藏按钮 |
~| 2. 系统显示收藏页面 |
~| 3. 租客选择感兴趣的房源,点击完成按钮 |
~| 4. 系统查询租客已收藏的房源,检查不存在编号相同的房源,更新租客收藏的房源信息 |
~| 3. 租客选择感兴趣的房屋,点击完成按钮 |
~| 4. 系统查询租客已收藏的房屋,检查不存在编号相同的房屋,更新租客收藏的房屋 |
~| 5. 系统提示“收藏成功” |
扩展流程 | 4.1 系统查询租客已收藏的房源,发现存在编号相同的房源,提示“此房源已收藏” |
扩展流程 | 4.1 系统查询租客已收藏的房屋,发现存在编号相同的房屋,提示“此房屋已收藏” |
8 changes: 4 additions & 4 deletions students/1714080902409/Lab3.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
- 添加Final节点

## 4.实验结果
发布出租信息的活动图
![发布出租信息的活动图](https://raw.githubusercontent.com/Sakuraxia/uml-modeling-2020/master/students/1714080902409/发布出租信息的活动图.jpg)
发布房屋的活动图
![发布房屋的活动图](发布房屋.jpg)



收藏房源的活动图
![收藏房源的活动图 ](https://raw.githubusercontent.com/Sakuraxia/uml-modeling-2020/master/students/1714080902409/收藏房源.jpg)
收藏房屋的活动图
![收藏房源的活动图 ](收藏房屋.jpg)

25 changes: 25 additions & 0 deletions students/1714080902409/Lab4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 实验四:类建模
## 1.实验目标
- 掌握类之间关系的画法
- 了解Model,View,Controller
- 理解类的5种关系
## 2.实验内容
- 熟悉类图的画法
- 根据实验二的用例规约,画出类图
- 了解并熟悉MVC模式
## 3.实验步骤
- 根据实验二的用例规约画出对应的类图
- 在用例规约中找出模型,视图,控制器
- 把有关系的类连接起来,连接控制器与相关的类,连接控制器与相关的视图
## 4.上课笔记
- 类的5种关系:Dependency,Association,Aggregation,Composition,Inheritance
- Model:即是模型,实体,数据
- View:也即是视图,界面
- Control:也即是控制器,Service
- 有多少个用例就画多少个类图
## 5.实验结果
![用例图](./发布房屋类图.jpg)
发布房屋类图

![用例图](./收藏房屋类图.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/1714080902409/发布房屋.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/1714080902409/发布房屋类图.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/1714080902409/收藏房屋.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/1714080902409/收藏房屋类图.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/1714080902409/收藏房源类图.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 0643716

Please sign in to comment.