View on GitHub

软件系统分析与设计指南

The documents about Software Analysis & Design Team Work

领域建模 - 基础

练习材料: Asg-RH.pdf

1、课程练习

1.1 简单练习(已知数据)

学校管理系统要存储下列数据:

(1)数据表及字段

实体 属性
系名,系主任
学生 学号,姓名,学生所属系
教师 工作证号,姓名,教师所属系
研究生 专业方向
教授 研究领域
课程 课程号,名称,学分

(2)关系描述

学生每学期要选修若干门课程,每门课有一个考试成绩;某个学期开设的某门课程只有一个任教教师;一个教师只任教一门课;一个教师有能力讲授多门课程,一门课程也可以存在多位教师有能力进行讲授;每个研究生只能跟随一位教授。

:题目来源于网络,不保证合理性,仅用于练习

1.2 虚拟世界(熟悉)

对 Unix 文件系统领域建模

1.3 识别该游戏中的领域对象

请阅读游戏脚本:

Priests and Devils

Priests and Devils is a puzzle game in which you will help the Priests and Devils to cross the river within the time limit. There are 3 priests and 3 devils at one side of the river. They all want to get to the other side of this river, but there is only one boat and this boat can only carry two persons each time. And there must be one person steering the boat from one side to the other side. In the flash game, you can click on them to move them and click the go button to move the boat to the other direction. If the priests are out numbered by the devils on either side of the river, they get killed and the game is over. You can try it in many ways. Keep all priests alive! Good luck!

priests-and-devils-game

玩一下游戏

  1. 列出游戏中涉及的事物(Objects)
  2. 对类进行领域建模
  3. 识别行为规则与约束

领域模型与参考实现:Priests and Devils 牧师与恶魔

1.4 基于 RBAC 权限模块建模

2、理解领域模型与数据库设计之间的关系

1、 领域建模

如果你不知道数据建模 概念模型 逻辑模型 物理模型 之间区别,请先了解

3、大作业

大作业要求:

  1. 6.3 要求对 6.2 的正式或非正式用例建立 domain model。
  2. 7.2 仅要求 E-R 逻辑模型(如下图,按网上或以前数据库教材格式都不合格),请用推荐工具制作!!!

database-logical-model

【建议阅读】