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 #458 实验六:交互建模 #1935

Merged
merged 5 commits into from
Mar 30, 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
Binary file modified students/1714080902624/add.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/1714080902624/del.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: 9 additions & 13 deletions students/1714080902624/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@
用例编号 | UC01 | 备注
-|:-|-
用例名称 | 上架新菜 |
前置条件 | | *可选*
前置条件 | 系统显示新增菜品页面 | *可选*
后置条件 | | *可选*
基本流程 | 1.管理员点击新增链接; |*用例执行成功的步骤*
~| 2.系统显示新增菜品页面; |
~| 3.管理员输入菜品名和描述,点击确认按钮; |
~| 4.系统查询菜品信息,检查菜品名不存在,保存新增菜品信息; |
~| 5.系统提示“添加成功”。 |
扩展流程 | 4.1系统发现菜品名已存在,提示“添加失败,菜品已存在”。 |*用例执行失败*
基本流程 | 1.管理员输入菜品名和描述,点击确认按钮; |*用例执行成功的步骤*
~| 2.系统查询菜品信息,检查菜品名不存在,保存新增菜品信息; |
~| 3.系统提示“添加成功”。 |
扩展流程 | 2.1系统发现菜品名已存在,提示“添加失败,菜品已存在”。 |*用例执行失败*



Expand All @@ -49,12 +47,10 @@
用例编号 | UC02 | 备注
-|:-|-
用例名称 | 下架菜品 |
前置条件 | | *可选*
前置条件 | 系统显示删除菜品页面 | *可选*
后置条件 | | *可选*
基本流程 | 1.管理员点击删除链接; |*用例执行成功的步骤*
~| 2.系统显示删除菜品页面; |
~| 3.管理员输入菜品名,点击确认按钮; |
~| 4.系统查询菜品信息,检查菜品名存在,删除该菜品名和描述; |
~| 5.系统提示“删除成功”。 |
基本流程 | 1.管理员输入菜品名,点击确认按钮; |*用例执行成功的步骤*
~| 2.系统查询菜品信息,检查菜品名存在,删除该菜品名和描述; |
~| 3.系统提示“删除成功”。 |
扩展流程 | 2.1系统发现菜品名不存在,提示“删除失败,该菜品不存在”。 |*用例执行失败*

31 changes: 31 additions & 0 deletions students/1714080902624/lab6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 实验六:交互建模

## 一、实验目标

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

## 二、实验内容

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

## 三、实验步骤

1. 创建上架新菜的顺序图
2. 首先查看用例规约和类图,画出1+N个参与者
3. 然后根据活动图找出操作流程,在顺序图中画出参与者之间的联系
4. 创建下架菜品的顺序图
5. 创建1+N个参与者
6. 然后同样根据活动图找出操作流程,在顺序图画出参与者之间的联系

## 实验结果

![上架新菜顺序图](./上架新菜顺序图.jpg)
图1:上架新菜的顺序图

![下架菜品顺序图](./下架菜品顺序图.jpg)
图2:下架菜品的顺序图

Binary file added students/1714080902624/上架新菜顺序图.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/1714080902624/下架菜品顺序图.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.