DFD Tutorial IT323. context diagram context diagram Why context diagram ? ◦To know Who will...

15
DFD Tutorial IT323

Transcript of DFD Tutorial IT323. context diagram context diagram Why context diagram ? ◦To know Who will...

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

DFD TutorialIT323

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

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

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

Draw context diagramThis 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.

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

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

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

find out context diagram component

Search word 0

Blocking System

User

search engine

Search word search results and keywords

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

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 : user Dataflow : URL sink : user Dataflow : website, block notification

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

find out context diagram component Search word

0

Blocking System

UserURL

Search Result

Website

Block notification

search engine

Search word

search results and keywords

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

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 : Manager dataflow : request to delete Sink : Manager dataflow : 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 : Manager dataflow : request to update Sink : Manager dataflow : notification for updating

find out context diagram component

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

find out context diagram component 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

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

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.

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

Draw decision treeA 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.

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

ConditionsType of item:

◦P = perishable◦N = non-perishable

Time of week:◦D = weekday◦W = weekend

Season of year:◦A = academic year◦S = summer◦H = holiday

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

decision table

Conditions/ Rules

Courses of Action 1 2 3 4 5 6 7

Type of item P P P P P P N

Time of week D W D W D W ---

Season of year A A S S H H ---

Standing daily order X X X

Standing weekend order X X X

Minimum order quantity X

Holiday reduction X X

Summer reduction X X

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

decision tree

1

2

3

3

Standing daily order

Standing daily orderSummer reduction

Standing daily orderHoliday reduction

Standing weekend order

Standing weekend orderSummer reduction

Standing weekend orderHoliday 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