Restructuring of Object-Oriented Software Through Cohesion Improvement Using Frequent Usage Patterns

Author:

Rathee Amit1,Chhabra Jitender Kumar1

Affiliation:

1. National Institute of Technology Kurukshetra, India

Abstract

Due to wide adoption of object-oriented programming in software development, there is always a requirement to produce well-designed software systems, so that the overall software maintenance cost is reduced and reusability of the component is increased. But, due to prolonged maintenance activities, the internal structure of software system deteriorates. In this situation, restructuring is a widely used solution to improve the overall internal structure of the system without changing its external behavior. As, it is known that, one technique to perform restructuring is to use refactoring on the existing source code to alter its internal structure without modifying its external functionality. However, the refactoring solely depends on our ability to identify various code smells present in the system. Refactoring aims at improving cohesion and reducing coupling in the software system. So, in this paper, a restructuring approach based on refactoring is proposed through improvement in cohesion. This paper focuses on improving the cohesion of different classes of object-oriented software using a newly proposed similarity metric based on Frequent Usage Patterns (FUP). The proposed similarity metric measure the relatedness among member functions of the classes. The metric makes use of FUPs used by member functions. The FUP consists of unordered sequences of member variables accessed by member function in performing its task. The usage pattern includes both direct and indirect usages based on sub-function calls within a member function. Based on the values of the similarity metric, we performed hierarchical agglomerative clustering using complete linkage strategy to cluster member functions. Finally, based on the clusters obtained, the source code of the software is refactored using proposed refactoring algorithm. The applicability of our proposed approach is tested using two java projects related to different domains of real life. The result obtained encourages the applicability of proposed approach in the restructuring of a software system.patterns, refactoring, hierarchical clustering, maintainability. usage patterns, refactoring, hierarchical clustering, maintainability.

Publisher

Association for Computing Machinery (ACM)

Reference30 articles.

1. Temporal analysis of API usage concepts;Uddin G.;International Conf. on Software Engineering,2012

2. Mining succinct and high-coverage API usage patterns from source code;Wang J.;Working Conf. on Mining Software Repositories,2013

3. Data mining library reuse patterns using generalized association rules

4. G. Scanniello and A. Marcus "Clustering support for static concept location in source code " in Program Comprehension (ICPC) 2011IEEE 19th International Conference on 2011 pp. 1--10. 10.1109/ICPC.2011.13 G. Scanniello and A. Marcus "Clustering support for static concept location in source code " in Program Comprehension (ICPC) 2011IEEE 19th International Conference on 2011 pp. 1--10. 10.1109/ICPC.2011.13

5. Cohesion metrics for predicting maintainability of service-oriented software;Perepletchikov M.;International Conference on Quality Software,2007

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3