SlideShare ist ein Scribd-Unternehmen logo
1 von 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)

Weitere ähnliche Inhalte

Was ist angesagt?

Working with color and font
Working with color and fontWorking with color and font
Working with color and font
myrajendra
 
Prototype model
Prototype modelPrototype model
Prototype model
sadhana8
 

Was ist angesagt? (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
 

Kürzlich hochgeladen

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
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
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
 
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...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

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)