Interactive simulation engine for electronic countermeasure simulation and universal adaptation method thereof
By using interactive simulation engine data pointer interaction and modular design, the problem of engine adaptation complexity when simulation models are added is solved, realizing an efficient and real-time simulation system that can adapt to complex and ever-changing electronic warfare scenarios.
Patent Information
- Application Number
- CN202511014427.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-11-07
AI Technical Summary
Existing simulation engines based on electronic warfare simulation require simultaneous modification of engine code or configuration files to adapt to the addition of simulation models, which increases the complexity and maintenance cost of the simulation system. Furthermore, the large amount of data interaction limits the simulation fast-forward rate.
An interactive simulation engine is used to obtain algorithm results by calling simulation model functions, and data pointers are used to store and interact with simulation model data. This achieves universal adaptation without modifying the engine code, builds a data-driven model integration mechanism, and adopts standardized interfaces and modular encapsulation technology.
It reduces system integration complexity and development and maintenance costs, eliminates latency loss in traditional communication protocols, improves the time advancement rate of simulation systems, and meets the real-time requirements of high-precision large-scale simulation scenarios.
Smart Images

Figure CN120911088A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electronic technology, in particular to an interactive simulation engine for electronic countermeasure simulation and a general adaptation method thereof. BACKGROUND
[0002] With the continuous increase in complexity in the field of modern informationization, the importance of electromagnetic environment interaction simulation technology is increasingly prominent. Electromagnetic environment interaction simulation systems have emerged as the times require, and their core function is to reproduce the complex electromagnetic signal interaction process in a digital scene, providing a technical platform for system training, strategy analysis and device performance evaluation for technical research and development teams. The development of this system integrates multiple cutting-edge technologies to cope with the challenges of escalating electromagnetic signal processing.
[0003] Electromagnetic environment interaction simulation targets various signal processing devices such as radar signal monitoring terminals and electromagnetic spectrum interference devices, and builds detailed mathematical analysis models. These models are based on the physical working mechanism and performance parameter indicators of the devices, accurately reproducing their response logic and operating state in different electromagnetic signal environments. For example, by modeling the algorithm of the radar signal data processing flow, the digital simulation of target detection capability is realized. As the core component of the system simulation platform, the simulation engine is like the "operation heart" of the entire technical system, and is a key technical module for efficient and accurate scene simulation. Its main functions include managing and scheduling simulation resources, driving model operation logic, and implementing dynamic simulation and real-time data deduction of signal interaction processes through algorithms.
[0004] First, the user sets up an electronic countermeasure scene in the software according to training or research needs, including parameters such as the combat area, the type and quantity of participating equipment, and the initial electromagnetic environment. For example, set up a sea-air joint electronic countermeasure scene in a specific sea area, and specify the electronic warfare equipment carried by each ship and aircraft. After the scene is constructed, the simulation engine initializes the models involved in the scene according to the simulation scene information, and calls their respective interfaces to set the initial working parameter information and performance parameter information of the models. After the simulation starts, the simulation engine calls the model algorithm calculation functions one by one according to the engine configuration file, and supports data interaction between models according to the set simulation logic.
[0005] Currently, in the software development based on electronic countermeasure simulation, the simulation is usually composed of a simulation engine and simulation models. Different algorithm codes are developed for each target model, and the simulation engine drives the simulation models. Since customized data interaction is required between the simulation models, the simulation engine usually uses an engine configuration file to realize the interaction of target data of each model. Therefore, when a new simulation model is added in the simulation scene, the code or the engine configuration file of the simulation engine needs to be modified synchronously for adaptation. Meanwhile, since the amount of data to be transmitted and interacted in some simulation models is large, the simulation fast-forwarding rate is limited by the data size, and the expected high-speed fast-forwarding effect cannot be achieved. SUMMARY
[0006] Since the existing simulation engine based on electronic countermeasure simulation needs to modify the engine code or the engine configuration file synchronously for adaptation after adding a simulation model, the simulation engine has the problem of insufficient general adaptation performance for each simulation model. The purpose of the present application is to solve this problem, so that a new simulation model does not need to modify the simulation engine code after being added in the simulation. Therefore, the present application proposes an interactive simulation engine for electronic countermeasure simulation and a general adaptation method thereof.
[0007] The present application adopts the following technical solutions to achieve the purpose: An interactive simulation engine for electronic countermeasure simulation, which is used to obtain algorithm results corresponding to each simulation model function by calling the function after initializing each simulation model, to realize a simulation application, and to store data required to be interacted by each simulation model in the form of a pointer, so that each simulation model obtains a pointer corresponding to the required data from the simulation engine according to its own needs, to realize data interaction. Each simulation model judges whether it needs the data corresponding to the pointer according to the type of the pointer in the simulation engine.
[0008] Further, the function modules of the simulation engine include: An initialization module, which is used to receive edited simulation scene data, statistically analyze the simulation scene data, and complete the initialization of the corresponding simulation model; A beat advancing module, which is used to provide beat advancing support for the simulation process according to the simulation execution process corresponding to the simulation scene data, and periodically call the algorithm of each simulation model to complete the data interaction of each simulation model; A guide control module, which is used to guide and control each simulation model and realize parameter adjustment according to user operations in the simulation process.
[0009] Preferably, the initialization module includes a scene data analysis unit, a task scene initialization unit, and a simulation model initialization unit. The scene data analysis unit is used to receive the transmitted simulation scene data in the form of a signal slot, and format the data to form analysis data. The task scene initialization unit is configured to construct the red and blue force programming trees and the carrying relationship in the simulation scene according to the formed analysis data, and construct the weather and terrain parameters in the scene, and to call a simulation model initialization function to set the scene parameters by using a signal slot after the construction is completed. The simulation model initialization unit is configured to generate the corresponding instantiated model based on the model algorithm library by instantiating each simulation model participating in the simulation scene according to the formed analysis data, and set the initialization attributes of the instantiated model by using a function call.
[0010] Specifically, the analysis data formed by the scene data analysis unit includes scene basic data, simulation model performance parameter data and simulation model working parameter data; in the simulation model initialization unit, the initialization attributes are set in the instantiated model, and the initialization attributes include the model name, position and track parameters.
[0011] Preferably, the beat advancing module includes a simulation beat calculation unit, an interactive data pool initialization unit, a model function calling unit and a model data interaction unit. The simulation beat calculation unit is configured to calculate the simulation time of the next second based on the preset simulation step and the accuracy requirement, and to determine whether the simulation time after the simulation advancing is within the simulation time length based on the calculation result. The interactive data pool initialization unit is configured to create a model interaction data pool for model data interaction by using a multi-threaded manner after the simulation deduction process starts. The model function calling unit is configured to call the simulation function of each simulation model at each simulation beat during the simulation deduction process, to realize the simulation advancing and obtain the corresponding simulation result. The model data interaction unit is configured to store the simulation result of each simulation model in the model interaction data pool in the form of a data pointer, and to allow each simulation model to obtain the data pointer of all other simulation models from the model interaction data pool to realize data interaction.
[0012] Specifically, the model interaction data pool created by the interactive data pool initialization unit stores the data pointers corresponding to the simulation time, model type and interaction data by using an array and a Map.
[0013] Specifically, the simulation function called by the model function calling unit includes a simulation step advancing function, a setting other model parameter function and a simulation result obtaining function.
[0014] Specifically, the model data interaction unit is configured to trigger the corresponding output interface function when the simulation function of each simulation model is called, and store the simulation result obtained by the simulation model after algorithm calculation in the model interaction data pool in the form of a data pointer; and trigger the input interface function of each simulation model, and make each simulation model obtain the data pointer from all other simulation models and meeting the demand type of the simulation model from the model interaction data pool.
[0015] Preferably, the guide control module comprises a guide parameter analysis unit and a guide function calling unit. The guide parameter analysis unit is configured to obtain instruction data from user operation, and generate guide instructions required in the simulation scene by the way of interface analysis corresponding to the instruction data; the guide instructions are configured to directly modify the corresponding parameters of each simulation model. The guide function calling unit is configured to call the instantiated guide function for the instantiated model corresponding to the simulation model, so as to realize guide calling by the way of calling the instantiated guide function, and make the instantiated model adjust the corresponding model parameters based on the transmitted guide instructions.
[0016] The application also provides a general adaptation method of the interactive simulation engine, which comprises the following steps: S1, obtaining and analyzing the simulation task, determining the corresponding simulation parameters, and completing the initialization of the simulation scene; S2, initializing each simulation model in the initialized simulation scene, and presetting the corresponding model parameters; S3, constructing a model interaction data pool, which is configured to store the data pointers of each type of data required for simulation model interaction; S4, executing the simulation deduction process, calling the simulation function of each simulation model at a simulation tempo, and calculating the corresponding simulation result data; S5, for each time of the simulation tempo, each simulation model publishes the simulation result data of the current time in the form of a data pointer in the model interaction data pool, and obtains the latest data pointer published by other simulation models from the model interaction data pool; S6, each simulation model analyzes the obtained data pointer, judges whether the data pointer is the required data of the simulation model according to the type of the data pointer, and stores the data corresponding to the data pointer in the simulation model if the data pointer is the required data of the simulation model; S7, after each simulation model completes the processing of the data pointer obtained at the current time, it judges whether the simulation deduction process reaches the preset stop condition according to whether the current simulation tempo is less than the preset maximum simulation duration, and ends the simulation deduction when the preset stop condition is reached.
[0017] As described above, the application has the following advantages due to the adoption of the technical solution: The application greatly reduces the complexity of system integration and development and maintenance costs by constructing a data-driven model integration mechanism, each simulation module can autonomously analyze shared information in the data pool and complete dynamic matching, without the need for targeted adjustment of engine core code and configuration parameters. At the same time, the application encapsulates model algorithms using dynamic libraries and realizes data interaction between modules based on data pointers, effectively eliminating the time delay loss caused by traditional communication protocols, significantly improving the time advancing ratio of the simulation system, and better meeting the real-time requirements of high-precision large-scale simulation scenarios.
[0018] At the system architecture level, the application constructs a simulation framework with adaptive capability through standardized interface design and modular packaging technology. The well-verified universal adaptation code library not only enhances the stability and fault tolerance of the system, but also provides a convenient technical extension path for subsequent function iteration with its standardized code structure and perfect document annotation system. The flexible configuration mechanism supports users to customize simulation environment parameters according to task requirements, so that the system can adapt to complex and variable electronic countermeasure scenarios, ensuring simulation accuracy while showing stronger environmental adaptability and application extensibility. BRIEF DESCRIPTION OF DRAWINGS
[0019] The embodiments and technical solutions of the application are further described in detail by the following drawings, specifically including three drawings, as follows: Figure 1 It is a schematic diagram of the module composition of the interactive simulation engine of the application; Figure 2 It is a schematic diagram of the software architecture corresponding to the interactive simulation engine of the application; Figure 3 It is a flowchart of the universal adaptation method of the interactive simulation engine of the application. DETAILED DESCRIPTION
[0020] To make the purpose, technical scheme and advantages of the embodiments of the application clearer, the technical scheme in the embodiments of the application will be described clearly and completely in combination with the drawings in the embodiments of the application. Obviously, the described embodiments are part of the embodiments of the application, not all the embodiments. The components of the embodiments of the application described and shown in the drawings can be arranged and designed in various different configurations.
[0021] Therefore, the following detailed description of the embodiments of the application provided in the drawings is not intended to limit the scope of the claimed application, but only represents selected embodiments of the application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the application without creative labor are within the scope of protection of the application.
[0022] Embodiment 1 An interactive simulation engine for electronic countermeasure simulation, which can parse scene data that needs to be simulated and initialize simulation models according to scene data information. After initializing the simulation models, the simulation engine obtains corresponding algorithm results by calling simulation model functions to realize simulation application, and stores data that need to be interacted by the simulation models in the form of pointers, so that the simulation models obtain corresponding pointers of required data from the simulation engine according to their own needs to realize data interaction. The simulation models judge whether the data corresponding to the pointers are required according to the types of the pointers in the simulation engine. The simulation engine interaction mode of the embodiment can ensure that data interaction is controlled by the simulation models, and the simulation engine code or engine configuration file does not need to be modified when the simulation models are added or modified.
[0023] In the embodiment, each simulation model receives message pointers transmitted by all other simulation models, and judges whether the data are required by the simulation models according to the types of the pointers. Meanwhile, because the simulation model data are interacted through data pointers, the simulation model data transmission communication time is greatly reduced.
[0024] As shown in Figure 1 , as preferred in the embodiment, the function modules of the simulation engine include: An initialization module, which is used to receive edited simulation scene data, statistically analyze the simulation scene data, and complete initialization of corresponding simulation models; A beat advancing module, which is used to provide beat advancing support for the simulation process according to the simulation execution process corresponding to the simulation scene data, and periodically call simulation model algorithms to complete data interaction of the simulation models; A guide control module, which is used to guide and control the simulation models and realize parameter adjustment according to user operations in the simulation process.
[0025] The following is a preferred introduction to the above three main modules of the simulation engine.
[0026] The initialization module includes a scene data parsing unit, a task scene initialization unit and a simulation model initialization unit, which are specifically as follows: The scene data parsing unit is used to receive transmitted simulation scene data in the form of signal slots, and format the simulation scene data to form parsed data; the parsed data includes scene basic data, simulation model performance parameter data and simulation model working parameter data.
[0027] The task scene initialization unit is used to construct red and blue force programming trees and carrying relationship in the simulation scene according to the formed parsed data, and construct meteorological and terrain parameters in the scene, and is used to call simulation model initialization functions to set scene parameters in the form of signal slots after the construction is completed.
[0028] The simulation model initialization unit is configured to generate, according to the formed analysis data, for each simulation model participating in the simulation scene, an instantiated model corresponding to the model algorithm library through instantiation, and set initialization attributes of the instantiated model through function calling.
[0029] In the embodiment, after the scene data analysis unit receives the externally input simulation scene data through the signal slot mechanism, the data packet is first subjected to format standardization processing, and heterogeneous data is converted into analysis data of a unified structure. The analysis data contains basic parameters describing the battlefield environment, dynamic parameters affecting the performance of the model, and working parameters controlling the behavior of the model, providing complete data support for subsequent initialization.
[0030] After the task scene initialization unit obtains the analysis data, it first constructs a hierarchical programming tree of the red and blue combat units, generates a topological structure containing command relationships, communication links and weapon loading relationships through a recursive algorithm, and converts environmental parameters such as weather conditions and terrain features into mathematical expressions that can be called by the model. When the scene topology is constructed, the system automatically triggers the signal slot calling mechanism to pass the model initialization instructions and corresponding parameters to the simulation model initialization unit. The unit loads the corresponding model template from the algorithm library according to the model identifier in the analysis data, generates an instantiated model with independent memory space using object-oriented technology, and dynamically binds the attribute setting function through the reflection mechanism, writes the model name, initial coordinates, heading angle and other parameters into the attribute table of the instance object.
[0031] The entire initialization process realizes the decoupling of data analysis, scene construction and model instantiation through a layered processing mechanism, which not only ensures the rapid construction capability of complex battlefield environment, but also ensures the accuracy of model parameter setting. The signal slot interaction between units uses multi-thread communication technology to ensure data synchronization while effectively avoiding resource competition problems in the initialization process, significantly shortening the preparation time of large-scale simulation scenes.
[0032] The beat advancing module includes a simulation beat calculation unit, an interactive data pool initialization unit, a model function calling unit and a model data interaction unit, which are specifically as follows: The simulation beat calculation unit is configured to calculate the current time and the simulation time of the next second through a preset simulation step and precision requirement, and determine whether the simulation time after simulation advancement is still within the simulation time length based on the calculation result.
[0033] The interaction data pool initialization unit is configured to create a model interaction data pool for model data interaction in a multi-threaded manner after the simulation deduction process starts; the model interaction data pool stores data corresponding to the simulation time, the model type and the interaction data by means of an array and a Map.
[0034] The model function calling unit is configured to call the simulation function of each simulation model at each simulation beat during the simulation deduction process, to realize simulation advancement and obtain the corresponding simulation result; the simulation function includes a simulation step advancement function, a function of setting other model parameters and a function of obtaining the simulation result.
[0035] The model data interaction unit is configured to store the simulation result of each simulation model in the model interaction data pool in the form of a data pointer; and to allow each simulation model to obtain the data pointer of all other simulation models from the model interaction data pool to realize data interaction.
[0036] In the embodiment, the model data interaction unit is configured to store the simulation result obtained by the simulation model after algorithm calculation in the model interaction data pool in the form of a data pointer when the simulation function of each simulation model is called; and to trigger the input interface function of each simulation model, so that each simulation model obtains the data pointer from all other simulation models and meeting the demand type of the simulation model from the model interaction data pool. In the embodiment, the data transmission in the simulation function calling is transmitted through the data pointer, which greatly reduces the data interaction time. After the function calling is completed, the data pointer returned by the function is stored in the model interaction data pool, and is ready for use by other functions.
[0037] In the embodiment, the beat advancement module realizes accurate control and efficient data interaction of the simulation deduction through a multi-dimensional collaborative mechanism. In the time dimension, the simulation beat calculation unit dynamically calculates the time step parameter by using an adaptive algorithm, intelligently determines whether the deduction process needs to be terminated by comparing the current simulation time with the preset time length threshold. The time verification logic built in the unit can ensure the continuity of the time axis under different accuracy requirements, and automatically triggers the deduction termination signal when it is detected that the next time slice exceeds the preset range, to provide an accurate time reference for subsequent data archiving.
[0038] The interaction data pool initialization unit constructs the model interaction data pool in parallel based on the multi-thread architecture after receiving the deduction start instruction, and constructs a hybrid data structure by using the linear storage characteristics of an array and the key-value mapping capability of a Map, wherein each data node contains metadata identifiers such as a timestamp and a model type, and is associated with the storage address of the actual data through a data pointer. This design not only ensures the data retrieval efficiency, but also realizes the rapid positioning of cross-model data.
[0039] In the simulation propulsion process, the model function call unit adopts time-sharing multiplexing strategy to manage the computing resources of each simulation model, and through the preset call sequence, the core algorithm module of the model is activated in each time step. The function scheduler of this unit supports the dynamic binding of three key interfaces: the propulsion function responsible for time evolution ensures the continuous change of model state along the time axis, the parameter setting function allows dynamic adjustment of running parameters across models, and the result acquisition function provides a standardized outlet for subsequent data interaction. This modular design enables the simulation propulsion to maintain time synchronization while having the ability to dynamically adjust parameters.
[0040] The model data interaction unit builds a lightweight data sharing mechanism based on data pointers, which can be memory pointers, automatically triggering the cascading call of input and output interfaces during simulation function execution. When the model completes the calculation of the current time step, the output interface registers the memory address of the result data to the interaction data pool, and the input interface filters and binds the valid data pointers published by other models from the data pool according to the preset data demand mode. This zero-copy data interaction method significantly reduces the delay caused by traditional data copying, especially significantly improves system throughput when large-scale model parallel deduction is performed.
[0041] The entire beat propulsion process is realized through the efficient cooperation of time-driven and data-driven mechanisms. The time calculation unit ensures that the deduction process meets the physical time constraints, the data pool architecture provides a low-latency channel for inter-model information exchange, and the function call sequence ensures that each model completes state update under the premise of time synchronization. The signal interaction between units uses an event bus architecture, which realizes module decoupling through a registration and listening mechanism, supports flexible expansion of simulation scale, and guarantees real-time requirements in complex scenarios. Deep application of multi-threading technology runs throughout the entire propulsion process, from data pool initialization to model function call, all using concurrent processing strategies to maintain data consistency while fully utilizing the computing power of multi-core processors, ultimately achieving the goal of high-precision, large-scale, and real-time simulation deduction.
[0042] The guide control module includes a guide parameter analysis unit and a guide function call unit, which can implement operations such as changing the flight path of the aircraft model and modifying the radar power frequency, as follows: The guide parameter analysis unit is used to obtain instruction data from user operations, and generates guide instructions required in the simulation scene through the way of interface analysis corresponding to the instruction data; the guide instructions are used to directly modify the corresponding parameters of each simulation model; The guide function call unit is used to call the instantiated guide function for the corresponding instantiated model of the simulation model, so as to realize guide call and adjust the corresponding model parameters of the instantiated model based on the transmitted guide instructions.
[0043] In this embodiment, the guiding and adjusting control module realizes the dynamic regulation and control of the simulation model through the dual mechanism of instruction analysis and function call. The guiding and adjusting parameter analysis unit adopts an interface-driven analysis strategy. When the user inputs a control instruction through the operation interface, the system first decomposes the original instruction into structured data containing the operation type, target model identifier, and parameter set through a protocol analyzer. The built-in instruction mapper matches the operation type with the preset guiding and adjusting rule library to generate a set of guiding and adjusting instructions that can be recognized by the model, wherein each instruction contains a parameter modification path, data format constraint, and action range identifier. This hierarchical analysis architecture not only supports the extension of multiple types of instructions, but also ensures the legality verification of parameter modification.
[0044] The guiding and adjusting function call unit adopts a combination of reflection mechanism and callback function. When the guiding and adjusting instruction arrives, the system locates the memory address of the target parameter through the metadata interface of the model instance, and dynamically generates a parameter modification function according to the operation type in the instruction. The function scheduler of this unit supports synchronous and asynchronous calling modes. In the synchronous mode, the parameter modification takes effect immediately, which is suitable for scenarios that require real-time response. In the asynchronous mode, the modification request is cached through an event queue, which is suitable for scenarios of large-scale parameter adjustment. The parameter modification process adopts an atomic operation mechanism, and the transaction rollback technology is used to ensure the integrity of parameter changes. When conflicts or exceptions are detected, the system automatically recovers to the previous stable state. The entire guiding and adjusting process is controlled through the closed loop of instruction driving and model response, which realizes precise intervention on key elements such as aircraft trajectory and radar parameters in the simulation scene, maintains the continuity of the simulation, and provides flexible situation regulation and control capabilities.
[0045] Figure 2 The software architecture corresponding to the interactive simulation engine of this embodiment is shown, which can be implemented in four levels. The interface layer provides a simulation engine control interface, the service layer implements model instantiation services, algorithm calling services, and data interaction pool services; the data transmission layer supports subscribing to interaction data pointers and distributing interaction data pointers, and finally the communication layer completes the push of simulation situation display data.
[0046] Embodiment 2 On the basis of Embodiment 1, this embodiment provides a general adaptation method for the interactive simulation engine thereof, which can be referred to in conjunction with the schematic of Figure 3 According to the order of steps, the method can be detailed as follows: Step 1, obtain the simulation scene task from the simulation scene design module and the like, and the simulation engine analyzes the simulation task to obtain parameters such as the maximum beat time of the simulation scene, simulation step, and simulation precision; Step 2, complete the initialization according to the simulation scene design, set the scene weather, terrain, and the like, and set the red and blue force trees according to the scene file; Step 3, according to the red and blue forces formation in the simulation scene, the model in the simulation scene is initialized; the model initialization instantiates the model algorithm library in the form of a factory class, and sets the performance parameters and working parameter information for each model in the scene; Step 4, the simulation engine establishes a model interaction data pool, which is a distribution and subscription mode, for storing data pointers of data required for interaction by simulation models, and supports the model to obtain the required data from the data interaction pool; Step 5, after the simulation starts, the simulation engine starts the simulation deduction according to the simulation tempo and precision; the deduction mode is to call the main program function in each simulation model instance according to the tempo timing; Step 6, the simulation model instance calculates according to the algorithm of each model; Step 7, the simulation model publishes the data required by other models to the model interaction data pool generated by the simulation engine in the form of a data pointer; Step 8, the simulation model obtains the data pointer of the model data interaction published by other models from the model interaction data pool; Step 9, the simulation model performs preliminary analysis on the data pointed to by each data pointer and judges the data pointer category through the internal algorithm of the model to determine whether the data is the required data of the model; if the data is the required data of the model, the data pointed to by the pointer is stored in the internal model; if the model does not need the data, the data pointer is discarded; Step 10, the simulation model pushes the data calculated from the algorithm and required for the situation interface human-computer interaction display to the situation display module of the simulation system; Step 11, after the processing of each simulation model is completed, the simulation engine judges whether the current time tempo is less than the maximum simulation duration; if the current simulation tempo is not completed, the main program function of each simulation model is called according to the next tempo from step 6; if the simulation tempo has reached the maximum value, the simulation deduction of this time is stopped, and the process is ended.
[0047] The above method step flow of the embodiment can be applied in the corresponding simulation software. When the simulation software is to be used, open the software human-computer interaction interface, and edit the simulation scene through the situation interface based on the digital earth in the task scene management interface. After the simulation scene editing is completed, enter the simulation deduction interface, and start the simulation deduction through the simulation deduction interface. During the simulation deduction process, the simulation engine uses the interactive engine general adaptation method to call each simulation model according to the simulation tempo and perform data interaction through the model interaction data pool.
Claims
1. An interactive simulation engine for electronic countermeasure simulation, characterized by: The simulation engine is used to realize simulation application by calling functions of each simulation model to obtain corresponding algorithm results after initializing each simulation model, and to store data required to be interacted by each simulation model in the form of a pointer, so that each simulation model obtains the corresponding pointer of required data from the simulation engine according to its own needs to realize data interaction; each simulation model judges whether it needs the data corresponding to the pointer according to the type of the pointer in the simulation engine.
2. The interactive simulation engine of claim 1, wherein, The function modules of the simulation engine include: An initialization module, configured to receive edited simulation scene data, statistically analyze the simulation scene data, and complete initialization of corresponding simulation models; A beat advancing module, configured to provide beat advancing support for a simulation process according to a simulation execution process corresponding to the simulation scene data, and periodically call algorithms of each simulation model to complete data interaction of each simulation model; A guide control module, configured to guide and control each simulation model and realize parameter adjustment according to user operations in the simulation process.
3. The interactive simulation engine of claim 2, wherein: The initialization module includes a scene data analysis unit, a task scene initialization unit, and a simulation model initialization unit; The scene data analysis unit is configured to receive transmitted simulation scene data in the form of a signal slot, and format the simulation scene data to form analysis data; The task scene initialization unit is configured to construct a red-blue dual-force programming tree and a carrying relationship in a simulation scene according to the formed analysis data, and construct meteorological and terrain parameters in the scene; and configured to call a simulation model initialization function to set scene parameters after the construction is completed in the form of a signal slot; The simulation model initialization unit is configured to generate corresponding instantiated models based on a model algorithm library for each simulation model participating in the simulation scene through instantiation according to the formed analysis data, and set initialization attributes of the instantiated models through function calling.
4. The interactive simulation engine of claim 3, wherein: The analysis data formed by the scene data analysis unit includes scene basic data, simulation model performance parameter data, and simulation model working parameter data; in the simulation model initialization unit, the initialization attributes are set in the instantiated models, and the initialization attributes include a model name, a position, and a track parameter.
5. The interactive simulation engine of claim 2, wherein: The beat advancing module includes a simulation beat calculation unit, an interactive data pool initialization unit, a model function calling unit, and a model data interaction unit; The simulation beat calculation unit is configured to calculate a current time and a simulation time of the next second through preset simulation steps and precision requirements, and judge whether the simulation time after simulation advancing is still within a simulation time length based on a calculation result; The interactive data pool initialization unit is configured to create a model interaction data pool for model data interaction in a multi-threaded manner after a simulation deduction process starts; The model function calling unit is configured to call simulation functions of each simulation model at each simulation beat during the simulation deduction process to realize simulation advancing and obtain corresponding simulation results; The model data interaction unit is configured to store simulation results of each simulation model in the form of a data pointer in the model interaction data pool; and configured to allow each simulation model to obtain data pointers of all other simulation models from the model interaction data pool to realize data interaction.
6. The interactive simulation engine of claim 5, wherein: The model interaction data pool created by the interaction data pool initialization unit stores data corresponding to the simulation time, the model type and the interaction data in the form of an array and a Map.
7. The interactive simulation engine of claim 5, wherein: The simulation function called by the model function calling unit includes a simulation step advancing function, a function of setting other model parameters and a function of obtaining simulation results.
8. The interactive simulation engine of claim 5, wherein: The model data interaction unit is used to trigger the corresponding output interface function when the simulation function of each simulation model is called, and store the simulation results obtained by the simulation model after algorithm calculation in the form of a data pointer in the model interaction data pool. The input interface function of each simulation model is triggered to make each simulation model obtain the data pointer from all other simulation models and meet the demand type of itself from the model interaction data pool.
9. The interactive simulation engine of claim 2, wherein: The guide control module includes a guide control parameter analysis unit and a guide control function calling unit. The guide control parameter analysis unit is used to obtain instruction data from user operations, and generate guide control instructions required in the simulation scene through the interface analysis of the instruction data. The guide control function calling unit is used to call the instantiated guide control function to realize guide control calling for the corresponding instantiated model of the simulation model, so that the instantiated model adjusts the corresponding model parameters based on the transmitted guide control instructions.
10. A method for universal adaptation of interactive simulation engines, characterized in that, The method includes the following steps: S1, obtaining and analyzing the simulation task to determine the corresponding simulation parameters and complete the initialization of the simulation scene; S2, initializing each simulation model in the initialized simulation scene and presetting the corresponding model parameters; S3, constructing a model interaction data pool for storing the data pointers of each type of data required for simulation model interaction; S4, executing the simulation deduction process, calling the simulation function of each simulation model at a fixed time according to the simulation tempo, and calculating the corresponding simulation result data; S5, for each time of the simulation tempo, each simulation model publishes the simulation result data of the current time in the form of a data pointer in the model interaction data pool, and obtains the latest data pointer published by other simulation models from the model interaction data pool; S6, each simulation model analyzes the obtained data pointer, judges whether it is the required data of itself according to the data pointer type, and stores the data corresponding to the data pointer in itself if it is; S7, after each simulation model processes the data pointer obtained at the current time, it judges whether the simulation deduction process reaches the preset stop condition according to whether the current simulation tempo is less than the preset maximum simulation duration, and ends the simulation deduction when the preset stop condition is reached.
Citation Information
Cited By
Simulation material card general analysis system
CN121765910A