Configurable simulation agent software implementation method

Through the configurable simulation agent software implementation method, the simulation agent software development and configuration tools are used to solve the universality of information conversion between simulation models/simulation systems, improve development efficiency and module reusability, and realize heterogeneous data Conversion and interoperability.

CN119292572APending Publication Date: 2025-01-10UNIT 63892 OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411402092.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

There is a lack of common information conversion methods between existing simulation models/simulation systems, which leads to the need for customized development of information formats and communication protocol conversion, lack of reuse mechanisms, which makes it difficult to reuse the conversion code and library, and lacks universality.

Method used

Using configurable simulation agent software implementation method, through simulation agent software development and configuration tools, it provides communication protocol conversion configuration module, information format conversion configuration module and agent software development wizard tool, which supports simulation integrators to visually configure and select suitable conversions. Library and generation development code framework to implement data conversion functions.

Benefits of technology

It improves the development efficiency of simulation agent software and the utilization rate of functional modules, supports heterogeneous data conversion, and promotes interoperability between different simulation models/simulation systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292572A_ABST
    Figure CN119292572A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of simulation agent software development, and particularly discloses a configurable simulation agent software implementation method, which realizes the development of simulation agent software through communication protocol conversion, information format conversion and simulation agent software code framework generation by utilizing a simulation agent software development and configuration tool. The requirement for heterogeneous data conversion transmitted between simulation models / simulation systems is met, interaction between different simulation models / simulation systems is supported, on the premise that the data conversion requirement is met, a function library meeting the data conversion requirement is selected for use in a configuration mode, the utilization rate of an existing function module is increased, and the data conversion efficiency is improved. And the development efficiency of the simulation agent software is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of simulation agent software development, and specifically discloses a configurable simulation agent software implementation method. Background Art

[0002] When a simulation model or simulation system needs to interact with information, since the interactive information of each simulation model or simulation system follows the communication protocol and information format defined within its own system, when multiple simulation models or simulation systems that follow different protocols are integrated, data interaction is required between different simulation models / simulation systems, which requires protocol conversion and format conversion between different interactive data objects.

[0003] At present, there is no universal development method for information conversion between simulation models / simulation systems. All of them are customized and developed based on the information format conversion requirements of specific simulation models and simulation systems, and lack universality. Moreover, there is a lack of a reuse mechanism for existing conversion libraries, which makes it difficult to reuse a large amount of conversion code and conversion libraries. Summary of the invention

[0004] In order to solve the problems in the background technology, the present invention discloses a configurable simulation agent software implementation method, which supports the development of simulation agent software, meets the needs of heterogeneous data conversion transmitted between simulation models / simulation systems, supports the interaction between different simulation models / simulation systems, and selects function libraries that meet the data conversion needs through configuration on the premise of meeting the data conversion needs, thereby improving the utilization rate of existing functional modules and improving the development efficiency of simulation agent software.

[0005] In order to achieve the above-mentioned invention object, the present invention adopts the following technical scheme: A configurable simulation agent software implementation method, the method is implemented by a simulation agent software development and configuration tool, the configurable simulation agent software development and configuration tool includes a communication protocol conversion configuration module, an information format conversion configuration module and an agent software development wizard tool, the communication protocol conversion configuration module provides a visual configuration interface for simulation integrators, through which the simulation integrators can select the currently available communication protocol conversion library, the communication protocol conversion configuration module reads the configured communication protocol conversion library file information, obtains the conversion library file location, and saves it to a specified directory; the information format conversion configuration module provides a visual configuration interface for simulation integrators, through which the simulation integrators can select the currently available information format conversion library; reads the configured information format conversion library file information, obtains the conversion library file location, and saves it to a specified directory; the agent software development wizard tool is responsible for generating a development code framework and an interactive interface of the simulation agent software, and when the simulation integrator uses the simulation agent software development tool to develop a simulation model / simulation system, he first selects the simulation model / simulation system involved in the integration, browses the input / output information, and then needs to complete the following steps: (1) Communication protocol conversion implementation steps: Based on the simulation data communication protocol description information, the communication protocol conversion configuration module is used to define the conversion method of the simulation data communication protocol. The defined information includes: the name of the simulation data communication protocol and the communication protocol conversion library attribute information; (2) Information format conversion implementation steps: Based on the source data information of each piece of simulation information data, the information format conversion configuration module is used to define the conversion method of the simulation information data. The defined information includes: the name of the simulation information data and the attribute information of the simulation information format conversion library; (3) Simulation agent software code framework generation step: With the support of the simulation agent software development wizard tool, generate the simulation agent software code main framework, which contains the functional function modules required for the simulation agent software development process; Furthermore, in the configurable simulation agent software implementation method, in step (1) the communication protocol conversion implementation step, if there is an available communication protocol conversion library, the communication protocol conversion method and content are configured using the communication protocol conversion configuration module, and the existing communication protocol conversion library is used for implementation; if there is no available communication protocol conversion library, the corresponding communication protocol conversion executable code program is generated through the simulation agent software code framework generation step in step (3) to implement the communication protocol conversion function.

