Font Size: a A A

Research And Implementation On Debugging Testing And Document Generatoin Technology For Parallel Simulation Application Based On SUFA

Posted on:2017-02-19Degree:MasterType:Thesis
Country:ChinaCandidate:T L LiFull Text:PDF
GTID:2428330569998669Subject:Control Science and Engineering
Abstract/Summary:PDF Full Text Request
Parallel Discrete Event Simulation(PDES)application debugging testing and document generation are extremely important for improving the correctness and development efficiency of simulation applications.However,the existing PDES development environment often lacks function of debug code,test code and document generation and simulation operation data classification display function,making debugging and testing time-consuming and laborious,and design document is difficult to keep in line with the application code.Therefore,it is of great theoretical and practical value to carry out PDES application debugging,testing technology and document automatic generation technology to improve the efficiency of debugging,testing,document writing and ensure the consistency of documents and code.In the view of the requirement of existing PDES development environment debugging testing and document generation function,based on the comprehensive analysis of related research and aiming at improving the efficiency of debugging,testing and document writing,this paper focus on researching debug code,test code,and document automatic generation for PDES application based on SUFA.The main work and innovation of this paper are as follows:1)The existing parallel simulation development environment does not provide debugging code and test code automatic generation function,debugging and test code need to be manually added,with large workload and low efficiency.In this paper,an automatic test code generation technology based on state variable program slice is proposed,which can automatically acquire program slices of all simulation object state variables according to program slice definition,and automatically inserts debug and test code according to program slices' position and content.Tests show that the technique can generate the test code effectively.2)The existing parallel simulation development environment lacks the function of classifying and displaying debugging and testing data.It needs to analyze a large amount of original simulation operation data manually to find problem,which is poor in intuition and low in efficiency.Thence,the paper presents a debugging and testing data display and analysis technology based on simulation object-state variable tree-shaped list.The technology automatically obtains the simulation object and its state variable information in the PDES application based on SUFA,and displays them in the form of a tree list.By manipulating the tree list,the user can analyze the data changes of variables,the corresponding interaction variables,dynamic program slices.Tests show that the technology can effectively improve the debugging and test data analysis.3)The existing parallel simulation development environment does not provide automatic document generation capabilities,making the design of the document needs to be manually modified,resulting in large workload,and the consistency of the document and code is difficult to be guaranteed.To solve this problem,this paper proposes an automatic generation technology of SUFA application document based on system-object-model three-level information extraction,which extracts relevant information from application,object and model,and fills the corresponding document templates to generate outline and detailed design documents.Tests show that the generated document information is complete and meet users' requirements.Based on the above research results,the paper has designed and implemented the debug and test code generation,debugging and testing data display analysis and document generation tools for PDES application,which have been integrated into SUFA.Test results show that these tools can generate debug code,test code and design documents of simulation application correctly,and can help user analyze simulation operation data efficiently,and accelerate development efficiency of PDES application.
Keywords/Search Tags:Parallel Discrete Event Simulation, Debug and Test Code, Debug and Test Data Analysis, Document Generation
PDF Full Text Request
Related items