CN111522731A - Model integration method and device for online overloading of simulation model - Google Patents

Model integration method and device for online overloading of simulation model Download PDF

Info

Publication number
CN111522731A
CN111522731A CN202010173910.5A CN202010173910A CN111522731A CN 111522731 A CN111522731 A CN 111522731A CN 202010173910 A CN202010173910 A CN 202010173910A CN 111522731 A CN111522731 A CN 111522731A
Authority
CN
China
Prior art keywords
model
simulation
interface
simulation model
management module
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
CN202010173910.5A
Other languages
Chinese (zh)
Other versions
CN111522731B (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.)
CETC 29 Research Institute
Original Assignee
CETC 29 Research Institute
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 CETC 29 Research Institute filed Critical CETC 29 Research Institute
Priority to CN202010173910.5A priority Critical patent/CN111522731B/en
Publication of CN111522731A publication Critical patent/CN111522731A/en
Application granted granted Critical
Publication of CN111522731B publication Critical patent/CN111522731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Abstract

The invention discloses a model integration method and a device for online overloading of a simulation model, which relate to the technical field of computer simulation and comprise the following steps: starting a program to enable the model software to enter a runnable state; b: realizing on-line loading/unloading of the simulation model according to requirements; c: scheduling each simulation model in order to carry out service simulation calculation; the step c specifically comprises the step of registering the simulation models with the model scheduling module after the simulation models are loaded and initialized; after the registration is finished, instantiating the simulation model according to the simulation scenario file and determining a scheduling sequence; scheduling a simulation model according to the beat to carry out calculation according to the driving of an external simulation engine; the online overloading of the simulation model is realized according to the task requirements in the primary simulation task, and the analysis and research of multiple schemes in the primary simulation task are facilitated for a user.

Description

