当前位置:网站首页>数据流图,数据字典
数据流图,数据字典
2022-07-07 12:12:00 【sinat_36789271】
数据流图
一、基本图形符号

二、设计原则:我们重点研究数据流图的三大设计原则。这三大设计原则是解题的法宝。
1、父图与子图的平衡原则
子图的输入输出数据流同父图对应加工的输入输出数据流必须一致,此即父图与子图的平衡。

图1,不符合父图与子图的平衡原则

图2,符合父图与子图的平衡原则
在图1中,我们能够看到父图中有输出流:提货单。可是子图中没有与之相应的输出流。
2、数据守恒原则
对不论什么一个加工来说,其全部输出数据流中的数据必须能从该加工的输入数据流中直接获得。或者说是通过该加工能产生的数据。
(1)外部实体与外部实体之间不存在数据流

(2)外部实体与数据存储之间不存在数据流

(3)数据存储与数据存储之间不存在数据流

3、守恒加工原则
对同一个加工来说,输入与输出的名字必须不同样。即使它们的组成成分同样。
1. 对于每一个加工,必须既有输入数据流。又有输出数据流。
2. 数据流与加工有关,且必须经过加工。
对于加工。输入是A,输出还是A,也违反了数据守恒原则,输入与输出一样,加工没有作用。

对于加工,仅仅有输入,没有输出,违反了数据守恒原则。

对于加工,仅仅有输出。没有输入,违反了数据守恒原则。比方。人不可能一直大小便。但不吃饭。

三、数据流经过加工之后,数据流的关系。如图:

数据字典
数据流图描写叙述了系统的分解。但没有对图中各成分进行说明。数据字典是对数据流图中出现的全部被命名的图形元素在数据字典中作为一个词条加以定义,使每一个图形元素的名称都有一个确切的解释。

在数据字典中有4种类型的条目:
1、数据项条目:通常为数据项的值类型,同意的取值范围等
2、数据流条目:给出某个数据流的定义,列出该数据流的各组成数据项。
3、文件条目:对文件的定义。列出期组成的数据项
4、加工条目:对每一个不能再分解的加工做说明。包含加工的激发条件。加工的逻辑,优先级等等。
应用
以下我看一道选择题,这道题全然能体现上面全部的原则。最具代表性。 
我们先分析一下。无非就是那三大原则:依据这些原则。DF2违背了数据守恒原则,外部实体与外部实体之间不存在数据流,DF6违背了数据守恒原则,外部实体与数据存储之间不存在数据流,DF7违背了数据守恒原则。数据存储与数据存储之间不存在数据流;P1和P3缺少数据流。违背了守恒加工原则,P4的输入输出数据流同样。违背了守恒加工原则。因此共同拥有6个错误。
边栏推荐
- Common response status codes
- 2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
- Excuse me, I have three partitions in Kafka, and the flinksql task has written the join operation. How can I give the join operation alone
- How to check the ram and ROM usage of MCU through Keil
- Enregistrement de la navigation et de la mise en service du robot ROS intérieur (expérience de sélection du rayon de dilatation)
- 请问,redis没有消费消息,都在redis里堆着是怎么回事?用的是cerely 。
- Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
- Is the spare money in your hand better to fry stocks or buy financial products?
- Build a secure and trusted computing platform based on Kunpeng's native security
- Realization of search box effect [daily question]
猜你喜欢

Leecode3. Longest substring without repeated characters
![Supply chain supply and demand estimation - [time series]](/img/2c/82d118cfbcef4498998298dd3844b1.png)
Supply chain supply and demand estimation - [time series]

2022-7-6 Leetcode 977. Square of ordered array

AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?

. Net core about redis pipeline and transactions

数据库系统概论-第一章绪论【概念模型、层次模型和三级模式(外模式、模式、内模式)】

LeetCode简单题分享(20)

"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?

最长上升子序列模型 AcWing 482. 合唱队形

干货|总结那些漏洞工具的联动使用
随机推荐
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生
Laravel Form-builder使用
Excusez - moi, l'exécution a été réussie lors de l'utilisation des données de puits SQL Flink à Kafka, mais il n'y a pas de nombre dans Kafka
2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf
使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
PostgreSQL array type, each splice
wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
Toraw and markraw
Cesium 已知一点经纬度和距离求另一个点的经纬度
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
FCOS3D label assignment
Leecode3. Longest substring without repeated characters
c#利用 TCP 协议建立连接
The difference between memory overflow and memory leak
Common response status codes
Details of redis core data structure & new features of redis 6
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka