Using data flow diagram

37
SYSTEM ANALYSIS AND DESIGN Chap 7: using Data Flow Diagrams 1 AITS-MCA- Kiran Ajudiya

Transcript of Using data flow diagram

Page 1: Using data flow diagram

1

SYSTEM ANALYSIS AND DESIGNChap 7: using Data Flow Diagrams

AITS-MCA- Kiran Ajudiya

Page 2: Using data flow diagram

2

Data Flow Diagrams (DFD) Through a structure analysis technique

called data flow diagram. Analyzing data-oriented systems

Inputs Processes outputs

Emphasizes system logic

AITS-MCA- Kiran Ajudiya

Page 3: Using data flow diagram

3

Advantages Freedom from technical commitment

(neutral) Clarify systems / subsystems (is this right?) Communicates understanding to users (is

this right?) Analysis of systems (is anything missing?)

AITS-MCA- Kiran Ajudiya

Page 4: Using data flow diagram

4

Conventions (cont) Entity (source / destination: person, dept, machine, business) Arrow (data flow: from->to)

Process (transforming) Data store (examination, retrieval, addition)

AITS-MCA- Kiran Ajudiya

Page 5: Using data flow diagram

5

Conventions: Basic Symbols

AITS-MCA- Kiran Ajudiya

Page 6: Using data flow diagram

6

DFD Development : Basic Rules

AITS-MCA- Kiran Ajudiya

DFD must have at least one process. Process must receive at least one

data flow and at least one leaving from the process.

Data store should be connected to at least one process.

External entities should not connected each other.

Page 7: Using data flow diagram

7

Process Naming:

Inventory Control System Name reflects whole systemInventory reporting subsystem Name reflects whole subsystemVerify Customer Account Name reflects specific process

AITS-MCA- Kiran Ajudiya

Page 8: Using data flow diagram

8

AITS-MCA- Kiran Ajudiya

Page 9: Using data flow diagram

9

Creating Context Diagram

AITS-MCA- Kiran Ajudiya

Contains only one process (number Zero).

Representing the entire system (input – process – output).

All external entities are shown on the context diagram.

Show major data flow. Diagram does not contain any data

store

Page 10: Using data flow diagram

10

Context Diagram

AITS-MCA- Kiran Ajudiya

Page 11: Using data flow diagram

11

Diagram 0 (Next Level)

AITS-MCA- Kiran Ajudiya

Diagram 0 is the explosion of the context diagram. May include up to 9 Process. Start with the data flow from an entity on input

side (Forward) Work backward from output (Backward) Examine Data Flow:

What processes put data into the store? What processes use the data?

Analyze well define process What input & output, appropriate connection or not

Page 12: Using data flow diagram

12

Diagram 0 (parent)

AITS-MCA- Kiran Ajudiya

Page 13: Using data flow diagram

13

Child Diagram

AITS-MCA- Kiran Ajudiya

Each process on diagram 0(zero) may be exploded to create a child diagram.

Each process on a lower-level diagram may be exploded to create another child diagram.

Each process is numbered with the parent diagram number, a period, and a unique child diagram number.

Page 14: Using data flow diagram

14

Child Diagram (Continue….)

AITS-MCA- Kiran Ajudiya

External entities are usually not shown on the child diagrams below Diagram 0.

If the parent process has data flow connecting to a data store, the child diagram may include the data store as well.

Page 15: Using data flow diagram

15

Child Diagram (Continue…)

AITS-MCA- Kiran Ajudiya

A lower-level diagram may contain data stores not shown on the parent process, such as: A file containing a table of information

(such as a tax table). A file linking two processes on the child

diagram. Minor data flow, such as an error line,

may be included on a child diagram. An interface data flow is data that are

input or output from a child diagram that matches the parent diagram data flow.

Page 16: Using data flow diagram

16

Child Diagram (Continue…..)

AITS-MCA- Kiran Ajudiya

Processes may or may not be exploded depending on their level of complexity when a processes is not exploded it is said to be functionally primitive and is called a “PRIMITIVE PROCESS”

Page 17: Using data flow diagram

17

AITS-MCA- Kiran Ajudiya

Page 18: Using data flow diagram

18

Typical Errors in DFD Data flow arrow wrong direction /

forgetting Connecting Data store to entity w/o

process Incorrect labeling Too many processes (>9 on a sheet) Omitting data flow Creating Unbalanced decomposition in

child diagram.AITS-MCA- Kiran Ajudiya

Page 19: Using data flow diagram

19

Bad!AITS-MCA- Kiran Ajudiya

Page 20: Using data flow diagram

20

Good!

AITS-MCA- Kiran Ajudiya

Page 21: Using data flow diagram

21

Logical & physical Data Flow

AITS-MCA- Kiran Ajudiya

Logical DFD focused on business and how business operates.

It is not worried how the system will be constructed.

Physical DFD shows how the system will be implemented including hardware, software, files and people involved in the system.

Page 22: Using data flow diagram

22

Transitions

AITS-MCA- Kiran Ajudiya

Page 23: Using data flow diagram

23

Logical vs Physical Data Flow

AITS-MCA- Kiran Ajudiya

Page 24: Using data flow diagram

24

Developing Logical Flow Diagrams Advantages

Better communication w/users Stable systems Understanding of business Flexibility and maintenance Identify redundancies

AITS-MCA- Kiran Ajudiya

Page 25: Using data flow diagram

25

Developing Physical DFD

AITS-MCA- Kiran Ajudiya

Clarifying which processes are performed by human and which are automated.

Describing processes in more detail than logical DFD

Sequencing processes that have to be done in a particular order.

Identifying temporary data stores. Specifying actual names of files database tables

and printouts Adding controls to ensure the process are done

properly.

Page 26: Using data flow diagram

26

AITS-MCA- Kiran Ajudiya

Page 27: Using data flow diagram

27

AITS-MCA- Kiran Ajudiya

Page 28: Using data flow diagram

28

AITS-MCA- Kiran Ajudiya

Page 29: Using data flow diagram

29

Partitioning Data Flow Diagram

AITS-MCA- Kiran Ajudiya

Partitioning is the process of examining a data flow diagram and detecting how it should be divided into collection of manual process and collection of computer programs.

Page 30: Using data flow diagram

30

Reason for partitioning DFD

AITS-MCA- Kiran Ajudiya

Different user group Timing Similar tasks Efficiency (Report) Reliability of data (Credit Card) Security (Net Banking)

Page 31: Using data flow diagram

31

CRUD Matrix

AITS-MCA- Kiran Ajudiya

Page 32: Using data flow diagram

32

Event Response Table

AITS-MCA- Kiran Ajudiya

Page 33: Using data flow diagram

33

Data Flow Diagrams

AITS-MCA- Kiran Ajudiya

Page 34: Using data flow diagram

34

Data Flow Diagram

AITS-MCA- Kiran Ajudiya

Page 35: Using data flow diagram

35

Data Flow Diagram

AITS-MCA- Kiran Ajudiya

Page 36: Using data flow diagram

36

Use Case and Flow Diagrams

AITS-MCA- Kiran Ajudiya

Page 37: Using data flow diagram

37

In class example

AITS-MCA- Kiran Ajudiya