The drawing of the flow chart

Source: Internet
Author: User

The drawing of the flow chart

The data flow diagram is also known as the flowchart Date flow diagram, DFD, is a graphical tool that facilitates the user's understanding and analysis of the system data flow, and he is free from the system and details, accurately describing the function, input, output and data storage of the narrative system, is an important part of the system logic model.

Basic components of the streaming diagram

Data flow: Consists of a set of fixed components of data that represent the flow of data. It is important to note that data flow is described in the streaming diagram, not control flow. In addition to the flow of data to or from the data store does not have to be named, every data flow must have an appropriate name to reflect the meaning of the data stream.

Processing: The processing description describes the transformation between the input data stream and the output data, that is, the input data flows through what processing becomes the output data. Each processing has a name and a number. The number can reflect the level of the processing in the hierarchical flow chart and which of the diagram, you can see it is from which processing decomposition of sub-processing.

Data storage: Data storage represents data that is temporarily stored. Each data store has a name.

External entity: An external entity is a person or organization that exists outside the software system, and he points to the origin of the data or the data that the system produces.

External solid processing Data flow

Design method of layered streaming chart

The first step is to draw the subsystem's input and output

The entire system is considered a large processing, and then the input and output graph can be drawn based on which external entities the data system receives the data stream from, and the system sends the data to those external entities. This picture is called the top-level diagram.

The second step is to draw the inside of the subsystem

The processing of the top-level graph is decomposed into several processing, and the data stream is used to connect these processes, so that the input data of the top-level graph is processed by several processing, which becomes the output data stream of the top-level graph. This picture is called a 0-layer diagram. Drawing a flow chart from a process is the decomposition of processing.

The process can be determined in the following ways:

A process should be drawn where the composition or value of the data flow changes, and the function of this process is to achieve this change, and also to determine the processing according to the function of the system.

Methods for determining data flow

When a user treats a number of data as a single unit (the data arrives and is processed together), the data can be viewed as a stream of data.

About data storage

For some data to be used at a later time, it can be organized into a data store to represent.

The third step, the interior of the painting process

Each process is treated as a small system, and the input and output data stream of the processing is regarded as the input and output stream of the small system. This makes it possible to draw a DFD diagram of the processing of each small system like a 0-layer drawing.

The fourth step, the decomposition diagram of the sub-processing

The third step of the decomposition of the DFD diagram in each of the processing, the third step of the decomposition process, until the diagram has not been decomposed in the processing is simple enough (that is, non-decomposition). At this point, a set of hierarchical streaming diagrams has been obtained.

Fifth step, the flow chart and processing number

For a software system, its streaming diagram may have many layers, each layer has a lot of pictures. To differentiate between different processes and different DFD sub-graphs, each graph should be numbered for easy management.

The top-level chart has only one sheet, and the processing in the figure is only one, so it doesn't have to be numbered.

The 0-layer chart has only one picture, the processing numbers are 0.1, 0.2 、..., or 1, 2, respectively.

A sub-graph is a processing number that is decomposed in the parent image.

The processing number in the sub-chart is composed of a figure number, a dot, and a sequence number, such as 1.12,1.3 and so on.

Issues to be aware of:

1. Names should be appropriate for data flow, processing, data storage, and external entities, and the name should reflect the actual meaning of the ingredient and avoid the use of empty names.

2. Draw a streaming chart, not draw control flow.

3. A processed output data stream should not have the same name as the input data stream, in a timely manner their composition is exactly the same.

4. Agree that one processing has multiple streams of data flow and there is also a processing, also agreed that a processing has two of the same output traffic flow to different processing.

5. Maintain the balance between the parent and the sub-graphs. In other words, the input and output stream of a processing in the parent diagram must be the same as the number and name of the input and output stream of his sub-graph. It is worth noting that, assuming that one input (output) stream in the parent graph corresponds to several input (output) streams in the child graph, the data items that make up the data flow in the sub-graph are exactly the data flow in the parent graph, and they are still balanced.

6. In the top-down decomposition process, if a data store first appears, it is only related to a processing, then this data storage should be used as the internal file of the processing without drawing.

7. Maintain data conservation, that is, the data in the entire output stream of a processing must be able to be obtained directly from the output stream of the processing, or through the processing can produce data.

8. Each processing must have both an input data stream and an output data stream.

