The Impact of Transitive Class Relations on Measuring the Degree of Class Cohesion

S. Mustafa, Ru’ya Alawneh
{"title":"The Impact of Transitive Class Relations on Measuring the Degree of Class Cohesion","authors":"S. Mustafa, Ru’ya Alawneh","doi":"10.1109/ACIT47987.2019.8991071","DOIUrl":null,"url":null,"abstract":"Measuring software quality attributes helps in determining the degree of the quality of the software system. Among the various software attributes, cohesion is considered one of the most important software design concerns. In this study, the focus was on investigating the impact of transitive or indirect relations between classes on measuring cohesion. It was assumed that software metrics which take into account transitive relations would provide cohesion values equal or greater than metrics which consider direct relations. Four metrics are covered in this study, including: TCC (Tight Class Cohesion), LCC (Loose Class Cohesion), LCC-D (Lack of Class Cohesion - Direct), and LCC-I (Lack of Class Cohesion-Indirect). Several programs in C# were selected and a tool was developed for calculating these metrics and their values were compared and correlated. The findings of the study show that the assumptions of this study were not valid for certain cases. The values of TCC and LCC were identical in most cases and so is the case the values of LCC-D and LCC-I. Nevertheless, both LCC-D and LCC-I which take into account relations based on method invocations besides instance variable-sharing show higher values than those of TCC and LCC.","PeriodicalId":314091,"journal":{"name":"2019 International Arab Conference on Information Technology (ACIT)","volume":"12 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 International Arab Conference on Information Technology (ACIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ACIT47987.2019.8991071","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Measuring software quality attributes helps in determining the degree of the quality of the software system. Among the various software attributes, cohesion is considered one of the most important software design concerns. In this study, the focus was on investigating the impact of transitive or indirect relations between classes on measuring cohesion. It was assumed that software metrics which take into account transitive relations would provide cohesion values equal or greater than metrics which consider direct relations. Four metrics are covered in this study, including: TCC (Tight Class Cohesion), LCC (Loose Class Cohesion), LCC-D (Lack of Class Cohesion - Direct), and LCC-I (Lack of Class Cohesion-Indirect). Several programs in C# were selected and a tool was developed for calculating these metrics and their values were compared and correlated. The findings of the study show that the assumptions of this study were not valid for certain cases. The values of TCC and LCC were identical in most cases and so is the case the values of LCC-D and LCC-I. Nevertheless, both LCC-D and LCC-I which take into account relations based on method invocations besides instance variable-sharing show higher values than those of TCC and LCC.
及物类关系对衡量类内聚程度的影响
度量软件质量属性有助于确定软件系统的质量程度。在各种软件属性中,内聚被认为是最重要的软件设计关注点之一。在本研究中,重点是调查类之间的传递关系或间接关系对测量凝聚力的影响。假设考虑传递关系的软件度量将提供等于或大于考虑直接关系的度量的内聚值。本研究涵盖了四个指标,包括:TCC(紧密类内聚),LCC(松散类内聚),LCC- d(缺乏类内聚-直接)和LCC- i(缺乏类内聚-间接)。我们选择了几个c#程序,并开发了一个工具来计算这些指标,并对它们的值进行了比较和关联。研究结果表明,本研究的假设在某些情况下是无效的。在大多数情况下,TCC和LCC的值相同,LCC- d和LCC- i的值也相同。然而,除了实例变量共享之外,考虑基于方法调用关系的LCC- d和LCC- i的值都高于TCC和LCC。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信