Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and system for positioning the architecture strategy of a java project

A java method and architecture technology, applied in the direction of software maintenance/management, software indicators, etc., can solve the problems of structural strategy code positioning accuracy and low efficiency, and achieve the effect of high accuracy and recall rate

Active Publication Date: 2022-07-26
BEIHANG UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of the above analysis, the embodiment of the present invention aims to provide a method and system for locating architecture strategy of a Java project, so as to solve the problem of low accuracy and low efficiency of locating code of existing software architecture strategy

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
  • A method and system for positioning the architecture strategy of a java project
  • A method and system for positioning the architecture strategy of a java project
  • A method and system for positioning the architecture strategy of a java project

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] A specific embodiment of the present invention discloses a method for locating an architecture strategy of a Java project. The flow chart is as follows: figure 1 As shown, the method includes the following steps:

[0058] Step S1: extract the feature text of all Java methods in the Java project;

[0059] Specifically, based on the Java Bytecode Operation Library (BCEL), the present embodiment extracts the feature text of each Java method from the source code in the Java project.

[0060] During the implementation process, the user needs to provide a runnable Java project, and call the relevant methods of the BCEL operation library to automatically extract the feature text of all Java implementation methods of the Java project;

[0061] Preferably, the pointcut method is implemented by analyzing the source code of the Java project and the system architecture strategy, and the feature text extracted in this embodiment includes the following content:

[0062] (1) Method ...

Embodiment 2

[0127] Embodiment 2 of the present invention discloses an architecture strategy positioning system for a Java project. The schematic diagram is as follows: Figure 8 As shown, the system includes:

[0128] The feature text acquisition module is used to extract the feature text of all Java methods in the Java project;

[0129] a feature vector generation module for processing the feature text to obtain a corresponding feature vector;

[0130]The classification module is used to determine the architecture policy type to be located, and input the feature vector corresponding to each Java method into the architecture policy model corresponding to the architecture policy type, and obtain the Java corresponding to the architecture policy type. The pointcut method type to which the method belongs;

[0131] An architecture policy locating module, configured to locate the Java method corresponding to the architecture policy type in the Java project based on the belonging pointcut met...

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 relates to an architecture strategy positioning method and system of a Java project, belongs to the field of software architecture strategy code positioning, and solves the problem of low efficiency of existing software architecture strategy code positioning. A method for locating an architecture strategy of a Java project, comprising the steps of: extracting feature texts of all Java methods in the Java project; processing the feature texts to obtain corresponding feature vectors; The feature vector corresponding to the Java method is input into the architecture policy model corresponding to the architecture policy type, and the pointcut method type to which the Java method corresponding to the architecture policy type belongs is obtained; , locating the Java method corresponding to the architecture policy type in the Java project. The method can improve the efficiency of software architecture strategy code location.

Description

technical field [0001] The invention relates to the field of software architecture strategy code positioning, in particular to a Java project architecture strategy positioning method and system. Background technique [0002] Architecture strategy (Architectural Tactics) is a universal design scheme to realize the non-functional requirements of the system, which is summarized and condensed by system architects and designers in long-term design activities. These solutions are precipitated in long-term design activities, and the system designers summarize and summarize them into a series of architectural strategies oriented towards non-functional attribute design, so as to realize the reuse of design solutions. These architectural strategies are widely used in both academia and industry, for example, in aviation control systems, the reliability requirements of the system are guaranteed through redundancy strategies. [0003] For the non-functional requirements of the system, d...

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 Patents(China)
IPC IPC(8): G06F8/77
CPCG06F8/77
Inventor 葛宁王泽张莉周雨飞赵久昂刘泽伟
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products