Layered Data Flow Diagram for Software Engineering

Layered Data Flow Diagram for Software Engineering

1. Introduction

在这里插入图片描述

Data Flow Diagrams (DFDs) are a traditional visual representation of the information flows within a system. A DFD is a visual representation of the flow of information for a process or a system, and it shows how data enters and leaves the system, what changes the information, and where data is stored. The purpose of a DFD is to show the scope and boundaries of a system as a whole. DFDs provide a graphical representation of the system that aims to be accessible to computer specialists and non-specialist users alike, and the models enable software engineers, customers, and users to work together effectively during the analysis and specification of requirements.


2. Uses of Hierarchical Data Flow Diagrams

在这里插入图片描述

DFDs can be used to model a perspective of the system that is most readily understood by users – the flow of information through the system and the activities that process this information. Higher-level DFDs are partitioned into low levels, hacking more information and functional elements. Levels in DFD are numbered 0, 1, 2 or beyond. There are three levels in the data flow diagram, which are 0-level DFD, 1-level DFD, and 2-level DFD.

The level 0 data flow diagrams are the most basic, and they do not provide every little detail of the information or the structure; instead, it gives a broad view that can easily be understood. It is also known as a context diagram. It’s designed to be an abstraction view, showing the system as a single process with its relationship to external entities. It represents the entire system as a single bubble with input and output data indicated by incoming/outgoing arrows. The level 1 data flow diagrams provide more information than the Level 0 DFDs. It shows the general overview of the system. The single process node from the level 0 diagram is split into subprocesses in a level 1 data flow diagram. Additional data flows and data stores will be required as these processes are added to the diagram. The level 2 data flow diagrams are way too detailed, where processes from Level 1 DFDs are further broken down into more chunks. The objective is to create a map of every little detail of the system to help the engineers understand and work on it.


3. Drawing of Hierarchical Data Flow Diagram

在这里插入图片描述

The main components or symbols in the data flow diagram include rectangles, circles, and arrows, as well as short text labels. The data flow diagrams can range from simple, even hand-drawn process overviews to multi-level and in-depth that go deeper into how data is processed. The standard symbols for DFDs are derived from the electric circuit diagram analysis.

While creating a data flow diagram, there are a few thumb rules to remember:

  • Data cannot directly flow between two entities; it must flow from entity to process and vice versa.

  • Data cannot directly flow between two data stores; it must flow from the data store to a process and vice versa.

  • The diagram must include one input data flow and one output data flow.

  • All the processes in the system must be linked to a minimum of one data store or any other process.

To create a data flow diagram in software engineering, one must align the inputs and outputs, remember that each process must have an input and output, start mapping out the structure by creating a level 0 DFD with a single process, increase the diagram level by adding more details like processes, data flows, and data stores, label the diagram, add some shapes and lines or arrows to illustrate the whole structure, and add more details where needed.


4. Summary

A hierarchical data flow diagram is a type of data flow diagram that is divided into several layers, each unique to a specific process or data function. The levels in a hierarchical data flow diagram are numbered 0, 1, 2, or beyond. The higher-level data flow diagrams are partitioned into lower levels, revealing more information and functional elements. The level 0 data flow diagrams are the most basic, and they do not provide every little detail of the information or structure; instead, they give a broad view that can easily be understood. The level 1 data flow diagrams provide more information than the Level 0 DFDs, showing a general overview of the system. The level 2 data flow diagrams are way too detailed, where processes from Level 1 DFDs are further broken down into more chunks. The objective is to create a map of every little detail of the system to help the engineers understand and work on it.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
分层软件架构是指将软件系统按照不同的层次划分,并在各个层次之间建立清晰的接口,实现模块化、可维护和可扩展的软件设计。这种架构模式将系统划分为多个层次,每个层次都有明确定义的功能和职责。 分层软件架构通常包括以下几个层次: 1. 用户界面层:负责与用户交互,接收用户输入并向用户呈现输出。这一层通常包括图形用户界面(GUI)、命令行界面(CLI)等。 2. 应用逻辑层:负责处理业务逻辑,对用户输入进行验证和处理,并与数据层进行交互。这一层通常包括控制器、服务等。 3. 数据层:负责管理和存储数据,提供数据的增、删、改、查等操作。这一层通常包括数据库、文件系统等。 分层软件架构的优点包括: 1. 模块化:每个层次都有明确的职责,可以独立开发和测试。 2. 可维护性:对系统的改动只需在特定的层次进行,不会影响其他层次,减少了维护的成本。 3. 可扩展性:新增功能或改进现有功能时,只需更改相应的层次,不会对整个系统产生影响。 4. 可重用性:各个层次之间通过接口进行通信,可以对某一层次进行替换或重用。 5. 松耦合:各个层次之间通过接口进行通信,不会直接依赖于具体的实现,降低了代码间的耦合度。 总而言之,分层软件架构能够提高软件系统的可维护性、可扩展性和可重用性,是一种常用的软件设计模式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值