Presentation is loading. Please wait.

Presentation is loading. Please wait.

DFD Tutorial IT323. context diagram context diagram Why context diagram ? ◦To know  Who will interact with system.  What's the main input and output.

Similar presentations


Presentation on theme: "DFD Tutorial IT323. context diagram context diagram Why context diagram ? ◦To know  Who will interact with system.  What's the main input and output."— Presentation transcript:

1 DFD Tutorial IT323

2 context diagram context diagram Why context diagram ? ◦To know  Who will interact with system.  What's the main input and output to/from system What kind of stuff that should appear in context?? ◦the main big process : the system ◦external entities : source and sink. ◦Data flow. stuff that is not allowed to be there? ◦Date store

3 Draw context diagram This system blocks sites with bad language. The user will enter search words to the system, the system will submit those search words to a search engine and after receiving the search results and keywords for each search result, the system will classify each search result as blocked or unblocked according to prespecified criteria saved in a file in the system. The system saves these search results in the search results database. The system blocks the sites marked blocked. The system then returns the search results to the user. If the user clicks on one of the URL’s in the search results the system will return a website to the user (if the site is unblocked) or will return a blocked site notification to the user (if the site is blocked). The administrator (manager) can submit a request to delete all search results from the search results database, the system will delete them and notify the administrator (manager). The administrator can send an update request to the system to update the criteria in the criteria file, the system will notify the administrator by an update-done notice.

4 find out context diagram component This system blocks sites with bad language. ◦The user will enter search words to the system, the system will submit those search words to a search engine.  source : user Data flow : search word  sink: search engine Data flow : search word ◦ after receiving the search results and keywords for each search result, the system will classify each search result as blocked or unblocked according to pre-specified criteria saved in a file in the system.  source: search engine  Data flow : search results and keywords ◦The system saves these search results in the search results database.  Nothing ◦ The system blocks the sites marked blocked.  Nothing

5 find out context diagram component Search word 0 Blocking System User search engine Search word search results and keywords

6 find out context diagram component This system blocks sites with bad language. ◦The system then returns the search results to the user.  Sink : user.  Data flow : search results. ◦ If the user clicks on one of the URL’s in the search results the system will return a website to the user (if the site is unblocked) or will return a blocked site notification to the user (if the site is blocked).  source : userDataflow : URL  sink : userDataflow : website, block notification

7 find out context diagram component Search word 0 Blocking System User URL Search Result Website Block notification search engine Search word search results and keywords

8 This system blocks sites with bad language. ◦The administrator (manager) can submit a request to delete all search results from the search results database, the system will delete them and notify the administrator (manager).  source : Managerdataflow : request to delete  Sink : Managerdataflow : notification for deletion  ◦The administrator can send an update request to the system to update the criteria in the criteria file, the system will notify the administrator by an update-done notice.  source : Managerdataflow : request to update  Sink : Managerdataflow : notification for updating find out context diagram component

9 Search word 0 Blocking System User URL Search Result Website Block notification Manager Delete Request Delete Feedback Update Request Update Feedback search engine Search word search results and keywords

10

11 find 3 errors (rule violations) The data store DS1, not DS2, should be represented on the level-1 diagram. Data flow DF3 should be an outflow on the level-1 diagram, and data flow DF6 should not be on the level-1 diagram. Process P1.4.2 has no inputs.

12 Draw decision tree A Fast Food restaurant determined how they reorder food and other items as following: If an item is perishable, such as meat, vegetables, the restaurant have a standing order with a local supplier stating that a prespecified amount of food is delivered each weekday for that day's use and each Saturday for weekend use. If the item is not perishable, such as cups, and napkins, an order is placed when the stock on hand reaches a certain predetermined minimum reorder quantity. The restaurant business depends on season, so standing orders are reduced by specific amounts during the summer and holiday breaks.

13 Conditions Type of item: ◦P = perishable ◦N = non-perishable Time of week: ◦D = weekday ◦W = weekend Season of year: ◦A = academic year ◦S = summer ◦H = holiday

14 decision table Conditions/ Rules Courses of Action 1234567 Type of itemP PPPP PN Time of weekDWDWDW--- Season of yearA ASSHH--- Standing daily orderXXX Standing weekend orderXXX Minimum order quantityX Holiday reduction XX Summer reduction XX

15 decision tree 1 2 3 3 Standing daily order Summer reduction Standing daily order Holiday reduction Standing weekend order Summer reduction Standing weekend order Holiday reduction Minimum order quantity 1.Type of item? 2. Time of week? 3.Season of year? P N D W A S H A S H


Download ppt "DFD Tutorial IT323. context diagram context diagram Why context diagram ? ◦To know  Who will interact with system.  What's the main input and output."

Similar presentations


Ads by Google