Konsep Data Flow Diagram

Konsep Data Flow Diagram  IPO: Input →Process → Output Data→ Process → Information  Data flow diagram is a graphical technique that depicts inform...
Author: Myron Booker
1 downloads 1 Views 2MB Size
Konsep Data Flow Diagram  IPO:

Input →Process → Output Data→ Process → Information

 Data flow diagram is a graphical technique that depicts information flow and the transforms that are applied as data moves from input to output.

Characteristics of DFD      

Graphic Partitioned Hierarchic Multidimensional Emphasize flow of data Viewpoint of data and process

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

The Symbols  DFDs use four basic symbols that represent processes, data flows, data stores, and entities • Gane and Sarson symbol set • Yourdon symbol set

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Symbols for DFD Yourdon notation (sumber: www.yourdon.com) External Interactor

External Entity: Source or destination of data

Process name

Process: Action on data

Data store

Data Store: Storage of data

Data Flow: Data Transfer Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Context Diagrams

 A context diagram is a top level (also known as Level 0) data flow diagram.  It only contains one process node (process 0) that generalizes the function of the entire system in relationship to external entities. Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Creating a Set of DFDs  Create a graphical model of the information system based on your fact-finding results  Performing three main tasks  Step 1: Draw a context diagram  Step 2: Draw a DFD level 1  Step 3: Draw the lower-level diagrams

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Draw a Context Diagram  Drawing Guidelines 1. Draw the context diagram so it fits on one 2.

3. 4. 5. 6.

page Use the name of the information system as the process name in the context diagram Use unique names within each set of symbols Do not cross lines Provide a unique name and reference number for each process Obtain user input and feedback

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

External Entity  External entity represents the sources and destination of data created by the system.  External entity represents the immediate interface of the system with the external world.  When an external source of data is also a destination for data, a loop or occurrence number may be used.  In case the destination or use of data created by the process are not known, the flow simply points outside the system. Similarly, data flows may originate from “nowhere”. Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Process Boxes  Each processes box in a DFD describes an action on data.  The Identifier. A number indicating the sequence of the process.  The Action. A verb specifying the action on which it is performed on the data.  The Actor or Place. A noun indicating who performs the action or where it is performed.

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Flow Arrows  Data flow arrows link all the process boxes and data stores in DFDs.  Data flows should be labeled, except in case the data flows into and out of simple files.  DFDs show only the flow of data, not materials.  A DFD depicts information flow without explicit representation of procedural logic (e.g., conditions or loops).

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Store Rectangles  Data stores can be manual files or computer files. The type of file is not indicated.  Only in case the data store is altered the flow is not indicated. A simple access is not indicated.  A data store is never the direct recipient of unprocessed data from external sources or from other data stores nor is data from a data store ever directly delivered to an external sources. There must be a process step in between.

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Examples of Data Stores

Read

Read/ Write

Write

A data item is created or deleted or updated in the data store by a process Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Rules for Constructing DFD

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

DFD Not Allowed Flows

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

DFD Not Allowed Flows

If part of our system

If not part of our flow ignore

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Flows  Only one direction of flow between processes

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Flows  Joins & forks allowed only if exactly the same data

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Flows  Cannot go directly back to the process it leaves

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Data Flows  Data which moves together should be shown in a single data flow invoice payment

itemised calls Telephone Company

Pay Invoice invoice invoice payment

Telephone Company

Sumber: www.yourdon.com

itemised calls And invoice

Pay Invoice

Edited by: Yudi Priyadi

DFD Rules Incorrect

Sumber: www.yourdon.com

Correct

Edited by: Yudi Priyadi

DFD Rules Correct Incorrect

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

DFD Rules Incorrect

Sumber: www.yourdon.com

Correct

Edited by: Yudi Priyadi

Level 0 CD Origin #1

a

b

Origin #2

Destination 1

z

0 System

c

r

Destination 2

Keterangan: a: ......... b:........... c:.......... dst

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Level 1 DFD dtstore1 Origin #1

n

a

Destination 1

d 1

b

3

z

e g

c Origin #2

Sumber: www.yourdon.com

2

h

5

r

i

f 4

p

Destination 2

dtstore2

Edited by: Yudi Priyadi

Level 2 DFD 4

f 2.3

k j c

2.1

2.2

m dtstore3

Origin #2

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Balancing  The conservation of input and output flows through different levels A

A C

D

B

B

E

C Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Example of Context Diagram (Let’s check with the rules together ^^ ... Wrong? Right?)

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Example of DFD Level 1 (Let’s check with the rules together ^^ ... Wrong? Right?)

Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Example

Level 2 DFD from the monitor sensors process Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Example

 A balanced DFD Fragment  source: www.yourdon.com Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Context Diagram (Let’s check with the rules together ^^ ... Wrong? Right?) Staff Assignment Campaign Manager

Payment Accountant

Campaign

Staff

Client

Staff Grade Budget

Agate Campaign Management System

Advert Completion Client Contact

Staff Contact

Advert Campaign Staff

Concept Note Concept Note

Staff

© 2010 Bennett, McRobb and Farmer 30 Sumber: www.yourdon.com

Edited by: Yudi Priyadi

Top Level Diagram (Level 1) (Let’s check with the rules together ^^ ... Wrong? Right?) Client

Staff

Clients 1. Record Clients

Campaign Manager

Staff

Client

4. Maintain Staff

Staff Grade

Staff Members

Payment

Staff

Campaign

Staff Budget Staff Assignment

Accountant

2. Plan and Manage Campaigns

Advert Completion

Campaigns Campaign Contact Cost + Completion Date

5. Manage Adverts

Staff Contact Client Contact

Adverts

Advert Campaign Staff Concept Note

3. Prepare Adverts

Advert

6. Browse Concept Notes

Concept Note Notes

Concept Note

Staff

Concept Note

© 2010 Bennett, McRobb and Farmer Sumber: www.yourdon.com

31 Edited by: Yudi Priyadi

Level 2 Diagram (Let’s check with the rules together ^^ ... Wrong? Right?) Staff Members

Staff

Staff Contact

5.1 Set Client Contact Contact

Adverts

5.2 Set Advert Completed

Completion Date

© 2010 Bennett, McRobb and Farmer Sumber: www.yourdon.com

32 Edited by: Yudi Priyadi

Suggest Documents