[0006] Furthermore, in the configurable simulation agent software implementation method, in step (2) the information format conversion implementation step, if there is an available information format conversion library, the information format conversion method and content are configured using the information format conversion configuration module, and the existing information format conversion library is used for implementation; if there is no available information format conversion library, the corresponding information format conversion executable code program is generated through the simulation agent software code framework generation step in step (3) to implement the information format conversion function.

[0007] Furthermore, the configurable simulation agent software implementation method, step (3) simulation agent software code framework generation step, specifically includes the following steps: 3.1) If the integrated simulation agent software has dependent communication protocol conversion library and information format conversion library, select the basic information of the above two conversion libraries through the agent software development wizard tool, including the file name, version, development organization and file path of the conversion library; otherwise, go directly to step 3.2); 3.2) Use the code generation function of the agent software development wizard tool to generate a simulation agent software engineering file that supports secondary compilation in the specified directory. The engineering file contains the conversion function interface that the simulation agent software needs to implement. The conversion function interface includes the communication protocol conversion interface and the information format conversion interface. The specific function code in the function is developed by the simulation model integrator according to the protocol conversion needs. If there is a dependent conversion library, the directory should also contain the library file of the corresponding conversion library. The simulation agent software framework also contains a call to the conversion library. In the generated simulation agent software engineering file, five interface functions are directly constructed for the subsequent implementation of the simulation agent software: a. Initialize the interface; b. Information subscription interface, used to define the source data information that needs to be received; c. Information publishing interface, used to define the target data information to be sent; e. Information receiving interface, used to receive and parse source data information; f. Information sending interface, used to construct and send target data information.

[0008] Compared with the prior art, the present invention has the following beneficial effects: During the operation of the simulation system, data exchange needs to be performed between simulation models / simulation systems according to system requirements. Each simulation model / simulation system has its own defined data structure and communication protocol. The configurable simulation agent software implementation method of the present invention supports the development of simulation agent software, meets the requirements of heterogeneous data conversion transmitted between simulation models / simulation systems, and supports the interaction between different simulation models / simulation systems. In the previous simulation model / simulation system integration process, a large number of data conversion functional modules have been developed. These functional modules can be encapsulated as function libraries for shared use. The invented configurable simulation agent software implementation method, on the premise of meeting the data conversion requirements, selects the function library that meets the data conversion requirements through configuration, thereby improving the utilization rate of existing functional modules and improving the development efficiency of simulation agent software. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a schematic diagram of the module structure of the simulation agent software development and configuration tool of the present invention. DETAILED DESCRIPTION

[0010] In the past simulation model / simulation system integration process, a large number of data conversion function modules have been developed. These function modules can be encapsulated as function libraries for shared use. The present invention provides a simulation agent software configuration specification, which specifies the configuration method and content of the communication protocol conversion library and the information format conversion library. The specification adopts an XML-based description method to support a hierarchical, tree-like, and extensible text tag language for library files in the simulation model / simulation system integration process, and provides descriptions of the communication protocol, conversion interface, information data type, information data conversion interface and other elements involved in the communication protocol conversion. It mainly includes three types of tags, including: 1) Communication protocol description tag This tag is used to describe the basic information of the communication protocol used for interaction between the integrated simulation model / simulation system, including the communication protocol name, communication type, version information, and formulation agency.

[0011] 2) Information type description tag This tag is used to describe the basic information of the information data interactively used by the integrated simulation model / simulation system, including information name, information type, element data type, element description, etc.

