Font Size: a A A

Research On Software Structure Modeling Method Based On Log

Posted on:2022-09-04Degree:MasterType:Thesis
Country:ChinaCandidate:H C ZhouFull Text:PDF
GTID:2518306569981919Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In the field of software reverse engineering,there are many analytical methods for structure reconstruction which can reproduce software models according to some products of software system.These analysis methods can be divided into static analysis method and dynamic analysis method according to whether the software system needs to be run.The static analysis method does not need to run the software system,but analyzes the source code of a software system.The dynamic analysis method requires running the software system and analyzing the relevant operation information in the process of running the software system.Methods of reconstructing software structure models are static analysis methods,they need to analyze the source code of the software system,however,in many cases,unable to get the source code of the software system,such as legacy software which lack of source code,or security software which not to provide source code,static analysis methods are limited by the larger in these cases.Therefore,we propose a software structure modeling method based on the log,which is a novel dynamic analysis method.The structure model of Java software can be derived and analyzed by using the software system log without source code.The work content of this paper is as follows:(1)The software structure model is discussed based on Object Oriented,and the formal definitions of class structure model,package structure model,component structure model and deployment structure model are given.(2)Based on Aspect Oriented Programming and reflection mechanism,the specific technical principle of acquiring the log of software system is discussed,and the specific composition of the log is determined.Based on this,a log collection tool which can obtain the log of software system is implemented.(3)The method is proposed to construct four software structure models based on the log.First,the classes are extracted and calls between methods are mined from the log,and a series of extraction rules of the relationships between classes are defined,so the class structure model is constructed.Then a package structure model is constructed according to the dependencies between classes and the information about packages in the class structure model.Then a rule for clustering classes to components is proposed,and the cooperative relations between components are extracted to construct the component structure model.Finally,the nodes and their communication relations are extracted,and the components contained in the nodes are identified to construct the deployment structural model.(4)Several open source Java software systems are used for experiments,the log collection tool is used to obtain the logs of these software,and then the software structure model is constructed from these logs.The correctness of this method is verified by comparing the constructed software structure model with the benchmark model.
Keywords/Search Tags:software reverse engineering, structure reconstruction, dynamic analysis, software structure modeling
PDF Full Text Request
Related items