# 结构化分析

结构化分析是一种软件工程方法，用于构建系统需求与数据流的图形模型，从而在做出任何设计决策之前就明确系统必须做什么。它强调说明“做什么”而非“怎么做”，以数据流图（DFD）和数据字典作为两大主要文档工具。<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> 该方法涵盖从初步理解问题到规格说明与高层设计的全部活动，并体现四个主要概念：数据流图、数据字典、数据存储结构化和过程逻辑表示。<sup>[2](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/structured-systems-analysis)</sup> 其动机在于传统自然语言需求说明的失败：正如对奠基性论文的评论所言，“即使是最好的结构化编程代码，如果程序员被要求去解决错误的问题，也无济于事。”<sup>[3](https://dl.acm.org/doi/10.5555/1241515.1241537)</sup>

| 关键事实 | 详情 |
|---|---|
| 目的 | 说明“做什么”，而非“怎么做”<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> |
| 核心制品 | 数据流图、数据字典、数据存储结构化、过程逻辑表示<sup>[2](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/structured-systems-analysis)</sup> |
| DFD符号 | 恰好四种：外部实体、过程、数据存储、数据流<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> |
| 规模纪律 | 罗斯准则：任何事物都用六块或更少的块来表达；米勒的7±2法则为分层提供依据<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup><sup> • </sup><sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> |
| 奠基性出版物 | 罗斯（1977）与罗斯和肖曼（1977），《IEEE软件工程汇刊》；德马科（1979）；盖恩与萨森（1979）<sup>[5](https://doi.org/10.1109/tse.1977.229900)</sup><sup> • </sup><sup>[6](https://archive.org/details/structuredanalys0000dema)</sup><sup> • </sup><sup>[7](https://dl.acm.org/doi/10.1145/130226.148055)</sup> |
| 实时扩展 | 沃德–梅勒（1985）与哈特利（1987）增加了控制流与状态机<sup>[8](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)</sup> |
| 活的遗产 | DFD至今仍是STRIDE安全威胁建模中的标准表示法<sup>[9](https://link.springer.com/article/10.1007/s10664-026-10837-z)</sup> |

## 工作原理

该方法建立在自顶向下功能分解之上。分析员将系统建模为图的层次结构，每张图只展示主题的一个有限部分；分析的输出是一个按层次组织起来的独立图结构，称为SA模型。<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup> 分解受罗斯准则支配：“对于任何值得谈论的事物，凡是值得说的内容，都必须用六块或更少的块来表达”，并递归地加以应用。<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup> 一个互补的心理学界限是米勒定律，即人类在同时处理超过7±2个事物时会失去控制，这为分层提供了依据，使每张图保持可管理。<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup>

分析员将系统的逻辑功能描述与其最终物理形式分离开来；逻辑模型可以实现为人工系统、计算机系统或两者的混合，而在用户联络人员、系统分析员和管理层之间达成共识也是工作的一部分。<sup>[3](https://dl.acm.org/doi/10.5555/1241515.1241537)</sup>

## 如何实施

DFD恰好使用四种符号：外部实体（源／汇）、过程、数据存储和数据流。过程用祈使句命名并分层编号：顶层过程为1、2等，展开后的子过程编号为2.1、2.2，依此类推。<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> 当一个过程展开为子图时，逐层平衡要求子图必须交代父过程的每一股流入和流出。<sup>[1](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)</sup> 数据字典中，与系统相关的所有数据元素都以与模型其余部分相同的逻辑自顶向下方式定义，它是确保分层DFD之间一致性、即父子图“平衡”的工具。<sup>[3](https://dl.acm.org/doi/10.5555/1241515.1241537)</sup><sup> • </sup><sup>[10](https://www.scitepress.org/Papers/2015/53421/53421.pdf)</sup>

每个基本过程都由一份过程说明（或称“迷你说明”）来记录，用带有条件和迭代构造的结构化自然语言书写。<sup>[10](https://www.scitepress.org/Papers/2015/53421/53421.pdf)</sup> 过程逻辑也可以用程序设计描述语言、判定表或结构化英语来表达；当需要检查许多条件时，判定表更受青睐。<sup>[2](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/structured-systems-analysis)</sup><sup> • </sup><sup>[11](https://www.tutorialspoint.com/system_analysis_and_design/system_analysis_and_design_structured.htm)</sup> 数据存储结构化技术基于数据的关系模型，展示每个存储如何被访问和组织。<sup>[2](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/structured-systems-analysis)</sup> DFD分为两类：物理图依赖于实现，展示当前系统如何运作；逻辑图则与实现无关。

## 起源

结构化分析有两条谱系。道格拉斯·T·罗斯（Douglas T. Ross）与K·E·肖曼（K. E. Schoman）于1977年在《IEEE软件工程汇刊》上发表了《用于需求定义的结构化分析》，<sup>[12](https://doi.org/10.1109/tse.1977.229899)</sup> 罗斯同年在该刊发表了《结构化分析（SA）：一种交流思想的语言》。<sup>[5](https://doi.org/10.1109/tse.1977.229900)</sup> 罗斯的论文将SA呈现为一种分层的、自顶向下的图形语言，其基本构件是一个有四条边的盒子，分别称为输入、控制、输出和机制；SADT（结构化分析与设计技术）是SofTech公司基于SA的专有方法论的名称，当时该方法论已经过近三年的深度开发、应用、教学和使用。<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup>

第二条谱系是尤登学派。《结构化分析与系统规格说明》一书由新泽西州恩格尔伍德克利夫斯的普伦蒂斯-霍尔出版社作为“尤登丛书”出版。<sup>[6](https://archive.org/details/structuredanalys0000dema)</sup> 《结构化系统分析》则是独立发展起来的。<sup>[7](https://dl.acm.org/doi/10.1145/130226.148055)</sup>

## 变体

各学派之间最主要的记法差异在于图形：德马科及其在尤登的同事偏好圆形，或称“气泡”，而SofTech团队偏好矩形。<sup>[3](https://dl.acm.org/doi/10.5555/1241515.1241537)</sup> 在德马科的记法中，DFD是一个有向图，包含三种节点类型——过程、文件和外部实体，由数据流边连接。<sup>[10](https://www.scitepress.org/Papers/2015/53421/53421.pdf)</sup> 盖恩与萨森的变体与德马科的主要区别在于记法，其图标注规则更详细，增加了物质流，且不要求单一过程的上下文图。<sup>[8](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)</sup> 在SADT中，事物和事件都用完全相同的四边盒记法来图示，使数据分解与活动分解互为对偶；控制接口约束从输入到输出的变换，使其仅在适当情况下适用，而机制则是支撑而非接口。<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup>

普通DFD不表达控制流：它们既不规定过程激活规则，也不规定过程顺序。<sup>[10](https://www.scitepress.org/Papers/2015/53421/53421.pdf)</sup> SA/RT复合方法增加了控制流图、表示有限自动机的手段（状态转换图与状态转换表），以及表示时间效率需求的手段（如时间图）。相关的SA版本是德马科1978和盖恩1979，相关的SA/RT版本是沃德1985（引入控制过程、事件流和缓冲区）和哈特利1987（使用控制流建模和过程说明）。<sup>[8](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)</sup> SA/RT识别两类外部时间需求：响应时间，即从接收事件到系统反应之间的最大时长；重复率，即相关外部信号或重复系统过程的频率。<sup>[8](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)</sup> 沃德／梅勒和哈特利／皮尔拜被视为结构化分析的实时扩展，状态模型通常与这些技术相关联。<sup>[13](http://www.ooatool.com/docs/Migr96.pdf)</sup>

## 应用

分析的下游是结构化设计，其结构图描述程序的模块化组织。这一交接在面向对象社区受到批评，因为记法不同（数据流图对结构图），且两个阶段之间的过渡“不顺畅”。<sup>[13](http://www.ooatool.com/docs/Migr96.pdf)</sup> 尽管如此，采用仍然广泛：SofTech将SADT应用于涉及人、机器、软件、硬件、数据库、通信规程和财务的规划、分析与设计问题，<sup>[4](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)</sup> 而SA和SA/RT支持从系统级到软件和硬件需求的需求分析。<sup>[8](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)</sup> 当今最持久的工业用途是在安全领域：DFD仍是STRIDE中的标准图形表示法，STRIDE是微软开发的威胁分析方法论，已在实践中使用，例如在汽车行业。<sup>[9](https://link.springer.com/article/10.1007/s10664-026-10837-z)</sup>

## 局限与替代方案

DFD是图形的、分层的、非形式的；由于缺乏精确语义，DFD即使与实体-关系图结合，也不能作为系统功能的形式化规格说明。1993年对三家组织的实地研究发现，尽管DFD被使用并与其他工具结合，设计人员并未遵循该方法规定的分析与设计程序，规范文献与实践之间存在差距；同一篇再评价还批评尤登／德马科学派对人在组织中作用的狭隘、机械的看法。<sup>[7](https://dl.acm.org/doi/10.1145/130226.148055)</sup> 结构化方法论被描述为不足以应对复杂的、非结构化的问题，实际问题与其表示之间存在巨大差距。<sup>[14](https://peradaban.um.edu.my/index.php/MJCS/article/download/5774/3503/12821)</sup>

与面向对象分析相比，根本区别在于侧重点：OO模型关注对象与结构，而SADT模型关注过程与行为。<sup>[15](https://www.scitepress.org/Papers/2007/13366/13366.pdf)</sup> 一项以研究生为对象的受控实验发现，在开发和维护任务中，应用这两种技术所需时间没有显著差异。<sup>[15](https://www.scitepress.org/Papers/2007/13366/13366.pdf)</sup> 遵循菲奇曼与凯默勒的观点，端到端过程建模在结构化分析中总是存在，而在OOA中很少存在。<sup>[14](https://peradaban.um.edu.my/index.php/MJCS/article/download/5774/3503/12821)</sup> 两种范式能否结合曾在出版物上引发争论：唐纳德·法尔斯密斯（Donald Firesmith）在《ACM SIGAda Ada通讯》（1991）上主张结构化分析与面向对象开发不兼容，<sup>[16](https://doi.org/10.1145/122012.122013)</sup> 而肯·舒梅特（Ken Shumate）同年同刊主张结构化分析与面向对象设计是兼容的。<sup>[17](https://doi.org/10.1145/122025.122026)</sup> P·T·沃德（P. T. Ward）此前已在《IEEE软件》（1989）上发表了一种将面向对象与结构化分析和设计相结合的方法。<sup>[18](https://doi.org/10.1109/52.23134)</sup>

## References

1. [Structured Analysis & Data Flow Diagrams (Lecture 3, Dr. Fred Grossman, Pace University)](http://csis.pace.edu/~grossman/is621/lectures/is621_lecture3.pdf)
2. [structured systems analysis (A Dictionary of Computing, Oxford)](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/structured-systems-analysis)
3. [Structured analysis for requirements definition (Ross and Schoman, in Classics in Software Engineering, Yourdon Press, 1979, pp. 363-386)](https://dl.acm.org/doi/10.5555/1241515.1241537)
4. [Structured Analysis (SA): A Language for Communicating Ideas (D. T. Ross, IEEE Transactions on Software Engineering, SE-3(1), 1977, pp. 16-34)](https://userweb.cs.txstate.edu/~rp31/papersSP/structuredAnalysisRoss.pdf)
5. [D.T. Ross (1977). Structured Analysis (SA): A Language for Communicating Ideas. IEEE Transactions on Software Engineering.](https://doi.org/10.1109/tse.1977.229900)
6. [Structured analysis and system specification (DeMarco, Tom, Englewood Cliffs, N.J.: Prentice-Hall, 1979)](https://archive.org/details/structuredanalys0000dema)
7. [A reappraisal of structured analysis: design in an organizational context (Bansler & Bødker, ACM Transactions on Information Systems, 1993)](https://dl.acm.org/doi/10.1145/130226.148055)
8. [GDPA Methods Standard, section 2.5: The complex methods SA and SA/RT](https://hcloud.softether.net/gdpa/methods_d/m-sart.htm)
9. [Less is more: usefulness of data flow diagrams and large language models for security threat validation (Empirical Software Engineering, 2026)](https://link.springer.com/article/10.1007/s10664-026-10837-z)
10. [Supporting the Validation of Structured Analysis Specifications ... by Test Path Exploration (SCITEPRESS, 2015)](https://www.scitepress.org/Papers/2015/53421/53421.pdf)
11. [System Analysis and Design, Structured Analysis (TutorialsPoint)](https://www.tutorialspoint.com/system_analysis_and_design/system_analysis_and_design_structured.htm)
12. [D.T. Ross, K.E. Schoman (1977). Structured Analysis for Requirements Definition. IEEE Transactions on Software Engineering.](https://doi.org/10.1109/tse.1977.229899)
13. [Migration from Structured to OO Methodologies (Shlaer-Mellor)](http://www.ooatool.com/docs/Migr96.pdf)
14. [Hybrid structured/OO development model (Malaysian Journal of Computer Science)](https://peradaban.um.edu.my/index.php/MJCS/article/download/5774/3503/12821)
15. [A comparison of structured analysis and object oriented analysis (empirical study, SADT vs RUP/UML)](https://www.scitepress.org/Papers/2007/13366/13366.pdf)
16. [Donald Firesmith (1991). Structured analysis and object-oriented development are not compatible. ACM SIGAda Ada Letters.](https://doi.org/10.1145/122012.122013)
17. [Ken Shumate (1991). Structured analysis and object-oriented design are compatible. ACM SIGAda Ada Letters.](https://doi.org/10.1145/122025.122026)
18. [P.T. Ward (1989). How to integrate object orientation with structured analysis and design. IEEE Software.](https://doi.org/10.1109/52.23134)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Development methodologies and project management

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/structured-analysis

English original: https://www.edgepedia.org/structured-analysis
