系统分析与设计——领域模型作图实例

工具——UMLet

网盘下载,提取码:i3k5

案例——牧师与魔鬼

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!

  1. 找出名词分类(实体,属性):game,preist,devil,side,river,boat,在UMLet中导出如下图:系统分析与设计——领域模型作图实例_第1张图片
  2. 根据文中语句构建两个实体关系:eg:游戏中共有3个牧师,如下图:系统分析与设计——领域模型作图实例_第2张图片
  3. 构建实体集之间的关系得到最终结果如下图所示:系统分析与设计——领域模型作图实例_第3张图片

你可能感兴趣的:(系统分析与设计)