CN102779159B - SA view file is converted to the method for HLA Simulation Application file - Google Patents
SA view file is converted to the method for HLA Simulation Application file Download PDFInfo
- Publication number
- CN102779159B CN102779159B CN201210199508.XA CN201210199508A CN102779159B CN 102779159 B CN102779159 B CN 102779159B CN 201210199508 A CN201210199508 A CN 201210199508A CN 102779159 B CN102779159 B CN 102779159B
- Authority
- CN
- China
- Prior art keywords
- hla
- file
- data type
- converted
- view
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a kind of method SA view file being converted to HLA Simulation Application file, comprise the following steps: S1, read source SA view file, obtain the configuration parameter information of described source SA view file; S2, according to described configuration parameter information, is converted to the HLA Simulation Application file meeting HLA standard by described source SA view file.Therefore, SA view file is converted into object class, interactive class, attribute and parameter information that HLA emulation can be cognitive, thus HLA can be made to emulate the result of design inheriting SA accurately, HLA is avoided to emulate the design philosophy departing from SA, and experimenter does not need to edit FOM file and the SOM file that HLA emulates needs, thus alleviate the workload of experimenter.
Description
Technical field
The invention belongs to Computer Applied Technology field, be specifically related to a kind of method SA view file being converted to HLA Simulation Application file.
Background technology
SA (SystemArchitect, architecture modeling instrument) be a kind of architecture modeling tool software that IBM Corporation develops, for develop enterprise framework provides the integration environment, supporting the multi-modeling language such as multiple enterprise architecture framework and UML, IDEF and BPMN such as DoDAF, Zachman, is one of effective tool of exploitation complex large system.
HLA (HighLevelArchitecture, high-level architecture) be one flexibly, reusable software architecture, be create based on the framework technical pattern of the distributed emulation of assembly.At present, HLA application spreads in every field, such as: military exercise, system testing assessment, distributed task scheduling training, virtual environment and game application etc.
Now in the art, because the data file generated after the high-rise modeling of SA cannot be directly used in HLA emulation, therefore, if experimenter needs to carry out HLA emulation to SA modeling result, the model manual editing HLA that must build up according to SA emulates the FOM file and SOM file that use, thus has increased the weight of the workload of experimenter.
Summary of the invention
For the defect that prior art exists, the invention provides a kind of method SA view file being converted to HLA Simulation Application file, SA view file is converted into object class, interactive class, attribute and parameter information that HLA emulation can be cognitive, thus HLA can be made to emulate the result of design inheriting SA accurately, HLA is avoided to emulate the design philosophy departing from SA, and experimenter does not need to edit FOM file and the SOM file that HLA emulates needs, thus alleviate the workload of experimenter.
The technical solution used in the present invention is as follows:
The invention provides a kind of method SA view file being converted to HLA Simulation Application file, comprise the following steps:
S1, reads source SA view file, obtains the configuration parameter information of described source SA view file;
S2, according to described configuration parameter information, is converted to the HLA Simulation Application file meeting HLA standard by described source SA view file.
Preferably, when described configuration parameter information is the data structure descriptor of described source SA view file, data element descriptor and data type conversion mapping relations, described source SA view file is converted to the FOM file meeting HLA standard.
Preferably, described source SA view file is converted to the FOM file meeting HLA standard specifically to comprise the following steps:
S21, the mapping relations of definition SA data type and HLA data type;
The SA data type conversion of described source SA view file, according to the mapping relations of described SA data type and HLA data type, is corresponding HLA data type by S22;
S23, arranges the first corresponding relation of object class in SA data structure and HLA, and, the second corresponding relation of interactive class in SA data structure and HLA is set;
S24, according to described first corresponding relation and the second corresponding relation, obtains storing the corresponding relation file of the 3rd corresponding relation of interactive class in object class in described HLA data type and described HLA or described HLA;
S25, adds FOM configuration file in described corresponding relation file, obtains the FOM file meeting HLA standard.
Preferably, described SA data type comprises one or more in SA String data type, SA integer data type, SA single-precision floating-point data type, SA double-precision floating point data type, SA Boolean type data type and SA data of enumeration type type.
Preferably, be that corresponding HLA data type is specially by the SA data type conversion of described source SA view file: the maximum length presetting HLA data type requires and byte high-low-position storage sequence requirement; When after the HLA data type by the SA data type conversion of described source SA view file being correspondence, judge whether the HLA data type of described correspondence meets described maximum length requirement, if do not met, then give up described HLA data type; If met, then according to HLA data type described in the described byte high-low-position storage sequential storage preset.
Preferably, described FOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.
Preferably, when described configuration parameter information is each node data stream information in the SA view file of described source, described source SA view file is converted to the SOM file meeting HLA standard.
Preferably, described source SA view file is converted to the SOM file meeting HLA standard specifically to comprise the following steps:
S31, according to each node in SA, generates corresponding HLA federal member;
S32, according to each node data stream information in SA view file, extracts the transmission between the object class of HLA federal member described in each and interactive class and reception relation, obtains SOM original document;
S33, adds SOM configuration file in described SOM original document, obtains the SOM file meeting HLA standard.
Preferably, described SOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.
Beneficial effect of the present invention is as follows:
Method SA view file being converted to HLA Simulation Application file provided by the invention, SA and HLA is combined, build the bridge from system modeling to HLA Simulation Application, SA view file is converted into object class, interactive class, attribute and parameter information that HLA emulation can be cognitive, take full advantage of the modeling result of SA, HLA is made to emulate the result of design inheriting SA accurately, HLA is avoided to emulate the design philosophy departing from SA, and experimenter does not need to edit FOM file and the SOM file that HLA emulates needs, thus alleviate the workload of experimenter.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet SA view file being converted to the method for HLA Simulation Application file provided by the invention;
Fig. 2 is schematic flow sheet SA view file being converted to the method for FOM file provided by the invention;
Fig. 3 is schematic flow sheet SA view file being converted to the method for SOM file provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, method SA view file being converted to HLA Simulation Application file provided by the invention is described in detail:
As shown in Figure 1, the invention provides a kind of method SA view file being converted to HLA Simulation Application file, comprise the following steps:
S1, reads source SA view file, obtains the configuration parameter information of described source SA view file;
S2, according to described configuration parameter information, is converted to the HLA Simulation Application file meeting HLA standard by described source SA view file.
In the present invention, HLA Simulation Application file includes but not limited to FOM (FederationObjectModel, federated-object model) file and SOM (SimulationObjectModel, simulation object model) file, below for FOM file and SOM file, introduce method SA view file being converted to FOM file respectively, and, SA view file is converted to the method for SOM file.
One, SA view file is converted to the method for FOM file
When configuration parameter information is the data structure descriptor of described source SA view file, data element descriptor and data type conversion mapping relations, according to these configuration parameter information, described source SA view file can be converted to the FOM file meeting HLA standard; Wherein, data structure descriptor is used for the storage organization that data of description flows to, and data element descriptor is used for the data type of each element in data of description structure.As shown in Figure 2, method SA view file being converted to FOM file specifically comprises the following steps:
S21, the mapping relations of definition SA data type and HLA data type;
In this step, SA data type comprises one or more in SA String data type, SA integer data type, SA single-precision floating-point data type, SA double-precision floating point data type, SA Boolean type data type and SA data of enumeration type type.SA data type with the mapping relations of HLA data type can be: SA String data type corresponding become HLA standard characters data type or Unicode String data type, SA integer data type, SA single-precision floating-point data type, SA double-precision floating point data type, SA Boolean type data type and SA data of enumeration type type corresponding become the corresponding data type of HLA.SA complex data type needs the basic data type for inside, does the conversion of basic data type corresponding to corresponding HLA.
The SA data type conversion of described source SA view file, according to the mapping relations of described SA data type and HLA data type, is corresponding HLA data type by S22;
In this step, concrete conversion regime can be: the maximum length presetting HLA data type requires and byte high-low-position storage sequence requirement; When after the HLA data type by the SA data type conversion of described source SA view file being correspondence, judge whether the HLA data type of described correspondence meets described maximum length requirement, if do not met, then give up described HLA data type; If met, then according to HLA data type described in the described byte high-low-position storage sequential storage preset.
S23, arranges the first corresponding relation of object class in SA data structure and HLA, and, the second corresponding relation of interactive class in SA data structure and HLA is set;
Owing to not specifying the data structure of corresponding HLA object class in SA view file, and, do not specify the data structure of corresponding HLA interactive class, therefore need the corresponding relation of specifying all data structures and object class and interactive class.
S24, according to described first corresponding relation and the second corresponding relation, obtains storing the corresponding relation file of the 3rd corresponding relation of interactive class in object class in described HLA data type and described HLA or described HLA;
S25, adds FOM configuration file in described corresponding relation file, obtains the FOM file meeting HLA standard.
Wherein, FOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.
Concrete, according to the requirement of HLA to FOM file, interpolation data dictionary, synchronous point, transmission conditions, RTI arrange the contents such as switch, user tag, annotation, MOM management, final generation FOM file.
By above-mentioned steps, achieve effect SA view file being converted to FOM file.
Two, SA view file is converted to the method for SOM file
When described configuration parameter information is each node data stream information in the SA view file of described source, described source SA view file is converted to the SOM file meeting HLA standard, wherein, data stream is used for data of description and flows to, as shown in Figure 3, method SA view file being converted to SOM file specifically comprises the following steps:
S31, according to each node in SA, generates corresponding HLA federal member;
S32, according to each node data stream information in SA view file, extracts the transmission between the object class of HLA federal member described in each and interactive class and reception relation, obtains SOM original document;
S33, adds SOM configuration file in described SOM original document, obtains the SOM file meeting HLA standard.
Wherein, SOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.According to HLA to the requirement of SOM file, interpolation data dictionary, synchronous point, transmission conditions, RTI arrange the contents such as switch, user tag, annotation, MOM management, finally generate SOM file.
In sum, in the present invention, data streaming file, Data Definitions File and data element file can be generated according to SA modeling result, due to the announcement/order relationship consistency in the content that describes in data streaming file and HLA, Data Definitions File and data element file are combined, just be the object class or interactive class that define in HLA, therefore these three files merged the FOM file just generating HLA emulation needs and SOM file.
Therefore, method SA view file being converted to HLA Simulation Application file provided by the invention, SA and HLA is combined, build the bridge from system modeling to HLA Simulation Application, SA view file is converted into the object class that HLA emulation can be cognitive, interactive class, attribute and parameter information, take full advantage of the modeling result of SA, HLA is made to emulate the result of design inheriting SA accurately, HLA is avoided to emulate the design philosophy departing from SA, and experimenter does not need to edit FOM file and the SOM file that HLA emulates needs, thus alleviate the workload of experimenter.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.
Claims (5)
1. SA view file is converted to a method for HLA Simulation Application file, it is characterized in that, comprise the following steps:
S1, reads source SA view file, obtains the configuration parameter information of described source SA view file;
S2, according to described configuration parameter information, is converted to the HLA Simulation Application file meeting HLA standard by described source SA view file;
Wherein, when described configuration parameter information is the data structure descriptor of described source SA view file, data element descriptor and data type conversion mapping relations, described source SA view file is converted to the FOM file meeting HLA standard;
Wherein, described source SA view file is converted to the FOM file meeting HLA standard specifically to comprise the following steps:
S21, the mapping relations of definition SA data type and HLA data type;
The SA data type conversion of described source SA view file, according to the mapping relations of described SA data type and HLA data type, is corresponding HLA data type by S22;
S23, arranges the first corresponding relation of object class in SA data structure and HLA, and, the second corresponding relation of interactive class in SA data structure and HLA is set;
S24, according to described first corresponding relation and the second corresponding relation, obtains storing the corresponding relation file of the 3rd corresponding relation of interactive class in object class in described HLA data type and described HLA or described HLA;
S25, adds FOM configuration file in described corresponding relation file, obtains the FOM file meeting HLA standard;
Wherein, when described configuration parameter information is each node data stream information in the SA view file of described source, described source SA view file is converted to the SOM file meeting HLA standard;
Wherein, described source SA view file is converted to the SOM file meeting HLA standard specifically to comprise the following steps:
S31, according to each node in SA, generates corresponding HLA federal member;
S32, according to each node data stream information in SA view file, extracts the transmission between the object class of HLA federal member described in each and interactive class and reception relation, obtains SOM original document;
S33, adds SOM configuration file in described SOM original document, obtains the SOM file meeting HLA standard.
2. method SA view file being converted to HLA Simulation Application file according to claim 1, it is characterized in that, described SA data type comprises one or more in SA String data type, SA integer data type, SA single-precision floating-point data type, SA double-precision floating point data type, SA Boolean type data type and SA data of enumeration type type.
3. method SA view file being converted to HLA Simulation Application file according to claim 1, it is characterized in that, be that corresponding HLA data type is specially by the SA data type conversion of described source SA view file: the maximum length presetting HLA data type requires and byte high-low-position storage sequence requirement; When after the HLA data type by the SA data type conversion of described source SA view file being correspondence, judge whether the HLA data type of described correspondence meets described maximum length requirement, if do not met, then give up described HLA data type; If met, then according to HLA data type described in the described byte high-low-position storage sequential storage preset.
4. method SA view file being converted to HLA Simulation Application file according to claim 1, it is characterized in that, described FOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.
5. method SA view file being converted to HLA Simulation Application file according to claim 1, it is characterized in that, described SOM configuration file comprises data dictionary, synchronous point, transmission conditions, RTI arrange in switch, user tag, annotation, MOM management information one or more.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210199508.XA CN102779159B (en) | 2012-06-14 | 2012-06-14 | SA view file is converted to the method for HLA Simulation Application file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210199508.XA CN102779159B (en) | 2012-06-14 | 2012-06-14 | SA view file is converted to the method for HLA Simulation Application file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102779159A CN102779159A (en) | 2012-11-14 |
CN102779159B true CN102779159B (en) | 2015-11-18 |
Family
ID=47124071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210199508.XA Active CN102779159B (en) | 2012-06-14 | 2012-06-14 | SA view file is converted to the method for HLA Simulation Application file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102779159B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199664B (en) * | 2014-09-03 | 2017-06-06 | 北京大学 | A kind of simulation code synchronization generation method based on annotation |
CN104598240B (en) * | 2015-01-20 | 2017-08-04 | 北京仿真中心 | A kind of cross-platform Simulation Model Development method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101303706A (en) * | 2008-07-01 | 2008-11-12 | 中国电子科技集团公司第三十研究所 | Method and system for sharing data between modeling tool and simulation tool |
CN101763447A (en) * | 2009-12-28 | 2010-06-30 | 中国农业大学 | Automatic data conversion method between three-dimensional modeling software and finite element analysis software |
CN102033998A (en) * | 2010-12-10 | 2011-04-27 | 北京航空航天大学 | Method for automatically generating reliability model |
CN102254464A (en) * | 2011-08-10 | 2011-11-23 | 上海交通大学 | Method for simulating mechanism motion virtual experiment based on mechanical principles of members |
-
2012
- 2012-06-14 CN CN201210199508.XA patent/CN102779159B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101303706A (en) * | 2008-07-01 | 2008-11-12 | 中国电子科技集团公司第三十研究所 | Method and system for sharing data between modeling tool and simulation tool |
CN101763447A (en) * | 2009-12-28 | 2010-06-30 | 中国农业大学 | Automatic data conversion method between three-dimensional modeling software and finite element analysis software |
CN102033998A (en) * | 2010-12-10 | 2011-04-27 | 北京航空航天大学 | Method for automatically generating reliability model |
CN102254464A (en) * | 2011-08-10 | 2011-11-23 | 上海交通大学 | Method for simulating mechanism motion virtual experiment based on mechanical principles of members |
Also Published As
Publication number | Publication date |
---|---|
CN102779159A (en) | 2012-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104598240B (en) | A kind of cross-platform Simulation Model Development method and system | |
CN104331294B (en) | A kind of visualization procedure generation method and device | |
CN102982010B (en) | The method and apparatus extracting file structure | |
CN105677446A (en) | Visual modeling method for distributed simulation platform | |
CN103116500A (en) | Method and device for structural body definition and structure output | |
KR101770292B1 (en) | Computer-executable model reverse engineering method and apparatus performing the same | |
CN103927385A (en) | Unifying method and device of data model | |
Haug et al. | A layout technique for class diagrams to be used in product configuration projects | |
CN104331530A (en) | An electronic warfare visual simulation platform based on XML description and working method thereof | |
CN103455643A (en) | Describing and modeling method of general simulation assemblies | |
CN111311461B (en) | Editor of structured dynamic medical record form based on B-S and generation method | |
CN103164545A (en) | Visual editing method of virtual electronic components | |
Iyenghar et al. | A model based approach for debugging embedded systems in real-time | |
CN103793458B (en) | Method for nondestructively converting AADL (architecture analysis and design language) into XML (extensible markup language) | |
CN102779159B (en) | SA view file is converted to the method for HLA Simulation Application file | |
CN103942092A (en) | HLA co-simulation method supporting LabView graphical programming | |
CN102231132B (en) | Method for generating simulation test example of AADL (Architecture Analysis and Design Language) software component model based on SystemC | |
CN106372359B (en) | A kind of equipment virtual prototype system | |
CN107193559A (en) | A kind of complication system virtual Prototype method based on meta-model | |
CN102708206B (en) | A kind of describing method of data layout | |
CN103488649B (en) | A kind of method that architectural model is converted to emulation component | |
Liu et al. | A study of metamodeling based on MDA | |
CN109298857A (en) | Method for building up, medium, device and the calculating equipment of DSL statement model | |
CN102479268B (en) | The aircraft federal member isomery of FORTRAN works in coordination with mutual operation method | |
US9886538B1 (en) | System and method for using heterogeneous hierarchical configurations for electronic design reuse |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C53 | Correction of patent for invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100085, Beijing, Haidian District on the East Road, No. 1, building 3, 9 floor, China Building Applicant after: Beijing Shenzhou Puhui Science & Technology Co., Ltd. Address before: 100085, Beijing, Haidian District on the East Road, No. 1, building 3, 9 floor, China Building Applicant before: Appsoft Technology Co., Ltd. |
|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |