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

Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation TechniquesSanthi thi
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural designdevika g
 
Dynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designDynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designkunjan shah
 
Java Course 11: Design Patterns
Java Course 11: Design PatternsJava Course 11: Design Patterns
Java Course 11: Design PatternsAnton Keks
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteriaUmaselvi_R
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquesSiva Priya
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)Arun Shukla
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modelingramyaaswin
 
Language and Processors for Requirements Specification
Language and Processors for Requirements SpecificationLanguage and Processors for Requirements Specification
Language and Processors for Requirements Specificationkirupasuchi1996
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Structural modeling and analysis
Structural modeling and analysisStructural modeling and analysis
Structural modeling and analysisJIGAR MAKHIJA
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factorsNancyBeaulah_R
 
Software Engineering concept
Software Engineering concept Software Engineering concept
Software Engineering concept Atamjitsingh92
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineeringPreeti Mishra
 
Software Engineering unit 3
Software Engineering unit 3Software Engineering unit 3
Software Engineering unit 3Abhimanyu Mishra
 

La actualidad más candente (20)

Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Algorithmic Software Cost Modeling
Algorithmic Software Cost ModelingAlgorithmic Software Cost Modeling
Algorithmic Software Cost Modeling
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Dynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designDynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler design
 
Java Course 11: Design Patterns
Java Course 11: Design PatternsJava Course 11: Design Patterns
Java Course 11: Design Patterns
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modeling
 
UML
UMLUML
UML
 
unit testing and debugging
unit testing and debuggingunit testing and debugging
unit testing and debugging
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Language and Processors for Requirements Specification
Language and Processors for Requirements SpecificationLanguage and Processors for Requirements Specification
Language and Processors for Requirements Specification
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Structural modeling and analysis
Structural modeling and analysisStructural modeling and analysis
Structural modeling and analysis
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factors
 
Software Engineering concept
Software Engineering concept Software Engineering concept
Software Engineering concept
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
 
Software Engineering unit 3
Software Engineering unit 3Software Engineering unit 3
Software Engineering unit 3
 

Último

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Último (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

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)