Username:
Password:
Purpose
To describe the functionality in (a part of) a system and the corresponding exchanges of data between the functions.
Example
Description
The DFD diagram style is a view of units of functionality and the exchanges of data between these units. The diagrams are hierarchical, often starting at a Context Diagram showing the entire system or subsystem as a single process with the exchanges of information between it and its environment.
Functionality is expressed in circular symbols called transformations or processes (colloquially, bubbles ). Flows of data between processes are called flows and are drawn as arcs with arrowheads indicating their direction. There are two fundamental types of processes and flows, data and control. Data flows convey information whilst control flows convey simply a status indication or signal.
Processes that operate only on control flows are called control processes, and can be defined by finite-state-machines depicted in State Transition Diagrams (STDs). They can also have a definition, held in a process specification.
Processes that operate on data and/or control flows are called data processes . They can also have a definition, and can be decomposed into a lower-level diagram that refines, or defines, their content. In Cradle, there are several possibilities for such child diagrams, including DFDs and other diagram types. In particular, a data process can be decomposed into a Use Case Diagram (UCD), as the top-level UCD for a UML model.
Flows can be discrete (drawn with a single arrowhead) or continuous (drawn with a double arrowhead). Continuous flows represent data (or signals for continuous control flows) that are always present, such as an analogue voltage from a transducer. Discrete flows can be thought of as conveying tokens of data. All flows are defined by a Data Dictionary entry (abbreviated to data definition) which defines the meaning of the data and its components. The data definition for a flow can have an arbitrary number of component data definitions, and can, in turn, be a component of arbitrarily many higher level data definitions.
Stores are places where data is at rest. There are data stores and control stores. Stores can represent files, global sections, databases or buffers. Using a store simply means that the output flows of one process which enter the store do not automatically act as a stimulus for the processes that read data from the store. If a flow links two processes together, data along the flow triggers the destination process to be potentially runnable, or indeed to run. Using stores removes this coupling, and so functions can run ascynchronously with respect to each other.
All stores are also defined in the Data Dictionary (DD). The data definition for a store will define the components of the single data record within the store or, more usually, the components of the set of data records within the store. The key, or identifying component of these records, is shown with a @ symbol in the data definition.
Stores can have un-named flows entering and leaving them. Un-named flows mean that an entire record is being read or written. If components of the records are being read or written, the input and output flows must be named, and these names must appear in the data composition of the store.
There is a special subclass of control flows called prompts , with special names ENABLE , DISABLE and TRIGGER , normally abbreviated to E , D and T . Enable and disable prompts are used to enable (turn on) or disable (turn off) destination processes. Triggers are used to single-shot a process, such as to sample an analogue signal. Enable and disable prompts can be combined as ENABLE/DISABLE or E/D .
Elements of the system's environment are shown as named rectangles, called terminators . Each has its own terminator description to describe its role and content. Terminators can be used at all levels of diagram for those flows entering the system from the environment, or going to it.
Except for the obvious restriction that a process cannot execute until it is enabled (if controlled by prompts) and runs only when all of its input data is present (so a chain of processes connected by flows will execute in series), all parts of a DFD conceptually execute in parallel.
Strengths
Weaknesses
Recommended Uses
Diagram Conversions
Implementation Model DFDs can be converted into Structure Charts (STCs). To convert a DFD, select Convert Type... from the Tools menu in the Diagram Editor.
The rules for the conversion are:
Characteristics
APPEARS IN MODELS
Essential and Implementation
NUMBERING
Numeric (such as 2.3.4) and special cases:
C : Context Diagram
P : Preliminary diagram tree, such as P or P.2.3
HIERARCHICAL
Yes
Linkage
Symbols
Symbol
Name
Definition
Expansion
Comment
Makes a note anywhere in the diagram. Always surrounded by * characters.
None
Data process
An active entity that is capable of processing information
Specification
BD, DFD, IDEF0, UCD, STC (Implementation only)
Data store
A named repository of data acting as a buffer between the real world and the system, or within it
Data Definition
Control process
An active entity that is capable of processing control or status signals and exercising control over other processes in the system
STD, STC (Implementation only)
Control store
A named buffer of a control or status signal, between the real world and the system
Split gate
Used to divide incoming data into lower-level data items
Join gate
Used to rejoin lower-level data items into a higher level item
Terminator
An element of the real world that is outside the system but that interacts with it. Terminators are normally only shown on the Context Diagram and DFD 0, although Cradle imposes no such restrictions.
Terminator Description
Discrete data flow
A named flow of data.
Continuous data flow
A named flow of data that is continually present, such as an analogue voltage.
Discrete control flow
A control or status signal that carries no data, and is either present or not.
Continuous control flow
A control or status signal that carries no data but is significant when in one or two levels. These flows may be raised or lowered.
Bidirectional discrete data flow
A bidirectional named flow of data.
Bidirectional continuous data flow
A bidirectional named flow of data that is continually present, such as an analogue voltage.
Bidirectional discrete control flow
A bidirectional control or status signal that carries no data, and is either present or not.
Bidirectional continuous control flow
A bidirectional control or status signal that carries no data but is significant when in one or two levels. These flows may be raised or lowered.
Boundary point
A connection point for the initial transition to enter the initial state.
Picture
Allows you to choose the location of a GIF or JPEG image to be displayed as a diagram symbol or to be embedded in an existing diagram symbol.
Back to top