Model integration method and device for online overloading of simulation model
Technical Field
The invention relates to the technical field of computer simulation, in particular to a model integration method and a model integration device for online overloading of a simulation model.
Background
In the present military simulation deduction system, the modeling of the combat entity must meet the requirements of the model integration framework of the simulation deduction system. Currently, the mainstream military simulation deduction system has introduced corresponding model integration framework, such as the XSim product of the science and technology limited in beijing china and the DWK product of the china general science and technology limited in beijing.
However, the currently mainstream model integration framework mainly completes the functions of static integration and loading execution of the simulation model, and lacks the capability of dynamically reloading the simulation model according to the requirements of the simulation task during operation, which causes the close coupling of the simulation task and a set of simulation model set, and is difficult to complete the calculation of a plurality of sets of simulation model sets in the process of a single simulation task. When the application scene of the multi-scheme comparative analysis is performed by a user, the analysis of a plurality of schemes can be completed only through multiple times of simulation, so that the efficiency of simulation research is greatly reduced. Meanwhile, the mainstream model integration framework only considers the integration of a background computing model generally, lacks the capability of integrating the simulation model with foreground display, and is difficult to meet the simulation task requirement of performing visual online adjustment on the model in a loop by people.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the defects of the existing model integration framework, the model integration method and the device for the online overloading of the simulation model are provided, the online overloading of the simulation model in a primary simulation task is supported according to the task requirement, and a user can conveniently develop multi-scheme analysis research in the primary simulation task.
The invention provides a model integration method for online overloading of a simulation model, which comprises the following steps
a: starting a program to enable the model software to enter a runnable state;
b: realizing on-line loading/unloading of the simulation model according to requirements;
c: scheduling each simulation model in order to carry out service simulation calculation;
the step c specifically comprises the following steps of,
after each simulation model is loaded and initialized, the simulation models are registered with the model scheduling module;
after the registration is finished, instantiating the simulation model according to the simulation scenario file and determining a scheduling sequence;
and scheduling the simulation model according to the beat to carry out calculation according to the driving of an external simulation engine.
Further, the a specifically includes,
the model container creates a main process/main thread of a program when model software is started;
the method comprises the steps of loading a model management module, a model scheduling module, a model interface management module and a communication management module;
after all the modules are loaded, calling a model management module to load each simulation model;
calling a model scheduling module to realize the ordered scheduling of each simulation model;
calling a model interface management module to create interfaces for the simulation models;
and calling a communication management module to perform necessary initialization for communication among the components, and after the model container finishes the work, enabling the model software to enter a runnable state.
Further, the loading of each simulation model by the model management module specifically comprises,
and loading the corresponding simulation model from the simulation model library according to the simulation scenario file, and initializing the simulation model.
Further, said b specifically includes,
showing a currently running simulation model and a simulation model which can be used for overloading in a simulation model library;
according to the requirements of simulation tasks, dynamically selecting the simulation model which is not loaded in the simulation model library for online loading in the simulation process, and simultaneously selecting the running simulation model for online unloading.
Furthermore, the online loading specifically includes,
and after receiving the loading instruction, selecting a corresponding simulation model from the simulation model library to load and finish initialization.
Furthermore, the online unloading specifically comprises,
after receiving the unloading instruction, sending the relevant information of the unloaded model to the model scheduling module to complete the logout and cleaning work of the unloaded model, unloading the selected simulation model after the cleaning work is completed, and completing the relevant anti-initialization operation.
Furthermore, in the simulation driving process, the method also comprises the step of collecting the deduction information generated by the simulation model in the deduction process and storing the deduction information in the simulation record file or the database, wherein the deduction information comprises information such as state parameters, capability parameters, important events, efficiency calculation results and the like.
Further, the method also comprises the following steps: the interface layout for managing the simulation model may include,
d 1: creating a corresponding simulation model interface according to an interface configuration file of a simulation model, wherein the simulation model interface comprises a menu bar, a tool bar, a status bar, a service interface, a service window and the like;
d 2: after the simulation model is dynamically loaded/unloaded during operation, the model interface management module automatically adjusts according to the change of the current interface layout;
d 3: the main interface of the simulation model is freely dragged, and is displayed/hidden in due time, so that the flexibility of the interface layout of the model software is improved;
d 4: and destroying the simulation model interface.
Furthermore, the d1 specifically includes,
driving a simulation model to read an interface configuration file of the simulation model, and acquiring interface information and data publishing/subscribing information of the simulation model, wherein the interface information comprises menu items, toolbar items, status bar items, service windows and layout modes of the simulation model;
and associating the interface information with the simulation model ID, and driving the simulation model to create respective simulation model interfaces, wherein the simulation model interfaces comprise a menu bar, a tool bar, a status bar, a service interface, a service window and the like.
Furthermore, the d4 specifically includes,
and inquiring interface information of the simulation model according to the ID of the simulation model, and destroying a corresponding simulation model interface according to the interface information, wherein the simulation model interface comprises a menu bar, a tool bar, a status bar, a service interface, a service window and the like.
Furthermore, the d also includes,
the model interface management module stores the current interface layout scheme, including,
and acquiring the simulation model interface information of the current simulation model, and writing the simulation model interface information into an interface configuration file of the simulation model, so that the interface layout is kept unchanged after the model software is restarted.
Furthermore, the method also comprises the following steps of,
e: managing data communications between all simulation models, and between simulation models and model scheduling modules, specifically including,
when a communication interface is initialized by the model scheduling module and the simulation model, registering a data topic to be published/subscribed to the communication management module;
and after the communication management module collects the published/subscribed data topics, matching the published data topics with the subscribed data topics, and if the published data topics are matched with the subscribed data topics, establishing a data path for the data topics according to the matched data topics and transmitting data.
The invention also provides a model integration device for the online overloading of the simulation model, which comprises a model container, a model management module, a model scheduling module, a model interface management module and a communication management module;
the model container is in communication connection with the model management module, the model scheduling module, the model interface management module and the communication management module, so that normal operation of model software is ensured;
the model management module is responsible for realizing on-line loading/unloading of the simulation model according to requirements;
the model scheduling module is responsible for scheduling each simulation model in order to carry out service simulation calculation;
the model interface management module is responsible for adjusting and storing the interface layout of the simulation model;
and the communication management module is responsible for managing data communication among all simulation models and between the simulation models and the model scheduling module.
Furthermore, the model management module comprises a loading simulation model interface, an unloading simulation model interface and an acquiring simulation model state interface which are used for being called by the model container;
the loading simulation model interface loads a binary file of a simulation model;
the unloading simulation model interface releases the simulation model to be unloaded from the memory;
the state information of the simulation model state interface query component is obtained, and the state information comprises loading state, description information, runtime configuration, factory pointer obtaining and other operations.
Furthermore, the model scheduling module comprises a simulation driving interface, a simulation model registration interface and a simulation model cancellation interface which are used for calling the model container;
the simulation driving interface receives the simulation beats transmitted by the model container and orderly schedules each simulation model to carry out service simulation calculation;
the simulation model registration interface receives registration information of a simulation model and adds the simulation model information into a model scheduling list for unified management;
and the simulation model logout interface deletes the specified simulation model from the model scheduling list.
Furthermore, the model interface management module comprises a creation/destruction simulation model interface for calling the model container and the simulation model, a manual/automatic adjustment current simulation model interface and a simulation model interface storage interface;
the creation/destruction simulation model interface drives the simulation model modules to create/destroy respective simulation model interfaces, and the simulation model interfaces comprise a menu bar, a tool bar, a status bar, a service window, a service interface and the like;
the current simulation model interface is manually/automatically adjusted to adjust the simulation model interface according to requirements;
the simulation model interface storage interface stores a simulation model interface.
Furthermore, the communication management module comprises a data publishing interface, a data subscribing interface and a data sending interface for the simulation model and the model scheduling module to subscribe/publish data;
the data publishing interface is used for the simulation model and the model scheduling module to publish the data theme output by the simulation model and the model scheduling module;
the data subscription interface is used for subscribing a data theme input by the simulation model and the model scheduling module and receiving a callback function of data;
the data sending interface is used for sending the business data to the specified data theme by the simulation model and the model scheduling module.
Furthermore, the simulation model comprises an initialization/reverse initialization interface for the model management module to call, a creation/destruction simulation interface for the model interface management module to call and a simulation stepping calculation interface for the model scheduling module to call;
the initialization/reverse initialization interface is used for the simulation model to perform corresponding simulation logic initialization operation/cleaning work;
the creation/destruction simulation interface is used for creating/destroying the self simulation model interface by the simulation model; the simulation model interface comprises a menu bar, a tool bar, a status bar, a service window, a service interface and the like;
the simulation stepping calculation interface is used for receiving the simulation driving beat input by the model scheduling module by the simulation model and interacting the calculation result among the simulation models through the communication management module.
By adopting the technical scheme, the invention has the beneficial effects that: the user is allowed to carry out online overloading of the simulation model, so that the calculation of a plurality of sets of simulation model sets is completed in the process of a single simulation task, the user can complete the comparative analysis of a plurality of schemes through single simulation, and the efficiency of simulation research is obviously improved; the simulation model interface can be dynamically adjusted and stored during operation, the application requirement of the user on online adjustment of the model in a visual mode is met, and the usability of the model software is greatly improved.
Drawings
The invention will now be described, by way of example, with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram showing the composition relationship of a simulation model on-line heavy-load model integration apparatus according to the present invention;
FIG. 2 is a schematic diagram of a model software composition according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an online reloading effect of the model according to the embodiment of the invention.
Detailed Description
Any feature disclosed in this specification may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
As shown in fig. 1, the present invention mainly includes: the system comprises five parts, namely a model container, a model management module, a model scheduling module, a model interface management module and a communication management module. The business algorithm is realized as a plurality of simulation models, and is loaded and executed by the invention, thereby realizing specific business simulation. In the execution process of the invention, the requirements of simulation tasks can be received to realize the online overloading of different simulation models.
Model container
The model container exists in the form of an executable program, and creates a main process/main thread of the program when model software is started, initializes a runtime environment, and loads a model management module, a model scheduling module, a model interface management module and a communication management module. After the modules are loaded, the model container firstly calls the model management module to load each simulation model, then calls the model scheduling module to realize the ordered scheduling of each simulation model, then calls the model interface management module to create an interface for each simulation model, and finally calls the communication management module to carry out necessary initialization for the communication between the components. After the model container finishes the work, the model software enters a runnable state.
Model management module
The model management module is realized in a dynamic link library mode and is mainly responsible for realizing online loading and unloading of the simulation model according to the requirements of users. And after the model management module is loaded by the model container, loading a corresponding simulation model from the simulation model library according to the input simulation scenario file, and initializing the simulation model. In the running process of the model software, the model management module can show the currently running simulation model and the simulation model which can be used for overloading in the simulation model library to a user. A user can dynamically select the simulation model which is not loaded in the simulation model library to carry out online loading in the simulation process according to the requirements of the simulation task, and simultaneously select the running simulation model to carry out online unloading, thereby realizing online overloading of the simulation model in one simulation task. After receiving a loading instruction of a user, the model management module selects a corresponding simulation model from the simulation model library to load and complete initialization; after receiving an unloading instruction of a user, the model management module sends relevant information of the unloaded model to the model scheduling module to complete the logout and cleaning work of the unloaded model, and after the cleaning work is completed, the model management module unloads the selected simulation model and completes relevant anti-initialization operation.
Model scheduling module
The model scheduling module is realized in a dynamic link library mode and is mainly responsible for scheduling each simulation model in order to carry out service simulation calculation according to the driving of an external simulation engine. After each simulation model is loaded and initialized by the model management module, the simulation model will register with the model scheduling module. After the registration is completed, the model scheduling module instantiates the simulation model according to the simulation scenario file and determines a scheduling sequence. And then, scheduling the simulation model according to the beat to carry out calculation according to the driving of an external simulation engine. In the simulation driving process, the model scheduling module collects information such as state parameters, capability parameters, important events, efficiency calculation results and the like generated by the simulation model in the deduction process through the communication management model and stores the information in a simulation record file or a database; model interface management module
The model interface management module is realized in a dynamic link library mode and is mainly responsible for interface creation, free dragging, size adjustment, display/hiding of a simulation model, automatic adjustment of the whole model software interface after loading and unloading of the simulation model, storage of a current interface layout scheme and the like, and also supports multi-screen display. After the model interface management module is loaded, the model interface management module firstly collects display information, judges whether multi-screen display is available or not, then creates corresponding menu bars, tool bars and status bars according to the interface configuration file of the simulation model, and calls an interface creation interface of the simulation model to create a main interface of the simulation model. After the simulation model is dynamically loaded and unloaded during operation, the model interface management module can automatically adjust according to the change of the current interface. The user can freely drag the main interface of the simulation model and can display/hide the main interface at the right time. The model interface management module can store the current interface layout scheme, so that the interface layout is kept unchanged after the model software is restarted. Before the model software is started, the simulation model can quickly realize the design of interface layout by editing the interface configuration file; during operation, the user can also dynamically change the interface layout through functions of dragging, displaying/hiding and the like provided by the model interface management module, so that the flexibility of the interface layout of the model software is increased.
Communication management module
The communication management module is implemented in the form of a dynamic link library, which is responsible for managing data communication between all simulation models, and between the simulation models and the model scheduling module. Data interaction among all simulation models and between the simulation models and the model scheduling module is not directly carried out, and data are firstly sent to the communication management module and then are uniformly responsible for data distribution. The communication management module employs a publish/subscribe mechanism. When the model scheduling module and each simulation model initialize a communication interface, the model scheduling module registers the data topic to be published/subscribed to the communication management module. After collecting each published/subscribed data topic, the communication management module establishes a data path for the published/subscribed data topic according to the paired data topic.
ADVANTAGEOUS EFFECTS OF INVENTION
The scheme of the invention is explained in detail by combining the drawings and the embodiment as follows:
the embodiment runs on a Windows XP operating system, adopts Visual Studio 2008 as a development environment, and selects Visual C + + as a development language.
The model container is used as a main program module of the model integration frame, and the basic program frame is realized by MFC and compiled into a binary executable file in EXE format.
The model container completes the following main works in sequence when the program is started:
a program host process is created.
The necessary initialization operations of the MFC are completed.
And loading the model management module, the model scheduling module, the model interface management module and the communication management module, and calling the initialization interfaces thereof to carry out initialization operation.
The driver model management module loads and initializes the simulation model.
And the driving model interface management module creates a simulation model interface and performs layout.
When the model container runs, the communication management module receives drive from an external simulation engine, the time and the beat are transmitted to the model scheduling module, and the model scheduling module is driven to call a simulation model to perform simulation calculation.
The model container completes the following main works in sequence when the program is closed:
and the driving model interface management module destroys the simulation model interface.
And the model scheduling module is initialized reversely, and the model scheduling module is unloaded.
The driving model management module reversely initializes and unloads the simulation model module.
And (4) the model interface management module is initialized reversely, and the model interface management module is unloaded.
And (4) the communication management module is initialized reversely, and the communication management module is unloaded.
And (4) the model management module is initialized reversely, and the model management module is unloaded.
The necessary cleaning operations of the MFC are completed.
And exiting the program.
The model management module is implemented as a binary file in a DLL format, and needs to provide a series of interfaces for the model container to call, and the most important interfaces are:
loading simulation model interface
And reading the name of the simulation model module to be loaded according to the simulation scenario file, and calling a Windows system interface LoadLibraryEx to load the binary file of the simulation model under the specified file path. And after the loading is finished, the model management module calls a loading simulation model interface to carry out initialization operation.
Interface for unloading simulation model
And searching the name of the simulation model to be unloaded in the component management list, calling the anti-initialization interface of the simulation model to finish cleaning operation before unloading, and then calling the Windows system interface FreeLibrary to release the simulation model from the memory.
And acquiring a simulation model state interface.
And inquiring the loading state, the description information, the runtime configuration, the factory class pointer and the like of the component in the component management list.
The model scheduling module is implemented as a binary file in a DLL format, and needs to provide a series of interfaces for the model container to call, and the most important interfaces are:
simulation driving interface
And receiving the simulation beats transmitted by the model container, and scheduling each simulation model in order to carry out service simulation calculation.
Simulation model registration interface
And receiving registration information of each simulation model, wherein the registration information contains simulation model information, and adding the simulation model information into a model scheduling list for unified management.
Simulation model logout interface
And searching the specified simulation model in the model scheduling list, deleting the specified simulation model from the model scheduling list, and not scheduling the model in the subsequent scheduling process.
The model interface management module is implemented as a binary file in MFC-based DLL format. It needs to provide a series of interfaces for model container and simulation model calling, and the most important interfaces are:
create/destroy simulation model interface
The model interface management module firstly drives the simulation model module to read the interface configuration file of the simulation model module and obtains the interface information of the simulation model, wherein the information comprises menu items, toolbar items, status bar items, service windows and layout modes of the simulation model. The model interface management module associates the read interface information with the simulation model ID, and then drives the simulation model module to create respective menu bar, tool bar, status bar and service interface. When the simulation model interface needs to be destroyed, the model interface management module queries the interface information according to the simulation model ID, and drives the simulation model module to destroy the menu bar, the toolbar item, the status bar item and the service window according to the information.
Manually/automatically adjusting current simulation model interface
The model interface management module provides interfaces of the simulation model interface, such as draggable, berthable, changeable size, displayable/hidden and the like, and a user manually adjusts the interface layout as required. And after the simulation model is loaded/unloaded, the model interface management module readjusts all simulation model interfaces applied according to the actual conditions of the current application interface so as to enable the simulation model interfaces to be in proper positions.
Interface preservation interface of simulation model
And the model interface management module acquires the interface information of all current simulation models and writes the interface information into the interface configuration file of the simulation model. And when the simulation model is started next time, the purpose of saving the simulation model interface is achieved by reading the updated interface configuration file.
The communication management module is implemented as a binary file in DLL format. It manages the distribution of data in a publish/subscribe manner. The simulation model and model scheduling module subscribes/publishes required data to the communication management module, and the communication management module carries out unified data transceiving management. The main interfaces provided are as follows:
data publishing interface
The simulation model and model scheduling module uses the interface to publish the data topics output by the simulation model and model scheduling module, the communication management module matches the data topics with the subscribed data topics, and if the data topics are matched with the subscribed data topics, logical connection is established between the corresponding simulation models. Otherwise, no connection is established.
Data subscription interface
The simulation model and model scheduling module uses the interface to subscribe the data topics input by the simulation model and the callback function used for receiving data, the communication management module matches the data topics with the published data topics, and if the data topics are matched, a logical connection is established between the corresponding simulation models. Otherwise, no connection is established.
Data transmission interface
The simulation model and model scheduling module uses the interface to send business data to the specified data topic. The communication management module finds the simulation model subscribed with the data topic according to the logical connection, calls a callback function registered by the simulation model and the model scheduling module, and transmits the data.
The simulation model is implemented as a binary file in a DLL format, which mainly completes functions related to service simulation, such as service interface simulation and service processing simulation. The simulation model needs to provide necessary interfaces for the model management module, the model interface management module and the model scheduling module to call, and the interfaces mainly include:
initialization/de-initialization interface
The initialization/de-initialization interface is called by the model management module. In the initialization interface, the simulation model reads interface information and data publishing/subscribing information from the configuration file, and then performs corresponding simulation logic initialization operation according to the information. In the anti-initialization interface, the simulation model stores data information related to the business and performs simulation logic cleaning work.
Create/destroy simulation interface
The business interface creation/destruction interface is called by the model interface management module. In the simulation interface creating interface, the simulation model creates the self interface according to the read interface information, and the operations comprise creating a menu bar, a tool bar, a status bar, a simulation service main window and the like. In the simulation interface destruction interface, the simulation model destroys interface elements such as a menu bar, a tool bar, a status bar, a simulation service main window and the like.
Simulation stepping calculation interface
This interface is called by the model scheduling module. The simulation model receives the simulation driving beat input by model scheduling through the interface, carries out a round of simulation calculation, and interacts the calculation result of the round among the simulation models through the communication management module.
FIG. 2 shows the module composition of a device simulation model software. The simulation model software has the main function of simulating the complete working process of certain equipment, and can adjust the parameters of the components of the equipment through an interface, so that different working effects are generated. In order to carry out multi-scheme comparison on the component parts of the equipment, the invention can dynamically carry out on-line overloading on each component part simulation model during operation, and can complete the effect comparison of three schemes in one simulation process. FIG. 3 is an effect diagram of the device simulation model software developing multi-scenario comparison by the present invention.
The technical effects of the invention comprise: the method allows a user to carry out online overloading of the simulation model, thereby supporting the completion of the calculation of a plurality of sets of simulation model sets in the process of a single simulation task, enabling the user to complete the comparative analysis of a plurality of schemes through single simulation, and remarkably improving the efficiency of simulation research.
The method allows a user to integrate the simulation model with foreground display, supports assembling a simulation model interface as required, can dynamically adjust and store the model interface during operation, meets the application requirement of the user on-line adjustment of the model in a visual mode, and greatly improves the usability of model software.
While the foregoing description shows and describes a preferred embodiment of the invention, it is to be understood, as noted above, that the invention is not limited to the form disclosed herein, but is not intended to be exhaustive or to exclude other embodiments and may be used in various other combinations, modifications, and environments and may be modified within the scope of the inventive concept described herein by the above teachings or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (18)