9. In the entire data flow diagram, each datastore must have both a read and a written stream of data. But in a certain sub-graph, there may be only a read or no write, or just a write or no read.

Pay special attention to the above points, are the objectives of the exam. The contents of the exams in the last two years are concentrated on the 2, 5, 6, 8 points.

Like what:

Streaming Diagram (DFD)

The data flow diagram, or DFD, is a tool used in the SA method to represent the logical model of a system, which graphically depicts the process in which it flows and processes the system, since it only reflects the logical functions that the system must complete, so it is a functional model.

is a plane ticket reservation system Data flow chart, it reflects the function is: the travel agent to book The Passenger information (name, age, unit, identity card number, travel time, destination, etc.) into the ticket reservation system. The system arranges flights for passengers and prints out ticket receipt (with accounts payable). Passengers on the day before the departure of the aircraft with the receipt of tickets to collect tickets, the system inspection is correct, the output of air tickets to passengers.

3.3.1 Basic Graphic symbols

The streaming diagram has four basic graphical symbols:

: arrows, indicating data flow;

0: Round or oval, indicating processing;

=: Parallel bars, indicating data storage;

-: box that represents the source or end point of the data.

(1) Data flow. A data stream is a path of data propagation within a system, and therefore consists of data fixed by a set of components. If the booking is made by the passenger name, age, unit, ID number, date, destination and other data items. Because the data flow is a flow of data, so there must be flow, in addition to the data stored between the data flow is not named, the data stream should be a noun or noun phrase named.

(2) processing (also known as data processing). Perform certain operations or transformations on the data stream. Each processing also must have the name, generally is the verb phrase, concisely describes the narrative finished what processing. In a layered streaming diagram, processing should also be numbered.

(3) data storage (also known as a file), refers to the temporary preservation of data, it can be a database file or whatever form of data organization.

(4) The data source point or end point is an entity in the external environment of the software system (including personnel, organization or other software systems), collectively referred to as external entities. Generally just the top floor diagram of today's streaming diagram.

3.3.2 steps to draw a streaming chart

(1) First draw the system input and output, that is, first draw the top-level streaming chart. The top laminar flow diagram consists of only one processing, which represents the system being developed, and then considers what input data and output data streams the system has. The role of the top-level diagram is to indicate the scope of the system being developed and the data exchange relationship between it and the surrounding environment. A top-level map of the airplane ticket reservation system.

(2) Painting system inside, that is, drawing the underlying streaming chart. Machining that is no longer decomposed is called basic machining. The number of layers is generally numbered from 0, which is used from top to bottom, by the principle of outward internal. When drawing the 0-layer Data flow chart, the system of decomposing top-laminar graph is a subsystem, which decides the interface and activity relationship between each subsystem. For example, in the above ticket booking system according to the function can be divided into two parts, part of the travel agency booking tickets, as well as some of the passengers to collect tickets, two parts through the ticket file data storage links, 0 Layer flow chart 3-4.

(3) Precautions.

① named. Whether data flow, data storage or processing, proper naming makes it easy to understand what it means.

② draws the data stream instead of the control flow. The data flow reflects what the system "does" and does not reflect "what to do", so the data flow name on the arrows can only be a noun or noun phrase, and the entire graph does not reflect the sequence of operations.

③ generally do not draw material flow. Data flow reflects the data that can be processed by computer, not physical, so the flow chart of the target system is generally not to draw material stream.

④ each processing has at least one input data stream and one output data stream, reflecting the source of this processing data and the results of processing.

⑤ number. Suppose a flow chart in a processing decomposition into a flow chart, the upper picture is the parent graph, the direct lower graph is a sub-graph. The sub-graph and all its processing should be numbered.

⑥ the balance of the parent and child graphs. The input/output data stream of the sub-graph the input/output data stream for the processing must be consistent, which is the balance between the parent and the sub-graph.

⑦ Local data storage. When the data storage in a layer flow chart is not the external interface of the corresponding machining in the parent graph, but only the data interface between some machining in this figure, it is said that the data is stored as local data storage.

⑧ improve the ease of understanding of the flow chart. Attention to reasonable decomposition, to a processing decomposition into several functions of the relatively independent sub-processing, which can reduce the number of input and output data flow between processing, add the understanding of the dataflow diagram.

Figure 3-6 shows a DFD equivalent to figure 3-2 drawn with this set of symbols.

3.3.3 Example of a flowchart


The drawing of the flow chart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.