Skip to content

Commit

Permalink
Merge pull request #1746 from 15916989963/master
Browse files Browse the repository at this point in the history
#4 #305 修改了实验二和实验三并且提交实验四五
  • Loading branch information
zengsn authored Mar 26, 2020
2 parents 2ff76d7 + 094e9d9 commit 735e887
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 25 deletions.
Binary file modified students/1714080902629/Enter_personal_information.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/1714080902629/Pay.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/1714080902629/Payment.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 removed students/1714080902629/Select_travel_method.jpg
Binary file not shown.
Binary file added students/1714080902629/Travel_Information.jpg
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.
44 changes: 21 additions & 23 deletions students/1714080902629/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## 3.实验步骤
1. 确立系统的功能(UseCase)
- 选择出行方式
- 填写出行信息
- 录入个人信息
- 结账
2. 根据功能建立Use Case
Expand All @@ -25,33 +25,32 @@

# 用例规约的编写

## 表1:选择出行方式用例规约
## 表1:填写出行信息用例规约

用例编号 | YKM01 | 备注
-|:-|-
用例名称 | 选择出行方式 |
用例名称 | 填写出行信息 |
前置条件 | | *可选*
后置条件 | 旅客进入个人信息录入页面 | *可选*
基本流程 | 1.旅客点击选择出行方式按钮; |*用例执行成功的步骤*
~| 2.系统显示选择出行方式页面; |
~| 3.旅客选择出行方式,点击确定; |
~| 4.系统进入录入个人信息页面。 |
扩展流程 | |*用例执行失败*
基本流程 | 1.旅客点击我要购票按钮; |*用例执行成功的步骤*
~| 2.系统显示选择出行工具页面; |
~| 3.旅客选择出行工具,点击确定; |
~| 4.系统显示选择出行车号或航号页面; |
~| 5.旅客选择需要的车号或航号; |
~| 6.系统检查有该车号或航号的票,显示个人信息录入页面; |
扩展流程 | 6.1提示“该车号或航号票已售完” |*用例执行失败*
~| |

## 表2:录入个人信息用例规约

用例编号 | YKM02 | 备注
-|:-|-
用例名称 | 录入个人信息 |
前置条件 | 旅客选择出行方式 | *可选*
前置条件 | 旅客填写出行信息 | *可选*
后置条件 | 旅客进入结账页面 | *可选*
基本流程 | 1.旅客输入个人信息并把身份证放到感应器上,点击确定按钮; |*用例执行成功的步骤*
~| 2.系统查询用户信息,检查录入信息与身份证相匹配,进入选择出行时间页面; |
~| 3.旅客选择出行时间,点击确定; |
~| 4.系统检查该时间有余票,进行购票,进入结账页面。 |
扩展流程 | 2.1系统检查发现旅客录入的个人信息与身份证不匹配,提示“旅客信息不匹配”; |*用例执行失败*
~| 4.1 系统检查该时间没有余票,提示“票已售完” |
基本流程 | 1.旅客输入个人信息,点击确定按钮; |*用例执行成功的步骤*
~| 2.系统查询旅客信息,检查录入信息相匹配,进入结账页面; |
扩展流程 | 2.1系统检查发现旅客录入的个人信息不匹配,提示“信息不匹配”; |*用例执行失败*

## 表3:结账用例规约

Expand All @@ -60,11 +59,10 @@
用例名称 | 结账 |
前置条件 | 旅客录入个人信息 | *可选*
后置条件 | | *可选*
基本流程 | 1.旅客点击结账按钮; |*用例执行成功的步骤*
~| 2.系统显示选择结账方式页面; |
~| 3.旅客选择结账方式,点击确定; |
~| 4.系统显示二维码; |
~| 5.旅客使用手机进行支付,点击已支付; |
~| 6.检查支付情况,检查用户已支付,系统打印车票; |
扩展流程 | 6.1检查用户未支付,提示用户“未支付” |*用例执行失败*
~| |
基本流程 | 1.系统显示结账金额; |*用例执行成功的步骤*
~| 2.旅客点击支付按钮; |
~| 3.系统显示选择结账方式页面; |
~| 4.旅客选择结账方式,点击确定; |
~| 5.系统进行结账; |
~| 6.检查支付情况,检查旅客已支付,显示购票成功; |
扩展流程 | 6.1检查旅客未支付,提示旅客“支付失败” |*用例执行失败*
Binary file modified students/1714080902629/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.
4 changes: 2 additions & 2 deletions students/1714080902629/lab3.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
3. 用Control Flow把initial、Action、Decision、Merge、Final连起来

## 4.实验结果
![选择出行方式的活动图](./Select_travel_method.jpg)
图一:选择出行方式的活动图.jpg
![填写出行信息的活动图](./Write_Travel_Information.jpg)
图一:填写出行信息的活动图.jpg

![录入个人信息的活动图](./Enter_personal_information.jpg)
图二:录入个人信息的活动图
Expand Down
33 changes: 33 additions & 0 deletions students/1714080902629/lab4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 实验四:类建模
# 实验五:高级类建模

## 一、实验目标
1. 掌握类的概念和构成
2. 掌握类建模方法
3. 了解MVC设计模式
4. 理解类的5种关系
5. 掌握类之间关系的画法

## 二、实验内容
- 根据用例规约绘制相应的类图。

1.填写出行信息类图

2.录入个人信息类图

3.结账类图

## 三、实验步骤
1.在例规约中利用MVC模式寻找类
2.确定类与类之间的关系
3.在StarUML中画出类图

## 四、实验结果
![填写出行信息类图](./Travel_Information.jpg)
图一填写出行信息类图

![录入个人信息类图](./personal_information.jpg)
图二录入个人信息类图

![结账类图](./Pay.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 735e887

Please sign in to comment.