1 / 9

Chapter 16 Component-Level Design

Chapter 16 Component-Level Design. Component-Level Design. the closest design activity to coding the approach: review the design description for the component use stepwise refinement to develop algorithm use structured programming to implement procedural logic

Télécharger la présentation

Chapter 16 Component-Level Design

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 16Component-Level Design

  2. Component-Level Design • the closest design activity to coding • the approach: • review the design description for the component • use stepwise refinement to develop algorithm • use structured programming to implement procedural logic • use ‘formal methods’ to prove logic

  3. Stepwise Refinement open walk to door; reach for knob; open door; repeat until door opens turn knob clockwise; walk through; if knob doesn't turn, then close door. take key out; find correct key; insert in lock; endif pull/push door move out of way; end repeat

  4. The Component-Level Design Model • represents the algorithm at a level of detail that can be reviewed for quality • options: • graphical (e.g. flowchart, box diagram) • pseudocode (e.g., PDL) ... choice of many • programming language • decision table • conduct walkthrough to assess quality

  5. Structured Programmingfor Procedural Design uses a limited set of logical constructs: sequence conditional — if-then-else, select-case loops — do-while, repeat until leads to more readable, testable code important for achieving high quality, but not enough

  6. A Structured Procedural Design

  7. Program Design Language (PDL)

  8. Why Design Language?

  9. OO vs Structured Structured Techniques need PDL’s and other techniques to define how the processes interact. These items get in the way of good OO design. OO designers need a pseudo code, collaboration diagram, sequence diagram to define how classes will collaborate only to assure that they have received all the user information the need.

More Related