A cohesion measure for classes in object-oriented systems

H. Chae
{"title":"A cohesion measure for classes in object-oriented systems","authors":"H. Chae","doi":"10.1109/METRIC.1998.731241","DOIUrl":null,"url":null,"abstract":"Classes are the fundamental concepts in the object-oriented paradigm. They are the basic units of object-oriented programs, and serve as the units of encapsulation, which promotes the modifiability and the reusability of them. In order to take full advantage of the desirable features provided by classes, such as data abstraction and encapsulation, classes should be designed to have good quality. Because object-oriented systems are developed by heavily reusing the existing classes, the classes of poor quality can be a serious obstacle to the development of systems. We define a new cohesion measure for assessing the quality of classes. Our approach is based on the observations on the salient natures of classes which have not been considered in the previous approaches. A Most Cohesive Component (MCC) is introduced as the most cohesive form of a class. We believe that the cohesion of a class depends on the connectivity of itself and its constituent components. We propose the connectivity factor to indicate the degree of the connectivity among the members of a class, and the structure factor to take into account the cohesiveness of its constituent components. Consequently, the cohesion of a class is defined as the product of the connectivity factor and the structure factor. This cohesion measure indicates how closely a class approaches MCC; the closely a class approaches MCC, the greater cohesion the class has.","PeriodicalId":444081,"journal":{"name":"Proceedings Fifth International Software Metrics Symposium. Metrics (Cat. No.98TB100262)","volume":"9 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1998-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"53","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings Fifth International Software Metrics Symposium. Metrics (Cat. No.98TB100262)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/METRIC.1998.731241","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 53

Abstract

Classes are the fundamental concepts in the object-oriented paradigm. They are the basic units of object-oriented programs, and serve as the units of encapsulation, which promotes the modifiability and the reusability of them. In order to take full advantage of the desirable features provided by classes, such as data abstraction and encapsulation, classes should be designed to have good quality. Because object-oriented systems are developed by heavily reusing the existing classes, the classes of poor quality can be a serious obstacle to the development of systems. We define a new cohesion measure for assessing the quality of classes. Our approach is based on the observations on the salient natures of classes which have not been considered in the previous approaches. A Most Cohesive Component (MCC) is introduced as the most cohesive form of a class. We believe that the cohesion of a class depends on the connectivity of itself and its constituent components. We propose the connectivity factor to indicate the degree of the connectivity among the members of a class, and the structure factor to take into account the cohesiveness of its constituent components. Consequently, the cohesion of a class is defined as the product of the connectivity factor and the structure factor. This cohesion measure indicates how closely a class approaches MCC; the closely a class approaches MCC, the greater cohesion the class has.
面向对象系统中类的内聚度量
类是面向对象范式中的基本概念。它们是面向对象程序的基本单元,作为封装单元,提高了它们的可修改性和可重用性。为了充分利用类提供的理想特性,例如数据抽象和封装,类的设计应该具有良好的质量。因为面向对象系统是通过大量重用现有的类来开发的,所以质量差的类可能是系统开发的严重障碍。我们定义了一个新的内聚度量来评估类的质量。我们的方法是基于对类的显著性质的观察,这些性质在以前的方法中没有考虑到。最内聚组件(MCC)作为类的最内聚形式引入。我们相信一个类的内聚取决于它自身和它的组成部分的连通性。我们提出了连通性因子来表示类成员之间的连通性程度,结构因子来考虑其组成成分的内聚性。因此,类的内聚性被定义为连通性因素和结构因素的乘积。这种内聚度量表明一个类接近MCC的程度;班级越接近MCC,班级的凝聚力越强。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信