一种利用遗传算法改进软件模块质量的方法和系统

By analyzing software source code using genetic algorithms, architectural smells can be identified and reconstructed, solving the problem of difficulty in identifying and reconstructing architectural smells in existing technologies, and improving the quality and maintainability of software systems.

CN115373735BActive Publication Date: 2026-07-17NANJING UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NANJING UNIV
Filing Date
2022-09-24
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively identify and refactor architectural smells, leading to increased software system complexity and decreased quality. Furthermore, there is a lack of effective refactoring operation sequences and methods for evaluating their effectiveness.

Method used

Genetic algorithms are used to analyze the syntax tree of software source code, identify off-flavor components in the software dependency network, and generate reconstruction schemes, including hub-type, unstable, and cyclic dependency off-flavor detection algorithms. Binary tournament selection, single-point crossover, and single-point mutation operators are combined to generate optimized reconstruction schemes.

Benefits of technology

The quality of software modules was improved by eliminating odors, reducing coupling, and increasing cohesion, thereby improving the maintainability of the software system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373735B_ABST
    Figure CN115373735B_ABST
Patent Text Reader

Abstract

本发明属于软件重构技术领域,具体涉及一种利用遗传算法改进软件模块质量的方法和系统,包括:分析软件源代码的语法树,识别文件和组件间的软件依赖关系网络;利用异味检测算法识别软件依赖关系网络中存在的异味组件;根据识别出的软件依赖关系网络以及异味组件,利用遗传算法生成重构方案,以供开发人员选择重构方案对软件进行重构。本发明实现了自动化地识别软件中存在的异味并快速地生成重构方案,以帮助架构师对软件进行重构,从而提高软件的可维护性。
Need to check novelty before this filing date? Find Prior Art