Supercharge Your Innovation With Domain-Expert AI Agents!

Architecture strategy positioning method and system of Java project

A java method and architecture technology, applied in 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: 2021-06-11
BEIHANG UNIV
View PDF5 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
  • Architecture strategy positioning method and system of Java project
  • Architecture strategy positioning method and system of Java project
  • Architecture strategy positioning method and system of Java project

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] A specific embodiment of the present invention discloses an architectural strategy positioning method of a Java project, the flow chart of which is as follows figure 1 As shown, the method includes the following steps:

[0058] Step S1: extracting feature texts of all Java methods in the Java project;

[0059] Specifically, this embodiment extracts the feature text of each Java method from the source code in the Java project based on the Java bytecode manipulation library (BCEL).

[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, by analyzing the Java project source code and the system architecture strategy to realize the point-cutting method, the feature text extracted in this embodiment includes the following:

[0062] (1) method name

[0063] Ge...

Embodiment 2

[0127] Embodiment 2 of the present invention discloses an architectural strategy positioning system of a Java project, the structural 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 generating module, configured to process the feature text to obtain a corresponding feature vector;

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

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

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 that the existing software architecture strategy code positioning efficiency is low. The invention discloses an architecture strategy positioning method for a Java project. The method comprises the following steps: extracting feature texts of all Java methods in the Java project; processing the feature text to obtain a corresponding feature vector; determining an architecture strategy type to be positioned, and inputting the feature vector corresponding to each Java method into an architecture strategy model corresponding to the architecture strategy type to obtain a tangency method type to which the Java method corresponding to the architecture strategy type belongs; and positioning the Java method corresponding to the system structure strategy type in the Java item based on the tangent point method type to which the Java method belongs. According to the method, the software architecture strategy code positioning efficiency can be improved.

Description

technical field [0001] The invention relates to the field of positioning of software architecture strategy codes, in particular to a method and system for locating the architecture strategy of a Java project. Background technique [0002] Architectural Tactics is a universal design plan summarized and condensed by system architects and designers in long-term design activities to realize the non-functional requirements of the system. These schemes are precipitated in long-term design activities, and system designers summarize and summarize them into a series of architectural strategies for non-functional attribute design, so as to realize the reuse of design schemes. These architectural strategies are widely used in academia and industry, for example, in aviation control systems, the reliability requirements of the system are guaranteed through redundancy strategies. [0003] Aiming at the non-functional requirements of the system, designers often give a series of architectu...

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
IPC IPC(8): G06F8/77
CPCG06F8/77
Inventor 葛宁王泽张莉周雨飞赵久昂刘泽伟
Owner BEIHANG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More