1. A simulation model online heavy-load model integration method is characterized in that: comprises that
a: starting a program to enable the model software to enter a runnable state;
b: realizing on-line loading/unloading of the simulation model according to requirements;
c: scheduling each simulation model in order to carry out service simulation calculation;
the step c specifically comprises the following steps of,
after each simulation model is loaded and initialized, the simulation models are registered with the model scheduling module;
after the registration is finished, instantiating the simulation model according to the simulation scenario file and determining a scheduling sequence;
and scheduling the simulation model according to the beat to carry out calculation according to the driving of an external simulation engine.
2. The model integration method for online reloading of simulation models according to claim 1, wherein: the a specifically includes the following steps of,
the model container creates a main process/main thread of a program when model software is started;
the method comprises the steps of loading a model management module, a model scheduling module, a model interface management module and a communication management module;
after all the modules are loaded, calling a model management module to load each simulation model;
calling a model scheduling module to realize the ordered scheduling of each simulation model;
calling a model interface management module to create interfaces for the simulation models;
the communication management module is invoked to perform the necessary initialization for inter-component communication.
3. The model integration method for online reloading of simulation models according to claim 2, wherein: the loading of each simulation model by the model management module specifically comprises,
and loading the corresponding simulation model from the simulation model library according to the simulation scenario file, and initializing the simulation model.
4. The model integration method for online reloading of simulation models according to claim 1, wherein: the b specifically comprises the following components in percentage by weight,
showing a currently running simulation model and a simulation model which can be used for overloading in a simulation model library;
according to the requirements of simulation tasks, dynamically selecting the simulation model which is not loaded in the simulation model library for online loading in the simulation process, and simultaneously selecting the running simulation model for online unloading.
5. The model integration method for online reloading of simulation models according to claim 4, wherein: the online loading specifically comprises the steps of,
and after receiving the loading instruction, selecting a corresponding simulation model from the simulation model library to load and finish initialization.
6. The model integration method for online reloading of simulation models according to claim 4, wherein: the online unloading specifically comprises that,
after receiving the unloading instruction, sending the relevant information of the unloaded model to the model scheduling module to complete the logout and cleaning work of the unloaded model, unloading the selected simulation model after the cleaning work is completed, and completing the relevant anti-initialization operation.
7. The model integration method for online reloading of simulation models according to claim 1, wherein: and in the simulation driving process, collecting the deduction information generated by the simulation model in the deduction process, and storing the deduction information in a simulation record file or a database.
8. The model integration method for online reloading of simulation models according to claim 1, wherein: further comprising d: the interface layout for managing the simulation model may include,
d 1: creating a corresponding simulation model interface according to the interface configuration file of the simulation model;
d 2: after the simulation model is dynamically loaded/unloaded during operation, the model interface management module automatically adjusts according to the change of the current interface layout;
d 3: freely dragging the main interface of the simulation model, and timely displaying/hiding the main interface;
d 4: and destroying the simulation model interface.
9. The model integration method for online reloading of simulation models according to claim 8, wherein: the d1 may specifically include a group of atoms,
driving the simulation model to read the self interface configuration file and acquiring the interface information of the simulation model;
and associating the interface information with the simulation model ID, and driving the simulation model to establish a respective simulation model interface.
10. The model integration method for online reloading of simulation models according to claim 8, wherein: the d4 may specifically include a group of atoms,
and inquiring interface information of the simulation model according to the ID of the simulation model, and destroying the corresponding simulation model interface according to the interface information.
11. The model integration method for online reloading of simulation models according to claim 8, wherein: said d further comprising the step of,
the model interface management module stores the current interface layout scheme, including,
and acquiring the simulation model interface information of the current simulation model, and writing the simulation model interface information into an interface configuration file of the simulation model.
12. The model integration method for online reloading of simulation models according to claim 1, wherein: also comprises the following steps of (1) preparing,
e: managing data communications between all simulation models, and between simulation models and model scheduling modules, specifically including,
when a communication interface is initialized by the model scheduling module and the simulation model, registering a data topic to be published/subscribed to the communication management module;
and after the communication management module collects the published/subscribed data topics, matching the published data topics with the subscribed data topics, and if the published data topics are matched with the subscribed data topics, establishing a data path for the data topics according to the matched data topics and transmitting data.
13. The utility model provides a model integrated device of online heavily loaded of simulation model which characterized in that: the system comprises a model container, a model management module, a model scheduling module, a model interface management module and a communication management module;
the model container is in communication connection with the model management module, the model scheduling module, the model interface management module and the communication management module, so that normal operation of model software is ensured;
the model management module is responsible for realizing on-line loading/unloading of the simulation model according to requirements;
the model scheduling module is responsible for scheduling each simulation model in order to carry out service simulation calculation;
the model interface management module is responsible for adjusting and storing the interface layout of the simulation model;
and the communication management module is responsible for managing data communication among all simulation models and between the simulation models and the model scheduling module.
14. The model integration apparatus for online reloading of simulation models according to claim 13, wherein: the model management module comprises a loading simulation model interface, an unloading simulation model interface and an acquiring simulation model state interface which are used for being called by the model container;
the loading simulation model interface loads a binary file of a simulation model;
the unloading simulation model interface releases the simulation model to be unloaded from the memory;
the obtaining simulation model state interface queries state information of the component.
15. The model integration apparatus for online reloading of simulation models according to claim 13, wherein: the model scheduling module comprises a simulation driving interface, a simulation model registration interface and a simulation model cancellation interface which are used for calling the model container;
the simulation driving interface receives the simulation beats transmitted by the model container and orderly schedules each simulation model to carry out service simulation calculation;
the simulation model registration interface receives registration information of a simulation model and adds the simulation model information into a model scheduling list for unified management;
and the simulation model logout interface deletes the specified simulation model from the model scheduling list.
16. The model integration apparatus for online reloading of simulation models according to claim 13, wherein: the model interface management module comprises a creation/destruction simulation model interface for calling the model container and the simulation model, a manual/automatic adjustment current simulation model interface and a simulation model interface storage interface;
the creation/destruction simulation model interface drives the simulation model module to create/destroy the respective simulation model interface;
the current simulation model interface is manually/automatically adjusted to adjust the simulation model interface according to requirements;
the simulation model interface storage interface stores a simulation model interface.
17. The model integration apparatus for online reloading of simulation models according to claim 13, wherein: the communication management module comprises a data publishing interface, a data subscribing interface and a data sending interface for the simulation model and the model scheduling module to subscribe/publish data;
the data publishing interface is used for the simulation model and the model scheduling module to publish the data theme output by the simulation model and the model scheduling module;
the data subscription interface is used for subscribing a data theme input by the simulation model and the model scheduling module and receiving a callback function of data;
the data sending interface is used for sending the business data to the specified data theme by the simulation model and the model scheduling module.
18. The model integration apparatus for online reloading of simulation models according to claim 13, wherein: the simulation model comprises an initialization/anti-initialization interface for the model management module to call, a creation/destruction simulation interface for the model interface management module to call and a simulation stepping calculation interface for the model scheduling module to call;
the initialization/reverse initialization interface is used for the simulation model to perform corresponding simulation logic initialization operation/cleaning work;
the creation/destruction simulation interface is used for creating/destroying the self simulation model interface by the simulation model;
the simulation stepping calculation interface is used for receiving the simulation driving beat input by the model scheduling module by the simulation model and interacting the calculation result among the simulation models through the communication management module.
CN202010173910.5A 2020-03-13 2020-03-13 Model integration method and device for online reloading of simulation model Active CN111522731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010173910.5A CN111522731B (en) 2020-03-13 2020-03-13 Model integration method and device for online reloading of simulation model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010173910.5A CN111522731B (en) 2020-03-13 2020-03-13 Model integration method and device for online reloading of simulation model

