CN105242958A - Virtual testing system and HLA simulation system data exchange method - Google Patents

Virtual testing system and HLA simulation system data exchange method Download PDF

Info

Publication number
CN105242958A
CN105242958A CN201510829895.4A CN201510829895A CN105242958A CN 105242958 A CN105242958 A CN 105242958A CN 201510829895 A CN201510829895 A CN 201510829895A CN 105242958 A CN105242958 A CN 105242958A
Authority
CN
China
Prior art keywords
hla
experiment system
dummy experiment
mapping relations
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510829895.4A
Other languages
Chinese (zh)
Other versions
CN105242958B (en
Inventor
杨京礼
范菁
林连雷
姜守达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201510829895.4A priority Critical patent/CN105242958B/en
Publication of CN105242958A publication Critical patent/CN105242958A/en
Application granted granted Critical
Publication of CN105242958B publication Critical patent/CN105242958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a virtual testing system and HLA simulation system data exchange method and aims at solving the problems that data exchange between an existing virtual testing system and an HLA simulation system is dependent on customized development, in lack of universality, high in programming capability of users, large in human and material resource waste and long in development cycle. A process of the method comprises the following steps: 1, obtaining virtual testing system basic information, virtual testing system object model information and a virtual testing system instance array; 2, obtaining HLA system basic information and HLA object model information; 3, declaring HLA instance information; 4, obtaining a mapping relation between virtual testing system instance information and the HLA instance information; 5, generating a mapping scheme file; 6, initializing an HLA federate interface and a virtual testing system federate interface; 7, executing data exchange. The virtual testing system and HLA simulation system data exchange method is applied to the field of virtual tests.

Description

A kind of dummy experiment system and HLA simulation system data switching method
Technical field
The present invention relates to dummy experiment system and HLA simulation system data switching method.
Background technology
At present, HLA (" HighLevelArchitecture; modeling and simulation the High Level Architecture ") analogue system of many Various Functions is there is in virtual test field, because the communication protocol of HLA architecture with virtual trial system structure is not mated, therefore there is exchanges data difficulty when HLA analogue system and dummy experiment system carry out interconnected, the problem virtual test of Combination application cannot be carried out.
The mode that the existing solution dummy experiment system of current virtual test and HLA simulation system data exchange all realizes by developing dedicated gateway method, namely for system integrated of two different architecture determined, the factor such as analyzing communication content, mode, direction, frequency, develops special protocol conversion software simulating exchanges data.Although these class methods can realize the exchanges data between two type systematics, but can only for concrete task, lack versatility, when the integration environment of system changes, developer must change program even to be needed to re-start gateway exploitation, require higher to the program capability of developer, waste a large amount of manpower and materials, and the construction cycle is longer.
Summary of the invention
The object of the invention is to rely on customized development to solve exchanges data between current dummy experiment system and HLA analogue system, lacking versatility, higher to user program Capability Requirement, waste a large amount of manpower and materials, construction cycle long problem, and a kind of dummy experiment system and HLA simulation system data switching method are proposed.
Above-mentioned goal of the invention is achieved through the following technical solutions:
Step one, parsing dummy experiment system testing program file, obtain dummy experiment system essential information, dummy experiment system object model information and dummy experiment system example array;
Step 2, parsing HLA system FED file, obtain HLA system essential information, HLA object model information;
Step 3, HLA object model information according to step 2, statement HLA example information;
Step 4, dummy experiment system example and HLA example to be mapped, obtain the mapping relations of dummy experiment system example information and HLA example information;
Step 5, mapping relations according to dummy experiment system essential information, HLA system essential information, dummy experiment system object model information, HLA object model information and dummy experiment system example information and HLA example information, generate mapping scheme file;
Step 6, according to mapping scheme file initialization HLA nation person's interface and dummy experiment system member interface;
Step 7, use step 6 initialized HLA nation person's interface and dummy experiment system member interface perform exchanges data.
Invention effect
This invention propose dummy experiment system and HLA simulation system data switching method and can solve by maps virtual experimental system object instance and HLA object instance the problem that dummy experiment system and HLA analogue system directly cannot carry out exchanges data, guarantee by the mapping relations being assigned to instance properties the accuracy that data are changed, guaranteed the correctness of reading and writing data by dividing data buffer zone.
At present, the method has been applied in certain missile intercept l-G simulation test, the high-speed traffic of virtual test fire control system and certain HLA analogue system can be realized, actual test result shows that dummy experiment system that this invention proposes and HLA simulation system data switching method are 100% for the accuracy rate of the exchange of the identical categorical data in two ends, the method proposed by the present invention is write without the need to any code and is got final product the exchanges data that robotization realizes two kinds of systems, without the need to a large amount of manpower and materials, the cycle time of two kinds of system exchanges data more than 50% will be realized, greatly reduce cost of development simultaneously, possesses good versatility.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention;
Fig. 2 is virtual test instance objects process of analysis figure;
Fig. 3 is HLA object class process of analysis figure;
Fig. 4 is statement HLA object instance process flow diagram;
Fig. 5 maps process flow diagram for adding HLA to virtual test;
Fig. 6 is mapping scheme element structure figure, commentdescribingyourrootelement is the root element that comment describes you, and 1 represents that the right is the child node on the left side, and 2 represent that the right is the attribute on the left side, and it is multiple that ∞ represents that child node exists;
Fig. 7 is virtual test member interface initialization flowchart;
Fig. 8 is HLA nation person interface initialization process flow diagram;
Fig. 9 is that data are by the process flow diagram of dummy experiment system to HLA analogue system;
Figure 10 is system testing network structure, and RTI is run time infrastructure;
Figure 11 is the main surface chart of testing software;
Figure 12 is object model diagram in dummy experiment system testing program;
Figure 13 is the object model diagram of HLA analogue system;
Figure 14 is newly-built mapping scheme figure;
Figure 15 is editing interface initialization figure;
Figure 16 is that the properties/parameters data type of configuration HLA completes figure;
Figure 17 is that project edit completes figure;
Figure 18 is dummy experiment system-HLA gateway system information figure;
Figure 19 is dummy experiment system-HLA gateways and starting mapping hint hum pattern;
Figure 20 is dummy experiment system-HLA gateway service data figure;
Figure 21 is that HLA Bang Yuan testing software receives example TestLocation data plot, and TestLocation is example random designations;
Figure 22 is that HLA Bang Yuan testing software sends example TestLaunch data plot, and TestLaunch is example random designations;
Figure 23 is the data plot of TIDE platform display module display, and TIDE is the dummy experiment system development environment that Harbin Institute of Technology's automatic test is developed with control research institute;
Figure 24 is the service data figure of dummy experiment system-HLA gateway;
Figure 25 is that dummy experiment system-HLA gateway closes mapped system information figure.
Embodiment
Embodiment one: composition graphs 1 illustrates present embodiment, a kind of dummy experiment system of present embodiment and HLA simulation system data switching method, specifically prepare according to following steps:
Step one, parsing dummy experiment system testing program file, obtain dummy experiment system essential information, dummy experiment system object model information and dummy experiment system example array;
Step 2, parsing HLA system FED file, obtain HLA system essential information, HLA object model information;
Step 3, improve HLA object model information;
Step 3, HLA object model information according to step 2, statement HLA example information;
Step 4, dummy experiment system example and HLA example to be mapped, obtain the mapping relations of dummy experiment system example information and HLA example information;
Step 5, mapping relations according to dummy experiment system essential information, HLA system essential information, dummy experiment system object model information, HLA object model information and dummy experiment system example information and HLA example information, generate mapping scheme file;
Step 6, according to mapping scheme file initialization HLA nation person's interface and dummy experiment system member interface;
According to the basic setup initializers of dummy experiment system and HLA system, this software and dummy experiment system and HLA system are set up respectively, and one contacts, a kind of passage, carries out the transmission of data;
Step 7, use step 6 initialized HLA nation person's interface and dummy experiment system member interface perform exchanges data.
Receive the instance data of dummy experiment system and HLA system, the dummy experiment system example information of finding step four and the mapping relations of HLA example information, determine the target mapped, if receive the instance data of dummy experiment system, the instance data of dummy experiment system is converted to the instance data of HLA system, the instance data of the HLA system after conversion is sent in HLA system, if receive the instance data of HLA system, the instance data of HLA system is converted to the instance data of dummy experiment system, the instance data of the dummy experiment system after conversion is sent in dummy experiment system.
Embodiment two: present embodiment and embodiment one unlike: resolve dummy experiment system testing program file in described step one, obtain dummy experiment system essential information, dummy experiment system object model information and dummy experiment system example array; Detailed process is:
Dummy experiment system examples all in a dummy experiment system and dummy experiment system object model information are kept in .sys file corresponding to this testing program all in xml format.
Step one by one, start;
Step one two, load certain dummy experiment system testing program file;
The essential information of step one three, reading dummy experiment system testing program file, the essential information of testing program file comprises dummy experiment system title, dummy experiment system file path, obtains dummy experiment system essential information;
The virtual test object model information of step one four, reading dummy experiment system testing program file, obtains dummy experiment system object model information;
The information of all virtual test examples of step First Five-Year Plan, reading dummy experiment system testing program file, obtains dummy experiment system example array.
Other step and parameter identical with embodiment one.
Embodiment three: present embodiment and embodiment one or two unlike: the information reading all dummy experiment system examples of dummy experiment system testing program file in the described step First Five-Year Plan, obtains dummy experiment system example array; Detailed process is:
Step one one by one, read all participant's node arrays of dummy experiment system testing program file, participant refers to the forming member of dummy experiment system; Obtain the number of nodes N in all participant's node arrays, N is positive integer, and initialization i=1, i value is 1≤i≤N;
Step one by one two, according to step one one by one in participant's node array, obtain i-th participant's node;
Step one by one three, read all instant node under participant's title of i-th participant's node and i-th participant's node, all instant node under i-th participant's node are saved as instant node array; Obtain the number of nodes M in all instant node arrays, M value is positive integer, and initialization j=1, j value is 1≤j≤M;
Step one by one four, read a jth instant node content, instant node content comprises instance name, example ID, example types, example issue subscription type;
Step one First Five-Year Plan, judge whether j is less than M, if so, perform step one by one six, if not, perform step one by one seven;
Step one by one six, j is added 1, performs step one by one four;
Step one by one seven, judge whether i is less than N, if so, perform step one by one eight, if not, perform step one by one nine;
Step one by one eight, i is added 1, performs step one by one two;
Step one by one nine, terminate.
The dummy experiment system example array that present embodiment obtains is deposited according to table 1 ~ table 2 mode:
Table 1 participant information template
Participant's title Example array
Cstring (character string) Carray (array)
Table 2 example information template
Instance name Example ID Example types Example issues subscription type
Cstring Cstring Cstring Cstring
In dummy experiment system, the each participant of example may have Multi-instance object, under participant's node belonging to each instance objects leaves in separately by testing program file respectively, therefore, in order to obtain whole instance objects, each participant's node handle need be obtained successively, obtain all instance objects information under each participant's node respectively, resolve dummy experiment system instance objects flow process as shown in Figure 2.
For the parsing of dummy experiment system object model, owing to there being perfect function can for calling at present, realize the function of the dummy experiment system object model information of resolving in dummy experiment system testing program file, so without the need to redesigning, only need call relevant interface, dummy experiment system object model information can be obtained.
Other step and parameter identical with embodiment one or two.
Embodiment four: one of present embodiment and embodiment one to three unlike: resolve HLA system FED file in described step 2, obtain HLA system essential information, HLA object model information; Detailed process is:
All information of HLA object model are kept in the federation execution data file (FED) of HLA, and this file uses XML language to write content equally.HLA object model is divided into " object class " and " interactive class ", the purposes of these two kinds of object models is different, but the two storage configuration is hereof identical, only keyword is different, " object class " is made up of multiple attribute, " interactive class " to be made up of multiple parameter, below mainly the resolving of " object class " is described, its treatment scheme is as shown in Figure 3.HLA " object class " supports to inherit, and namely may comprise new " object class " node under each " object class " node, and in order to can correctly obtain each " object class ", need to adopt function nested, it is embodied as " being loaded into new object class " in Fig. 3.
The HLA object model information that present embodiment obtains is deposited by table 3 ~ table 6 mode:
Table 3HLA " object class " object model information model
" object class " title " object class " type " object class " handle " object class " attribute array
Cstring Cstring RTI::ObjectClassHandle Carray
Table 4HLA " object class " attribute information template
" object class " Property Name " object class " attribute type " object class " attribute handle
Cstring Cstring RTI::AttributeHandle
Table 5HLA " interactive class " object model information model
" interactive class " title " interactive class " type " interactive class " handle " interactive class " parameter array
Cstring Cstring RTI:InteractionClassHandle Carray
Table 6HLA " interactive class " parameter information template
" interactive class " parameter name " interactive class " parameter type " interactive class " parameter handle
Cstring Cstring RTI::ParameterHandle
Step 2 one, beginning;
Step 2 two, load certain HLA system FED file;
The essential information of step 2 three, reading HLA system FED file, the essential information of HLA system FED file comprises HLA system FED file name, HLA system FED file path;
The HLA object model information of step 2 four, reading HLA system FED file;
Read the HLA object model information of HLA system FED file, detailed process is:
Object (object) node of step 241, reading HLA system FED file;
All object class child node arrays under step 2 four or two, reading object node handle, obtain object class child node array quantity N, N is positive integer, and initialization i=1, i value is 1≤i≤N;
Step 2 four or three, according to the object class child node array in step 2 four or two, obtain i-th object class child node;
All properties child node array under step 2 four or four, reading i-th object class child node; Obtain all properties child node array quantity M, M value is positive integer, and initialization j=1, j value is 1≤j≤M;
Step 2 four or five, a reading jth attribute child node, judge whether a jth attribute child node title is attribute (attribute), if so, perform step 2 four or six, if not, perform step 2 four or seven;
Step 2 four or six, a reading jth attribute child node content, attribute child node content comprises Property Name, attribute type, performs step 2 four or eight;
Step 2 four or seven, using a jth attribute child node as object class child node, perform step 2 four or four;
Step 2 four or eight, judge whether j is less than M, if so, perform step 2 four or nine, if not, perform step 2 40;
Step 2 four or nine, j is added 1, perform step 2 four or five;
Step 2 40, judge whether i is less than N, if so, perform step 2 41, if not, perform step 2 42;
Step 2 41, i is added 1, perform step 2 four or three;
Step 2 42, end.
Other step and parameter identical with one of embodiment one to three.
Embodiment five: composition graphs 4 illustrates present embodiment, one of present embodiment and embodiment one to four unlike: according to the HLA object model information of step 2 in described step 3, statement HLA example information; Detailed process is:
Owing to only giving the definition of the object model of HLA in the FED file of HLA, do not provide concrete HLA example information, in order to correctly mapping relations can be edited, there is provided " statement HLA object instance " function, user can carry out the operation such as " interpolation ", " amendment " and " deletion " to HLA object instance subsequently.Statement HLA example information is divided into five steps:
Step 3 one, be in HLA object model information all properties definition data type (User Defined), be embodied as step 3 one by one ~ step 3 one or three:
Step 3 one by one, the HLA object model obtained in HLA object model information,
The all properties of step 3 one or two, obtaining step three HLA object model one by one,
Step 3 one or three, for step 3 one or two obtain attributes edit data type;
Step 3 two, an establishment HLA example array, be defaulted as sky;
Step 3 three, interpolation, concrete steps are as follows:
The flow process that " interpolation " operates as shown in Figure 4.
Step 331, be obtained from definition (being customized for user to name at random) instance name;
Step 3 three or two, HLA object model information according to step 2, obtain the HLA object model (selecting according to user's request) in HLA object model information;
Step 3 three or three, according to step 3 three or two obtain HLA object model and according to step 331 obtain self-defined instance name, create a HLA example;
Table 7HLA example information template
HLA instance name HLA example types
Cstring Cstring
The HLA example array that step 3 three or four, the HLA example finding step three or two step 3 three or three created create, if there is identical HLA example, end operation, if there is no identical HLA example, the HLA example array that the HLA example inserting step three or two step 3 three or three created creates, end operation;
Step 3 four, amendment, detailed process is as follows:
Step 341, the HLA example (selecting according to user's request) obtained in HLA example array;
Step 3 four or two, repetition step 331 ~ step 3 three or three create a HLA example;
Step 3 four or three, by step 341 obtain HLA example be replaced by step 3 four or two create HLA example, end operation;
Step 3 five, deletion, detailed process is: the HLA example that the HLA example obtain step 3 four or three or step 341 obtain is deleted from the HLA example array that step 3 two creates.
Other step and parameter identical with one of embodiment one to four.
Embodiment six: one of present embodiment and embodiment one to five unlike: in described step 4, dummy experiment system example and HLA example are mapped, obtain the mapping relations of dummy experiment system example information and HLA example information; Detailed process is:
The form of analyzing virtual pilot system object model finds, dummy experiment system object model is made up of multiple community set, and each attribute may be a master data, also may be the structure be made up of multiple master data; Analyze HLA object model form to find, HLA object model is divided into " object class " and " interactive class " two type according to purposes difference, but this two kinds of structures is similar, " object class " is made up of multiple community set, " interactive class " is made up of multiple parameter sets, and the attribute of HLA, parameter are all master datas.Basic data type has: int, unsignedint, float, double, short, unsignedshort, char, byte, bool.For ensureing the correctness of data transmission, the bottom attribute of dummy experiment system object instance and the properties/parameters of HLA object instance are mapped, every best property of attribute mapping is preserved with the template of regulation, and the concrete form of template is as shown in table 8.
Table 8 map information template
HLA example and dummy experiment system example map operation have: " adding HLA to map to dummy experiment system ", " adding dummy experiment system to map to HLA " and " delete and map ";
Step 4 one, an establishment HLA example, to the mapping relations array of dummy experiment system example, a dummy experiment system example to the mapping relations array of HLA example, are defaulted as sky;
Step 4 two, interpolation HLA example map to dummy experiment system example; As Fig. 5, detailed process is:
Step 421, the HLA example (selecting according to user's request) obtained in HLA example array;
Step 4 two or two, the dummy experiment system example (selecting according to user's request) obtained in dummy experiment system example array;
Step 4 two or three, according to step 421 obtain HLA example and step 4 two or two obtain dummy experiment system example create mapping relations, according to content listed by table 1, the information of the information of corresponding HLA example, dummy experiment system example is write;
Step 4 two or four, the mapping relationship searching HLA example that creates according to step 4 two or three, to the mapping relations array of dummy experiment system example, if there are identical mapping relations, perform step 4 two or seven, otherwise execution step 4 two or five;
Step 4 two or five, the mapping relationship searching dummy experiment system example that creates according to step 4 two or three are to the mapping relations array of HLA example;
If the HLA example of certain mapping relations is identical with the HLA example of the mapping relations that step 4 two or three obtains in step 4 two dummy experiment system on May Day example to the mapping relations array of HLA example, then perform step 4 two or seven, otherwise perform step 4252;
If the dummy experiment system example of certain mapping relations is identical with the dummy experiment system example of the mapping relations that step 4 two or three obtains in step 4252 dummy experiment system example to the mapping relations array of HLA example, then perform step 4 two or seven, otherwise perform step 4 two or six;
Step 4 two or six, mapping relations step 4 two or three created insert the mapping relations array of HLA example to dummy experiment system example;
Step 4 two or seven, end; Flow process as shown in Figure 5.
Step 4 three, interpolation dummy experiment system example map to HLA example;
Step 4 four, deletion map, and detailed process is:
Insert in delete step 426 in HLA example to the mapping relations or step 4 three or four of the mapping relations array of dummy experiment system example and insert the mapping relations (this mapping relations cannot recover) of dummy experiment system example to the mapping relations array of HLA example.
Other step and parameter identical with one of embodiment one to five.
Embodiment seven: one of present embodiment and embodiment one to six unlike: add dummy experiment system example in described step 4 three and map to HLA example; Detailed process is:
Step 431, repetition step 421 ~ step 4 two or three, create mapping relations;
Step 4 three or two, the mapping relationship searching dummy experiment system example that obtains according to step 431, to the mapping relations array of HLA example, if there are identical mapping relations, perform step 4 three or five, otherwise execution step 4 three or three;
Step 4 three or three, the mapping relationship searching HLA that obtains according to step 431 are to the mapping relations array of dummy experiment system;
If the HLA example of certain mapping relations is identical with the HLA example of the mapping relations that step 431 obtains in step 4331 HLA to the mapping relations array of dummy experiment system, perform step 4 three or five, otherwise perform step 4332;
If the dummy experiment system example of certain mapping relations is identical with the dummy experiment system example of the mapping relations that step 431 creates in step 4332 HLA to the mapping relations array of dummy experiment system, perform step 4 three or five, otherwise perform step 4 three or four;
Step 4 three or four, mapping relations step 431 created insert the mapping relations array of dummy experiment system to HLA;
Step 4 three or five, end.
Other step and parameter identical with one of embodiment one to six.
Embodiment eight: one of present embodiment and embodiment one to seven unlike: according to the mapping relations of dummy experiment system essential information, HLA system essential information, dummy experiment system object model information, HLA object model information and dummy experiment system example information and HLA example information in described step 5, generate mapping scheme file; Detailed process is:
After HLA object instance and dummy experiment system object instance mapping relations are specified, according to HLA file and dummy experiment system file common pattern, with XML file automatically the mode of writing set up mapping scheme file preserve mapping relations, output is an XML file; Its XML element structure as shown in Figure 6.
The root element of scheme is " mapping scheme ", root element comprises " essential information ", " dummy experiment system is to the list of HLA mapping relations ", " HLA is to the list of dummy experiment system mapping relations " and " HLA object model " four daughter elements, wherein, Scenario Name, scheme path, virtual test experimental program title, dummy experiment system testing program path, HLA federal title, HLA system FED file name, HLA system FED file path is comprised under " essential information "; Preserve under " dummy experiment system is to the list of HLA mapping relations " by the mapping relations of dummy experiment system to HLA system, mapping source side is the information of dummy experiment system side, and mapping objects is the information of HLA side; Deposit under " HLA is to the list of dummy experiment system mapping relations " by the mapping relations of HLA system to dummy experiment system, mapping source side is the information of HLA side, and mapping objects is the information of dummy experiment system side; Deposit HLA object model information under " HLA object model ", again write HLA object model with dummy experiment system object model form, the data type of attribute and parameter is preserved.
Step May Day, self-defined Scenario Name, scheme path, the federal title (user defines at random) of HLA;
Step 5 two, from dummy experiment system essential information, obtain the dummy experiment system title of dummy experiment system, dummy experiment system file path, obtains HLA system FED file name from HLA system essential information, HLA system FED file path;
Step 5 three, an establishment XML object, by the root element called after mapping scheme of XML object;
Create a daughter element essential information below step the May 4th, the root element of XML object that creates in step 5 three, the dummy experiment system title that the self-defined Scenario Name obtained on step May Day, scheme path, the federal title of HLA and step 5 two obtain, dummy experiment system file path, HLA system FED file name, HLA system FED file path are inserted into below daughter element essential information as daughter element;
Step 5 five, step 5 three create XML object root element below create a daughter element virtual test example to the list of HLA example mapping relations, dummy experiment system example embodiment seven obtained is inserted into below daughter element dummy experiment system example to HLA example mapping relations list to each mapping relations in the mapping relations array of HLA example as a daughter element, to each mapping relations repeat step 5 May Day ~ step 5 five or three, to the complete rear execution step 5 six of each mapping relations;
Step 5 May Day, below daughter element dummy experiment system example to HLA example mapping relations list, create a sub-element map relation;
Step 5 five or two, below daughter element mapping relations create sub-element map source side, a sub-element map target;
Step 5 five or three, dummy experiment system example embodiment seven obtained are inserted into daughter element and map in source side to the dummy experiment system example information of each mapping relations in the mapping relations array of HLA example as attribute, be inserted in daughter element mapping objects using the HLA example information of mapping relations as attribute;
Step 5 six, step 5 three create XML object root element below create a daughter element HLA example to the list of virtual test example mapping relations, HLA embodiment six obtained is inserted into each mapping relations in the mapping relations array of dummy experiment system as a daughter element below daughter element HLA to dummy experiment system mapping relations list, step 561 ~ step 5 six or three is repeated, to the complete rear execution step 5 seven of each mapping relations to each mapping relations;
Step 561, below daughter element HLA to dummy experiment system mapping relations list create a sub-element map relation;
Step 5 six or two, below daughter element mapping relations create sub-element map source side, a sub-element map target;
Step 5 six or three, HLA example that embodiment six is obtained to the HLA example information of each mapping relations in the mapping relations array of dummy experiment system example as in attribute intron element map source side, using the dummy experiment system example information of mapping relations as in attribute intron element map target;
Step 5 seven, step 5 three create XML object root element below create a daughter element HLA object model, each HLA object model in the HLA object model information obtain step 2 is inserted into below daughter element HLA object model as a daughter element, to each HLA object model repeat step 5 the July 1st ~ step 5 seven or two, execution step 5 eight after the operation of each HLA object model is completed;
Step 5 July 1st, create below daughter element HLA object model an one-level daughter element packagedElement (one-level daughter element) ", the title of HLA object model, type are inserted in one-level daughter element packagedElement as attribute;
Step 5 seven or two, under one-level daughter element (packagedElement), create a secondary daughter element (ownedAttribute), the title of the attribute of HLA object model, type are inserted in secondary daughter element (ownedAttribute) as attribute;
Step 5 eight, export step 5 three, the XML object that creates for mapping scheme file, mapping scheme file name is self-defined Scenario Name.
Other step and parameter identical with one of embodiment one to seven.
Embodiment nine: one of present embodiment and embodiment one to eight unlike: according to mapping scheme file initialization HLA nation person's interface and virtual test member interface in described step 6; Detailed process is:
In order to realize the exchanges data of dummy experiment system and HLA system, the present invention must participate in dummy experiment system and HLA system simultaneously, for this reason, the present invention should provide dummy experiment system member interface to realize with the exchanges data of dummy experiment system, HLA nation person interface to realize the exchanges data with HLA system.In order to improve data processing rate, the present invention adopts multi-threading, uses three threads to process dummy experiment system message, HLA system message and its own system message respectively.
The initialize flow of dummy experiment system middleware interface as shown in Figure 7, first the relevant information of dummy experiment system is loaded into by this initialization procedure, dummy experiment system example information in mapping relations array and object model information classification corresponding to example are extracted, facilitates subsequent operation; Connect middleware subsequently, add dummy experiment system, issue relation is ordered in statement, completes the connection with dummy experiment system, for obtaining the data of dummy experiment system and providing path to dummy experiment system transmission data.
Initialization of virtual pilot system member interface detailed process is:
Step 6 one, beginning;
Step 6 two, read in dummy experiment system essential information, Scenario Name;
Step 6 three, read in the dummy experiment system example information (in the mapping relations of HLA to dummy experiment system) of order;
Step 6 four, read in the dummy experiment system example information (in the mapping relations of dummy experiment system to HLA) of issue;
Step 6 five, according to step 6 two Scenario Name connect intermediate;
Step 6 six, according to step 6 two dummy experiment system essential information and Scenario Name, step 5 connect intermediate basis on, dummy experiment system member interface is added dummy experiment system;
The dummy experiment system example information that step 6 seven, the dummy experiment system example information ordered according to step 6 three, step 6 four are issued, add on the basis of dummy experiment system in step 6 six, issue relation is ordered in statement;
Step 6 eight, end;
As shown in Figure 8, first the relevant information of HLA system is loaded into the initialize flow of HLA nation person interface by this initialization procedure, the HLA example information in mapping relations array and object model information classification corresponding to example is extracted, facilitates subsequent operation; Add HLA system subsequently, issue relation is ordered in statement, and registry object example, completes the connection with HLA system, for obtaining the data of HLA system and providing path to HLA system transmission data.
Initialization HLA nation person interface detailed process is:
Step 661, beginning;
Step 6 six or two, read in HLA system essential information, HLA federal title, Scenario Name;
Step 6 six or three, read in HLA object model information;
Step 6 six or four, read in the HLA example information of order;
Step 6 six or five, read in the HLA example information of issue;
Step benzene hexachloride, according to step 6 six or two HLA system essential information, HLA federal title, Scenario Name, HLA nation person interface is added HLA system;
Step 6 six or seven, add HLA system in step benzene hexachloride basis on according to step 6 six or three HLA object model acquisition of information handle;
The HLA example information that step 6 six or eight, the HLA example information ordered in step 6 six or four, step 6 six or five are issued, step 6 six or seven obtains on the basis of handle, and issue relation is ordered in statement; According to the HLA example information registry object example that step 5 is issued;
Step 6 six or nine, end.
Other step and parameter identical with one of embodiment one to eight.
Embodiment ten: one of present embodiment and embodiment one to nine unlike: use step 6 initialized HLA nation person's interface and dummy experiment system member interface to perform exchanges data in described step 7; Detailed process is:
Exchanges data could be performed after HLA nation person interface and dummy experiment system middleware interface initialization success.Because dummy experiment system message and HLA system message process in different threads, for guaranteeing that reading and writing data can not conflict, data cache region is divided into four regions, respectively: " receiving dummy experiment system data " buffer area, " sending dummy experiment system data " buffer area, " receiving HLA system data " buffer area, " sending HLA system data " buffer area.Data are shown in Fig. 9 by dummy experiment system to the process of HLA.Data are by HLA to the process of dummy experiment system and by the similar process of dummy experiment system to HLA, and concrete steps are described below:
(7.1) from HLA system acceptance HLA instance properties B data data3;
(7.2) search " HLA is to dummy experiment system " mapping relations array, if HLA instance properties B is not in mapping relations, end operation, if existed, writes " receiving HLA data " buffer zone by data3;
(7.3) read out data3 be converted to dummy experiment system instance properties data data4 from " receiving HLA data " buffer area, data4 is write " sending dummy experiment system data " buffer area;
(7.4) read data4 from " sending dummy experiment system data " buffer area, send data4 to dummy experiment system.
Data by dummy experiment system example to the exchange process of HLA example are:
Step July 1st, beginning, create exchanges data main thread;
Step 7 two, dummy experiment system member interface receive certain dummy experiment system example A data data1 from dummy experiment system;
Step 7 three, search dummy experiment system example to HLA example mapping relations array;
Step 7 four, judge example A whether at dummy experiment system in HLA mapping relations array, if exist, perform step the Seventh Five-Year Plan, if do not exist, perform step 7 nine;
Step the Seventh Five-Year Plan, dummy experiment system member interface by data1 stored in reception dummy experiment system data cache region;
Step 7 six, exchanges data main thread read data1 from reception dummy experiment system data cache region, are converted to HLA example B data data2; By data2 stored in transmission HLA data cache region;
Step 7 eight, HLA nation person interface read data2 from transmission HLA data cache region, send data2 to HLA system;
Step 7 nine, end.
Data by HLA example to the exchange process of dummy experiment system example are:
Step July 1st, beginning, create exchanges data main thread;
Step 7 two, HLA nation person interface are from HLA system acceptance HLA example C data data3;
Step 7 three, search HLA example to dummy experiment system example mapping relations array;
Step 7 four, judge example C whether at HLA example in dummy experiment system example mapping relations array, if exist, perform step 5, if do not exist, perform step 9;
Step the Seventh Five-Year Plan, HLA nation person interface by data3 stored in reception HLA data cache region;
Step 7 six, exchanges data main thread read data3 from reception HLA data cache region, are converted to dummy experiment system example D data data4; By data4 stored in transmission dummy experiment system data cache region;
Step 7 eight, dummy experiment system member interface read data4 from transmission dummy experiment system data cache region, send data4 to dummy experiment system;
Step 7 nine, end.
This invention propose dummy experiment system and HLA method for interchanging data and can solve by maps virtual pilot system object instance and HLA object instance the problem that dummy experiment system cannot communicate with HLA system, guarantee by the mapping relations being assigned to instance properties the accuracy that data are changed, guaranteed the correctness of reading and writing data by dividing data buffer zone.
At present, the method has been applied in certain missile intercept l-G simulation test, the high-speed traffic of dummy experiment system fire control system and certain HLA analogue system can be realized, actual test result shows that dummy experiment system that this invention proposes and HLA simulation system data switching method are 100% for the accuracy rate of the exchange of the identical categorical data in two ends, the method proposed by the present invention is write without the need to any code and is got final product the exchanges data that robotization realizes two kinds of systems, the cycle time of two kinds of system exchanges data more than 50% will be realized, reduce cost of development, possesses good versatility simultaneously.
Other step and parameter identical with one of embodiment one to nine.
Following examples are adopted to verify beneficial effect of the present invention:
Embodiment one:
A kind of dummy experiment system of the present embodiment and HLA simulation system data switching method are specifically prepared according to following steps:
Figure 10 is the network structure carrying out system testing.Form dummy experiment system by dummy experiment system-HLA gateway, application node and data readback node, form HLA analogue system by dummy experiment system-HLA gateway and HLA nation person.
The instance data gathered in advance is carried out playback according to certain speed by the data acquisition system (DAS) in data readback node, by middleware interface, data are mail to middleware, dummy experiment system-HLA gateway, application node obtain the instance data ordered separately by middleware interface, the data received are mail to HLA analogue system by CERTI interface by dummy experiment system-HLA gateway, and HLA nation person obtains dummy experiment system-HLA gateway by RTI interface and mails to the data of CERTI and show.HLA nation person sends instance data by CERTI interface to CERTI, dummy experiment system-HLA gateway is obtained instance data that HLA nation person sends by CERTI interface, is converted to instance data and mails to middleware by middleware interface, and TIDE platform obtains the instance data sent by dummy experiment system-HLA gateway by middleware interface.
Figure 11 is shown in main interface in testing software.
Interface is divided into five regions: example editing area, realizes loading the function such as FED file, editor's example; Example viewing area, example in display current system; The federal operational zone of system, provides operation interface to user, by mutual as HLA nation person of this software of user operation; System transceiving data viewing area, data system being sent and receive show; System cloud gray model information display area, the running status of display testing software.
For checking dummy experiment system-HLA gateway function, the object model of several example is selected from the LROM table of the dummy experiment system testing program selected, see Figure 12, dummy experiment system object model is described with the describing mode of HLA object model, sees Figure 13.
Test process
Design according to above-mentioned test system structure, start CERTI, his middleware, Data Collection Software based, dummy experiment system-HLA gateway software, HLA Bang Yuan testing software of virtual test respectively.First create mapping scheme at dummy experiment system-HLA gateway, by the initialization of HLA Bang Yuan testing software, data are loaded into data acquisition system (DAS); Then TIDE platform is started, running test scheme, dummy experiment system-HLA gateways and starting maps and adds dummy experiment system, HLA analogue system, run HLA Bang Yuan testing software and add HLA analogue system, start the playback function of data acquisition system (DAS), enter the data interaction stage, viewing test situation.Concrete steps are as follows:
1. configure mapping scheme.
1a) create mapping scheme: open dummy experiment system-HLA gateway software, click in menu bar " newly-built mapping scheme ", enter newly-built mapping scheme interface.Select the testing program of dummy experiment system, the FED file of HLA, as shown in figure 14.Click enters editing interface after determining, now editing interface as shown in figure 15.
1b) edit mapping scheme: configure as shown in figure 16 complete; The data type of the attribute of editor HLA object model, adds example: TestLocation, TestLaunch; Add mapping relations: dummy experiment system example is mapped to example TestLocation, and example TestLaunch is mapped to dummy experiment system example; Edit federal title, mapping scheme title, select storing path.Edit as shown in figure 17 complete.System prompt information as shown in figure 18.Detailed data subscription table is in table 9.
Table 9 test experiments mapping relations table
Table 9 (continued) test experiments mapping relations table
2. initialization HLA Bang Yuan testing software.
2a) open HLA Bang Yuan testing software, be loaded into HLAFED file, configuration attribute/supplemental characteristic type;
2b) select example types, add and order object class example: TestLocation; Add and announce interactive class example: TestLaunch.
3. initialization data acquisition software.
3a) open software, select dummy experiment system testing program, be loaded into Information Monitoring;
3b) select capture file, be loaded into data.
4. start each software correlation function, enter the testing results stage, test dummy experiment system-HLA gateways and starting mapping function and by the data-transformation facility of dummy experiment system to HLA:
4a) start TIDE platform, open testing program in run mode, select the method for operation to be return visit pattern, running test scheme;
" start and map " pushbutton enable 4b) clicking the main interface of dummy experiment system-HLA gateway maps, and operation information display as shown in figure 19;
4c) click the button at the main interface of HLA Bang Yuan testing software, operate this software and add federation, and enter the data interaction stage;
4d) data acquisition software starts playback function.
4e) observe the service data of dummy experiment system-HLA gateway, as shown in figure 20.Observe the data display of HLA Bang Yuan testing software, as shown in figure 21.
5. test dummy experiment system-HLA gateway by the data-transformation facility of HLA to dummy experiment system:
5a) operate HLA Bang Yuan testing software and send interactive class example TestLaunch data according to certain step-length, send data and see Figure 22.
5b) check the display data of display module in TIDE platform, see Figure 23, TIDE platform is the dummy experiment system development environment that Harbin Institute of Technology's automatic test is developed with control research institute.
5c) check the service data of dummy experiment system-HLA gateway, see Figure 24.
6. test dummy experiment system-HLA gateway and stop mapping function, stop data interaction:
6a) operate HLA Bang Yuan testing software and stop data interaction, exit federation;
6b) close the mapping of dummy experiment system-HLA gateway, the operation conditions of dummy experiment system-HLA gateway as shown in figure 25;
6c) stop the scheme of TIDE platform to run, close platform program;
6d) stop data readback, close data acquisition system program.
The present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those skilled in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (10)

