Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
38 views
Modules and Modularization
Software Engineering
Uploaded by
sahulraviyathulpasariya9751
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save modules and modularization For Later
Download
Save
Save modules and modularization For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
38 views
Modules and Modularization
Software Engineering
Uploaded by
sahulraviyathulpasariya9751
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save modules and modularization For Later
Carousel Previous
Carousel Next
Save
Save modules and modularization For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
MODULES AND MODULARIZATION Modules: + Software is divided into separately named components, Often called Modules. Modules and modularization criteri Characteristics: * Modules contain instructions, processing logic, and data structures, + Modules can be separately compiled and storedin alibrary. * Modules can beincludedin a program. *Module segments can beused by invokinganame and some parameters. + Modules can.use other modules. Examples: * Modules include procedures + Subroutines and functions + Functional groups of related procedures, subroutines and functions Data abstraction groups, uiliy groupsand concurrent processes. Modularizati + Modularization allows the designerto decompose. systeminto functional units, to impose hierarchical ordering on function usage, to implement data abstraction and to develop independently useful subsystem. + Where each modules and its submodules correspond toa processing step. + The execution sequence each modulehidesa difficultor changeable design decision from theothermodules. + Functionthat access and modify the data structures levels of abstraction. Goal of modularizatior + Reduce the complexity of the software and toimprove *Maintainabilty +Reusability “productivity Benefits of modularization: Productivity: + Development time should be shortened because several groups workon different modules with limited need forcommunication, Reusabili+ ltshould be possible to make changes to one module without theneedtochange others, Comprehensibility: *Itshould be possible ostudy the system one module atte. Other modularization: * Additional criteria for deciding which functions to places in which modules ofa software system include * Hiding difficult and changeable design decisions * Limiting the physical size of modules. + Structuring the system toimprove observability and testabilityCoupling: © Coupling is the measure of the degree of interdependence between the modules. « Inother words, coupling is the strength of the relationships between modules, A good software will have low coupling. Coupling vs cohesior Coupling Cohesion High coupling and low coupling: High coupling: * High coupling means that modules are closely connected and changes in one module may affect other modules.Exampl A module that relies on specific implementation of another module. Low coupling: Low coupling means that modules are independent and changes in one module have little impact on other modules. Example: Modules that communicate through well-defined, simple interfaces. Types of coupling: The types of coupling are: Data Coupling. Stamp Coupling Control Coupling Common Coupling Content Coupling . Data coupling:* If the dependency between the modules is based on the fact that they communicate by passing only data, then the modules are said to be data coupled ML Data Variable Maun M2 Example-customer billing system 2. Stamp coupling: Stamp coupling occurs when modules share a composite data structure and use only parts of it, possibly different parts Record Data structure Record for ———————— > for module 1 module 2 8 Example- passing a whole record to a function that needs only one field of it. 3. Control coupling:© If the modules communicate by passing control information, then they are said to be control coupled. © It can be bad if parameters indicate completely different behavior and good if parameters allow factoring and reuse of functionality Module 1}s——{Module 2 Control information Example- sort function that takes comparison function as an argument 4. Common coupling: * The modules have shared data such as global data structures. © The changes in global data mean tracing back to all modules which access that data to evaluate the effect of the change. 5. content coupling: # Ina content coupling, one module can modify the data of another module, or control flow is passed from one module to the other module.Data Coupling ‘Stamp Coupling Control Coupling External Coupling Common Coupling Content Coupling Worst @ This is the worst form of coupling and should be avoided.COHESION + In computer programming, cohesion defines the degree towhich the elements of a module belong together. Thus, cohesion measures the strength of relationships between pieces of funetionality within a given module. For example, inhighly cohesive systems, functionalityis strongly related. * Cohesion isan ordinaltype of measurementandis generally described as "high cohesion” or"low cohesion.” ‘TYPES OF COHESION 1.Functional Cohesion: Functional Cohesion is said to existifthe ditferentelements ofa module, cooperate to achieve a single function. 2,Sequential Cohesion: A module is said to possess sequential cohesion ifthe elementof a module form the components of the sequence, where the output from one componentof the sequences inputtothe next. 3.Communicational Cohesion: A modules said to have communicationalcohesion, ifall tasks of the module refer to or update the same data structure, e.g, the setof functions definedonan array ora stack 4.Procedural Cohesion: A module is said to be procedural cohesion ifthe setofpurpose of the module are allparts ofa procedure in which particular sequence of steps has tobe cared out forachieving agoal,e.g,, the algorithm for decodinga message. 5, Temporal Cohesion: When a module includes functions that are associated by the act thatall he methods mustbe executed in the same time, the module is said to exhibit temporal cohesian.6. Logical Cohesion: A module is said to be logically cohesive ifalthe elements ofthe ‘module performa similar operation. For example Error handling, data input and data output, ote. 7. Coincidental Cohesion: A modules said to have coincidental cohesion fit performs sotoftasks that are associated with each other very loosely, at all,
You might also like
SW Design
PDF
No ratings yet
SW Design
95 pages
Coupling and cohesion
PDF
No ratings yet
Coupling and cohesion
7 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
5 pages
3.3 - Coupling and Cohesion
PDF
No ratings yet
3.3 - Coupling and Cohesion
22 pages
Coupling Cohesion
PDF
No ratings yet
Coupling Cohesion
52 pages
Coupling & Cohesion
PDF
No ratings yet
Coupling & Cohesion
1 page
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
6 pages
2 Design
PDF
No ratings yet
2 Design
37 pages
Lect4 PDF
PDF
No ratings yet
Lect4 PDF
67 pages
Coupling
PDF
No ratings yet
Coupling
6 pages
Cohesion and Coupling
PDF
No ratings yet
Cohesion and Coupling
12 pages
Lecture # 9 (SDA)
PDF
No ratings yet
Lecture # 9 (SDA)
35 pages
Software Engineering: Coupling and Cohesion
PDF
No ratings yet
Software Engineering: Coupling and Cohesion
26 pages
SDA_Unit 3.1
PDF
No ratings yet
SDA_Unit 3.1
50 pages
S24 SDA Lecture 4
PDF
No ratings yet
S24 SDA Lecture 4
30 pages
13-Design Concepts and Principles
PDF
No ratings yet
13-Design Concepts and Principles
33 pages
Software Engineering PDF
PDF
No ratings yet
Software Engineering PDF
97 pages
Cohesion and Coupling in Software Engineering
PDF
No ratings yet
Cohesion and Coupling in Software Engineering
3 pages
Cohesion
PDF
No ratings yet
Cohesion
6 pages
Chapter 5 Cohesion Coupling
PDF
No ratings yet
Chapter 5 Cohesion Coupling
56 pages
LECT4
PDF
No ratings yet
LECT4
97 pages
Unit 3
PDF
No ratings yet
Unit 3
23 pages
Lecture 9 Cohesion and coupling
PDF
No ratings yet
Lecture 9 Cohesion and coupling
26 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
5 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
10 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
3 pages
cohesion & coupling
PDF
No ratings yet
cohesion & coupling
25 pages
Data Structures Notes
PDF
No ratings yet
Data Structures Notes
3 pages
Software Design (1) - Pages-2
PDF
No ratings yet
Software Design (1) - Pages-2
30 pages
Chapter 5 Design
PDF
No ratings yet
Chapter 5 Design
64 pages
Asst - Prof. Sunitha E.V: Department of Information Technology Tist
PDF
No ratings yet
Asst - Prof. Sunitha E.V: Department of Information Technology Tist
27 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
5 pages
Chapter 5
PDF
No ratings yet
Chapter 5
58 pages
Software Design PDF
PDF
No ratings yet
Software Design PDF
100 pages
Logic Development
PDF
No ratings yet
Logic Development
4 pages
Coupling and Cohesion
PDF
No ratings yet
Coupling and Cohesion
2 pages
Modularity and Coupling and Cohesion: SE464/CS446/ECE452
PDF
No ratings yet
Modularity and Coupling and Cohesion: SE464/CS446/ECE452
30 pages
Cohesion and Coupling
PDF
No ratings yet
Cohesion and Coupling
40 pages
Lec 11
PDF
No ratings yet
Lec 11
11 pages
PLD Unit 2.3
PDF
No ratings yet
PLD Unit 2.3
20 pages
UNIT-3 Software Design
PDF
No ratings yet
UNIT-3 Software Design
56 pages
Coupling and Cohesion - Software Engineering - GeeksforGeeks
PDF
No ratings yet
Coupling and Cohesion - Software Engineering - GeeksforGeeks
6 pages
S22 SDA Lecture 4
PDF
No ratings yet
S22 SDA Lecture 4
34 pages
Unit 3
PDF
No ratings yet
Unit 3
29 pages
Week5 CSE320
PDF
No ratings yet
Week5 CSE320
95 pages
Coupling and coheshion
PDF
No ratings yet
Coupling and coheshion
2 pages
Unit 3 SE Part 2
PDF
No ratings yet
Unit 3 SE Part 2
31 pages
Modularization, Cohesion and Coupling
PDF
No ratings yet
Modularization, Cohesion and Coupling
41 pages
Cohesion Merged
PDF
No ratings yet
Cohesion Merged
8 pages
Lecture 03A - Software Design Basics
PDF
No ratings yet
Lecture 03A - Software Design Basics
21 pages
Types of Coupling and Cohesion
PDF
No ratings yet
Types of Coupling and Cohesion
4 pages
Cohesion & Coupling
PDF
No ratings yet
Cohesion & Coupling
4 pages
SE Unit3
PDF
No ratings yet
SE Unit3
42 pages
Coupling & Cohesion
PDF
No ratings yet
Coupling & Cohesion
4 pages
Modular AND Structured Design
PDF
No ratings yet
Modular AND Structured Design
13 pages
SE Modularity
PDF
No ratings yet
SE Modularity
10 pages
Software Engineering Effective Modular Design Notes
PDF
No ratings yet
Software Engineering Effective Modular Design Notes
6 pages
5.software Design
PDF
No ratings yet
5.software Design
53 pages