Design method of simulation data automated testing tool based on common data model
Through the simulation data automation testing tool based on the public data model, localization and advance testing in distributed simulation development is realized, and communication and coordination problems caused by inconsistent node development progress is solved, development efficiency and testing accuracy are improved, and development work is simplified. .
Patent Information
- Application Number
- CN202411532049.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-10-30
AI Technical Summary
During the distributed simulation development and debugging stage, you need to wait for all nodes to complete before data transmission and reception testing is carried out, resulting in long-term waiting and communication and coordination problems, and data modification is inconvenient and cannot be reused, which increases the workload of system development.
Design a simulation data automation testing tool based on public data model. By building a joint simulation test system, including the measured simulation unit, test data generation tool and data processing module, use the file reading module to extract the public data model, and set up the public order relationship The module automatically selects the appropriate relationship, preset simulation data modules to redefine the data structure, and auxiliary function modules are responsible for data processing and storage, realizing localized early testing.
It significantly reduces time and cost consumption during the development process, improves development efficiency and progress, simplifies the work of developers, improves the degree of automation and accuracy of tests, supports testing of multiple programs, and solves the inconsistent development progress of nodes. Communication and coordination problems.
Smart Images

Figure CN119046172B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulation data testing, and in particular to a design method for a simulation data automatic testing tool based on a public data model. Background Art
[0002] Due to its good reusability, interoperability and scalability, the High Level Architecture (HLA) technology has shown strong vitality in the simulation field and represents the direction of future simulation technology development. At present, several large-scale HLA-based simulation systems have been successfully developed in China, and higher requirements have been put forward for the supporting software of HLA technology. In the early stage, simulation middleware (KD-JLINK) and public data model development tools (JModel) were developed on the basis of the run-time support environment (Run-Time Infrastructure—RTI). However, in the previous distributed simulation development and debugging stage, it was necessary to wait until all nodes were developed before testing data sending and receiving, which resulted in long waiting times and communication and coordination problems; or one or more nodes had to be developed by themselves for testing, which resulted in inconvenient data modification and non-reusability, and would greatly increase the system development workload. Summary of the invention
[0003] Based on this, it is necessary to provide a design method for a simulation data automation testing tool based on a common data model that can improve the efficiency of joint simulation data development in response to the above technical problems.
[0004] A design method for a simulation data automation test tool based on a common data model, applied to a joint simulation server, the method comprising:
[0005] The joint simulation test system is constructed according to the public data model. The joint simulation test system includes: a simulation unit under test, a test data generation tool and a data processing module.
[0006] The test data generation tool includes: a basic function module and an auxiliary function module, wherein the basic function module includes: a file reading module, a publishing subscription relationship setting module, a preset simulation data module and a publishing data result display module.
[0007] The file reading module is used to extract the common data model and data type of the joint simulation data from the simulation unit under test, store the common data model and data type in the local memory of the data processing module, and send the common data model to the module for setting the publication subscription relationship.
[0008] A publishing subscription relationship module is set up to reversely select the publishing subscription relationship according to the received public data model and output it to the preset simulation data module.
[0009] The preset simulation data module is used to redefine the data structure according to the published subscription relationship of the set joint simulation data, and send the record of the redefined data structure to the auxiliary function module.
[0010] The data result display module is used to call the joint simulation data of the auxiliary function module and the test results of the data processing module for display.
[0011] The auxiliary function module is used to retrieve and save the data records of the joint simulation data obtained by the preset simulation data module.
[0012] In one of the embodiments, the joint simulation test system establishes a communication connection with the joint simulation server for simulation data testing through the publishing end and the ordering end respectively.
[0013] In one embodiment, the file reading module is also used to read the JCD format file of the simulation unit under test to extract the data type definition and public data model of the joint simulation data. The data type definition includes: enumeration type array class and compound type array class. The public data model includes: object class attribute publication subscription attribute and interaction class parameter publication subscription attribute.
[0014] In one of the embodiments, a module for publishing and subscribing relationships is set up, and is also used to receive a simulation setting plan from a user through an operation interface of a joint simulation test system, perform reverse selection of published and subscribing relationships based on the simulation setting plan and a public data model, and output published object class attributes, subscribed object class attributes, published interaction class parameters, and subscribed interaction class parameters to a preset simulation data module.
[0015] In one of the embodiments, the preset simulation data module is also used to process the historical data records of the joint simulation data saved by the auxiliary function module according to the simulation setting plan, output the registration object records, attribute update records and send the interaction records to the auxiliary function module.
[0016] In one embodiment, the auxiliary function module includes: saving settings and importing settings. Saving settings is used to save the data records of the joint simulation data set by the user in the preset simulation data module to a local storage file. Importing settings is used to retrieve the data records of the joint simulation data set by the user in the local storage file, and import the data records into the published data result display module to display the test data results.
[0017] In one of the embodiments, after starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the publishing end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, and according to the simulation data preset by the user and the data message format of the test data generation tool, the joint simulation test data stored in the data structure in the data processing module is packaged into a legal data stream, and the interface is called to transmit the data stream to the joint simulation server, which is then transmitted to the simulation unit under test by the joint simulation server.
[0018] In one of the embodiments, after starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the ordering end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, receives the data stream sent by the simulation unit under test transmitted by the joint simulation server, unpacks the data stream into readable simulation test data according to the data message format of the test data generation tool, and stores it in the corresponding data structure in the data processing module, and at the same time displays the stored simulation test data by publishing the data result display module.
[0019] The design method of the simulation data automation test tool based on the common data model first constructs a joint simulation test system based on the common data model, and the test system consists of a simulation unit under test, a test data generation tool and a data processing module. The test data generation tool includes a basic function module and an auxiliary function module. Among them, the basic function module includes a file reading module, a module for setting a published ordering relationship, a preset simulation data module and a published data result display module. Through the file reading module, the common data model and data type are extracted from the simulation unit under test and stored in the local memory. Thereafter, by setting a published ordering relationship module, a suitable published ordering relationship is automatically selected according to the common data model, and then the preset simulation data module redefines the data structure according to this relationship. In the whole process, the auxiliary function module is responsible for retrieving, saving and processing the joint simulation data to ensure the smooth progress of the whole test process. Localized testing is effectively realized, allowing developers to perform localized advance testing in the process of program development of different simulation nodes without waiting for other nodes to complete. This advance testing method significantly reduces the time and cost consumption in the development process and improves the development efficiency and progress. In addition, automated data format file parsing and test data generation tools further simplify developers’ work, reduce manual intervention, and improve the automation and accuracy of testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a design method of a simulation data automation testing tool based on a common data model in one embodiment;
[0021] Figure 2A schematic diagram of a JTest simulation unit test data flow in an embodiment;
[0022] Figure 3 A JTest software hierarchy diagram in one embodiment;
[0023] Figure 4 IPO diagram of a system master console in one embodiment;
[0024] Figure 5 IPO diagram of a module for reading a JCD file in one embodiment;
[0025] Figure 6 An IPO diagram of a publication subscription relationship module is provided in one embodiment;
[0026] Figure 7 A preset simulation data module IPO diagram in one embodiment;
[0027] Figure 8 It is a result display module IPO diagram in one embodiment;
[0028] Fig. 9 For saving a setting module IPO diagram in one embodiment;
[0029] Fig.10 This is an IPO diagram of an import setting module in one embodiment. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0031] In one embodiment, Figure 1 As shown, a design method for a simulation data automation test tool based on a common data model is provided, and the method is applied to a KD-JLINK simulation server as an example for illustration, including the following steps:
[0032] Step 102: construct a joint simulation test system according to the public data model. The joint simulation test system includes: a simulation unit under test, a test data generation tool, and a data processing module.
[0033] The test data generation tool includes: a basic function module and an auxiliary function module, wherein the basic function module includes: a file reading module, a publishing subscription relationship setting module, a preset simulation data module and a publishing data result display module.
[0034] Step 104, the file reading module is used to extract the common data model and data type of the joint simulation data from the simulation unit under test, store the common data model and data type in the local memory of the data processing module, and send the common data model to the module for setting the publication subscription relationship.
[0035] Step 106, setting a publishing subscription relationship module, which is used to reversely select the publishing subscription relationship according to the received public data model and output it to the preset simulation data module.
[0036] Step 108, presetting the simulation data module, is used to redefine the data structure according to the published subscription relationship of the set joint simulation data, and send the record of the redefined data structure to the auxiliary function module.
[0037] Step 110, publishing a data result display module, which is used to call the joint simulation data of the auxiliary function module and the test results of the data processing module for publication and display.
[0038] Step 112, an auxiliary function module is used to retrieve and save data records of the joint simulation data obtained by the preset simulation data module.
[0039] In the design method of the simulation data automation test tool based on the common data model, a joint simulation test system is first constructed based on the common data model, and the test system consists of a simulation unit under test, a test data generation tool and a data processing module. The test data generation tool includes a basic function module and an auxiliary function module. Among them, the basic function module includes a file reading module, a publishing subscription relationship setting module, a preset simulation data module and a publishing data result display module. Through the file reading module, the common data model and data type are extracted from the simulation unit under test and stored in the local memory. Thereafter, by setting the publishing subscription relationship module, a suitable publishing subscription relationship is automatically selected according to the common data model, and then the preset simulation data module redefines the data structure according to this relationship. In the whole process, the auxiliary function module is responsible for retrieving, saving and processing the joint simulation data to ensure the smooth progress of the whole test process. Localized testing is effectively realized, allowing developers to perform localized advance testing in the process of program development of different simulation nodes without waiting for other nodes to complete. This advance testing method significantly reduces the time and cost consumption in the development process and improves the development efficiency and progress. In addition, automated data format file parsing and test data generation tools further simplify developers’ work, reduce manual intervention, and improve the automation and accuracy of testing.
[0040] In one of the embodiments, the joint simulation test system establishes a communication connection with the joint simulation server for simulation data testing through the publishing end and the ordering end respectively.
[0041] In one embodiment, the file reading module is also used to read the JCD format file of the simulation unit under test to extract the data type definition and public data model of the joint simulation data. The data type definition includes: enumeration type array class and compound type array class. The public data model includes: object class attribute publication subscription attribute and interaction class parameter publication subscription attribute.
[0042] In one of the embodiments, a module for publishing and subscribing relationships is set up, and is also used to receive a simulation setting plan from a user through an operation interface of a joint simulation test system, perform reverse selection of published and subscribing relationships based on the simulation setting plan and a public data model, and output published object class attributes, subscribed object class attributes, published interaction class parameters, and subscribed interaction class parameters to a preset simulation data module.
[0043] In one of the embodiments, the preset simulation data module is also used to process the historical data records of the joint simulation data saved by the auxiliary function module according to the simulation setting plan, output the registration object records, attribute update records and send the interaction records to the auxiliary function module.
[0044] In one embodiment, the auxiliary function module includes: saving settings and importing settings. Saving settings is used to save the data records of the joint simulation data set by the user in the preset simulation data module to a local storage file. Importing settings is used to retrieve the data records of the joint simulation data set by the user in the local storage file, and import the data records into the published data result display module to display the test data results.
[0045] It is worth noting that saving settings means saving the simulation data records preset by the user to a local storage file. Importing settings means restoring the simulation data previously saved by the user to the interface, allowing the user to skip some operation steps and call the stored data setting scheme more quickly and automatically.
[0046] In one of the embodiments, after starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the publishing end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, and according to the simulation data preset by the user and the data message format of the test data generation tool, the joint simulation test data stored in the data structure in the data processing module is packaged into a legal data stream, and the interface is called to transmit the data stream to the joint simulation server, which is then transmitted to the simulation unit under test by the joint simulation server.
[0047] In one of the embodiments, after starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the ordering end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, receives the data stream sent by the simulation unit under test transmitted by the joint simulation server, unpacks the data stream into readable simulation test data according to the data message format of the test data generation tool, and stores it in the corresponding data structure in the data processing module, and at the same time displays the stored simulation test data by publishing the data result display module.
[0048] It is worth noting that the test data generation tool is not only universal and can support testing of many different types of programs, but also solves the communication and coordination problems caused by inconsistent node development progress in the previous simulation system development process. Through this automated joint simulation data testing tool, developers can complete the integration and debugging of the simulation system at a lower cost and higher efficiency, greatly shortening the system development cycle and improving the quality and maintainability of system integration development.
[0049] In one embodiment, if Figure 2 As shown in the figure, the JTest simulation unit test data flow is provided. The test data generation tool (JTest) is mainly divided into two software: the test data generation tool publishing end and the test data generation tool subscription end. The two will not affect each other and can be flexibly added to the same or different joint simulations as needed. The test data generation tool adopts a data flow-oriented design method. By analyzing the data flow during the simulation unit test, the overall structure and module functional structure of the test data generation tool software are abstracted on this basis. The specific contents are as follows:
[0050] Select the JCD file according to the unit under test, read the JCD file to obtain the joint simulation name, the common data model of the joint simulation, including the object class, interaction class, related attributes, parameter descriptions, etc., as well as the defined enumeration and composite type data. The tool stores the obtained information in the corresponding array and other data structures and displays part of the information in the information display area. The user reversely selects the publication and subscription relationship of the object class and the interaction class from the publication and subscription relationship of the unit under test to obtain the publication and subscription relationship of the tool. The user performs preset simulation data operations according to the publication and subscription relationship of the tool, including adding instances and assigning values to the attributes of the object instance and the parameters of the interaction class. The tool will store the preset simulation data on the interface in a specially defined data structure. After the unit under test joins the joint simulation, the tool starts simulating. The actions of the publishing end and the subscribing end are inconsistent and described separately. After the publishing end starts simulating, the interface of the encapsulated simulation middleware is called to join the same joint simulation. According to the simulation data preset by the user and the data message format of the simulation middleware, the simulation data in the data structure is packaged into a legal data stream and the interface is called to transmit the data stream to the simulation middleware server, which is then transmitted to the unit under test; after the subscribing end starts simulating, it also calls the interface of the encapsulated simulation middleware to join the same joint simulation, receives the data stream sent by the unit under test transmitted by the server, unpacks the data stream into readable simulation data according to the data message format of the simulation middleware, stores it in the corresponding data structure, and displays the data in the information display area. The information display area is refreshed periodically to display real-time data.
[0051] In one embodiment, if Figure 3 As shown in the figure, a JTest software hierarchy block diagram is provided. The JTest software is mainly divided into three modules in terms of structure: system console interface, basic function module, and auxiliary function module. The basic functions of the JTest software are realized by calling each basic function module through the console interface, and the relevant test operations can also be simplified through the auxiliary module. There are two calling methods for the system console interface: dialog box call and menu bar call; there are 4 basic function modules: reading JCD files, setting publishing ordering relationships, preset simulation data and result display; there are 2 calling methods for the auxiliary function module: retaining settings and importing settings. Each sub-module can be further subdivided, such as the preset simulation data sub-module can be further subdivided into: registering objects, updating attributes and sending interaction modules. After numbering the calling relationships and positions between the modules, the JTest software hierarchy diagram is obtained. Figure 3 A rectangle in the figure represents a module, and the lines between the boxes represent the calling relationship.
[0052] It is worth mentioning that the test data generation tool directly faces user needs by reading JCD files and calling and encapsulating the middleware simulation service interface. It can generate legal data streams for any joint simulation according to the data input by the user or the default values and data message formats preset by the tool, and transmit them to the simulation service, which is then transmitted to the ordering party by the simulation service. It can also order any object class and interaction class, and convert the received data streams to display on the interface, which is convenient for users to verify the consistency of the simulation unit and perform functional testing, greatly reducing the workload of users. Users only need to focus on developing their own simulation units, reducing the time and cost of system development, which is beneficial to the development progress of the system, greatly saving the time of simulation system integration development and debugging, supporting automatic data format file parsing, and automatic test data generation. It is versatile and can support the testing of many different programs.
[0053] In one embodiment, the system console interface is relatively intuitive, and the user can operate according to the instructions and select and call various functional modules through the visual human-computer interface. Figure 4 shown.
[0054] In one of the embodiments, there are four basic functional modules: reading JCD files, setting publishing subscription relationships, presetting simulation data and displaying results.
[0055] 1) Read JCD file. Function: Read JCD file to obtain the common data model of joint simulation, including object class, interaction class, related attributes, parameter description, etc., as well as defined enumeration and composite type data.
[0056] Input: JCD file of the unit under test.
[0057] Output: data type definition and common data model of joint simulation, including enumeration type array class, compound type array class, object class attribute publication ordering attributes of the unit under test, and interactive class parameter publication ordering attributes.
[0058] Its "input-processing-output" description is as follows Figure 5 shown.
[0059] 2) Set the publication and subscription relationship. Function: The user obtains the publication and subscription relationship description of the unit under test from the JCD file, reversely selects the publication and subscription relationship of the object class and the interaction class, and obtains the publication and subscription relationship of JTest.
[0060] Input: object class data records, interaction class data records, user setting operations, etc.
[0061] Output: Publish subscription relationships, including: published object class, subscribed object class, published interaction class, subscribed interaction class.
[0062] Its "input-processing-output" description is as follows Figure 6 shown.
[0063] 3) Preset simulation data, function: Preset the simulation data that will be sent by JTest to the unit under test during the test. The preset simulation data contains three parts: registering objects, updating properties, and sending interactions. The preset data is recorded in a specially defined data structure.
[0064] Input: published object class data records, published interaction class data records, enumeration class array descriptions, composite class array descriptions, user operation instructions, etc.
[0065] Output: registered object records, attribute update records, sent interaction records, etc., including simulation time, object name, object attribute value, interaction parameter value, etc.
[0066] Its "input-processing-output" description is as follows Figure 7 shown.
[0067] 4) Result display: Function: Get the data ordered by JTest and display it on the console.
[0068] Input: JTest ordered data.
[0069] Output: Human-machine interface result display area.
[0070] Its "input-processing-output" description is as follows Figure 8 shown.
[0071] 5) Auxiliary function module
[0072] The auxiliary function module has two submodules: Save Settings and Import Settings. Save Settings Information, Function: Save the data records obtained from each step of the operation on the console to the specified text file to simplify the setting operation when repeating the test.
[0073] Input: Data records obtained from each step of operation on the console.
[0074] Output: A text file with a fixed location and name, containing various setting information.
[0075] Its "input-processing-output" description is as follows Fig. 9 shown.
[0076] Import setting information, function: import various data record information from the specified text file to the console interface.
[0077] Input: The specified text file.
[0078] Output: Various data records required by JTest on the console.
[0079] Its "input-processing-output" description is as follows Fig.10 shown.
[0080] In one embodiment, the JTest software can be briefly divided into 8 functional modules according to the functional structure: human-machine interface, reading JCD files, setting publishing subscription relationships, presetting simulation data, running process control, result display, saving settings, and importing settings. 9 program modules are used to implement these functions, which are: reading JCD, setting publishing subscription relationships, multi-granularity processing, presetting simulation data, data processing and storage, running control, result display, saving settings, and importing settings. The corresponding relationship between each functional module and the program implementation code module is shown in Table 1 below:
[0081] Table 1 Correspondence between the functional modules and program modules of JTest software
[0082]
[0083] In one embodiment, when the JTest software is used for testing, the operation control is divided into two stages: starting simulation and stopping simulation. The operation control steps of each stage are as follows:
[0084] Start simulation:
[0085] (1) Start the JTest console
[0086] Double-click the JTestSub.exe and JTestPub.exe files or select the "Open" command in the shortcut list after selecting them.
[0087] (2) Perform relevant preprocessing operations
[0088] For JTestPub, check the classes to be published and preset data, and for JTestSub, check the classes to be subscribed.
[0089] (3) Start the KD-JLINK server
[0090] Enter the machine where the KD-JLINK server is located and go to the installation directory: cd / opt / KD-JLINK / bin; start the JLink service: . / startup.sh.
[0091] (4) Start the unit under test
[0092] Double-click the executable file of the unit under test or select the file and choose the "Open" command in the shortcut list.
[0093] (5) The unit under test is added to the joint simulation
[0094] Operate according to the specific design of the unit under test.
[0095] (6) JTest joins joint simulation
[0096] Click the "Start Simulation" button on the JTest console interface.
[0097] Stop the simulation:
[0098] (1) Test unit exits joint simulation
[0099] Operate according to the specific design of the member being tested.
[0100] (2) JTest exits joint simulation
[0101] Click the "Stop Simulation" button on the JTest console interface.
[0102] (3) Stop the KD-JLINK server
[0103] Enter the machine where the KD-JLINK server is located and go to the installation directory: cd / opt / KD-JLINK / bin; stop the JLink service: . / killall.sh.
[0104] It is worth mentioning that, considering the existing technology, when the common data model of the joint simulation changes, the code framework also needs to be regenerated and modified. If the user develops the program for testing by himself, when the common data model of the joint simulation changes, the user needs to modify and maintain multiple programs at the same time, which increases the workload exponentially. This tool reads the common data model and stores all the information in the corresponding arrays or other data structures. It encapsulates and calls the native underlying interfaces of various services provided by the simulation middleware and packs and unpacks them according to the data message format of the simulation middleware. Users only need to perform interface operations (select the common data model file (JCD file) and preset simulation data on the human-computer interaction interface, etc.), shielding the standard details and underlying network of the simulation middleware, achieving the purpose of automated testing, with strong versatility, can adapt to different joint simulations, and the interface human-computer interaction is very friendly.
[0105] It should be understood that although Figure 1-Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 2At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0106] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A design method for a simulation data automation testing tool based on a common data model, characterized in that: Applied to a joint simulation server, the method comprises: Constructing a joint simulation test system according to the public data model; the joint simulation test system comprises: a simulation unit under test, a test data generation tool and a data processing module; The test data generation tool includes: a basic function module and an auxiliary function module, wherein the basic function module includes: a file reading module, a publishing subscription relationship setting module, a preset simulation data module and a publishing data result display module; The file reading module is used to extract the common data model and data type of the joint simulation data from the simulation unit under test, store the common data model and the data type in the local memory of the data processing module, and send the common data model to the module for setting the publishing subscription relationship; The module for setting the publishing and ordering relationship is used to reversely select the publishing and ordering relationship according to the received public data model and output it to the preset simulation data module; The preset simulation data module is used to redefine the data structure according to the published subscription relationship of the set joint simulation data, and send the record of the redefined data structure to the auxiliary function module; The published data result display module is used to call the joint simulation data of the auxiliary function module and the test results of the data processing module for publication and display; The auxiliary function module is used to retrieve and save the data records of the joint simulation data acquired by the preset simulation data module; The joint simulation test system is connected to the joint simulation server for communication with the simulation data test through the publishing end and the ordering end respectively; After starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the publishing end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, and according to the simulation data preset by the user and the data message format of the test data generation tool, packages the joint simulation test data stored in the data structure in the data processing module into a legal data stream, and calls the interface to transmit the data stream to the joint simulation server, and the joint simulation server transmits it to the simulation unit under test; After starting the joint simulation, the joint simulation test system starts the test data generation tool, and at the ordering end, calls the interface of the encapsulated simulation unit under test to join the same joint simulation, receives the data stream sent by the simulation unit under test transmitted by the joint simulation server, unpacks the data stream into readable simulation test data according to the data message format of the test data generation tool, and stores it in the corresponding data structure in the data processing module, and at the same time displays the stored simulation test data through the published data result display module.
2. The method according to claim 1, characterized in that The file reading module is further used to read the JCD format file of the simulation unit under test to extract the data type definition and common data model of the joint simulation data; The data type definition includes: enumeration type array class and composite type array class; The public data model includes: object class attribute publication subscription attributes and interaction class parameter publication subscription attributes.
3. The method according to claim 2, characterized in that The module for setting up publication and subscription relationship is also used to receive the simulation setting plan of the user through the operation interface of the joint simulation test system, perform reverse selection of publication and subscription relationship according to the simulation setting plan and the public data model, and output the published object class attributes, the subscribed object class attributes, the published interaction class parameters and the subscribed interaction class parameters to the preset simulation data module.
4. The method according to claim 3, characterized in that The preset simulation data module is also used to process the historical data records of the joint simulation data saved by the auxiliary function module according to the simulation setting plan, output the registration object records, attribute update records and send the interaction records to the auxiliary function module.
5. The method according to claim 3, characterized in that: The auxiliary function module includes: saving settings and importing settings; The saving setting is used to save the data record of the joint simulation data set by the user in the preset simulation data module to a local storage file; The import setting is used to retrieve the data record of the joint simulation data set by the user in the local storage file, and import the data record into the published data result display module to display the test data results.