Title: A systematic approach for software refactoring based on class and method level for AI application

Authors: Rasmita Panigrahi; Sanjay K. Kuanar; Lov Kumar; Neelamadhab Padhy

Addresses: School of Engineering and Technology, Department of Computer Science and Engineering (CSE), GIET University, Gunupur, Odisha, 765022, India ' School of Engineering and Technology, Department of Computer Science and Engineering (CSE), GIET University, Gunupur, Odisha, 765022, India ' Department of Computer Science and Information Systems, BITS-PILANI, Hyderabad Campus, Room #H-134, Jawahar Nagar, Shameerpet Mandal, Hyderabad-500078, India ' School of Engineering and Technology, Department of Computer Science and Engineering (CSE), GIET University, Gunupur, 765022 Odisha, India

Abstract: Many researchers have investigated the different techniques to detect software code smells, which can be removed by software refactoring. In this paper, the author presents refactoring techniques and their examples and the proposed model for getting the qualitative code after implementing refactoring techniques. The author proposed an algorithm for the extract and move method, and a set of refactoring techniques. This primary goal is to depict refactoring methods and defend retained transition rules among the groups. The author has discussed the state-of-the-art software refactoring techniques, causes of refactoring, and the proposed model. The author has shown a simulation model suggesting transition probability, which allows for making decision software status. The results show that the proposed approach can detect software refactoring accurately with precision and recall values ranging from 88% to 100%. The transformation rules and proposed algorithms and models are suitable and adequate for automated refactoring to improve software quality.

Keywords: object-oriented metrics; OOM; software quality; refactoring; extract method; move method; extract class and subclass; inline method; refactoring models; algorithms.

DOI: 10.1504/IJPT.2021.117461

International Journal of Powertrains, 2021 Vol.10 No.2, pp.143 - 174

Received: 11 Jun 2020
Accepted: 14 Oct 2020

Published online: 07 Sep 2021 *

Full-text access for editors Full-text access for subscribers Purchase this article Comment on this article