系统分析 建模

系统分析 建模

目录

  • 系统分析 建模
    • 一、用例建模
      • 1 用例图
      • 2 业务建模
    • 二、领域建模
      • 1 领域模型
      • 2 状态建模
    • 三、功能建模
      • 1 系统时序图
      • 2 包图
      • 3 部署图

一、用例建模

1 用例图

练习材料:订酒店

需求识别步骤:

  • 确定研讨的系统,使用用例图 System框 表示一个待研究的系统。
  • 识别 Actors:识别使用系统的主要参与者(primary actors)/角色(roles),使用用例图 actor符号 表示,通常放在系统的左边。
  • 识别系统依赖的外部系统:使用用例图 Neighboursystem框 表示用例依赖的外部系统、服务、设备,并使用构造型(Stereotype)识别,例如<< system >> << service >> << device >> 或 << sensor >>。
  • 识别用例(服务):识别用户级别用例(user goal level),以主要参与者目标驱动,收集主要参与者的业务事件。
  • 识别子功能级别的用例(sub function level)
    注:正确使用用例与子用例之间的关系
    << include >> 表示子用例是父用例的一部分,通常强调离开这个特性,父用例无法达成目标或失去意义!
    << extend >> 表示子用例是父用例的可选场景或技术特征。
    << include >> 箭头指向子用例;<< extend >> 箭头指向父用例。箭头表示的依赖关系!
  • 建立 Actor 和 Use Cases 之间的关联,使用 无方向连线,表示两间之间是双向交互的协议。

系统分析 建模_第1张图片

2 业务建模

UML活动图指南

二、领域建模

1 领域模型

建立领域模型步骤:

  • 查找概念类
  • 将它们作为UML类图中的类绘制
  • 添加必要的关联以记录需要保留一些内存的关系
  • 添加满足信息要求所需的属性

注意:识别名词短语。在域的文本描述中识别名词和名词短语,并将它们视为候选概念类或属性。

牧师与恶魔

系统分析 建模_第2张图片

2 状态建模

案例:simple digital watch

A simple digital watch has a display and two buttons to set it, the A button and the B button. The watch has two modes of operation, display time and set time. In the display time mode, hours and minutes are displayed, separated by a flashing colon.
The set time mode has two sub-modes, set hours and set minutes. The A button is used to select modes. Each time A is pressed, the mode advances in sequence: display, set hours, set minutes, display etc. Within the sub-modes, the B button is used to advance the hours or minutes once each time it is pressed. Buttons must be released before they can generate another event.

系统分析 建模_第3张图片
这个例子是一个循环,没有箭头指向终点的。

三、功能建模

1 系统时序图

系统分析 建模_第4张图片
案例:订酒店
系统分析 建模_第5张图片

2 包图

3 部署图

系统分析 建模_第6张图片

你可能感兴趣的:(系统分析 建模)