Font Size: a A A

Research And Implementation Of Automatic Initialization Technology For Parallel Discrete Event Simulation Systems

Posted on:2018-01-01Degree:MasterType:Thesis
Country:ChinaCandidate:S R BaoFull Text:PDF
GTID:2370330623450802Subject:Control Science and Engineering
Abstract/Summary:PDF Full Text Request
Simulation system initialization is an important part of simulation inference,which affects the correct implementation of the simulation system.However,with the complexity of the simulation system is getting higher and higher,the difficulty and workload of the initialization code development is more and more big.The traditional manual coding development model is time-consuming,tedious,easy to introduce artificial error and other issues,has become an important factor restricting the development efficiency of simulation system.Therefore,the research on automatic initialization technology of parallel discrete event simulation system has important theoretical and practical significance for improving the efficiency of simulation system development and reducing the artificial error.In order to solve the problem of automatic initialization,this paper focuses on the key issues such as the design of data storage,the design of assignment function and the automatic generation of code.The main work and innovation are as follows:(1)A simulation scenario data storage method based on nested hash is proposed.Due to the large amount of data and the complicated data structure,the traditional data storage methods are difficult to meet the needs of fast and efficient initialization data matching.So the data storage structure based on nested hash(NHMS)is proposed.According to the simulation object class,instance and attribute,the data are nested in three layers.,establishing initialization data consistent with the corresponding relationship between the structure of simulation system and scenario.In the process of automatic initialization,the simulation system can quickly search the initial value of the simulation object attribute according to the simulation object class name,instance name and simulation object attribute name from the NHMS structure,so as to provide the efficient support for the storage and query of the simulation data.(2)A method of scenario data match based on assignment function is proposed.In the process of automatic initialization of the simulation system,there is a question of how the variables and the range match.For this reason,this paper proposes a method of scenario data adaptation based on assignment function.According to the cache structure of the scenario data,the assignment function is designed to meet the needs of various data types.The assignment function parameters according to the simulation object class name,attribute name and other information,in the scenario data cache structure to initialize the data automatically find the attribute value,so as to realize the matching between the simulation object attribute variable and its initialization value.(3)A simulation object initialization code automatic generation technology based on Velocity template is proposed.The traditional "piling code" development method,once the parameters of the file to make changes,it need to frequently modify the code and re-compile,resulting in large workload,high error rate,low efficiency.In this paper,the Velocity template engine generates the object code by replacing the template variable with the initialization information obtained from the model description file as the input parameter.When you want to change the parameters within the file,just run the code generator again to reproduce the simulation initialization code,reducing the manual participation and code error rate,improve efficiency.On the basis of the above research results,the design and implementation of the parallel discrete event simulation system automatica initialization software,the air defense anti-missile simulation system example test shows that the software automatically generates the initialization program and can correctly assign the variables for each initialization,verify the work of the paper Effectiveness and practicability.
Keywords/Search Tags:PDES, Nested Hash Storage, Assignment Function Library, Automatica Code Generation, Aautomatic Initialization
PDF Full Text Request
Related items