-
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 #2546 from 1714080902518/master
- Loading branch information
Showing
15 changed files
with
188 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,53 @@ | ||
# 实验二:用例建模 | ||
|
||
##1.实验目标 | ||
- 确定本门课程的选题 | ||
- 在个人选题添加个人的功能介绍 | ||
- 画出个人选题系统的用例图 | ||
- 编写用例规约 | ||
##2.实验内容 | ||
- 将个人选题提交至issue | ||
- 在StartUML画出用例图 | ||
##3.实验步骤 | ||
- 确定个人选题为:#2544 笔记本管理系统 | ||
- 功能需求: | ||
- 添加售卖的笔记本(数量、品牌) | ||
- 查询正在售卖的笔记本 | ||
- 创建本系统的用例图 | ||
- 添加一个管理者用例 | ||
- 添加用例功能:添加笔记本、查询笔记本 | ||
- 导出该用例图至本地仓库中 | ||
- 编写用例规约 | ||
##4.实验结果 | ||
|
||
![用例模型图](./Lab2_UseCaseDiagram.jpg) | ||
|
||
图一:笔记本管理系统的用例图 | ||
|
||
## 表1:查询笔记本 用例规约 | ||
|
||
用例编号 | UC01 | 备注 | ||
-|:-|- | ||
用例名称 | 查询笔记本 | | ||
前置条件 | 管理员进入列表页面 | *可选* | ||
后置条件 | | *可选* | ||
基本流程 | 1. 管理员点击**查询笔记本**按钮; | *用例执行成功的步骤* | ||
~| 2. 系统显示笔记本详情页面页面; | | ||
~| 3. 管理员输入笔记本名称,点击**查询**按钮 | | ||
~| 4. 系统检查笔记本名称信息,查询笔记本信息; | | ||
~| 5. 系统显示笔记本信息页面; | | ||
扩展流程 | 4.1 系统检查发现**笔记本名称填写有误**,**提示“未输入名称或笔记本名称填写有误”**; |*用例执行失败* | ||
|
||
## 表2:添加笔记本 用例规约 | ||
|
||
用例编号 | UC02 | 备注 | ||
-|:-|- | ||
用例名称 |添加笔记本 | | ||
前置条件 | 管理员进入笔记本列表页面 | *可选* | ||
后置条件 | | *可选* | ||
基本流程 | 1. 管理员点击**添加笔记本**按钮; |*用例执行成功的步骤* | ||
~| 2. 系统显示添加**笔记本**信息页面; | | ||
~| 3. 管理员输入**笔记本品牌和数量**,点击添加按钮; | | ||
~| 4. 系统保存该**笔记本信息**; | | ||
~| 5. 系统提示**录入笔记本信息**成功; | | ||
扩展流程 | 4.1 系统检查发现**笔记本信息**填写错误,**提示“笔记本信息填写错误或未填”** |*用例执行失败* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,21 @@ | ||
# 实验三:过程建模 | ||
|
||
##1.实验目标 | ||
- 掌握过程建模方法 | ||
- 掌握活动图的画法。(Activity Diagram) | ||
|
||
##2.实验步骤 | ||
- 在StarUML中新建一个Activity Diagram | ||
- 使用Activity Diagram 中的Toolbox工具建模 | ||
- 将建模图导出为jpg文件 | ||
|
||
##3.实验结果 | ||
|
||
![查询笔记本](./Lab3_ActivityDiagram1.jpg) | ||
|
||
图一:查询笔记本 | ||
|
||
|
||
![添加笔记本](./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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
# 实验四五 | ||
|
||
## 一、实验目标 | ||
|
||
1. 掌握类建模方法; | ||
2. 了解MVC或你熟悉的设计模式; | ||
3. 掌握类图的画法。(Class Diagram) | ||
|
||
## 二、实验内容 | ||
|
||
1. 基于MVC模式设计类; | ||
2. 设计类的关系; | ||
3. 画出类图 | ||
|
||
## 三、实验步骤 | ||
|
||
1. 确定设计模式,这里我选择MVC模式 | ||
2. 绘制类图 | ||
* 确定模型层(Model):根据用例涉及的数据设计模型类 | ||
* 确定控制器层(Controller):根据用例中实现界面与数据层之间交互的方法设计控制器类 | ||
* 确定视图层(View):根据用例中使用到的界面设计界面类 | ||
* 确定类之间关系 | ||
3. 检查类图及类之间的关系,确定以模型中的类能实现用例功能。 | ||
|
||
## 四、实验结果 | ||
|
||
![查询笔记本](./Lab4_ClassDiagram1.jpg) | ||
|
||
图一:查询笔记本 | ||
|
||
|
||
![添加笔记本](./Lab4_ClassDiagram2.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.
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. 掌握UML顺序图的画法; | ||
3. 掌握对象交互的定义与建模方法。 | ||
|
||
## 二、实验内容 | ||
|
||
1. 修正用例规约、活动图、类图 | ||
2. 根据用例规约、活动图、类图绘制顺序图 | ||
|
||
## 三、实验步骤 | ||
|
||
(1) 更新issue,完善用例功能 | ||
|
||
- 删除多余功能 | ||
- 更新用例图 | ||
(2) 创建顺序图 | ||
- 按照N+1规则和类建模图确定参与者管理员 | ||
- 创建参与者 | ||
- 根据活动图的相关顺序在顺序图中画出流程 | ||
- 绘制图中的消息 | ||
## 四、实验结果 | ||
|
||
![顺序图](./Lab6_SequenceDiagram1.jpg) | ||
图1 查询笔记本顺序图 | ||
|
||
![顺序图](./Lab6_SequenceDiagram2.jpg) | ||
图2 添加笔记本顺序图 | ||
|
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.
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 @@ | ||
# 实验七:状态建模 #7 | ||
|
||
## 1.实验目标 | ||
1. 掌握对象状态建模(状态图,Statechart)。 | ||
|
||
## 2. 实验内容 | ||
1. 根据用例模型和类模型,确定功能所涉及的系统对象; | ||
2. 在顺序图上画出参与者(对象); | ||
3. 在顺序图上画出消息(交互); | ||
|
||
## 3. 实验步骤 | ||
1. 确定主要对象为笔记本 | ||
2. 确定商品状态情况 | ||
3. 在starUML创建一个状态图建模,并创建相应的对象和状态 | ||
4. 根据活动图等完善状态图 | ||
|
||
##4.实验要点 | ||
|
||
1.寻找一个关键的对象; | ||
2.设计该对象的关键状态; | ||
- 对象的状态是:对象所表示的数据。如果数据发生变化,状态就是发生变化。 | ||
- 描述状态:形容词。 | ||
- 状态:在售得,售馨的 | ||
|
||
##5.实验结果 | ||
|
||
![状态图](./Lab7_StatechartDiagram1.jpg) | ||
|
||
图:笔记本状态图 | ||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 @@ | ||
#实验一 | ||
|
||
##实验目标 | ||
- 下载StarUML和git | ||
|
||
- 注册git账号 | ||
|
||
- 建立第一个UML模型图 | ||
|
||
- 使用git上传本地使用文件 | ||
|
||
- 再GitHub将git上的文件发送至老师账号 | ||
|
||
##实验内容 | ||
|
||
![第一个UML建模图](./model.jpg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.