SlideShare una empresa de Scribd logo
1 de 24
Presentation
         Of
Software engineering
  Topic : Cohesion & Coupling




                   Jagnesh
                   Chawla(jagneshchawla@gmail.com)
Contents :
 Coupling
 Highly Coupled
 Loosely Coupled
 Uncoupled
 Types Of Coupling
 Cohesion
 Types Of Cohesion


                      Jagnesh
                      Chawla(jagneshchawla@gmail.com)
Coupling
 Coupling      is   measure      of    the
  independence of components.
 Coupling is related to cohesion.
 It is an indication the strength of inter
  connections between the components
  in a design .




                        Jagnesh
                        Chawla(jagneshchawla@gmail.com)
Highly coupled



   These types of systems have
    interconnections , with program units
    dependent on each other.




                            Jagnesh
                            Chawla(jagneshchawla@gmail.com)
Highly coupled:




                  Jagnesh
                  Chawla(jagneshchawla@gmail.com)
Loosely coupled


 Loosely coupled systems are made up
  of components which are independent
  or almost independent.
 In   this less dependences are
  available.


                     Jagnesh
                     Chawla(jagneshchawla@gmail.com)
Loosely coupled:




                   Jagnesh
                   Chawla(jagneshchawla@gmail.com)
Uncoupled



 Uncoupled components have
  interconnections at all.
 No Dependencies




                       Jagnesh
                       Chawla(jagneshchawla@gmail.com)
Uncoupled:




             Jagnesh
             Chawla(jagneshchawla@gmail.com)
The range of coupling
measures:



          Content coupling      High coupling
             Common
              coupling
                                 Loose
          Control coupling
          Stamp coupling
           Data coupling       Low
            Uncoupled
                             Jagnesh
                             Chawla(jagneshchawla@gmail.com)
Content coupling:
 When one component actually
  modifies another .
 Then the modified component is
  completely dependent on the
  modifying one.




                      Jagnesh
                      Chawla(jagneshchawla@gmail.com)
Jagnesh
Chawla(jagneshchawla@gmail.com)
Common coupling:
   We can reduce the amount of coupling
    somewhat by organizing our design so
    that data are accessible from a
    common data store.
                    Global:
                              A1
                              A2
                              A3
                 Variables:
                          V1
                          V2



    Component    Component
                                                 Component
        X            Y
                                                    Z
    Change V1    Increment                          T          T
                                                 V =V2+A
     To zero         V1

                                   Jagnesh
                                   Chawla(jagneshchawla@gmail.com)
Control coupling:
 When one component passes
  parameters to control the activity of
  another component.
 We say that there is control coupling
  between the two.




                        Jagnesh
                        Chawla(jagneshchawla@gmail.com)
Stamp coupling:


   When data structure is used to pass
    information from one component to
    another.




                         Jagnesh
                         Chawla(jagneshchawla@gmail.com)
Data coupling:



   If only data are passed, the
    components are connected by data
    coupling.




                       Jagnesh
                       Chawla(jagneshchawla@gmail.com)
Cohesion:



   The cohesion of a component is a
    measure of the closeness of the
    relationship between its components.




                          Jagnesh
                          Chawla(jagneshchawla@gmail.com)
Coincidental:


   The worst degree of cohesion,
    coincidental is found in a component
    whose parts are unrelated to one
    another.




                           Jagnesh
                           Chawla(jagneshchawla@gmail.com)
Logical cohesion:


   It is the next higher level of cohesion ,
    where several logically related functions
    or data elements are placed in same
    component.




                            Jagnesh
                            Chawla(jagneshchawla@gmail.com)
Temporal cohesion:

 Sometime a component is used to
  initialize a system or a set variables.
 Such a component performs several
  functions in sequence ,but the
  functions are related by the timing
  involved, so its cohesion is temporal.


                        Jagnesh
                        Chawla(jagneshchawla@gmail.com)
Procedurally cohesion:


   When function are grouped together in a
    component just to ensure this order the
    component is procedurally cohesive.




                           Jagnesh
                           Chawla(jagneshchawla@gmail.com)
Communicationally:


   Communicationally cohesion often
    destroys the modularity and functional
    independence of the design.




                           Jagnesh
                           Chawla(jagneshchawla@gmail.com)
Sequential cohesion:



   If the output from one part of a
    component is input to the next part the
    component has sequential cohesion.




                           Jagnesh
                           Chawla(jagneshchawla@gmail.com)
Thank you ……




       Jagnesh
       Chawla(jagneshchawla@gmail.com)

