Software refactoring method through clustering

A clustering and software technology, applied in the direction of program control devices, etc., can solve the problem that the system cannot be substantially improved, and achieve the effect of easy understanding and maintenance, good versatility, and solving the problem of code dispersion and confusion.

Inactive Publication Date: 2014-02-05
SHENYANG JIANZHU UNIVERSITY
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Just because the core business concerns may span multiple modules, and must be easy to modify, maintain, and update, software maintainers should analyze the dependencies and coupling characteristics between the core business concerns of the program when performing software refactoring. Simply refactoring code-level components based on grammar will not improve the refactored system substantially

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software refactoring method through clustering
  • Software refactoring method through clustering
  • Software refactoring method through clustering

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail with reference to the accompanying drawings of the present invention and specific embodiments below, but the protection scope of the present invention is not limited by the specific embodiments, and the claims shall prevail. In addition, on the premise of not violating the scheme of the present invention, any modification or change made to the present invention that can be easily realized by those skilled in the art will fall within the scope of the claims of the present invention.

[0020] See attached figure 1 , the present invention comprises the following steps:

[0021] For the first step, see attached figure 2 , call the source code parser, parse and filter the source code, and build a fact base. The specific process of this step is described as follows:

[0022] (1) See attached figure 2 , scan the source code file, and input the source code information into the source code parser;

[0023] (2) See ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a software refactoring method through clustering and belongs to the technical field of software engineering. The software refactoring method through clustering is characterized by comprising the following steps of inputting source code information into a source code parser; parsing the source code information and extracting program entities and related attributes of the program entities; calling a filter, screening out redundant information in the source code information, and utilizing a field rule base to establish a system fact base; determining correlation coefficients among the entities through similarity calculation; automatically decomposing a core business concern module based on functions through a directed graph cluster analysis method; verifying the correctness of the refactored system and adjusting the field rule base according to the verified results. According to the software refactoring method through clustering, a large complex software system is automatically decomposed into smaller and more manageable subsystems, and the system is easy to comprehend and maintain; meanwhile, by modifying the correlation coefficients of the attributes of the field rule base, the software refactoring method through clustering is applicable to different application fields, thereby having good universality.

Description

technical field [0001] The invention relates to a method for software reconfiguration by adopting a clustering method, which belongs to the technical field of software engineering. Background technique [0002] Refactoring is a process of program transformation that improves the implementation of software requirements while leaving the program behavior unchanged. Software will inevitably change during its life cycle. These changes may be changes in user requirements, or may be to correct errors in the software itself. In order to reduce the maintenance cost of software and prolong its service life, software maintainers often face the problem of software refactoring. However, as the scale and complexity of the software system increase, the interaction between the various functional modules of the system becomes more complex. Especially for those legacy systems that lack documentation, how to refactor is an urgent problem for current software maintenance. [0003] In order ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 曹阳王永会王守金李孟歆
Owner SHENYANG JIANZHU UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products