Tuesday, 20 March 2012

05 Structured Design


v  Structured Design:
The aim of structured design is to transform the results of the structured analysis (i.e. a DFD representation) into a structure chart. Structured design provides two strategies to guide transformation of a DFD into a structure chart.
Transform analysis
Transaction analysis
Normally, one starts with the level 1 DFD, transforms it into module representation using either the transform or the transaction analysis and then proceeds towards the lower-level DFDs. At each level of transformation, it is important to first determine whether the transform or the transaction analysis is applicable to a particular DFD. These are discussed in the subsequent subsections.



v  Structure Chart:
A structure chart represents the software architecture, i.e. the various modules making up the system, the dependency (which module calls which other modules), and the parameters that are passed among the different modules. Hence, the structure chart representation can be easily implemented using some programming language. Since the main focus in a structure chart representation is on the module structure of the software and the interactions among different modules, the procedural aspects (e.g. how a particular functionality is achieved) are not represented.
The basic building blocks which are used to design structure charts are the following:

Rectangular boxes: Represents a module.

Module invocation arrows:
 Control is passed from one module to another module in the direction of the connecting arrow.

Data flow arrows:
Arrows are annotated with data name; named data passes from one module to another module in the direction of the arrow.

Library modules: Represented by a rectangle with double edges.

Selection: Represented by a diamond symbol.

Repetition: Represented by a loop around the control flow arrow.



v  Structure Chart vs. Flow Chart:
We are all familiar with the flow chart representation of a program. Flow chart is a convenient technique to represent the flow of control in a program. A structure chart differs from a flow chart in three principal ways:
It is usually difficult to identify the different modules of the software from its flow chart representation.
Data interchange among different modules is not represented in a flow chart.
Sequential ordering of tasks inherent in a flow chart is suppressed in a structure chart.

No comments:

Post a Comment