4
น
5
(Yourdon, 1979)
( D e c i s i o n T a b l e )
น น ( Data Flow Diagram : DFD )
4
D F D
DFD (Logical)
( P h y s i c a l )
น D F D
DFD
(De Marco, 1979) (Yourdon and Constantine, 1979)
(Gane and Sarson, 1979)
4 - 1
( D a t a F l o w )
(Process)
(External Entity)
( D a t a S t o r e )
4-1 DFD
Page 2 of 26
4
D F D
(Order) (Commission) (Invoice)
, ,
D F D
Page 3 of 26
4
DFD
(Students)
(Customers) (Purchase Orders) (Products)
น น
( S o u r c e )
( S i n k )
น น
Page 4 of 26
4
น น น
1.
2.
3.
Page 5 of 26
4
4.
5.
6. ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ขขขขขข
ขขขขขข ขขขขขขขขขขขขขขขขขขขขขขขข
ขขขขขข ขขขขขข
Page 6 of 26
4
7.
8.ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ขขขขขขขขขขขขขขขขขขข
ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
A
A P1 B
B
9.
10. ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ขขขขข ข
ขขขขขขขขขขขขขขขขขขข
2
ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ขขขขขขขขขขข
ขขขขขข ขขขขขข
A A
B A
11. (Data Flow)
ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
(Data
ขข ขขขขขข Flow) ขขขขขขขขขขขขขข
Page 7 of 26
4
A
A
B
A
12. ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ขขขข ขขขข
ขขขขขขขขขขขขขขขขขขขขขขขขขขขข ขขขขขขขขขขขขขข
ขขขขขขขขขขขขขขข
ขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขขข
ข ขขขข ขขขขขขข
ขขขขขขขขขขขขขขขขขขขขขขขขข
13. 2
( U p g r a d e )
น (Level of Data Flow Diagram)
DFD
(Marco,1979)
DFD DFD
- DFD
Context Diagram
Page 8 of 26
4
2.1 N
2.3
2.2 M E
N O
2.3.1
E
2.3.2
M
4-2 DFD
C o n t e x t D i a g r a m
Context Diagram
Page 9 of 26
4
4- Context Diagram
(Primitive Function)
. . .1 .
4-3 Context Diagram
Page 10 of 26
4
1. 2.
3.
4-4
( M i d d l e L e v e l )
D i a g r a m 0
- . Diagram
น
DFD Contex t Diagram (Parent)
( C h i l d )
Page 11 of 26
4
ความสัมพันธ์ระหว่างแผนภูมิลูกและแผนภูมิแม่
-
D E P 4 D
E P
C 2 G
A 1 F 3 H 5 J
E
D
P
4
(
Page 12 of 26
4
K 4.2 E
D 4.1
L M P
4.3 4.4
(
4-5
Page 13 of 26
4
น
- -
B D
D
D E
3
B
A 1
C
2 F
(
D
3.1 N
K 3.3
3.2
M
L
(
4-6
Page 14 of 26
4
น น น
-
. . . .
.. ..
น น
(Diagram 0 ) DFD
-
.. A n i t a
2.3.1 B
K 2.1 A 2.3.2
A
M Anita
L 2.2 B 2.3 C 2.3.3
C
Page 15 of 26
4
4-7 DFD
น (Type Of Data Flow Diagram)
(Logical Data
F l o w ) ( P h y s i c a l D a t a F l o w )
DFD -
-9 DFD DFD
Logical Data Flow Diagram
D1 Prices
1 4
2 3
4-8
Source : Kendall and Kendall, 1995 : 243
Page 16 of 26
4
Barcode
1.
D1
file
2.
D2 Trans.File
3.
4.
4.9
Source : Kendall and Kendall, 1995 : 243
Page 17 of 26
4
น
นน ( D a t a D i c t i o n a r y )
(Logical Model)
Online Off-line
Page 18 of 26
4
( D a t a E l e m e n t )
( F i e l d )
น น (Documenting Data Element)
4 - 1 0
น (Data Element Name : (Major)
น (Alternate Name) : (Maj_code)
: 3 N Decimals
(Type and Length)
(Output Format) : XXX
(Source) : (Register Form)
(Security) :
(Office at Registra office can
correct)
(Responsible End User) :
(Acceptable Value) :
น (Other Validation) :
น น (Derivation Formula) :
4–10 Data Element
1.
Page 19 of 26
4
2. น
M a j o r
M a j _ C o d e
3.
4.
5.
6.
7.
8.
(Domain of data element)
9. น น
10.
Page 20 of 26
4
น (Document Data Flow)
(Data Flow)
4 - 1 1
1. D F D
2. Sales commission
C o m m i s s i o n
3.
4.
5. (Destination)
6.
4 -
6.1 =
6.2 +
6.3 {}
X Y
6.4 [ | ]
6.5 ( )
Page 21 of 26
4
INVOICE = INVOICE_NO +
INVOICE_DATE +
CUSTOMER_NO +
CUSTOMER_NAME +
CUSTOMER_ADDRESS+
{ ORDER_ITEM} = ITEM_NO +
ITEM_DESE +
ITEM_PRICE +
(SALEPERSON) +
ORDER_TYPE = [PHONE | MAIL] +
ORDER_SUBTOTAL +
ORDER_TAX +
ORDER_TOTAL
4-11
(Data flow name) : Time Card Data
น (Alternate name) :-
(Description) : Time when employee clock in
น (Origin) : Personnel Department
(Destination) : Process A.5
(Data Structure) : Time card data = Emp_no +
Wk_date +
Clockin_time
Clockout_time
4–12
Page 22 of 26
4
น (Documenting Data Stores)
D F D 4 - 1 3
1. D F D
2. Products
P a r t , I n v e n t o r y , I t e m
3.
4.
5.
6.
7. (Record)
(Data Store name) : Products
น (Alternate name) Part
(Description) : Finished goods for sale
(Input Data Flows) : Inventory chang
(Output Data Flows): Product detail
(Data Structure) : Product = Item_no +
Price +
Quantity_on_hand
(Volume and Frequency) : 2,000 to 4,000 record
50 to 10 addition and
chang per month
4-13
Page 23 of 26
4
น (Documenting Processes)
D F D
4 - 1 4
(Process Name) : Print payroll
(Purpose) : Print payslip , Payroll report , Payroll summary data
(Input Data Flow) : Time card data
(Output Data Flow) : Payslip
Payroll report
Payroll summary data
(Process Description) : IF hours worked is GT 40
THEN IF overtime-code is EQ “Y”
THEN subtract 40 from hours worked giving
overtime-hours multiply overtime-hours by
rate-of-pay by 1.5 giving overtime-pay
THEN IF hours-worked is GT 60
THEN subtract 60 from hours-worked giving
overtimes-hours multiply overtime-
hours by rate-of-pay by 0.5 giving temp-
value add temp-value to overtime-pay
END IF
THEN move “Y” to overtime-pay
END IF
END IF
4-14
1. D F D
2.
3.
Page 24 of 26
4
4.
5.
Context diagram
1.
2. D a t a f l o w
3. L o g i c a l D a t a f l o w Physical Data flow
4. D a t a f l o w
5.
6.
7.
8.
Page 25 of 26
4
9.
10.
Page 26 of 26