Docsity

Data Flow Diagrams for Course Registration and Perfect Pizza System, Study Guides, Projects, Research of Design and Analysis of Algorithms

Partial preview of the text

Download Data Flow Diagrams for Course Registration and Perfect Pizza System and more Study Guides, Projects, Research Design and Analysis of Algorithms in PDF only on Docsity!

Data Flow Diagrams

A structured analysis technique that employs

a set of visual representations of the data that

moves through the organization, the paths

through which the data moves, and the

processes that produce, use, and transform

data.

Why Data Flow Diagrams?

• Can diagram the organization or the system

• Can diagram the current or proposed situation

• Can facilitate analysis or design

• Provides a good bridge from analysis to design

• Facilitates communication with the user at all

stages

Levels of Detail

• Context level diagram - shows just the

inputs and outputs of the system

• Level 0 diagram - decomposes the process

into the major subprocesses and identifies

what data flows between them

• Child diagrams - increasing levels of detail

• Primitive diagrams - lowest level of

decomposition

• Current logical diagrams

– start with context level

– decompose as needed for understanding

• Proposed logical diagrams

– start at level where change takes place

– decompose as far as possible

• Current physical diagrams

– at level of change

• Proposed physical diagrams

– same levels as proposed logical

– lower levels become design

Recommended Progression

Context Level Diagram

• Just one process

• All sources and sinks that provide data to or

receive data from the process

• Major data flows between the process and

all sources/sinks

• No data stores

Running Example

Course Registration: Context level Diagram

Course

Registration

System

Student

Registrar

Professor

Class Request

Payment

Receipt

Student Schedule

Class roster

Enrollment

statistics

Running Example

Course Registration: Current Logical Level 0 Diagram

Student Professor Registrar

Register

Student for

Course

D1 Student Class Records

D2 Student Payments

Collect

Student Fee

Payment

Produce

Student

Schedule

Produce

Class

Roster

Produce

Enrollment

Report

Payment Information Student and Course Data

Student Class Record

Student Class Record Student Class Record

Student Class Record

Student Schedule (^) Class Roster Enrollment Report

Class Request^ Student

Receipt

Payment

Child Diagrams

• “Explode” one process in level 0 diagram

• Break down into lower-level processes,

using numbering scheme

• Must include all data flow into and out of

“parent” process in level 0 diagram

• Don’t include sources and sinks

• May add lower-level data flows and data

stores

Physical DFDs

• Model the implementation of the system

• Start with a set of child diagrams or with

level 0 diagram

• Add implementation details

– indicate manual vs. automated processes

– describe form of data stores and data flows

– extra processes for maintaining data

Running Example

Course Registration: Current Physical Child Diagram

Check

for

Availability

(myUMBC)

Check

Prerequisites

Met

(manual)

Enroll

Student

in Class

(STARS)

D4 Department Student File D5 Course Catalogue (text) D1 Semester Enrollment DB

D3 Semester Schedule DB

Class Request (^) Advisement Authorization

Feasible Class Request

Available Seats

Available Seats

Student and Course Data

Student Notified (verbally) Unavailability Message Student File

Course Description

Partitioning a physical DFD

• Part of system design

• System architecture

– high-level design

– overall shape of system

– some standard architectures

• Decide what processes should be grouped

together in the system components

Running Example

Course Registration: Physical diagram (partitioned)

Check

for

Availability

(automated)

Check

Prerequisites

Met

(automated)

Enroll

Student

in Class

(automated)

D4 Registrar’s Student DB D5 Course Catalogue DB D1 Semester Enrollment DB

D3 Semester Schedule DB

Class Request (^) Authorized Class Request

Valid Class Request

Available Seats

Available Seats

Student and Course Data

Student Notified (email) Student Emailed Student Record

Course Record

Another Example

Perfect Pizza: Current Logical Level 0 Diagram

Find Customer Record

Print Weekly Totals

Send Order to Cook

Add Customer Record

Take Customer Order

Print Delivery Order

Customer

Customer Info

Phone Number

Customer Order

D1 Customer Master

Customer Record

Customer Record

Customer Information

D2 Customer History

D3 Sales Records

Order Information

Order Information

Customer History

Delivery Information

Customer Customer

Order

Cook

Cook Order

Management

Sales Info

Weekly Report

Discount Info

Delivery

Person

Another Example

Perfect Pizza: Current Logical Child Diagram

Determine

Customer

Discount

Record

Discount

Print

Delivery

Instructions

Order

Information

Discount

Amount

Delivery

Information

D2 Customer History

D3 Sales Records

Customer

History

Discount

Information

Customer

Information