Publications (2)

Publication Number Publication Date
CN111522731A true CN111522731A (en) 2020-08-11
CN111522731B CN111522731B (en) 2023-06-23

Family

ID=71901514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010173910.5A Active CN111522731B (en) 2020-03-13 2020-03-13 Model integration method and device for online reloading of simulation model

Country Status (1)

Country Link
CN (1) CN111522731B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004635A (en) * 2010-08-19 2011-04-06 中国船舶重工集团公司第七○九研究所 Simulation model system supporting reusing and development method thereof
US20130204602A1 (en) * 2012-02-07 2013-08-08 Electronics And Telecommunications Research Institute Simulation apparatus and method for verifying hybrid system
CN103440376A (en) * 2013-08-26 2013-12-11 中国人民解放军国防科学技术大学 Distributed operation mode and centralized operation mode integrated simulation system operation supporting platform based on components
US20140114637A1 (en) * 2010-06-30 2014-04-24 Bioproduction Group, Inc. Method for just-in-time compilation and execution of code blocks within discrete event simulations
CN104239037A (en) * 2014-08-25 2014-12-24 中国电子科技集团公司第二十九研究所 Software framework with reconfigurable business function
US20150227674A1 (en) * 2014-02-12 2015-08-13 Synopsys, Inc. Dynamically loaded system-level simulation
CN106295084A (en) * 2016-09-29 2017-01-04 北京华如科技股份有限公司 Service-oriented expansible combination type artificial engine
CN106503320A (en) * 2016-10-17 2017-03-15 北京理工大学 A kind of order model dispatching method of distributing emulation system
CN106682323A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Transformation system for transforming architecture models into dynamic simulation models, and method thereof
CN106844980A (en) * 2017-01-24 2017-06-13 南京仁谷系统集成有限公司 A kind of scheduling system and its dispatching method for supporting systemic-function dynamic reorganization
CN107193639A (en) * 2017-06-05 2017-09-22 北京航空航天大学 A kind of multi-core parallel concurrent simulation engine system for supporting combined operation
CN107832551A (en) * 2017-11-24 2018-03-23 北京宇航系统工程研究所 A kind of modularization Architecture simulation system and method towards Space Equipment
CN108133099A (en) * 2017-12-21 2018-06-08 中国电子科技集团公司第二十八研究所 A kind of analogue system implementation method based on multi-resolution models frame
CN109948201A (en) * 2019-03-04 2019-06-28 中国人民解放军国防大学联合作战学院 A kind of model component management system and scheduling implementation method based on platform and plug-in unit

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114637A1 (en) * 2010-06-30 2014-04-24 Bioproduction Group, Inc. Method for just-in-time compilation and execution of code blocks within discrete event simulations
CN102004635A (en) * 2010-08-19 2011-04-06 中国船舶重工集团公司第七○九研究所 Simulation model system supporting reusing and development method thereof
US20130204602A1 (en) * 2012-02-07 2013-08-08 Electronics And Telecommunications Research Institute Simulation apparatus and method for verifying hybrid system
CN103440376A (en) * 2013-08-26 2013-12-11 中国人民解放军国防科学技术大学 Distributed operation mode and centralized operation mode integrated simulation system operation supporting platform based on components
US20150227674A1 (en) * 2014-02-12 2015-08-13 Synopsys, Inc. Dynamically loaded system-level simulation
CN104239037A (en) * 2014-08-25 2014-12-24 中国电子科技集团公司第二十九研究所 Software framework with reconfigurable business function
CN106295084A (en) * 2016-09-29 2017-01-04 北京华如科技股份有限公司 Service-oriented expansible combination type artificial engine
CN106503320A (en) * 2016-10-17 2017-03-15 北京理工大学 A kind of order model dispatching method of distributing emulation system
CN106682323A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Transformation system for transforming architecture models into dynamic simulation models, and method thereof
CN106844980A (en) * 2017-01-24 2017-06-13 南京仁谷系统集成有限公司 A kind of scheduling system and its dispatching method for supporting systemic-function dynamic reorganization
CN107193639A (en) * 2017-06-05 2017-09-22 北京航空航天大学 A kind of multi-core parallel concurrent simulation engine system for supporting combined operation
CN107832551A (en) * 2017-11-24 2018-03-23 北京宇航系统工程研究所 A kind of modularization Architecture simulation system and method towards Space Equipment
CN108133099A (en) * 2017-12-21 2018-06-08 中国电子科技集团公司第二十八研究所 A kind of analogue system implementation method based on multi-resolution models frame
CN109948201A (en) * 2019-03-04 2019-06-28 中国人民解放军国防大学联合作战学院 A kind of model component management system and scheduling implementation method based on platform and plug-in unit

Non-Patent Citations (9)

* Cited by examiner, † Cited by third party
Title
BYOUNG-KON CHOI等: "Measurement-based dynamic load models: derivation, comparison, and validation", IEEE TRANSACTIONS ON POWER SYSTEMS, pages 1276 *
卞春丽: "一种仿真模型动态加载技术研究", 中国优秀硕士学位论文全文数据库 信息科技辑, pages 138 - 634 *
吴畏;: "作战仿真模型组合流程动态可编辑方法研究", no. 05, pages 967 - 974 *
吴魁;焉彬;: "一种服务化的仿真模型", no. 01 *
彭勇: "作战仿真模型体系分析及其模型设计与实现关键技术研究", 中国优秀博士学位论文全文数据库 信息科技辑, pages 138 - 169 *
李春荣;刘筱;: "基于框架-插件架构的军事仿真系统设计方法研究", no. 22, pages 71 - 76 *
燕雪峰,邸彦强,战守义,王鹏,柴旭东: "协同仿真平台中的仿真组件技术及其实现", no. 04 *
王志乐;董军宇;田涛;胡文婷;: "航空装备统一建模与仿真训练平台研究", no. 08 *
王鹏;李伯虎;柴旭东;侯宝存;殷润民;黄继杰;唐震;: "基于仿真组件技术的CGF系统体系结构和实现", no. 05 *

