You get a bonus - 1 coin for daily activity. Now you have 1 coin

DFD methodology. Notation, principles of modeling DFD modeling methodology.

Lecture



  DFD methodology.  Notation, principles of modeling DFD modeling methodology.

DFD is a common abbreviation for English. Data Flow Diagrams - data flow diagrams. This is the name of the methodology of graphical structural analysis, which describes the sources and data recipients external to the system, logical functions, data streams and data stores accessed.

The data flow diagram (DFD) is one of the main tools for structural analysis and design of information systems that existed before the wide distribution of UML. Despite the current shift in emphasis from the structural to the object-oriented approach to the analysis and design of systems, the “old” structural notation is still widely and effectively used both in business analysis and in the analysis of information systems.

The standard for describing business processes DFD - Data Flow Diagram is translated as a data flow diagram and is used to describe top-level processes and to describe actual data flows in an organization.

Main elements Features Uses, Pros and Cons
Dfd Job,
Streams,
External entities
Storage.
Does not set the sequence of work.
Displays how a business process converts informational and material flows.
Building a network of business processes;
Charting data flow diagrams

Usage and features of DFD charts

The created models of data flows of the organization can be used in solving such tasks as:

  1. identification of existing data warehouses (text documents, files, database management system - DBMS);
  2. definition and analysis of the data necessary to perform each function of the process;
  3. preparation for the creation of the organization's data structure model, the so-called ERD-model (IDEF1X);
  4. the selection of the main and auxiliary business processes of the organization.

Data flow diagrams show how each process converts its input data to output, and identifies the relationship between these processes. DFD presents the simulated system as a network of related work.

When building a DFD business process diagram, one should remember that this scheme shows material and information flow and in no case speaks of a temporal sequence of work , although in most cases the temporal sequence of work coincides with the direction of flow in the business process.

Graphic language modeling DFD diagrams

There are two DFD notation:

  DFD methodology.  Notation, principles of modeling DFD modeling methodology.

Requirements for the design of functions:

  1. Each function must have an identifier;
  2. The titles of the work should be formulated according to the following formula:

    Job title = Action + Object, on which the action is performed

    [note] For example, if this work is related to the action of selling products, then it should be called <Product sales> [/ note]
  3. The title of the work should be as short as possible (no more than 50 characters) and consist of 2-3 words. In complex cases, it is also recommended for each short title of the work to make a detailed description of it, which should be placed in the glossary.

Data flow requirements:

1. The name of the stream must be formulated according to the following formula:

Thread Name = Object representing the stream + Object Status

[note] If we are talking about products that have been shipped to a customer, then the stream can be called <Products shipped> or <Products shipped to a customer>. In this case, <Products> is the object that represents the stream, and <shipped to the customer> is the status of the object. [/ Note]

2. The name should be as short as possible and consist of 2-3 words.

Building a DFD model

The construction of the DFD model is based on the principle of decomposition. DFD-model includes three documents that refer to each other: Graphic diagrams, Mini-specification, Data Dictionary.

1. Context Diagram or Context Diagram Hierarchy

The first step is to build a contextual diagram. The diagram has a star topology, in the center of which is the so-called main process, connected with receivers and sources of information, through which users and other external systems interact with the system.

  DFD methodology.  Notation, principles of modeling DFD modeling methodology.

However, in some cases it is more expedient and clearer to build several context diagrams with a hierarchy:

  • the presence of a large number of external entities (ten or more);
  • distributed nature of the system;
  • multi-functionality of a system with an already established or identified grouping of functions into separate subsystems.

In this context, the top level diagram contains not the only main process, but a set of subsystems connected by data streams. Context diagrams of the next level detail the context and structure of the subsystems.

After constructing the context diagrams, the resulting model should be checked for completeness of the initial data about the system objects and the isolation of the objects (lack of information links with other objects).

2. Detailing the context diagram

For each subsystem that is present in context diagrams, its refinement is performed using the DFD diagram. Each process, in turn, can be detailed using a separate diagram or a mini-specification.

  DFD methodology.  Notation, principles of modeling DFD modeling methodology.

When detailing the following rules should be followed:

  • balancing rule - when detailing a process, a child diagram as external data sources / receivers can have only those components (subsystems, processes, external entities, data accumulators) with which the corresponding process in the parent diagram has an information connection;
  • numbering rule - when detailing processes, their hierarchical numbering should be supported.
  • the rule of seven - in order for the diagram to be easily read, the number of functions on the diagram should not be more than seven.

[note] For example, processes detailing process number 12 receive the numbers 12.1, 12.2, 12.3, etc. [/ note]

3. Mini-specification

Mini-specification is a document that describes in detail the logic of the process. It contains the process number, lists of input and output data, the process body - a detailed function algorithm that converts input data streams to output.

The minispecification is the final vertex of the DFD model hierarchy. The decision to complete the process specification and the use of a mini-specification is made by the analyst based on the following criteria:

  • the process has a small amount of input and output data streams (2-3 flows);
  • the process can be described as a sequential algorithm;
  • the process performs the only logical function of converting input information to output;
  • The logic of the process can be described as a mini-specification of a small volume (no more than 20-30 lines).

4. Data Dictionary

The data dictionary defines the structure and content of all data streams and data collectors that are present in the diagrams.

For each stream, the dictionary stores: stream name, type, attributes.

Type of Attributes
  1. Simple / group (combining multiple threads)
  2. Internal External;
  3. Data flow / control flow;
  4. Continuous (accepting any values ​​within the range) / discrete (accepting specific values)
  1. Names are the synonyms of the stream;
  2. In the case of a group stream, all the threads that the thread merges;
  3. Flow units;
  4. Value range and typical value with information on handling extreme situations;
  5. The list of values ​​and their meaning for a discrete stream;
  6. List of chart numbers in which the flow occurs;
  7. The list of streams to which the stream enters (if in turn enters another group stream);
  8. comments.

Check DFD model

After building a complete system model, it must be checked for completeness and consistency.

A model is considered complete if all its objects (subsystems, processes, data streams) are described and detailed in detail.

A model is considered consistent if all the data streams and data collectors comply with the information retention rule : all incoming data should be read, and all read data should be recorded.


Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Web site or software design

Terms: Web site or software design