Software Engineering Coupling Dr M Tanvir Afzal Coupling

  • Slides: 8
Download presentation
Software Engineering Coupling Dr. M. Tanvir Afzal

Software Engineering Coupling Dr. M. Tanvir Afzal

Coupling Modularity advantage ü Any modification will be applied to few of the modules

Coupling Modularity advantage ü Any modification will be applied to few of the modules ü Assumption: Changes in one module will not affect other modules. ü Goal: maximize the independence, minimize linkage between modules known as: intermodule coupling 2

Coupling Intermodule Coupling ü One metric to measure the complexity - expense of maintaining

Coupling Intermodule Coupling ü One metric to measure the complexity - expense of maintaining the software is to measure the intermodule coupling 3

Coupling Control Coupling ü Occurs when a module passes control of execution to another,

Coupling Control Coupling ü Occurs when a module passes control of execution to another, as in a function call. 4

Coupling Data Coupling ü Refers to the sharing of data between modules. If two

Coupling Data Coupling ü Refers to the sharing of data between modules. If two modules interact with the same item of data, then modifications made to one module may affect the other 5

Coupling Explicit passing ü Passing by parameters. Control. Game will tell the function Serve()

Coupling Explicit passing ü Passing by parameters. Control. Game will tell the function Serve() which player’s characteristics are to be simulated when it calls Serve and that the function Serve() will report the ball trajectory to Control. Game when Serve() has completed its task. 6

Coupling Global data ü Data items that are automatically available to all modules throughout

Coupling Global data ü Data items that are automatically available to all modules throughout the system. 7

Summary Coupling ü Intermodule Coupling ü Control Coupling ü Data Coupling 8

Summary Coupling ü Intermodule Coupling ü Control Coupling ü Data Coupling 8