Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 #259 第二次提交 实验六:交互实验(+之前实验修改) #2198

Merged
merged 2 commits into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions students/1714080902311/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,22 @@
用例名称 | 点菜 |
前置条件 | 餐厅顾客进入浏览菜单界面 | *可选*
后置条件 | | *可选*
基本流程 | 1.餐厅顾客点击想要菜品后的+号,再点击提交按钮 |*用例执行成功的步骤*
~| 2.系统查询订单中菜品剩余数量 |
~| 3.系统验证订单中菜品剩余数量大于餐厅顾客下单菜品数量 |
~| 4.系统保存订单信息,提示【已下单,单号:xx】 |
扩展流程 | 3.1 系统验证订单中菜品剩余数量小于订单中菜品数量,提示【xx菜品后厨剩余数量不足,下单失败】 |*用例执行失败*
基本流程 | 1.餐厅顾客输入餐桌号 |*用例执行成功的步骤*
~| 2.餐厅顾客点击想要菜品后的+号,再点击提交按钮 |
~| 3.系统查询订单中菜品剩余数量 |
~| 4.系统验证订单中菜品剩余数量大于餐厅顾客下单菜品数量 |
~| 5.系统保存订单信息,提示【已下单,单号:xx】 |
扩展流程 | 4.1 系统验证订单中菜品剩余数量小于订单中菜品数量,提示【xx菜品后厨剩余数量不足,下单失败】 |*用例执行失败*

## 表2:预定餐桌用例规约

用例编号 | 02 | 备注
-|:-|-
用例名称 | 预定餐桌 |
前置条件 | 餐厅顾客进入点菜程序主界面 | *可选*
前置条件 | 餐厅顾客进入预定餐桌界面 | *可选*
后置条件 | | *可选*
基本流程 | 1.餐厅顾客点击预定餐桌链接 |*用例执行成功的步骤*
~| 2.系统显示预定餐桌界面 |
~| 3.餐厅顾客输入姓名,手机号,时间,人数,点击预定按钮 |
~| 4.系统匹配餐桌数据,记录顾客预定数据 |
~| 5.系统提示【预定成功】 |
扩展流程 | 4.1系统匹配不到合适的餐桌数据,提示【桌位已满】 |*用例执行失败*
基本流程 | 1.餐厅顾客输入姓名,手机号,时间,人数,点击预定按钮 |*用例执行成功的步骤*
~| 2.系统匹配餐桌数据,记录顾客预定数据 |
~| 3.系统提示【预定成功】 |
扩展流程 | 2.1系统匹配不到合适的餐桌数据,提示【桌位已满】 |*用例执行失败*

Binary file modified students/1714080902311/lab3_ActivityDiagram1.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 modified students/1714080902311/lab3_ActivityDiagram2.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 modified students/1714080902311/lab4-5_Class1.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 modified students/1714080902311/lab4-5_Class2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions students/1714080902311/lab4.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
## 3.实验步骤

- 创建点菜的类图项目
- 创建点菜控制器类图,菜单类图,餐厅顾客类图,订单类图,菜单界面类图
- 创建点菜控制器类图,菜单类图,订单类图,菜单界面类图
- 用依赖线连接点菜控制器类图和其他的类图,使用聚合线连接餐厅顾客类,订单类图和菜单类图
- 创建预约餐桌类图项目
- 创建预约餐桌控制器类图,餐桌类图,餐厅顾客猎兔,预约单类图,预约餐桌界面类图
- 用依赖线连接预约餐桌控制器类图和其他类图,使用聚合线连接餐厅顾客类图,预约单类图和餐桌类图
- 创建预约餐桌控制器类图,餐桌类图,预约单类图,预约餐桌界面类图
- 用依赖线连接预约餐桌控制器类图和其他类图,使用聚合线连接预约单类图和餐桌类图

## 4。实验结果
![类图](./lab4-5_Class1.jpg)
Expand Down
Binary file added students/1714080902311/lab6.1.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/1714080902311/lab6.2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions students/1714080902311/lab6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 实验六:交互建模

## 1.实验目标

- 理解系统交互
- 掌握UML顺序图的画法
- 掌握对象交互的定义与建模方法

## 2.实验内容

- 根据用例建模和类模型,确定功能所涉及的系统对象
- 在顺序图上画出参与者(对象)
- 在顺序图上画出消息(交互)

## 3.实验步骤

- 参考之前实验做的用例规约还有过程图,理清思路
- 创建n+1个参与者
- 画出参与者之间的交互

## 4。实验结果
![交互图](./lab6.1.jpg)

图1.点菜交互图

![交互图](./lab6.2.jpg)

图2.预约餐桌交互图