Docsity

DFD-Software Engineering-Lecture Slides, Slides of Software Engineering

Partial preview of the text

Download DFD-Software Engineering-Lecture Slides and more Slides Software Engineering in PDF only on Docsity!

DFD EXAMPLESSOURCE: YONG CHOIBPACSUB

Creating Data Flow DiagramsSteps:1.

Create a list of activities

2.^

Construct Context Level DFD(identifies external entities and processes)

3.^

Construct Level 0 DFD(identifies manageable sub process )

4.^

Construct Level 1- n DFD(identifies actual data flows and data stores )

5.^

Check against rules of DFD

Creating Data Flow Diagrams

Lemonade Stand Example

Creating Data Flow Diagrams

Steps:1.

Create a list of activities•^

Old way: no Use-Case Diagram

-^

New way: use Use-Case Diagram

2.^

Construct Context Level DFD(identifies sources and sink)

3.^

Construct Level 0 DFD(identifies manageable sub processes )

4.^

Construct Level 1- n DFD(identifies actual data flows and data stores )

Example

The operations of a simplelemonade stand will be usedto demonstrate the creationof dataflow diagrams.

Creating Data Flow Diagrams

Example

Also think of the additionalactivities needed to supportthe basic activities.

Customer OrderServe ProductCollect PaymentProduce ProductStore ProductOrder Raw MaterialsPay for Raw MaterialsPay for Labor

1.^

Create a list of activities

Creating Data Flow Diagrams

Example

Group these activities insome logical fashion,possibly functional areas.

Customer OrderServe ProductCollect PaymentProduce ProductStore ProductOrder Raw MaterialsPay for Raw MaterialsPay for Labor

1.^

Create a list of activities

Creating Data Flow Diagrams

Level 0 DFD

Example

Create a level 0 diagramidentifying the logicalsubsystems that may exist. Customer OrderServe ProductCollect PaymentProduce ProductStore ProductOrder Raw MaterialsPay for Raw MaterialsPay for Labor

3.^

Construct Level 0 DFD(identifies manageable sub processes )

2.0Production

EMPLOYEE

ProductionSchedule

1.0Sale 3.0Procure-ment

Sales Forecast

Product Ordered

CUSTOMER

Pay

Payment

Customer Order VENDOR

Purchase OrderPayment

OrderDecisions

Received Goods

Time Worked

Inventory

Product Served

4.0Payroll

Creating Data Flow Diagrams

Level 1 DFD

Example

Create a level 1decomposing the processesin level 0 and identifyingdata stores.

4.^

Construct Level 1- n DFD(identifies actual data flows and data stores )

1.3ProduceSalesForecast

Sales Forecast

Payment

Customer Order Serve Product Collect Payment Produce ProductStore ProductOrder Raw MaterialsPay for Raw MaterialsPay for Labor

1.1RecordOrder

Customer Order

ORDER

1.2ReceivePayment

PAYMENT Severed Order

Request for Forecast

CUSTOMER

Creating Data Flow Diagrams

Level 1 DFD

Example

Create a level 1decomposing the processesin level 0 and identifyingdata stores.

4.^

Construct Level 1 (continued)

Customer OrderServe ProductCollect PaymentProduce ProductStore Product Order Raw MaterialsPay for Raw Materials Pay for Labor

3.1ProducePurchaseOrder

Order Decision

PURCHASEORDER

3.2ReceiveItems

ReceivedGoods

RAWMATERIALS

3.3PayVendor

Quantity On-HandQuantityReceived

RECEIVEDITEMS^ VENDOR

Payment Approval Payment

Creating Data Flow Diagrams

Level 1 DFD

Example

Create a level 1decomposing the processesin level 0 and identifyingdata stores.

4.^

Construct Level 1 (continued) Time Worked

Customer OrderServe ProductCollect PaymentProduce ProductStore ProductOrder Raw MaterialsPay for Raw Materials Pay for Labor

4.1RecordTimeWorked

TIME CARDS

4.2CalculatePayroll

Payroll Request

EMPLOYEE

4.3PayEmployee

Employee ID

PAYROLL PAYMENTS

Payment Approval Payment

Unpaid time cards

DFD Example: Bus Garage Repairs ^

Buses come to a garage for repairs.

^

A mechanic and helper perform the repair, record thereason for the repair and record the total cost of allparts used on a Shop Repair Order.

^

Information on labor, parts and repair outcome isused for billing by the Accounting Department, partsmonitoring by the inventory management computersystem and a performance review by the supervisor.

DFD Example: Bus Garage Repairs (cont’d) ^

External Entities

: Bus, Mechanic, Helper, Supervisor,

Inventory Management System, AccountingDepartment, etc.

^

Key process

(“the system”): performing repairs and

storing information related to repairs

^

Processes

^

Record Bus ID and reason for repair

^

Determine parts needed

^

Perform repair

^

Calculate parts extended and total cost

^

Record labor hours, cost

Bus

Helper Mechanic

BusRepairProcessSystem

Supervisor

Accounting

Bus Garage Context Diagram

Mechanicalproblemto be repairedLabor Labor

Fixedmechanicalproblems

InventoryManagementSystem

Repairsummary List ofparts used

Labor,parts costdetails

CSUB Burger’s Order Processing System ^

Draw the CSUB Burger’s context diagram^ ^

System^ ^

Order processing system ^

External entities^ ^

Kitchen ^ Restaurant ^ Customer ^

Processes^ ^

Customer order ^ Receipt ^ Food order ^ Management report