1 / 21

Chapter 8 Structuring Requirements

Chapter 8 Structuring Requirements. Logic Modeling. Agenda. Overview of Requirements Structuring Logic & Event-Response Modeling Structured English Decision Tables Decision Trees Exercises. Learning Objectives. Use Structured English, decision tables, decision trees for logic modeling

fallon
Download Presentation

Chapter 8 Structuring Requirements

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. Chapter 8Structuring Requirements Logic Modeling

  2. Agenda • Overview of Requirements Structuring • Logic & Event-Response Modeling • Structured English • Decision Tables • Decision Trees • Exercises

  3. Learning Objectives • Use Structured English, decision tables, decision trees for logic modeling • Select among each logic modeling techniques

  4. Structuring System Requirements • Models for • Data movement (DFD, process model) • Data structure and rules (ERD, business rules) • Processing logic and rules (this chapter) • Need all these types of models to get a more complete picture for code generation

  5. Logic & Event-Response Modeling • Rules which govern the manipulation of data within system processes (typically primitive processes) • Rules which govern what actions are taken under what conditions/events • Common notations are: • Structured English • Decision trees • Decision tables

  6. Modeling Logic with Structured English • Modified form of English used to specify the logic of information processes • Uses a subset of English • Action verbs • Noun phrases • No adjectives or adverbs • No specific standards

  7. Structured English is used here to refer to input.

  8. Structured English is used here to describe arithmetic operations.

  9. Structured English is used here to describe repetition.

  10. Structured English is used here to describe decisions.

  11. Structured English is used here to describe invoking other processes.

  12. Decision Tables What are they? When would they be useful (what situations or types of decisions?) How might a decision table be represented within programming code?

  13. Decision Table Simplification

  14. Modeling Logic with Decision Trees • A graphical representation of a decision situation • Decision situation points are connected together by arcs and terminate in ovals • Main components • Decision points represented by nodes • Actions represented by ovals • Particular choices from a decision point represented by arcs

  15. Decision tree representation of salary decision

  16. Decision Tree for Prior Problem • Graphical tool--can be used to represent the same information as shown on the decision table • Nodes • Branches • How can decision trees be different than decision tables? • Construct a decision tree for decision table problem

  17. Which Tool Do I Use?

  18. Policy Modeling Example Travel Reimbursement Policy: First we determine if it is a local trip. If it is, we only pay mileage of 18.5 cents a mile. If the trip was a one-day trip, we pay mileage and then check the times of departure and return. In order to reimbused for breakfast, you must leave by 7am and return later than 10am; for lunch, leave by 11am and return later than 2pm; and for dinner, leave by 5pm and return later than 7pm. On a trip lasting more than one day, we allow hotel, taxi, and airfare, as well as meal allowances as indicated above. Write a decision table. Write a decision tree. Write structured English Which do you prefer? Why?

  19. More Practice Exercises • Problems & Exercises 11, 13 (pp. 261) • Develop Structured English routine(s) • Develop decision table(s) • Develop decision tree(s)

  20. Summary • In this chapter you learned how to: • Use structured English as a tool for representing steps in logical processes in data flow diagrams. • Use decision tables and decision trees to represent logical choice in conditional statements. • Select among structured English, decision tables, and decision trees.

More Related