SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Introduction           Problem      Demand           Solution       Implementation     Evaluation         Summary




                                  Detection Strategies
                                 Metrics-Based Rules for
                                 Detecting Design Flaws

                                                    M.... N.....1
                                 1 Universita   della Svizzera Italiana, Switzerland


                            Software Design and Evolution, WS 2009



Nowak                                                                                          Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Author



        Dr. Radu Marinescu
        Associate Professor -
        Department of Computer Science and Engineering
        "Politechnica" University at Timisoara
        Author of "Object-Oriented Metrics in Practice"




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Author



        Dr. Radu Marinescu
        Associate Professor -
        Department of Computer Science and Engineering
        "Politechnica" University at Timisoara
        Author of "Object-Oriented Metrics in Practice"

        Ph.D defense
        Mircea Lungu, Today, 17.30, A21, Red Building




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Outline


        1      Introduction

        2      Problem

        3      Demand

        4      Solution

        5      Implementation

        6      Evaluation

        7      Summary


Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics


        Metrics

               ambiguous definitions
               noise
               relevance




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics


        Metrics

               ambiguous definitions
               noise
               relevance

        Interpretation

               experience based
               no model
               showing symptoms not a disease


Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Strategy




        Strategy
        "A detection strategy is the quantifiable expression of a rule by
        which design fragments that are conforming to that rule can be
        detected in the source code"




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Filters

        Semantical

               threshold value
               direction
        For example:
        Absolute: HigherThan, LowerThan
        Relative: TopValues, BottomValues

        Statistical

               direction
        For example: UpperQuantile, BelowMedian

Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Strategy




        Choosing an appropriate filter
           1   Absolute semantical filter
           2   Relative semantical filter
           3   Semantical filter with percentile values
           4   Statistical filter




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem        Demand              Solution            Implementation   Evaluation            Summary




Composition

        Logical Operators
        and, or, butnot



                                 filter        Filtered
                       Metric1
                                                Set1




                                 filter        Filtered              Composition Rules           Final
                       Metric2
                                                Set2                                            Results




                                 filter        Filtered
                       Metric3
                                                Set3




Nowak                                                                                                     Faculty of Informatics
Detection Strategies
Introduction           Problem    Demand   Solution   Implementation   Evaluation         Summary




Metrics



        "God Class" syndrome.
               Weighted Method Count (WMC)
               Tight Class Cohesion (TCC)
               Access to Foreign Data (ATFD)
                                 (WMC(C), TopValues(25%))∧                              (1)
                                  (ATFD(C), HigherThan(1))∧                             (2)
                                 (TCC(C), BottomValues(25%))                            (3)




Nowak                                                                          Faculty of Informatics
Detection Strategies
Introduction           Problem              Demand           Solution               Implementation               Evaluation         Summary




Process




                                          parsing       Meta-Model
                    Sources
                  (Java, C++)




                        Metrics                      using



                                                                        Detection
                                                                        Strategy                     Flaw List

                       Detection




                             Manual inspection




Nowak                                                                                                                    Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Filter tuning




           1   Experience and Literature
           2   Reference Samples (Tuning Machine)
           3   Evolution Analysis




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




        Case-study

               Version 1
               93 KLOC, 18 Packages, 152 Classes, 1284 Methods
               Version 2
               116 KLOC, 29 Packages, 387 Classes, 3446 Methods


        Evaluation methods

               Automatic Classification (differential between the versions)
               Manual Investigation (of the Version 1)



Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Summary



        Results

               Automatic Classification accuracy over 50% with average
               over 67%.
               Manual Inspection method resulted in Accuracy of 87%.




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Summary



        Results

               Automatic Classification accuracy over 50% with average
               over 67%.
               Manual Inspection method resulted in Accuracy of 87%.


        Conclusion

               Method is very promising !




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Related Work




               Quantification of Design Principles and Rules
               Using Correlations of Metrics for Design Inspections




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Discussion




        Questions and Discussion.




Nowak                                                                         Faculty of Informatics
Detection Strategies

Contenu connexe

Similaire à Detection Strategies Metrics-Based Rules for Detecting Design Flaws

Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?Lionel Briand
 
Design Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsDesign Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsProf. Dr. Alexander Maedche
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD Editor
 
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6wHarry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6wnikhilawareness
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniquesSachin MK
 
Slideshare removal with caption
Slideshare removal with captionSlideshare removal with caption
Slideshare removal with captionnikhilawareness
 
Go to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tomGo to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tomnikhilawareness
 
Staging's channles are being tested
Staging's channles are being testedStaging's channles are being tested
Staging's channles are being testednikhilawareness
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Joon ho Park
 
Ibc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentationIbc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentationGreyRigge Associates Ltd
 
Simulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSimulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSIMANDO
 
ICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdfICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdfXueqiYang
 
Idexcel Independent Testing Services Presentation
Idexcel Independent Testing Services PresentationIdexcel Independent Testing Services Presentation
Idexcel Independent Testing Services PresentationIdexcel
 

Similaire à Detection Strategies Metrics-Based Rules for Detecting Design Flaws (20)

Sop test planning
Sop test planningSop test planning
Sop test planning
 
Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
 
Design Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsDesign Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation Systems
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6wHarry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniques
 
Content to all channels
Content to all channelsContent to all channels
Content to all channels
 
Slideshare removal with caption
Slideshare removal with captionSlideshare removal with caption
Slideshare removal with caption
 
Go to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tomGo to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tom
 
Slideshare - Many files
Slideshare - Many filesSlideshare - Many files
Slideshare - Many files
 
Staging's channles are being tested
Staging's channles are being testedStaging's channles are being tested
Staging's channles are being tested
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.
 
Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011
 
