1 / 19

软件工程 实验五

软件工程 实验五. 周志钊 zhouzhizhao08@163.com. Power Designer 建立概念数据模型. 建立“超市收银系统”实体 - 关系图: 启动 Sybase | Power Designer File | New model 选择模型类型 可供创建的模型有:概念数据模型、物理数据模型、 XML 模型等。 选择概念数据模型 Conceptual Data Model 如下图:. Power Designer 建立概念数据模型. Power Designer 建立概念数据模型.

Download Presentation

软件工程 实验五

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 软件工程实验五 周志钊 zhouzhizhao08@163.com

  2. Power Designer 建立概念数据模型 • 建立“超市收银系统”实体-关系图: • 启动Sybase | Power Designer • File | New model 选择模型类型 • 可供创建的模型有:概念数据模型、物理数据模型、XML模型等。 • 选择概念数据模型Conceptual Data Model如下图:

  3. Power Designer 建立概念数据模型

  4. Power Designer 建立概念数据模型 • 将Palette中的实体(Entity)拖放到工作区。 • 选择Palette中的箭头,双击工作区中的实体框,在属性定义对话框中设置实体的名称、数据名、描述等信息。 • 设置名称为“顾客”,Code为“Customer”,Comment为“购买商品的顾客”,最大客户人数为20000。

  5. Power Designer 建立概念数据模型

  6. Power Designer 建立概念数据模型 • 定义实体属性界面中每一行为实体的一个属性,包括属性名、属性代码、数据类型、使用域、是否强制(M)、是否为主键(P)、是否显示属性(D)。 • 定义顾客实体属性如下图: • 分别完成对“销售”、“商品”、“付款”、“商品目录”实体的定义如图。

  7. Power Designer 建立概念数据模型

  8. Power Designer 建立概念数据模型

  9. Power Designer 建立概念数据模型 • 定义关系:在 Palette工具栏选择关系Relationship图标,在相关联的两个实体中的一个上单击,拖动到另一个上释放。 • 实体之间的关系分为一对一、一对多、多对多三种。连线开叉一端代表多,不开叉一端代表一,带小圆圈的一端代表可选,即可能有或没有。参见书:p74-75。 • 定义关系属性:双击关系图形符号,打开关系属性定义窗口。

  10. Power Designer 建立概念数据模型

  11. Power Designer 建立概念数据模型 定义其他属性关系,结果如图所示。

  12. Power Designer 建立概念数据模型 • 检查模型:Tools | Check Model

  13. Power Designer 建立概念数据模型 • 练习:一个试题出卷系统的实体关系模型如下,试用Power Designer 建立它的E-R图。 各实体的属性给出如下:

  14. Power Designer 建立概念数据模型 • 试题:试题号、内容、答案、题型、难度、使用情况 • 题目:试题号、内容、答案、题型、难度、试卷号 • 试卷:编号、课程名称、课程性质、院系、年级、出卷人、时间、难度 • 出卷要求:课程名称、总分、难度、知识点、总题型

  15. 建立业务处理模型 • File | New | Business Process Model • 单击Palette工具栏起点按钮,创建起点 • 双击起点设置起点属性

  16. 建立业务处理模型 • 创建组织单元泳道:

  17. 建立业务处理模型 • 通过在工具栏选择决策图形(Decision)、处理过程(Process)、处理过程流(Flow)等按钮可以选择相应的图形,双击可出现相应图形的属性设置对话框。

  18. 建立业务处理模型 • 创建终止点。 • 单击工具栏中的资源按钮(Resource),可创建资源图标。 • 练习:绘制一个完整的图书馆系统的业务处理流程图。

  19. 面向对象建模 • 了解基于UML进行面向对象建模的方法和各类视图及其作用。 • 了解关于使用Power Designer 描述面向对象系统模型的方法、步骤,并与采用ROSE等CASE工具进行设计的方法进行比较。

More Related