Docsity

SA/SD Methodology: Structured Analysis and Design - Prof. Mallik, Slides of Electronics

Partial preview of the text

Download SA/SD Methodology: Structured Analysis and Design - Prof. Mallik and more Slides Electronics in PDF only on Docsity!

Function-Oriented Software

Design

Introduction

  • (^) During the design process high- level functions are successively decomposed into more detailed functions.
  • (^) Finally the detailed functions are mapped to a module structure.

Introduction SA/SD methodology has essential features of several important function-oriented design methodologies-if you need to use any specific design methodology later on, you can do so easily with small additional effort.

Overview of SA/SD Methodology

  • (^) SA/SD methodology consists of two distinct activities: - Structured Analysis (SA) - Structured Design (SD)
  • (^) During structured analysis:
    • functional decomposition takes place.
  • (^) During structured design:
    • module structure is formalized.

Structured analysis

  • (^) Transforms a textual problem description into a graphic model. It is done using data flow diagrams (DFDs).
  • (^) DFDs graphically represent the results of structured analysis.

Structured design

  • (^) All the functions represented in the DFD: mapped to a module structure.
  • (^) The module structure: also called as the software architecture:

Structured Analysis vs. Structured Design

  • (^) Purpose of structured analysis: capture the detailed structure of the system as the user views it.
  • (^) Purpose of structured design: arrive at a form that is suitable for implementation in some programming language.

Structured Analysis

  • (^) Based on principles of
  • (^) Top-down decomposition approach.
  • (^) Divide and conquer principle: Each function is considered individually (i.e. isolated from other functions).
  • (^) Decompose functions totally disregarding what happens in other functions.
  • (^) Graphical representation of results using data flow diagrams (or bubble charts).

DFD Concepts

  • (^) It is useful to consider each function as a processing station: - each function consumes some input data and - produces some output data.

Data Flow Model of a Car Assembly Unit Fit Engine Paint and Test Fit Wheels Fit Doors Chassis Store Door Store Wheel Store Engine Store Car Partly Assembled Car Assembled Car Chassis with Engine

External Entity Symbol

  • (^) Represented by a rectangle
  • (^) External entities are real physical entities: - input data to the system or - consume data produced by the system. - Sometimes external entities are called terminator, source, or sink. Librarian

Function Symbol

  • (^) A function such as “search-book” is represented using a circle: - (^) This symbol is called a process or bubble or transform. - (^) Bubbles are annotated with corresponding function names. - (^) Functions represent some activity: - (^) function names should be verbs. search- book

Data Store Symbol

  • (^) Represents a logical file:
    • A logical file can be:
      • (^) a data structure
      • (^) a physical file on disk.
    • Each data store is connected to a process: - by means of a data flow symbol. book-details

Data Store Symbol

  • (^) Direction of data flow arrow:
    • (^) shows whether data is being read from or written into it.
  • (^) An arrow into or out of a data store:
    • (^) implicitly represents the entire data of the data store
    • (^) arrows connecting to a data store need not be annotated with any data name. find-book Books