1. dummy experiment system and a HLA simulation system data switching method, is characterized in that what a kind of dummy experiment system and HLA simulation system data switching method were specifically prepared according to following steps:
Step one, parsing dummy experiment system testing program file, obtain dummy experiment system essential information, dummy experiment system object model information and dummy experiment system example array;
Step 2, parsing HLA system FED file, obtain HLA system essential information, HLA object model information;
Step 3, HLA object model information according to step 2, statement HLA example information;
Step 4, dummy experiment system example and HLA example to be mapped, obtain the mapping relations of dummy experiment system example information and HLA example information;
Step 5, mapping relations according to dummy experiment system essential information, HLA system essential information, dummy experiment system object model information, HLA object model information and dummy experiment system example information and HLA example information, generate mapping scheme file;
Step 6, according to mapping scheme file initialization HLA nation person's interface and dummy experiment system member interface;
Step 7, use step 6 initialized HLA nation person's interface and dummy experiment system member interface perform exchanges data.
2. a kind of dummy experiment system and HLA simulation system data switching method according to claim 1, it is characterized in that: in described step one, resolve dummy experiment system testing program file, obtain dummy experiment system essential information, dummy experiment system object model information and dummy experiment system example array; Detailed process is:
Step one by one, start;
Step one two, load certain dummy experiment system testing program file;
The essential information of step one three, reading dummy experiment system testing program file, the essential information of testing program file comprises dummy experiment system title, dummy experiment system file path, obtains dummy experiment system essential information;
The virtual test object model information of step one four, reading dummy experiment system testing program file, obtains dummy experiment system object model information;
The information of all virtual test examples of step First Five-Year Plan, reading dummy experiment system testing program file, obtains dummy experiment system example array.
3. a kind of dummy experiment system and HLA simulation system data switching method according to claim 2, it is characterized in that: the information reading all dummy experiment system examples of dummy experiment system testing program file in the described step First Five-Year Plan, obtain dummy experiment system example array; Detailed process is:
Step one one by one, read all participant's node arrays of dummy experiment system testing program file, participant refers to the forming member of dummy experiment system; Obtain the number of nodes N in all participant's node arrays, N is positive integer, and initialization i=1, i value is 1≤i≤N;
Step one by one two, according to step one one by one in participant's node array, obtain i-th participant's node;
Step one by one three, read all instant node under participant's title of i-th participant's node and i-th participant's node, all instant node under i-th participant's node are saved as instant node array; Obtain the number of nodes M in all instant node arrays, M value is positive integer, and initialization j=1, j value is 1≤j≤M;
Step one by one four, read a jth instant node content, instant node content comprises instance name, example ID, example types, example issue subscription type;
Step one First Five-Year Plan, judge whether j is less than M, if so, perform step one by one six, if not, perform step one by one seven;
Step one by one six, j is added 1, performs step one by one four;
Step one by one seven, judge whether i is less than N, if so, perform step one by one eight, if not, perform step one by one nine;
Step one by one eight, i is added 1, performs step one by one two;
Step one by one nine, terminate.
4. a kind of dummy experiment system and HLA simulation system data switching method according to claim 3, is characterized in that: resolve HLA system FED file in described step 2, obtains HLA system essential information, HLA object model information; Detailed process is:
Step 2 one, beginning;
Step 2 two, load certain HLA system FED file;
The essential information of step 2 three, reading HLA system FED file, the essential information of HLA system FED file comprises HLA system FED file name, HLA system FED file path;
The HLA object model information of step 2 four, reading HLA system FED file;
Read the HLA object model information of HLA system FED file, detailed process is:
The Object node of step 241, reading HLA system FED file;
All object class child node arrays under step 2 four or two, reading object node handle, obtain object class child node array quantity N, N is positive integer, and initialization i=1, i value is 1≤i≤N;
Step 2 four or three, according to the object class child node array in step 2 four or two, obtain i-th object class child node;
All properties child node array under step 2 four or four, reading i-th object class child node; Obtain all properties child node array quantity M, M value is positive integer, and initialization j=1, j value is 1≤j≤M;
Step 2 four or five, a reading jth attribute child node, judge whether a jth attribute child node title is attribute, if so, perform step 2 four or six, if not, perform step 2 four or seven;
Step 2 four or six, a reading jth attribute child node content, attribute child node content comprises Property Name, attribute type, performs step 2 four or eight;
Step 2 four or seven, using a jth attribute child node as object class child node, perform step 2 four or four;
Step 2 four or eight, judge whether j is less than M, if so, perform step 2 four or nine, if not, perform step 2 40;
Step 2 four or nine, j is added 1, perform step 2 four or five;
Step 2 40, judge whether i is less than N, if so, perform step 2 41, if not, perform step 2 42;
Step 2 41, i is added 1, perform step 2 four or three;
Step 2 42, end.
5. a kind of dummy experiment system and HLA simulation system data switching method according to claim 4, is characterized in that: according to the HLA object model information of step 2 in described step 3, statement HLA example information; Detailed process is:
Step 3 one, be in HLA object model information all properties definition data type, be embodied as step 3 one by one ~ step 3 one or three:
Step 3 one by one, the HLA object model obtained in HLA object model information,
The all properties of step 3 one or two, obtaining step three HLA object model one by one,
Step 3 one or three, for step 3 one or two obtain attributes edit data type;
Step 3 two, an establishment HLA example array, be defaulted as sky;
Step 3 three, interpolation, concrete steps are as follows:
Step 331, be obtained from definitions example title;
Step 3 three or two, HLA object model information according to step 2, obtain a HLA object model in HLA object model information;
Step 3 three or three, according to step 3 three or two obtain HLA object model and according to step 331 obtain self-defined instance name, create a HLA example;
The HLA example array that step 3 three or four, the HLA example finding step three or two step 3 three or three created create, if there is identical HLA example, end operation, if there is no identical HLA example, the HLA example array that the HLA example inserting step three or two step 3 three or three created creates, end operation;
Step 3 four, amendment, detailed process is as follows:
Step 341, the HLA example obtained in HLA example array;
Step 3 four or two, repetition step 331 ~ step 3 three or three create a HLA example;
Step 3 four or three, by step 341 obtain HLA example be replaced by step 3 four or two create HLA example, end operation;
Step 3 five, deletion, detailed process is: the HLA example that the HLA example obtain step 3 four or three or step 341 obtain is deleted from the HLA example array that step 3 two creates.
6. a kind of dummy experiment system and HLA simulation system data switching method according to claim 5, it is characterized in that: in described step 4, dummy experiment system example and HLA example are mapped, obtain the mapping relations of dummy experiment system example information and HLA example information; Detailed process is:
Step 4 one, an establishment HLA example, to the mapping relations array of dummy experiment system example, a dummy experiment system example to the mapping relations array of HLA example, are defaulted as sky;
Step 4 two, interpolation HLA example map to dummy experiment system example; Detailed process is:
Step 421, the HLA example obtained in HLA example array;
Step 4 two or two, the dummy experiment system example obtained in dummy experiment system example array;
Step 4 two or three, according to step 421 obtain HLA example and step 4 two or two obtain dummy experiment system example create mapping relations, the information of the information of corresponding HLA example, dummy experiment system example is write;
Step 4 two or four, the mapping relationship searching HLA example that creates according to step 4 two or three, to the mapping relations array of dummy experiment system example, if there are identical mapping relations, perform step 4 two or seven, otherwise execution step 4 two or five;
Step 4 two or five, the mapping relationship searching dummy experiment system example that creates according to step 4 two or three are to the mapping relations array of HLA example;
If the HLA example of certain mapping relations is identical with the HLA example of the mapping relations that step 4 two or three obtains in step 4 two dummy experiment system on May Day example to the mapping relations array of HLA example, then perform step 4 two or seven, otherwise perform step 4252;
If the dummy experiment system example of certain mapping relations is identical with the dummy experiment system example of the mapping relations that step 4 two or three obtains in step 4252 dummy experiment system example to the mapping relations array of HLA example, then perform step 4 two or seven, otherwise perform step 4 two or six;
Step 4 two or six, mapping relations step 4 two or three created insert the mapping relations array of HLA example to dummy experiment system example;
Step 4 two or seven, end;
Step 4 three, interpolation dummy experiment system example map to HLA example;
Step 4 four, deletion map, and detailed process is:
Insert in delete step 426 in HLA example to the mapping relations or step 4 three or four of the mapping relations array of dummy experiment system example and insert the mapping relations of dummy experiment system example to the mapping relations array of HLA example.
7. a kind of dummy experiment system and HLA simulation system data switching method according to claim 6, is characterized in that: add dummy experiment system example in described step 4 three and map to HLA example; Detailed process is:
Step 431, repetition step 421 ~ step 4 two or three, create mapping relations;
Step 4 three or two, the mapping relationship searching dummy experiment system example that obtains according to step 431, to the mapping relations array of HLA example, if there are identical mapping relations, perform step 4 three or five, otherwise execution step 4 three or three;
Step 4 three or three, the mapping relationship searching HLA that obtains according to step 431 are to the mapping relations array of dummy experiment system;
If the HLA example of certain mapping relations is identical with the HLA example of the mapping relations that step 431 obtains in step 4331 HLA to the mapping relations array of dummy experiment system, perform step 4 three or five, otherwise perform step 4332;
If the dummy experiment system example of certain mapping relations is identical with the dummy experiment system example of the mapping relations that step 431 creates in step 4332 HLA to the mapping relations array of dummy experiment system, perform step 4 three or five, otherwise perform step 4 three or four;
Step 4 three or four, mapping relations step 431 created insert the mapping relations array of dummy experiment system to HLA;
Step 4 three or five, end.
8. a kind of dummy experiment system and HLA simulation system data switching method according to claim 7, it is characterized in that: according to the mapping relations of dummy experiment system essential information, HLA system essential information, dummy experiment system object model information, HLA object model information and dummy experiment system example information and HLA example information in described step 5, generate mapping scheme file; Detailed process is:
Step May Day, self-defined Scenario Name, scheme path, the federal title of HLA;
Step 5 two, from dummy experiment system essential information, obtain dummy experiment system title, dummy experiment system file path, from HLA system essential information, obtain HLA system FED file name, HLA system FED file path;
Step 5 three, an establishment XML object, by the root element called after mapping scheme of XML object;
Create a daughter element essential information below step the May 4th, the root element of XML object that creates in step 5 three, the dummy experiment system title that the self-defined Scenario Name obtained on step May Day, scheme path, the federal title of HLA and step 5 two obtain, dummy experiment system file path, HLA system FED file name, HLA system FED file path are inserted into below daughter element essential information as daughter element;
Step 5 five, step 5 three create XML object root element below create a daughter element virtual test example to the list of HLA example mapping relations, dummy experiment system example claim 6 obtained is inserted into below daughter element dummy experiment system example to HLA example mapping relations list to each mapping relations in the mapping relations array of HLA example as a daughter element, to each mapping relations repeat step 5 May Day ~ step 5 five or three, to the complete rear execution step 5 six of each mapping relations;
Step 5 May Day, below daughter element dummy experiment system example to HLA example mapping relations list, create a sub-element map relation;
Step 5 five or two, below daughter element mapping relations create sub-element map source side, a sub-element map target;
Step 5 five or three, dummy experiment system example claim 7 obtained are inserted into daughter element and map in source side to the dummy experiment system example information of each mapping relations in the mapping relations array of HLA example as attribute, be inserted in daughter element mapping objects using the HLA example information of mapping relations as attribute;
Step 5 six, step 5 three create XML object root element below create a daughter element HLA example to the list of virtual test example mapping relations, HLA claim 6 obtained is inserted into each mapping relations in the mapping relations array of dummy experiment system as a daughter element below daughter element HLA to dummy experiment system mapping relations list, step 561 ~ step 5 six or three is repeated, to the complete rear execution step 5 seven of each mapping relations to each mapping relations;
Step 561, below daughter element HLA to dummy experiment system mapping relations list create a sub-element map relation;
Step 5 six or two, below daughter element mapping relations create sub-element map source side, a sub-element map target;
Step 5 six or three, HLA example that embodiment six is obtained to the HLA example information of each mapping relations in the mapping relations array of dummy experiment system example as in attribute intron element map source side, using the dummy experiment system example information of mapping relations as in attribute intron element map target;
Step 5 seven, step 5 three create XML object root element below create a daughter element HLA object model, each HLA object model in the HLA object model information obtain step 2 is inserted into below daughter element HLA object model as a daughter element, to each HLA object model repeat step 5 the July 1st ~ step 5 seven or two, execution step 5 eight after the operation of each HLA object model is completed;
Step 5 July 1st, create below daughter element HLA object model an one-level daughter element ", the title of HLA object model, type are inserted in one-level daughter element as attribute;
Step 5 seven or two, under one-level daughter element, create a secondary daughter element, the title of the attribute of HLA object model, type are inserted in secondary daughter element as attribute;
Step 5 eight, XML object step 5 three created export as mapping scheme file, and mapping scheme file name is self-defined Scenario Name.
9. a kind of dummy experiment system and HLA simulation system data switching method according to claim 8, is characterized in that: according to mapping scheme file initialization HLA nation person's interface and virtual test member interface in described step 6; Detailed process is:
Initialization of virtual pilot system member interface detailed process is:
Step 6 one, beginning;
Step 6 two, read in dummy experiment system essential information, Scenario Name;
Step 6 three, read in the dummy experiment system example information of order;
Step 6 four, read in the dummy experiment system example information of issue;
Step 6 five, according to step 6 two Scenario Name connect intermediate;
Step 6 six, according to step 6 two dummy experiment system essential information and Scenario Name, connect on the basis of intermediate in step 6 five, dummy experiment system member interface is added dummy experiment system;
The dummy experiment system example information that step 6 seven, the dummy experiment system example information ordered according to step 6 three, step 6 four are issued, add on the basis of dummy experiment system in step 6 six, issue relation is ordered in statement;
Step 6 eight, end;
Initialization HLA nation person interface detailed process is:
Step 661, beginning;
Step 6 six or two, read in HLA system essential information, HLA federal title, Scenario Name;
Step 6 six or three, read in HLA object model information;
Step 6 six or four, read in the HLA example information of order;
Step 6 six or five, read in the HLA example information of issue;
Step benzene hexachloride, according to step 6 six or two HLA system essential information, HLA federal title, Scenario Name, HLA nation person interface is added HLA system;
Step 6 six or seven, add HLA system in step benzene hexachloride basis on according to step 6 six or three HLA object model acquisition of information handle;
The HLA example information that step 6 six or eight, the HLA example information ordered in step 6 six or four, step 6 six or five are issued, step 6 six or seven obtains on the basis of handle, and issue relation is ordered in statement; According to the HLA example information registry object example that step 6 six or five is issued;
Step 6 six or nine, end.
10. a kind of dummy experiment system and HLA simulation system data switching method according to claim 9, is characterized in that: use step 6 initialized HLA nation person's interface and dummy experiment system member interface to perform exchanges data in described step 7; Detailed process is:
Data by dummy experiment system example to the exchange process of HLA example are:
Step July 1st, beginning, create exchanges data main thread;
Step 7 two, dummy experiment system member interface receive certain dummy experiment system example A data data1 from dummy experiment system;
Step 7 three, search dummy experiment system example to HLA example mapping relations array;
Step 7 four, judge example A whether at dummy experiment system in HLA mapping relations array, if exist, perform step the Seventh Five-Year Plan, if do not exist, perform step 7 nine;
Step the Seventh Five-Year Plan, dummy experiment system member interface by data1 stored in reception dummy experiment system data cache region;
Step 7 six, exchanges data main thread read data1 from reception dummy experiment system data cache region, are converted to HLA example B data data2; By data2 stored in transmission HLA data cache region;
Step 7 eight, HLA nation person interface read data2 from transmission HLA data cache region, send data2 to HLA system;
Step 7 nine, end;
Data by HLA example to the exchange process of dummy experiment system example are:
Step July 1st, beginning, create exchanges data main thread;
Step 7 two, HLA nation person interface are from HLA system acceptance HLA example C data data3;
Step 7 three, search HLA example to dummy experiment system example mapping relations array;
Step 7 four, judge example C whether at HLA example in dummy experiment system example mapping relations array, if exist, perform step 5, if do not exist, perform step 9;
Step the Seventh Five-Year Plan, HLA nation person interface by data3 stored in reception HLA data cache region;
Step 7 six, exchanges data main thread read data3 from reception HLA data cache region, are converted to dummy experiment system example D data data4; By data4 stored in transmission dummy experiment system data cache region;
Step 7 eight, dummy experiment system member interface read data4 from transmission dummy experiment system data cache region, send data4 to dummy experiment system;
Step 7 nine, end.
CN201510829895.4A 2015-11-25 2015-11-25 A kind of dummy experiment system exchanges method with HLA simulation system data Active CN105242958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510829895.4A CN105242958B (en) 2015-11-25 2015-11-25 A kind of dummy experiment system exchanges method with HLA simulation system data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510829895.4A CN105242958B (en) 2015-11-25 2015-11-25 A kind of dummy experiment system exchanges method with HLA simulation system data