Más contenido relacionado

La actualidad más candente

Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineeringPreeti Mishra
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process FrameworkJAINAM KAPADIYA
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factorsNancyBeaulah_R
 
Working with color and font
Working with color and fontWorking with color and font
Working with color and fontmyrajendra
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
Research issues in object oriented software testing
Research issues in object oriented software testingResearch issues in object oriented software testing
Research issues in object oriented software testingAnshul Vinayak
 
Types of Drivers in JDBC
Types of Drivers in JDBCTypes of Drivers in JDBC
Types of Drivers in JDBCHemant Sharma
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testingHaris Jamil
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation TechniquesSanthi thi
 
Prototype model
Prototype modelPrototype model
Prototype modelsadhana8
 

La actualidad más candente (20)

Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process Framework
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factors
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Working with color and font
Working with color and fontWorking with color and font
Working with color and font
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Controls
ControlsControls
Controls
 
System testing
System testingSystem testing
System testing
 
Research issues in object oriented software testing
Research issues in object oriented software testingResearch issues in object oriented software testing
Research issues in object oriented software testing
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Types of Drivers in JDBC
Types of Drivers in JDBCTypes of Drivers in JDBC
Types of Drivers in JDBC
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Prototype model
Prototype modelPrototype model
Prototype model
 
Sdlc
SdlcSdlc
Sdlc
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 

Último

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Cohesion & Coupling

  • 1. Presentation Of Software engineering Topic : Cohesion & Coupling Jagnesh Chawla(jagneshchawla@gmail.com)
  • 2. Contents :  Coupling  Highly Coupled  Loosely Coupled  Uncoupled  Types Of Coupling  Cohesion  Types Of Cohesion Jagnesh Chawla(jagneshchawla@gmail.com)
  • 3. Coupling  Coupling is measure of the independence of components.  Coupling is related to cohesion.  It is an indication the strength of inter connections between the components in a design . Jagnesh Chawla(jagneshchawla@gmail.com)
  • 4. Highly coupled  These types of systems have interconnections , with program units dependent on each other. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 5. Highly coupled: Jagnesh Chawla(jagneshchawla@gmail.com)
  • 6. Loosely coupled  Loosely coupled systems are made up of components which are independent or almost independent.  In this less dependences are available. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 7. Loosely coupled: Jagnesh Chawla(jagneshchawla@gmail.com)
  • 8. Uncoupled  Uncoupled components have interconnections at all.  No Dependencies Jagnesh Chawla(jagneshchawla@gmail.com)
  • 9. Uncoupled: Jagnesh Chawla(jagneshchawla@gmail.com)
  • 10. The range of coupling measures: Content coupling High coupling Common coupling Loose Control coupling Stamp coupling Data coupling Low Uncoupled Jagnesh Chawla(jagneshchawla@gmail.com)
  • 11. Content coupling:  When one component actually modifies another .  Then the modified component is completely dependent on the modifying one. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 13. Common coupling:  We can reduce the amount of coupling somewhat by organizing our design so that data are accessible from a common data store. Global: A1 A2 A3 Variables: V1 V2 Component Component Component X Y Z Change V1 Increment T T V =V2+A To zero V1 Jagnesh Chawla(jagneshchawla@gmail.com)
  • 14. Control coupling:  When one component passes parameters to control the activity of another component.  We say that there is control coupling between the two. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 15. Stamp coupling:  When data structure is used to pass information from one component to another. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 16. Data coupling:  If only data are passed, the components are connected by data coupling. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 17. Cohesion:  The cohesion of a component is a measure of the closeness of the relationship between its components. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 18. Coincidental:  The worst degree of cohesion, coincidental is found in a component whose parts are unrelated to one another. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 19. Logical cohesion:  It is the next higher level of cohesion , where several logically related functions or data elements are placed in same component. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 20. Temporal cohesion:  Sometime a component is used to initialize a system or a set variables.  Such a component performs several functions in sequence ,but the functions are related by the timing involved, so its cohesion is temporal. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 21. Procedurally cohesion:  When function are grouped together in a component just to ensure this order the component is procedurally cohesive. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 22. Communicationally:  Communicationally cohesion often destroys the modularity and functional independence of the design. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 23. Sequential cohesion:  If the output from one part of a component is input to the next part the component has sequential cohesion. Jagnesh Chawla(jagneshchawla@gmail.com)
  • 24. Thank you …… Jagnesh Chawla(jagneshchawla@gmail.com)