• No results found

This can be achieved as: ✓Controlling the number of parameters passed amongst modules

N/A
N/A
Protected

Academic year: 2022

Share " This can be achieved as: ✓Controlling the number of parameters passed amongst modules"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

UNIT-II Software Requirement Analysis And Specification: Need for SRS, Problem Analysis, Requirements Specification. Software Design: Design objectives and principles. Module level concepts, Coupling and Cohesion. Design Notations and specifications.

Structured Design Methodology, Object Oriented Design. Detailed Design: Detailed Design, Verification (Design Walkthroughs, Critical Design Review, Consistency Checkers), Metrics.

(2)

Modularity is the single attribute of software that allows a program to be intellectually manageable. It enhances design clarity, which in turn eases implementation, debugging, testing, documenting, and maintenance of software product.

(3)
(4)
(5)
(6)
(7)

This can be achieved as:

✓Controlling the number of parameters passed amongst modules.

✓ Avoid passing undesired data to calling module.

✓ Maintain parent / child relationship between calling

& called modules.

✓ Pass data, not the control information.

(8)

Coupling

✓ The degree of interdependence between two modules”

✓ We aim to minimise coupling - to make modules as independent as possible.

Low coupling can be achieve by:

✓ eliminating unnecessary relationships

✓ reducing the number of necessary relationships

✓ easing the ‘tightness’ of necessary relationships

(9)
(10)

Given two procedures A & B, we can identify number of ways in which they can be coupled.

(11)

1, Data Coupling : The dependency between module A and B is said to be data coupled if their dependency is based on the fact they communicate by only passing of data. Other than communicating through data, the two modules are independent.

Modules communicate by parameters

Each parameter is an elementary piece of data

Each parameter is necessary to the communication

Nothing extra is needed.

(12)
(13)

2. Stamp coupling: Stamp coupling occurs between module A and B when complete data structure is passed from one module to another.

✓ A composite data is passed between modules

✓ Internal structure contains data not used

✓ Bundling - grouping of unrelated data into an artificial structure

(14)
(15)

3. Control coupling

Module A and B are said to be control coupled if they communicate by passing of control information. This is usually accomplished by means of flags that are set by one module and reacted upon by the dependent module.

✓ A module controls the logic of another module through the parameter.

✓ Controlling module needs to know how the other module works.

(16)
(17)

4. Common coupling

A form of coupling in which multiple modules share the same global data. Global data areas are commonly found in programming languages.

Making a change to the common data means tracing back to all the modules which access that data to evaluate the effect of changes.

✓ Use of global data as communication between modules

(18)
(19)

• So common coupling has got disadvantages like

difficulty in reusing modules, reduced ability to control data accesses and reduced maintainability.

5. Content coupling

In a content coupling, one module can modify the data of another module or control flow is passed from one module to the other module. This is the worst form of coupling and should be avoided.

(20)

When a module can directly access or modify or refer to the content of another module, it is called content level coupling. One module directly references contents of the other.

1. Example of Content Coupling Part of program handles lookup for customer. When customer not found, component adds customer by directly modifying the contents of the data structure containing customer data.

2. Example of Content Coupling Occurs when one component modifies an internal data item in another component, or when one component branches into the middle of another component.

(21)

✓ A module refers to the inside of another module

✓ Branch into another module

✓ Refers to data within another module

✓ Changes the internal workings of another module

✓ Mostly by low-level languages

(22)

References

Related documents

In the present study, in 29 specimens (96.7%) the popliteal artery passed deep to popliteal vein and tibial nerve( PICTURE 15 ).. In one specimen (3.3%) the popliteal artery

Technical metadata include where the data come from, how the data were changed, how the data are organized, how the data are stored, who owns the data, who is responsible for the

a) Each State should prepare suitable communication and training material in local language for effective implementation of the Act. b) The State Nodal Agency should ensure

No order of rectification can be passed after the expiry of 4 years from the end of the financial year in which order sought to be rectified was passed. The period of

(24) For a complete power/maximum power transfer from guide I to II, total phase change that is required is n/2 and this happens when the parallel coupling length is equal to

Figure 7.6: Transient analysis of the DAC when ramp signal is given as input In order to give a sine input first the sine signal is passed through an ADC and then the

a) Electromagnetic coil: The electromagnetic coils gives necessary magnetic field when current is passed through it. The produced field interacts with the metallic object to

The thesis is divided into six modules in which the first module is aimed at the design and fabrication of textile structural composite based automotive leaf spring