Upload
barbra-porter
View
234
Download
9
Embed Size (px)
Citation preview
DFDתרשימי רוזנפלד" אבי ר ד
Kendall & Kendall © 2005 Pearson Prentice Hall 7-2
הבסיסיים הסימנים
External Entities חיצוניות ישויות
• " , י ע בתרשים המיוצגות החיצוניות הישויותמחוץ, מלבן הנמצאות הישויות כל הן
. מקיימות הן הנבדקת המערכת לגבולות: התנאים משני אחד לפחות
היא • , מקורהישות אל הזורמים נתונים של .) : קלט ) כלומר המערכת
היא -• , יעדהישות המערכת מן הזורם מידע של.) : פלט) כלומר
Customer
Processes תהליכים
• . " בגלל עיגול או אליפסה י ע במערכת מיוצגים תהליכים , לתהליך הקוראים יש מים לבועת אלה צורות של הדמיון
, ולתרשים בועה .DFDבשם בועות תרשים בשם, DFDתרשים • נקרא ראשיים תהליכים מייצגות הבועות שבו
DFD בקיצור או אפס .DFD-0ברמה. DFDתרשים • הוא לוגית מבחינה התהליכים את מתאר
מבוצע התהליך וכיצד התהליך את מבצע מי מתאר אינו .) התהליך) מה מתאר התרשים ממוחשב או ידני באופן
. הפלט – לנתוני הקלט נתוני של התמרה מבצע1
Add NewCustomer
2Customer
InquirySubsystem
נפוצה שגיאה
כיוון • לכל אחד חץ ורק אך חייב פעולה כל
AddNew Customer
1AddNew Customer
2
Data Stores נתונים מאגרי
הנתונים • במאגרי מאחסנת המידע מערכת . ,) גם ) עתידי שימוש לצורך קלט למערכת המגיעים , כדי במאגרים נשמר התהליכים של מהפלט חלק . יותר מאוחר שיתבצעו לתהליכים כקלט שישמש
- מסוימת ישות על נתונים כלל בדרך מכיל מאגר כלכמו ) • מספר וגם שם (1D, 2Dמקבל וכדומה כלשהו • קובץ הסתם מן
D1 CustomerMaster
Kendall & Kendall © 2005 Pearson Prentice Hall 7-7
Data Flow נתונים אפיקי
• , " , את מתארת חץ י ע המיוצגת הנתונים זרימת , ואת המערכת חלקי בין הנתונים זורמים בו הכיוון
. באפיק הזורמים הנתונים של התוכן• , , פנייה טלפון שיחת טופס כמו מידע להיות יכול
וכדומה פה בעל
Customer Record
New Customer
DFDרמות הפשטה –
לרמות פירוט שונות של תיאור DFD’sניתן לפרק •פונקציונאלי וייצוג זרימת נתונים
•DFD ברמה ראשונית, המכונה תרשים תוכן (Context Diagram ) מייצג את המערכת כולה כבועה אחת עם ,
כניסות ויציאות של נתונים המצוינים ע"י חצים יוצאים ונכנסים
ברמות פירוט גבוהות יותר מפרקים כל בועה לתרשים •DFDתוך שמירת נתוני הכניסה והיציאה ,
DFDמרכיבים – ישות חיצונית\
משתמש
יצרן או צרכן נתונים הנמצא מחוץ לתחום המערכת עבורה נבנה המודל.
עיגול )יחיד או כפול( מציין פונקציה )פשוטה או תהליךמורכבת( שהמערכת מבצעת.
פריט נתונים החץ ;פריט נתונים או אוסף של פריטי נתונים
מציין את כיוון הזרימה )אפיק מידע(.
מאגר נתוניםמאגר נתונים המשמש כמקום אחסון לתהליך אחד או יותר.
En
n
Dn
DFD ExampleBebop Records is a mail-order company that distributes CDs and tapes at discount price to record-club members. When an order processing clerk receives an order form, he or she verifies that the sender is a club member by checking the Member file. If the sender is not a member, the clerk returns the order along with a membership application form. If the customer is a member, the clerk verifies the order item data by checking the Item file. Then the clerk enters the order data and saves it to the Daily Orders file. The clerk also prints an invoice and shipping list for each order, which are forwarded to Order Fulfillment.
DFD Example - Step 1
FIRST SENTENCE:Bebop Records is a mail-order company that
distributes CDs and tapes at discount price to record-club members.
RESULT: initial title
Bebop Records
DFD Example - Step 2
SECOND SENTENCE:When an order processing clerk receives an order
form, he or she verifies that the sender is a club member by checking the Member file.
RESULT:Bebop Records Order Processing
EE-1
R e c o rd C lu bM e m b e r
1
Verify m em bers tatus
O R Clerk
EE-2
C u s t o m e r(n o n -m e m b e r)
D -1 M e m b e r M a s t e rm e m b e rd a t a
DFD Example - Step 2 continued
SECOND SENTENCE:When an order processing clerk receives an
order form, he or she verifies that the sender is a club member by checking the Member file.
RULES FOLLOWED:
• left to right, top to bottom
• data flows start or end in a process
DFD Example - Step 3
THIRD SENTENCE:If the sender is not a member, the clerk returns
the order along with a membership application form.
RESULT:Bebop Records Order Processing
EE-1
R e c o rd C lu bM e m b e r
1
Verify m em bers tatus
O R Clerk
EE-2
C u s t o m e r(n o n -m e m b e r)
D -1 M e m b e r M a s t e rm e m b e rd a t a
n o n -m e m b e r o rd e ra n d a p p lic a t io n fo rm
DFD Example - Step 3 continued
THIRD SENTENCE:If the sender is not a member, the clerk returns
the order along with a membership application form.
RULES FOLLOWED:
• shows all processes without conditions
DFD Example - Step 4FOURTH SENTENCE:If the customer is a member, the clerk verifies the
order item data by checking the Item file.
RESULT:Bebop Records Order Processing
EE-1
R e c o rd C lu bM e m b e r
1
Verify m em bers tatus
O R Clerk
EE-2
C u s t o m e r(n o n -m e m b e r)
D -1 M e m b e r M a s t e rm e m b e rd a t a
n o n -m e m b e r o rd e ra n d a p p lic a t io n fo rm
2
Verify orderitem data
O R Clerk
m e m b e ro rd e r
D -2 It e m M a s t e rit e md a t a
DFD Example - Step 4 continued
FOURTH SENTENCE:If the customer is a member, the clerk verifies
the order item data by checking the Item file.
RULES FOLLOWED:
• left to right, top to bottom
• data flows start or end in a process
• shows all processes without conditions
DFD Example - Step 5
FIFTH SENTENCE:Then the clerk enters the order data and saves it
to the Daily Orders file.
RESULT:
DFD Example - Step 5 continuedRESULT:
Bebop Records Order Processing
EE-1
R e c o rd C lu bM e m b e r
1
Verify m em bers tatus
O R Clerk
EE-2
C u s t o m e r(n o n -m e m b e r)
D -1 M e m b e r M a s t e r
n o n -m e m b e r o rd e ra n d a p p lic a t io n fo rm
2
Verify orderitem data
O R Clerk
m e m b e ro rd e r
D -2 It e m M a s t e rit e md a t a
3
Enter orderin to D aily
O rders
O R Clerk
v e rifie dm e m b e r
o rd e r
D -3 D a ily O rd e rs D e t a ilo rd e r
DFD Example - Step 5 continued
FIFTH SENTENCE:Then the clerk enters the order data and saves it
to the Daily Orders file.
RULES FOLLOWED:
• left to right, top to bottom
• data flows start or end in a process
DFD Example - Step 6
SIXTH SENTENCE:The clerk also prints an invoice and shipping list
for each order, which are forwarded to Order Fulfillment.
RESULT:
DFD Example - Step 6 continuedRESULT:
Bebop Records Order ProcessingEE-1
R e c o rd C lu bM e m b e r
1
Verify m em bers tatus
O R Clerk
EE-2
C u s t o m e r(n o n -m e m b e r)
D -1 M e m b e r M a s t e r
n o n -m e m b e r o rd e ra n d a p p lic a t io n fo rm
2
Verify orderitem data
O R Clerk
m e m b e ro rd e r
D -2 It e m M a s t e rit e md a t a
3
Enter orderin to D aily
O rders
O R Clerk
v e rifie dm e m b e r
o rd e r
D -3 D a ily O rd e rs D e t a ilo rd e r
4
P rin t invoic eand
s hipping lis t
O R Clerk
o rd e rd a t a
EE-3
O rd e rF u lfillm e n t
in v o ic e a n ds h ip p in g lis t
DFD Example - Step 6 continued
SIXTH SENTENCE:The clerk also prints an invoice and shipping list for
each order, which are forwarded to Order Fulfillment.
RULES FOLLOWED:
• left to right, top to bottom
• data flows start or end in a process
• shows all processes without conditions
• beware of black holes - every process and data store must produce data