1 / 22

Context Diagrams and Data Flow Diagrams: Important Tools in the Analysis Stage of the PSM

Context Diagrams and Data Flow Diagrams: Important Tools in the Analysis Stage of the PSM. Context Diagrams and Data Flow Diagrams.

keaira
Download Presentation

Context Diagrams and Data Flow Diagrams: Important Tools in the Analysis Stage of the PSM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Context Diagrams and Data Flow Diagrams: Important Tools in the Analysis Stage of the PSM

  2. Context Diagrams and Data Flow Diagrams These are tools used in the Analysis phase of the Problem Solving Methodology to describe the movement of data and information to and from the system (Context Diagrams), and also within the system (Data Flow Diagrams), and its entities and data stores.

  3. Context Diagrams • The first we will discuss is the Context Diagram (CD), also sometimes called a level 0 Data Flow Diagram.

  4. Context Diagrams and Data Flow Diagrams Some terms and symbols you must know: • In a Context Diagram the system is represented by a large and appropriately labeled circle. There is only ever one such circle in a Context Diagram. Name goes here!

  5. Context Diagrams and Data Flow Diagrams • Entities are the people, organizations or outside programs that the system takes data or information from or gives it to. • Entities are represented by rectangles with the name of the entity written inside the rectangle. • There must be at least one entity or data store in every Context Diagram or Data Flow Diagram. Entity

  6. Context Diagrams • Flows of data/information between the System and entities in a Context Diagram are shown by labeled arrows for type and direction of data/information. • There must be at least one data flow. • There is never a data flow from one entity directly to another because this is of no concern to the system. named data flow System Entity

  7. An example of a simple Context Diagram Booking Invoice Diners Food Suppliers Nishan’s Restaurant System Bill Order Food Order

  8. Context Diagrams • The following is not possible in a CD as there can NEVER be a data flow between entities: Confirm Delivery Widget System Payment Customer Drivers Tips

  9. Context Diagram • The following is also impossible. Do you see why? The Impossible System The Impossible Entity

  10. Context Diagrams • Likewise this makes no sense: The Impossible System

  11. Context Diagrams • All data flows must be labeled with the name of the data; • Data flows always show the movement of data, not things. Do you see why?

  12. Context Diagram • Now, draw the Context Diagram for the Rina Tennis Club System based on the following scenario.

  13. Context Diagram for the Rina Tennis Club System • Current Members give their availability details for forthcoming competitions. • New Members give their personal details to the club. They receive a new members information kit by email when they join. • All members receive a regular newsletter email (this includes the competition details, including who is playing, plus news items). • The Club Committee gives the competition details to the system for inclusion in the newsletter as well as the news items, and receives member availability details. (Hint: the entities have been bolded.)

  14. Rina Tennis Club: CD Solution Newsletter Items Availability Details Current Member Availability Committee Rina Tennis Club Newsletter Competition Details Newsletter Personal Details New Member Information Kit

  15. Context Diagrams • Lets try some past exam questions … (these are in your handouts).

  16. Context Diagrams • Context Diagrams are surprisingly powerful tools because they tell you what information your system takes in and what information it gives out. • But what is one obvious thing that they do not tell you?

  17. Data Flow Diagrams • A Data Flow Diagram shows the system’s interaction with entities just as a Context Diagram does. • However, a Data Flow Diagram also shows the flows of data and information between the system’s internal processes as well (these are not shown at all in a Context Diagram).

  18. Data Flow Diagrams • A Data Flow Diagram expands the Context Diagram for the same system but both will show the same external entities and data flows. Do you see why?

  19. Data Flow Diagrams • These processes are represented by a series of small, labeled circles. The Data Flow Diagram shows the interaction of these processes with the entities. Aside from the presence of these processes (and the data flows between them), which replace the single System circle of the Context Diagram, the Data Flow Diagram is just the same as a Context Diagram.

  20. Context Diagrams and Data Flow Diagrams One last thing: in addition to entities your Context Diagram or Data Flow Diagram may also show data stores. As the name suggests these are sites where the system stores or sends data (such as a data base). They are represented by two parallel horizontal lines or by a box open on the right hand side.

  21. CD and DFD symbols • Here are the symbols you will meet in CDs and DFDs: The system Data flow A data store process Another way of showing a data store entity

  22. Context Diagrams and Data Flow Diagrams Context Diagrams and Data Flow Diagrams are powerful tools because • they clearly illustrate the flows of data and information in and out of your system, and all of the entities involved, and this is very important to you as the programmer of the system. • they can describe either the old or the proposed new system.

More Related