Ibc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentationIbc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentation
 
Simulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSimulation in logistics - SIMANDO
Simulation in logistics - SIMANDO
 
ASE12.ppt
ASE12.pptASE12.ppt
ASE12.ppt
 
Zander eng scd_final
Zander eng scd_finalZander eng scd_final
Zander eng scd_final
 
ICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdfICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdf
 
Idexcel Independent Testing Services Presentation
Idexcel Independent Testing Services PresentationIdexcel Independent Testing Services Presentation
Idexcel Independent Testing Services Presentation
 
Don't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptxDon't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptx
 

Dernier

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Dernier (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Detection Strategies Metrics-Based Rules for Detecting Design Flaws

  • 1. Introduction Problem Demand Solution Implementation Evaluation Summary Detection Strategies Metrics-Based Rules for Detecting Design Flaws M.... N.....1 1 Universita della Svizzera Italiana, Switzerland Software Design and Evolution, WS 2009 Nowak Faculty of Informatics Detection Strategies
  • 2. Introduction Problem Demand Solution Implementation Evaluation Summary Author Dr. Radu Marinescu Associate Professor - Department of Computer Science and Engineering "Politechnica" University at Timisoara Author of "Object-Oriented Metrics in Practice" Nowak Faculty of Informatics Detection Strategies
  • 3. Introduction Problem Demand Solution Implementation Evaluation Summary Author Dr. Radu Marinescu Associate Professor - Department of Computer Science and Engineering "Politechnica" University at Timisoara Author of "Object-Oriented Metrics in Practice" Ph.D defense Mircea Lungu, Today, 17.30, A21, Red Building Nowak Faculty of Informatics Detection Strategies
  • 4. Introduction Problem Demand Solution Implementation Evaluation Summary Outline 1 Introduction 2 Problem 3 Demand 4 Solution 5 Implementation 6 Evaluation 7 Summary Nowak Faculty of Informatics Detection Strategies
  • 5. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Nowak Faculty of Informatics Detection Strategies
  • 6. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Metrics ambiguous definitions noise relevance Nowak Faculty of Informatics Detection Strategies
  • 7. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Metrics ambiguous definitions noise relevance Interpretation experience based no model showing symptoms not a disease Nowak Faculty of Informatics Detection Strategies
  • 8. Introduction Problem Demand Solution Implementation Evaluation Summary Strategy Strategy "A detection strategy is the quantifiable expression of a rule by which design fragments that are conforming to that rule can be detected in the source code" Nowak Faculty of Informatics Detection Strategies
  • 9. Introduction Problem Demand Solution Implementation Evaluation Summary Filters Semantical threshold value direction For example: Absolute: HigherThan, LowerThan Relative: TopValues, BottomValues Statistical direction For example: UpperQuantile, BelowMedian Nowak Faculty of Informatics Detection Strategies
  • 10. Introduction Problem Demand Solution Implementation Evaluation Summary Strategy Choosing an appropriate filter 1 Absolute semantical filter 2 Relative semantical filter 3 Semantical filter with percentile values 4 Statistical filter Nowak Faculty of Informatics Detection Strategies
  • 11. Introduction Problem Demand Solution Implementation Evaluation Summary Composition Logical Operators and, or, butnot filter Filtered Metric1 Set1 filter Filtered Composition Rules Final Metric2 Set2 Results filter Filtered Metric3 Set3 Nowak Faculty of Informatics Detection Strategies
  • 12. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics "God Class" syndrome. Weighted Method Count (WMC) Tight Class Cohesion (TCC) Access to Foreign Data (ATFD) (WMC(C), TopValues(25%))∧ (1) (ATFD(C), HigherThan(1))∧ (2) (TCC(C), BottomValues(25%)) (3) Nowak Faculty of Informatics Detection Strategies
  • 13. Introduction Problem Demand Solution Implementation Evaluation Summary Process parsing Meta-Model Sources (Java, C++) Metrics using Detection Strategy Flaw List Detection Manual inspection Nowak Faculty of Informatics Detection Strategies
  • 14. Introduction Problem Demand Solution Implementation Evaluation Summary Filter tuning 1 Experience and Literature 2 Reference Samples (Tuning Machine) 3 Evolution Analysis Nowak Faculty of Informatics Detection Strategies
  • 15. Introduction Problem Demand Solution Implementation Evaluation Summary Case-study Version 1 93 KLOC, 18 Packages, 152 Classes, 1284 Methods Version 2 116 KLOC, 29 Packages, 387 Classes, 3446 Methods Evaluation methods Automatic Classification (differential between the versions) Manual Investigation (of the Version 1) Nowak Faculty of Informatics Detection Strategies
  • 16. Introduction Problem Demand Solution Implementation Evaluation Summary Summary Results Automatic Classification accuracy over 50% with average over 67%. Manual Inspection method resulted in Accuracy of 87%. Nowak Faculty of Informatics Detection Strategies
  • 17. Introduction Problem Demand Solution Implementation Evaluation Summary Summary Results Automatic Classification accuracy over 50% with average over 67%. Manual Inspection method resulted in Accuracy of 87%. Conclusion Method is very promising ! Nowak Faculty of Informatics Detection Strategies
  • 18. Introduction Problem Demand Solution Implementation Evaluation Summary Related Work Quantification of Design Principles and Rules Using Correlations of Metrics for Design Inspections Nowak Faculty of Informatics Detection Strategies
  • 19. Introduction Problem Demand Solution Implementation Evaluation Summary Discussion Questions and Discussion. Nowak Faculty of Informatics Detection Strategies