Also Published As

Publication number Publication date
CN111522731B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US10866788B2 (en) System and method for automated generation of integration elements modeling process flow for an integration process with a swagger API
US8099710B2 (en) UI behaviors
CN104239037A (en) Software framework with reconfigurable business function
US20210224239A1 (en) Recipe management system
CN101501637A (en) Modular imaging download system
JP2003528358A (en) Workflow system and method
CN106844514B (en) Page construction method and terminal
US20100023537A1 (en) Utilizing and maintaining data definitions during process thread traversals
US20180321830A1 (en) Screen-based workflow configuration and execution platform
CN110321178A (en) Starting processing method, device, equipment and the storage medium of attached application end
US20010039598A1 (en) Application wrapper methods and systems
US6275866B1 (en) Manipulation and coupling of object oriented components
US20080141179A1 (en) Navigation connection points
US9146757B1 (en) Dynamically loaded plug-ins to provide an integrated graphical user interface
MX2010012829A (en) Regaining control of a processing resource that executes an external execution context.
GB2320111A (en) Data processing system and method for software development/configuration
US9535670B2 (en) Extensible context based user interface simplification
US9058188B2 (en) Transformative user interfaces
CN106126213B (en) A kind of Android exploitation modeling method based on IFML
CN111522731B (en) Model integration method and device for online reloading of simulation model
CN113485686B (en) Information system program generation method and device, electronic equipment and storage medium
US11231913B1 (en) Model driven user interface
JP2002073929A (en) Archive of workflow management system
US10198150B2 (en) Cross database data selection and correlation interface
US7155719B2 (en) Continuation manager

Legal Events

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