Professional Documents
Culture Documents
บทที่ 5การวิเคราะห์ระบบ
บทที่ 5การวิเคราะห์ระบบ
(Context Diagram)
(Diagram 0)
(Lower
Level Data Flow Diagram)
data
dictionary
INPUT
OUTPUT
( )
5.2 (DFDs)
(DFDs) 4
62
1. Process
2. Data flow
3. Data store
4. External entity
DFDs
1. Gane and Sarson
2. Yourdon
(Process)
(DataStore)
(DataFlow)
(External Entity)
DeMarco&Yourdon
Symbols
Gane&Sarson
Symbols
5.1
1. (Process Symbol)
Input --> Output
(Process)
(Data Flow)
63
(Process)
5.1 (Process)
(Process) 1
64
(data flow)
(Process)
(data flow)
(Process)
65
66
(Data Store)
(Data Flow)
67
(n=1,2,3, )
Data Store
5.6 5.7
5.8
Transcript
D1
Tran
Transcript
script
5.6 (Data
Store)
68
69
5.8
(Data Store)
(process) (Data Store)
4.
(External Entity Symbol)
()
70
5.9
(External
Entity Symbol)
5.3
(DFD)
2
1.
71
2.
physical data flow
diagram physical
Physical DFD
Logical DFD
Logical DFD
Physical DFD
5.10
L o g ic a l D a ta F lo w D ia g r a m
D 1
P h y s ic a l D a ta F lo w D ia g r a m
D1
U P C
U P C B ar C ode
S c a n n e r
U P C
D 2
C o de
2
, , , ,
72
4
L o g ic a l D a ta F lo w D ia g r a m
5.11
Logical Data Flow Diagram
D 1
P h y s ic a l D a ta F lo w D ia g r a m
D 1
U P C
U P C
C o de
D 2
U P C B ar C ode
S c a n n e r
( )
, , , ,
( )
1.
2.
(Context Diagram)
(External Entities)
73
3.
Diagram (
(Process) Diagram 0 1
(Level-1 diagram)
Level-2 diagram , Level-3 diagram
5.
Diagram
74
Entity 1
Entity 2
Input A
Input B
System
Name
Output
C
Entity 3
1 (process)
(process)
(process) 0
(context diagram)
Process
(Context
diagram)
75
Context diagram
76
5.15 (Context
diagram)
(Context Diagram)
(Context Diagram)
Parent / Child /
DFD Context Diagram DFD Level 1
DFD
Input A
Data flow B
General
process Data flow C
AAA
2
General
process
BBB
Record A
D1
Data store 1
Entity 2
Entity 3
Record E
D2
Data store 2
Record A
Input B
Output C
Record E
General
process
CCC
General
process
DDD
77
5.16
(Diagram 0 Parent Diagram)
5.7
1.
(Process) Diagram 0 (
Child Diagram
Child Diagram
Parent Process
3.
(Process) Child
( Parent Process 3
Diagram 1 Process 3.1, 3.2, 3.3, )
4.
Diagram 0
5.
Parent Process
6.
78
D1
Data store 1
Record A
Input B
Transaction
record 1
D5
Detailed
process
XXX
3.1
3.2
Transaction
Detailed
record 1
Transaction file 1
process
YYY
Detailed
data flow Z
3.3
Detailed
process
YYY
Data flow D
5.17
(Diagram 0 Parent Diagram)
5.8
(DFD)
DFD
79
DFD
1. DFD
DFD
2. (Process)
(Process)
3. (Process)
2 (Process)
2
(Process)
4.
(Process) 1 2
(Process) 2 10
(Process)
(Process)
5.
(Process)
(Process)
80
(Process)
DFD
DFD
DFD
Context Diagram
5.18 Context Diagram
81
D1
D2
1.1
1.2
1.3
1.5
1.4
82
4.1
D2
4.2
4.3
4.3.1
4.3.2
83
(Format)
1,000
50,000
data repository
(Data flows)
(Data stores)
(External entities)
(Processes)
84
5.23
5.24
85
5.24 (Process)
()
Name _
5.25
Description
_
Alias _ ____________
Source __
86
5.26
5.26
(Data Structure Description)
=
()
[]
{ }
[]
()
+
= + +
+ + { } + +
() +
= + + +
+ + +
+ +
+ +
= [ | |
5.27
88
ID_______________________________________________________
________________
Name _
Description
5
Length ____6
Input Format
Dec.Pt.
9(6)
Output Format
9(6)
Default Value
Continuous or
Alphabetic
Alphanumeric
Date
Numeric
Discrete
Continuous
Base
Derived
Discrete
Value
Upper Limit
or
Meaning
< 999999
5.28
Lower Limit
>0
89
()
ID________________________________________________
(Data Element Description)
_______________________
Name _
Description
Length ____2
Input Format
Output Format
Dec.Pt.
x(2)
Alphanumeric
x(2)
Default Value WH
Continuous or
Alphabetic
Date
Discrete
Numeric
Base
or Derived
Continuous
Upper Limit
Discrete
Value
BL
Meaning
Blue
Lower Limit
WH
White
5.29
GR
Green
90
Name _
Description
__
File Format
Sequential
Computer
Database
Direct
Manual
Indexed
200
Block Size :
91
45,000
6%
42,000
Data Structure
Secondary Keys
Primary Key
Average :
Comments
5.30
= + +
+
+ ( ) + +
= +
= [ | | ]
= + + + +
+ +
=
5.31
(Data Element Description)
93
()
ID________________________________________________
_______________________
Name _
Description
(76 )
Length ____15
Input Format
Output Format
Default Value -
Continuous or
Dec.Pt.
Alphabetic
x(15)
x(15)
Alphanumeric
Date
Discrete
Numeric
Base
5.32
(Process
Description) Process Specification
94
Process Specification
1.
2.
95
3.
(Data Flow Diagram)
DFD DFD
-- (Top -
Down)
5.11
3
1.
2.
3.
(Structured Language)
(Decision Table)
(Decision Tree)
96
1.
(Structured Language)
3
1. Sequence
2.
3.
GET, FIND,
RECORD, CREATE, READ, UPDATE, DELETE,
CALCULATE, WRITE, SORT, MERGE
""
1. .. (Ifelse..)
2. . (Case)
3. (Do..Loop)
4. (Sequence
1
97
Employee
= X
= X
IfElse
- A - B
-C
- C
If
Else
- C
3
Repeat.Until
Repeat
Employee
= X
= X
98
Until Employee
4
DoCase
Do
Case1 >=80
= A
Case2 >=70
= B
Case3 >=60
= C
Case4 >=50
= D
End ( )
= E
=
Total
0 IfELSE
Do While
order
process
Inv_total = 0
5
order
Do While
Inv_total = Inv_total +
Item_amount
99
2. (Decision Table)
Condition stubs
Action stubs
Rules (column)
Decision Table
1.
100
+1
) + 1
2. = ( Col -1) /
1
3.
4.
5.
(X)
6. Col
> 50,000
Y Y N N
> 1
Y N Y N
2%
1% X
X X X
5.33
101
(Y) (N)
-
(Decision Table)
X -,
2 22
3
5.34 (Limited
Entry Form)
102
(Decision Table)
4 =24=16
*** 2
4Y
5.35 (Limited
Entry Form)
103
5.36
(Extended Entry Form)
5.37 (Mixed
Entry Form)
104
4.
(ELSE Form)
ecisionTable)
(D
(Conditions) (Actions)
G
P
F
79
50 50
79
5.38 (ELSE
Form)
3. Decision Tree ()
Decision Table
Decision Tree
105
Decision Tree
1.
2.
Decision Tree
1
3.
4.
5. (Actions)
6. Key Title
5.39
106
(Process)
25,000
25,000 250,000
10
10
250,000
1
1.
2.
3.
a. < 25000
b. 25000 - 250000
c. > 250000
a. <= 10
b. > 10
a.
b.
< 25000
25000 - 250000
> 250000
107
< 25000
<=10
25000 - 250000
> 250000
> 10
< 25000
<=10
25000 - 250000
> 250000
> 10
108
< 25000
<=10
25000 - 250000
> 250000
> 10
5.12
1.
(Structure Language)
2.
(Decision Table)
3.
(Decision Tree)
109
1.
ATM
2.
(Payroll system)
800
Manual
slip
110
ATM
(
)
3.
Master
111
112