Process for extracting Java software program class diagrams reversely
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
A software program, reverse extraction technology, used in program control design, instrumentation, electrical digital data processing, etc.
Inactive Publication Date: 2014-02-19
中国人民解放军第二炮兵装备研究院科研试验中心
View PDF5 Cites 7 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
Problems solved by technology
[0003] Since there are many ways to realize the relationship between classes in the software development process, there will be such a phenomenon: there is an association relationship or a dependency relationship between class A and class B in the software design model, and the program realizes When there is no direct relationship between class A and class B, other classes are used to realize the relationship between class A and class B
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
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
Examples
Experimental program
Comparison scheme
Effect test
Embodiment 1
[0019] Embodiment 1: a kind of method of reverse extraction Java software program class diagram is characterized in that comprising the following steps:
[0020] A. Based on the JDT API interface, analyze the .class file, obtain the static information of the Java program, extract the inheritance, association, aggregation, and dependency between classes, and the implementation, association, aggregation, and dependency between classes and interfaces;
[0021] B. Select the class that embodies the main process as the backbone class, and use it as an abstract reference point to search for the path between any two backbone classes;
[0022] C. For each path obtained in the B step, starting from any end of the path, check whether there is a sub-path with the nature of class-relation-class-relation-class to match the 57 class diagram abstract rules enumerated in this step, If it matches, replace the subpath with the result of the abstract rule; if it does not match, skip the current ...
Embodiment 2
[0030] Embodiment 2: On the basis of embodiment 1, the method for selecting the backbone class described in embodiment 1 step B is:
[0031] With the help of the use case model: under the guidance of business domain experts, find those framework fragments corresponding to the use case diagram or activity diagram, and select them as the backbone class;
[0032] Or based on the hierarchical analysis of business entities: starting from the entity classes that can correspond to business entities, identify the levels according to the relationship between classes from bottom to top according to the component dependency relationship, and select those classes at higher levels as the backbone classes;
[0033] Or software designers or testers customize the backbone classes as needed.
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
Login to view more
Abstract
The invention belongs to the technical field of software testing, and particularly relates to a process for extracting Java software program class diagrams reversely. The technical scheme includes that the process for extracting Java software program class diagrams reversely includes the steps of A, analyzing program class diagrams statically; B, selecting backbone classes as reference points for abstracting and then searching paths among the backbone classes; C, abstracting subpaths having the character of class-relation-class-relation-class from the optional end of each path and matching with the 57 class diagram abstracting rules listed; D, merging the paths which are abstracted according to the specified priority to acquire the abstracted class diagrams if various relations exist after any two of the backbone classes are abstracted. By the process for extracting the Java software program class diagrams reversely, consistency verifying between code implementation of software and detailed design thereof is realized.
Description
technical field [0001] The invention belongs to the technical field of software testing, in particular to a method for detailed software design function testing and extracting software program class diagrams. Background technique [0002] The current software review tools mainly focus on the automatic analysis of the source code and the automatic detection of code defects. The review of detailed design and its programming implementation depends entirely on experienced software developers, and there are no effective methods and supporting tools available to check whether the program structure meets the design requirements. For example, in order to establish the correspondence between the code and the detailed design, it is necessary to manually mark the correspondence between each piece of code in the program code and the defined function points in the software detailed design document. Although in the model-driven software development process, the detailed design of the sof...
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
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.