Skip to content

Commit

Permalink
Merge pull request #1537 from time-emit/master
Browse files Browse the repository at this point in the history
#3 #1195 实验三:过程建模(&补实验一)
  • Loading branch information
zengsn committed Mar 19, 2020
2 parents 3e5d47f + 4337dce commit 38bef89
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 13 deletions.
Binary file added students/1714080902616/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 added students/1714080902616/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.
30 changes: 24 additions & 6 deletions students/1714080902616/lab1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,37 @@
## 一、实验目标

1. 熟悉GitHub实验过程

2. 安装与使用StarUML

## 二、实验内容

- 安装GitHub并练习使用Git Bash
- 安装StarUML并创建一个图
- 练习使用GitHub和Git Bash
- 使用StarUML创建第一个UML图

## 三、实验步骤

1.
2.
3.
4.
1.下载并安装Git和StarUML

2.注册Github账号并登录

3.fork项目到仓库

4.使用git clone命令克隆项目到本地

5.在本地创建和编辑文件lab1.md

6.打开安装的StarUML并绘制第一个UML图model1.jpg

7.使用git add命令将学号目录下的文件提交到暂存区

8.使用git commit命令将暂存区文件提交到版本库

9.使用git push命令将到github本地版本库的分支推送到远程服务器

10.在Github上编辑lab1.md文档并插入图片model1.jpg

11.发送结果到主项目库(pull request)

## 四、实验结果

Expand Down
14 changes: 7 additions & 7 deletions students/1714080902616/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
前置条件 | 登录青年摄影交流系统 | *可选*
后置条件 | | *可选*
基本流程 | 1.摄影爱好者点击图库链接 |*用例执行成功的步骤*
~| 2.系统检测权限合法,显示相关图库内容 |
扩展流程 | 2.1系统检测发现没有权限,提示“等级过低,暂时无法浏览” |*用例执行失败*
~| 2.系统检查符合等级要求,显示相关图库内容 |
扩展流程 | 2.1系统检查不符合等级要求,提示“等级过低,暂时无法浏览” |*用例执行失败*

## 表2:评论帖子用例规约

Expand All @@ -55,8 +55,8 @@
基本流程 | 1.摄影爱好者点击评论链接 |*用例执行成功的步骤*
~| 2.系统显示评论编辑界面 |
~| 3.摄影爱好者输入内容,点击发送 |
~| 4.系统检测评论合法,保存评论信息,提示“评论成功” |
扩展流程 | 4.1系统检测发现输入内容为空,提示“评论内容为空” |*用例执行失败*
~| 4.2系统检测发现帖子已被删除,提示“帖子不存在” |
~| 4.3系统检测发现没有相关权限,提示“等级过低,暂时无法评论” |
~| 4.4系统检测发现已被帖子主人禁言,提示“已被禁言,无法评论” |
~| 4.系统检查评论符合要求,保存评论信息,提示“评论成功” |
扩展流程 | 4.1系统检查发现评论内容为空,提示“评论内容为空” |*用例执行失败*
~| 4.2系统检查发现帖子已被删除,提示“帖子不存在” |
~| 4.3系统检查发现不符合等级要求,提示“等级过低,暂时无法评论” |
~| 4.4系统检查发现被禁言,提示“已被禁言,无法评论” |
30 changes: 30 additions & 0 deletions students/1714080902616/lab3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 实验三:过程建模

## 一、实验目标

1. 掌握过程建模方法
2. 掌握活动图的画法(Activity Diagram)

## 二、实验内容

- 根据实验二中的用例规约绘制活动图

## 三、实验步骤

1. 创建浏览图库、评论帖子的活动图
2. 添加Iniial(开始节点)和Final(终止节点)
3. 根据用例规约添加Action(动作状态)
4. 扩展流程处先使用Decision(分支),然后Merge(合并)
5. 用Control Flow(控制流)连接
6. 调整位置直至不交叉且整洁
7. 导出并上传活动图

## 四、实验结果

![浏览图库的活动图](./Lab3_ActivityDiagram1.jpg)

图一:浏览图库的活动图

![评论帖子的活动图](./Lab3_ActivityDiagram2.jpg)

图二:评论帖子的活动图

0 comments on commit 38bef89

Please sign in to comment.