Skip to content

Commit

Permalink
Merge pull request #1906 from chenlianghai/master
Browse files Browse the repository at this point in the history
#4 #5 #674 实验四五和修改实验三
  • Loading branch information
zengsn authored Mar 29, 2020
2 parents 284e507 + 2c679c9 commit ad3c857
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 16 deletions.
Binary file modified students/1714080902524/lab2-UseCaseDiagram1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions students/1714080902524/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## 3. 实验步骤

- 选题--小区旧物回收系统
- 功能需求:(1)小区居民下单送物品;(2)回收员接单收物品
- 功能需求:(1)小区居民送物品;(2)回收员收物品
- 根据选题,创建用例图
- 编写用例规约

Expand All @@ -27,33 +27,33 @@



## 表1:下单送物品用例规约
## 表1:送物品用例规约

用例编号 | UC01 | 备注
-|:-|-
用例名称 | 下单送物品 |
用例名称 | 送物品 |
前置条件 | 小区居民登录进入小区旧物回收系统 | *可选*
后置条件 | | *可选*
基本流程 | 1.小区居民点击下单送物品按钮; |*用例执行成功的步骤*
基本流程 | 1.小区居民点击送物品按钮; |*用例执行成功的步骤*
~| 2.系统显示添加信息页面; |
~| 3.小区居民输入地址、物品和空闲时间,点击确认按钮; |
~| 4.系统检查发现信息正确,保存下单信息; |
~| 5.系统显示下单送物品成功页面。 |
~| 4.系统检查发现信息正确,保存信息; |
~| 5.系统显示送物品成功页面。 |
扩展流程 | 4.1 系统检查发现信息存在非法字符,提示“该信息错误,请重新填写”。 |*用例执行失败*



## 表2:接单收物品用例规约
## 表2:收物品用例规约

用例编号 | UC02 | 备注
-|:-|-
用例名称 | 接单收物品 |
用例名称 | 收物品 |
前置条件 | 回收员进入小区旧物回收系统并查看信息 | *可选*
后置条件 | | *可选*
基本流程 | 1.回收员点击接单收物品按钮; |*用例执行成功的步骤*
基本流程 | 1.回收员点击收物品按钮; |*用例执行成功的步骤*
~| 2.系统显示修改信息页面; |
~| 3.回收员输入回收时间,点击确认按钮; |
~| 4.系统查询信息,发现存在该信息,保存接单信息; |
~| 5.系统显示接单收物品成功页面。 |
扩展流程 | 4.1系统查询发现信息不存在,提示“接单失败,该信息已取消”。 |*用例执行失败*
~| 4.系统查询信息,发现存在该信息,保存信息; |
~| 5.系统显示收物品成功页面。 |
扩展流程 | 4.1系统查询发现信息不存在,提示“收物品失败,该信息已取消”。 |*用例执行失败*

8 changes: 4 additions & 4 deletions students/1714080902524/lab3.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
7. 最后调整各部分位置尽可能简洁美观
8. 将绘制的活动图导出为.jpg图片
## 四、实验结果
![下单送物品的活动图](./下单送物品的活动图.jpg)
![送物品的活动图](./送物品的活动图.jpg)

图1:下单送物品的活动图
图1:送物品的活动图

![接单收物品的活动图](./接单收物品的活动图.jpg)
![收物品的活动图](./收物品的活动图.jpg)

图2:接单收物品的活动图
图2:收物品的活动图
34 changes: 34 additions & 0 deletions students/1714080902524/lab4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 实验四:类建模;实验五:高级类建模

## 一、实验目标
- 掌握类建模方法;
- 了解MVC的设计模式(model、view、controller);
- 掌握类图的画法。(Class Diagram)
- 理解类的5种关系
- 掌握类之间关系的画法。(Class Diagram)
## 二、实验内容
- 了解MVC设计模式;
- 根据用例规约绘制相应的类图;
- 上传github
- 在GitHub平台新建一个.md文件并描述内容。

## 三、实验步骤
- 了解MVC设计模式:
1. Model为实体类
2. View为用户操作的视图
3. Controller为控制两者的控制器。
4. Model和View不会互相交互,都由Controller进行联系或控制。

- 在StarUml中创建类图
1. 根据用例规约,挖掘所需的类;
2. 用MVC设计模式绘图
- 了解类之间的关系,并连线。

## 四、实验结果
![送物品的类图](./送物品的类图.jpg)

图1:送物品的类图

![收物品的类图](./收物品的类图.jpg)

图2:收物品的类图
Binary file not shown.
Binary file not shown.
Binary file added students/1714080902524/收物品的活动图.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/1714080902524/收物品的类图.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/1714080902524/送物品的活动图.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/1714080902524/送物品的类图.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 ad3c857

Please sign in to comment.