[0012] 3) Convert library file description name This tag is used to describe the basic information of the communication protocol conversion library file or the information format conversion library file, including the library file name, basic information, library interface information used, and development organization.

[0013] The method of the present invention mainly comprises the following steps: (1) configuring a communication protocol conversion library to realize communication protocol conversion; (2) configuring an information format conversion library to realize information format conversion; and (3) generating a simulation agent software code framework to realize the development of the simulation agent software.

[0014] Step (1), communication protocol conversion implementation: In this step, the integrator selects a suitable communication protocol conversion library according to the communication protocol to be converted, and configures the communication protocol description information and the communication protocol conversion library file information according to the configuration specification requirements; Step (2), information format conversion implementation: In this step, the integrator selects a suitable information format conversion library according to the information format protocol to be converted, and configures the information format description information and the information format conversion library file information according to the configuration specification requirements; Step (3), simulation agent software code framework generation: In this step, the integrator generates the code framework of the simulation agent software through the simulation agent software generation wizard. The framework includes a communication protocol conversion library, an information format conversion library calling method, and an initialization interface, an information subscription interface, an information publishing interface, and an information receiving and sending interface. The integrator improves the code in each function framework according to the functional requirements of the agent software to realize the development of the simulation agent software. On the premise of meeting the data conversion requirements, the integrator selects the function library that meets the data conversion requirements through configuration, thereby improving the utilization rate of existing functional modules and improving the development efficiency of the simulation agent software.

[0015] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Other modifications or equivalent substitutions made to the technical solution of the present invention by ordinary technicians in the field should be included in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.

Claims

1. A configurable simulation agent software implementation method, characterized in that: The method is implemented by a simulation agent software development and configuration tool, wherein the configurable simulation agent software development and configuration tool includes a communication protocol conversion configuration module, an information format conversion configuration module and an agent software development wizard tool, and specifically includes the following steps: (1) Communication protocol conversion implementation steps: Based on the simulation data communication protocol description information, the communication protocol conversion configuration module is used to define the conversion method of the simulation data communication protocol. The defined information includes: the name of the simulation data communication protocol and the communication protocol conversion library attribute information; (2) Information format conversion implementation steps: Based on the source data information of each piece of simulation information data, the information format conversion configuration module is used to define the conversion method of the simulation information data. The defined information includes: the name of the simulation information data and the attribute information of the simulation information format conversion library; (3) Simulation agent software code framework generation step: With the support of the simulation agent software development wizard tool, generate the simulation agent software code main framework, which contains the functional function modules required for the simulation agent software development process.

2. The configurable simulation agent software implementation method according to claim 1, characterized in that In step (1), if there is an available communication protocol conversion library, the communication protocol conversion method and content are configured using the communication protocol conversion configuration module, and the existing communication protocol conversion library is used for implementation; if there is no available communication protocol conversion library, the corresponding communication protocol conversion executable code program is generated through the simulation agent software code framework generation step in step (3) to implement the communication protocol conversion function.

3. The configurable simulation agent software implementation method according to claim 1, characterized in that: In step (2), the information format conversion implementation step, if there is an available information format conversion library, the information format conversion method and content are configured using the information format conversion configuration module, and the existing information format conversion library is used for implementation; if there is no available information format conversion library, the corresponding information format conversion executable code program is generated through the simulation agent software code framework generation step in step (3), thereby implementing the information format conversion function.

4. The method for implementing configurable simulation agent software according to claim 1, characterized in that: Step (3) generating the simulation agent software code framework comprises the following steps: 3.1) If the integrated simulation agent software has dependent communication protocol conversion library and information format conversion library, select the basic information of the above two conversion libraries through the agent software development wizard tool, including the file name, version, development organization and file path of the conversion library; otherwise, go directly to step 3.2); 3.2) Use the code generation function of the agent software development wizard tool to generate a simulation agent software project file that supports secondary compilation in the specified directory. The project file contains the conversion function interface that the simulation agent software needs to implement. The specific functional code in the function is developed by the simulation model integrator according to the protocol conversion needs. If there is a dependent conversion library, the directory should also contain the library file of the corresponding conversion library, and the simulation agent software framework also contains calls to the conversion library.

5. The method for implementing configurable simulation agent software according to claim 4, characterized in that: The conversion function interface in step 3.2) includes a communication protocol conversion interface and an information format conversion interface.