1 / 10

Elementary Process Descriptions

Elementary Process Descriptions. When to use. Data flow diagrams should be decomposed until each process occurs: In one place At one time Can be completed by (logically) one person Elementary Process Descriptions are used to describe that lowest level. How to describe. Narrative

cain-keith
Download Presentation

Elementary Process Descriptions

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. Elementary Process Descriptions

  2. When to use • Data flow diagrams should be decomposed until each process occurs: • In one place • At one time • Can be completed by (logically) one person • Elementary Process Descriptions are used to describe that lowest level

  3. How to describe • Narrative • Easy to write and to read • Long-winded • Sometimes ambiguous • Mathematical formulae e.g. Z notation • Precise • Compact • Unambiguous • Difficult to write and to read • Decision Tables • More later • Decision Trees • More later • Structured English • Harder to write than narrative • Shorter than narrative • Less ambiguous than narrative

  4. Narrative for Worked Example • A warehouse receives orders from its customers which are processed as follows. Any order of £500 or more from a credit-worthy customer attracts a discount of 5% whereas orders if less than £500 attract a discount of 3%. Other circumstances must be referred to the supervisor for a decision. (so is it 3% for creditworthy customers only or 3% for everyone ordering less than £500?)

  5. Decision Tree for Worked example Yes Yes Disc= 5% Credit OK? Order >= £500? No No Refer to super Disc= 3%

  6. Decision Trees • Graphical representation • Includes sequence of actions and of evaluation of conditions • Scaleable i.e. suitable for small simple scenarios or large complex scenarios

  7. Decision Table for Worked Example (1)

  8. Decision Tables • Easy to use • Easy to understand • Show cause and effect (of combinations of circumstances) • Can ensure all possible combinations have been considered • Do not show time sequence • Unwieldy if many conditions present

  9. Structured English for Worked Example (1) If credit satisfactory then if order>= 500 then discount=5% else discount=3% endif else print “refer-to-super.” endif Other statements available: • Case • Do..while • Repeat....until

  10. Structured English • Shorter than narrative • Less ambiguous • Ready to convert to program code • More thought needed to write

More Related