Publications (2)

Publication Number Publication Date
CN105242958A true CN105242958A (en) 2016-01-13
CN105242958B CN105242958B (en) 2018-12-07

Family

ID=55040614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510829895.4A Active CN105242958B (en) 2015-11-25 2015-11-25 A kind of dummy experiment system exchanges method with HLA simulation system data

Country Status (1)

Country Link
CN (1) CN105242958B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656970A (en) * 2016-10-13 2017-05-10 哈尔滨工业大学 HIT-TENA test equipment adapter and the adaptation method thereof
CN109471732A (en) * 2018-11-22 2019-03-15 山东大学 A kind of data distributing method towards CPU-FPGA heterogeneous multi-core system
CN110764759A (en) * 2019-10-29 2020-02-07 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
CN114884826A (en) * 2022-03-15 2022-08-09 中国人民解放军军事科学院战争研究院 Cross-hierarchy heterogeneous interconnection method and interconnection system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN102592025A (en) * 2012-01-12 2012-07-18 中国人民解放军国防科学技术大学 Virtual experimental platform of unmanned underwater vehicle mission planning system and experimental method
US20130204602A1 (en) * 2012-02-07 2013-08-08 Electronics And Telecommunications Research Institute Simulation apparatus and method for verifying hybrid system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN102592025A (en) * 2012-01-12 2012-07-18 中国人民解放军国防科学技术大学 Virtual experimental platform of unmanned underwater vehicle mission planning system and experimental method
US20130204602A1 (en) * 2012-02-07 2013-08-08 Electronics And Telecommunications Research Institute Simulation apparatus and method for verifying hybrid system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜守达 等: "虚拟试验系统协议转换模块研制", 《现代电子技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656970A (en) * 2016-10-13 2017-05-10 哈尔滨工业大学 HIT-TENA test equipment adapter and the adaptation method thereof
CN109471732A (en) * 2018-11-22 2019-03-15 山东大学 A kind of data distributing method towards CPU-FPGA heterogeneous multi-core system
CN110764759A (en) * 2019-10-29 2020-02-07 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
CN110764759B (en) * 2019-10-29 2023-07-25 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
CN114884826A (en) * 2022-03-15 2022-08-09 中国人民解放军军事科学院战争研究院 Cross-hierarchy heterogeneous interconnection method and interconnection system
CN114884826B (en) * 2022-03-15 2024-04-09 中国人民解放军军事科学院战争研究院 Cross-level heterogeneous interconnection method and interconnection system

