-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2209 from 1714080902526/master
- Loading branch information
Showing
13 changed files
with
176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 实验一 | ||
|
||
## 一、实验目标 | ||
|
||
1.下载并安装建模工具 StarUML,创建第一个UML图 | ||
2.确定个人建模选题 | ||
3.熟悉GitHub实验过程 | ||
|
||
## 二、实验内容 | ||
|
||
1.下载StarUML和Git | ||
2.注册git账号 | ||
3.确认选题及其功能要求 | ||
4.建立第一个UML模型图 | ||
5.使用git上传本地使用文件 | ||
6.在GitHup将git上的文件发送至老师账号 | ||
|
||
## 三、实验步骤 | ||
|
||
1.使用git命令将github项目克隆到本地文件 | ||
2.按老师要求添加文件夹和文件 | ||
3.建立第一个UML模型图 | ||
4.使用git上传本地使用文件 | ||
5.在GitHup上将git上的文件PR到老师账号 | ||
|
||
## 四、实验结果 | ||
|
||
![第一个UML图](./model.jpg) | ||
图一.第一个UML图 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# 实验二 用例图 | ||
|
||
## 一、实验目标 | ||
|
||
1.选题,并画出用例图 | ||
2.编写用例规约 | ||
|
||
## 二、实验内容 | ||
|
||
1. 确定个人建模选题,将选题填写在 Issues 中: | ||
https://github.com/hzuapps/uml-modeling-2020/issues | ||
2. 画出用例图 | ||
3. 编写实验报告 | ||
|
||
## 三、实验步骤z | ||
|
||
1.打开StarUML软件,在Model中添加一个Use Case Diagram | ||
2.添加两个用例,分别为添加疫情信息、购买口罩 | ||
3.添加使用者,将使用者和用例链接起来 | ||
4.将画出的用例图保存到students/1714080902526下 | ||
|
||
## 四、实验结果 | ||
|
||
1. | ||
![实验2用例图](./小区疫情填报系统.jpg) | ||
图一.小区疫情填报系统用例图 | ||
|
||
2. 用例规约 | ||
## 表1:添加新闻用例规约 | ||
|
||
用例编号 | UC01 | 备注 | ||
-|:-|- | ||
用例名称 | 添加疫情信息 | | ||
前置条件 | | *可选* | ||
后置条件 | | *可选* | ||
基本流程 | 1.户主点击填报按钮; |*用例执行成功的步骤* | ||
~| 2.系统显示填报疫情信息页面; | | ||
~| 3.户主输入自身疫情信息,点击添加疫情按钮; | | ||
~| 4.系统查询疫情信息,检查今日未填报; | | ||
~| 5.系统获取户主ID; | | ||
~| 6.系统保存疫情信息,提示保存成功,返回首页。 | | ||
扩展流程 | 4.1 系统查询发现今日疫情已填报,系统返回填报页面,提示疫情已填报 |*用例执行失败* | ||
~| 4.2 系统查询发现疫情信息为空,系统返回填报页面,提示疫情信息不能为空 | | ||
|
||
## 表2:删除新闻用例规约 | ||
|
||
用例编号 | UC02 | 备注 | ||
-|:-|- | ||
用例名称 | 购买口罩 | | ||
前置条件 | | *可选* | ||
后置条件 | | *可选* | ||
基本流程 | 1.户主点击购买口罩链接; |*用例执行成功的步骤* | ||
~| 2.系统显示购买页面; | | ||
~| 3.户主输入添加购买个数,点击购买按钮; | | ||
~| 4.系统查询口罩库存,检查口罩库存足够; | | ||
~| 5.系统记录户主门牌号; | | ||
~| 6.系统提示购买成功,返回首页。 | | ||
扩展流程 | 4.1 系统查询发现口罩库存不够,系统返回购买页面,提示剩余口罩个数 |*用例执行失败* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 实验三 过程建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握过程建模的方法 | ||
2. 掌握活动图的画法 | ||
|
||
## 二、实验内容 | ||
|
||
1. 根据用例规约创建活动图 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 创建添加疫情信息、购买口罩的活动图 | ||
2. 添加开始节点和结束节点 | ||
3. 根据自己的用例规约添加活动节点和判定节点 | ||
4. 用Control flow将所有的节点连接起来 | ||
5. 调整节点的位置和大小,是活动图变得美观 | ||
|
||
## 四、实验结果 | ||
|
||
![添加疫情信息活动图](./添加疫情信息活动图.jpg) | ||
图一.添加疫情信息活动图 | ||
|
||
![购买口罩活动图](./购买口罩活动图.jpg) | ||
图二.购买口罩活动图 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 实验四 类建模 | ||
# 实验五 高级类建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握类的概念和构成 | ||
2. 掌握类建模方法 | ||
3. 了解MVC设计模式 | ||
4. 理解类的五种关系 | ||
5. 掌握类之间关系的画法 | ||
|
||
## 二、实验内容 | ||
|
||
1. 基于MVC模式设计类; | ||
2. 设计类的关系; | ||
3. 画出类图。 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 在StartUML中创建类图 | ||
2. 从用例规约中找出必要的类 | ||
3. 创建相关类 | ||
4. 根据各个类之间的关系,用线将它们连接起来 | ||
|
||
## 四、实验结果 | ||
|
||
![添加疫情MVC](./添加疫情MVC.jpg) | ||
图一.添加疫情MVC | ||
|
||
![购买口罩MVC](./购买口罩MVC.jpg) | ||
图二.购买口罩MVC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 实验六 交互建模 | ||
|
||
## 一、实验目标 | ||
|
||
1. 理解系统交互; | ||
2. 掌握UML顺序图的画法; | ||
3. 掌握对象交互的定义与建模方法。 | ||
|
||
## 二、实验内容 | ||
|
||
1. 根据用例模型和类模型,确定功能所涉及的系统对象; | ||
2. 在顺序图上画出参与者; | ||
3. 在顺序图上画出消息。 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 从用例规约、用例图和类图中找出所有的系统对象 | ||
2. 用Lifeline画出所有的对象 | ||
3. 根据活动图,按顺序画出对象间所有的Message | ||
4. 在需要返回消息的对象之间建立Reply Message | ||
|
||
## 四、实验结果 | ||
|
||
![填报疫情顺序图](./填报疫情顺序图.jpg) | ||
图一.填报疫情顺序图 | ||
|
||
![购买口罩顺序图](./购买口罩顺序图.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.
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.
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.
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.