Also Published As

Publication number Publication date
CN105242958B (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN102736980B (en) Random test case generation method facing Java program
CN108932588B (en) Hydropower station group optimal scheduling system with separated front end and rear end and method
CN107563628B (en) Method and system for establishing association relationship between BIM component and construction task
CN110399420A (en) A kind of deriving method, electronic equipment and the medium of configurableization Excel format
CN105242958A (en) Virtual testing system and HLA simulation system data exchange method
CN106133766A (en) For calculating, apply and show the system and method for document increment
CN107291450A (en) A kind of quick code automatic generation method for programming friendly
CN102254029A (en) View-based data access system and method
CN106709980B (en) Formalization-based complex three-dimensional scene modeling method
CN112199086A (en) Automatic programming control system, method, device, electronic device and storage medium
CN105930344B (en) A kind of database application system quick development platform based on product development process
CN115640045B (en) Low-code development platform based on domain-driven design and business system creation method
CN108279885A (en) A kind of method and device that multiple model codes are carried out with Integrated Simulation
CN107632827A (en) The generation method and device of the installation kit of application
CN110442817A (en) A kind of development system and production method of web-based mixed reality
CN110377745A (en) Information processing method, information retrieval method, device and server
CN106250134A (en) The code automatic generation method of unicity language
CN115857886A (en) Low code development platform for basic government affair application
CN103677811B (en) Design system and method of spacecraft development process
CN103927168B (en) A kind of method and device of object-oriented data model persistence
CN106096159A (en) Distributed system behavior simulation under a kind of cloud platform analyzes the implementation method of system
CN111225034B (en) WebService-based dynamic integration method and assembly of water environment safety regulation and control model
CN108762765A (en) Development board program based on contiki systems compiles method for down loading
CN102760085B (en) Communication track expanding method and device, communication track drive simulation method and system
CN116738516A (en) Method and device for constructing three-dimensional simulation model, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant