CN111522731B - Model integration method and device for online reloading of simulation model - Google Patents

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

Info

Publication number
CN111522731B
CN111522731B CN202010173910.5A CN202010173910A CN111522731B CN 111522731 B CN111522731 B CN 111522731B CN 202010173910 A CN202010173910 A CN 202010173910A CN 111522731 B CN111522731 B CN 111522731B
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.)
Active
Application number
CN202010173910.5A
Other languages
Chinese (zh)
Other versions
CN111522731A (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 device for online reloading of a simulation model, which relate to the technical field of computer simulation and comprise the following steps: enabling the model software to enter an executable state by a starting program; b: realizing on-line loading/unloading of the simulation model according to the requirements; c: sequentially scheduling each simulation model to carry out service simulation calculation; the method specifically comprises the steps that after each simulation model is loaded and initialized, the simulation models are registered to a model scheduling module; after registration is completed, instantiating a simulation model according to a simulation design file and determining a scheduling sequence; carrying out calculation according to a beat scheduling simulation model according to the driving of an external simulation engine; the online reloading of the simulation model is realized according to the task requirements in one simulation task, and the user can conveniently develop multi-scheme analysis and research in one simulation task.

Description

Model integration method and device for online reloading of simulation model
Technical Field
The invention relates to the technical field of computer simulation, in particular to a model integration method and device for online reloading of a simulation model.
Background
In the existing military simulation deduction system, the modeling of the combat entity is required to meet the requirement of a model integration framework of the simulation deduction system. The current main stream military simulation deduction systems all push out corresponding model integration frameworks, such as Beijing Hua, e.g. XSim, a product of technology and technology limited company, beijing Shenzhou Prohui, and DWK, etc.
However, the current 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 results in tight coupling of the simulation task and a set of simulation model sets, and difficulty in completing the calculation of multiple sets of simulation model sets in the process of a single simulation task. When the method is used for carrying out multi-scheme comparison analysis on application scenes of users, the analysis of multiple schemes can be completed only through multiple simulation, so that the efficiency of simulation research is greatly reduced. Meanwhile, the mainstream model integration framework generally only considers the integration of a background calculation model, lacks the capability of integrating a simulation model with foreground display, and is difficult to meet the simulation task requirement of visual online adjustment of a loop model by a person.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: aiming at the defects of the existing model integration framework, the model integration method and the device for online reloading of the simulation model are provided, the online reloading of the simulation model is realized according to task requirements in one simulation task, and a user can conveniently develop multi-scheme analysis and research in one simulation task.
The invention provides a model integration method for online reloading of a simulation model, which comprises the following steps of
a: enabling the model software to enter an executable state by a starting program;
b: realizing on-line loading/unloading of the simulation model according to the requirements;
c: sequentially scheduling each simulation model to carry out service simulation calculation;
the said c comprises in particular the group consisting of,
after each simulation model is loaded and initialized, registering the simulation model to a model scheduling module;
after registration is completed, instantiating a simulation model according to a simulation design file and determining a scheduling sequence;
and carrying out calculation according to the beat scheduling simulation model according to the driving of the external simulation engine.
Still further, the a specifically includes,
the model container creates a main process/main thread of the program when the model software is started;
loading a model management module, a model scheduling module, a model interface management module and a communication management module;
after all modules are loaded, a model management module is called to load each simulation model;
calling a model scheduling module to realize ordered scheduling of each simulation model;
calling a model interface management module to create an interface for each simulation model;
and calling a communication management module to perform necessary initialization for the communication between the components, and enabling the model software to enter an executable state after the model container finishes the above work.
Further, the model management module loads each simulation model specifically comprises,
and loading a corresponding simulation model from a simulation model library according to the simulation design file, and initializing the simulation model.
Still further, said b specifically includes,
displaying a simulation model which is currently running and can be used for heavy load in a simulation model library;
according to the requirements of simulation tasks, dynamically selecting a simulation model which is not loaded in a simulation model library in the simulation process to load on line, and simultaneously selecting a running simulation model to unload on line.
Further, the online loading specifically comprises,
and after receiving the loading instruction, selecting a corresponding simulation model from the simulation model library to load and finishing initialization.
Further, the on-line unloading specifically comprises,
after receiving the unloading instruction, the relevant information of the unloaded model is sent to the model scheduling module, so that the unloaded model can be logged off and cleaned, the selected simulation model is unloaded after the cleaning is finished, and relevant anti-initialization operation is finished.
Furthermore, the method also comprises the step of collecting deduction information generated by the simulation model in the deduction process in the simulation driving process, and storing the deduction information in a simulation record file or database, wherein the deduction information comprises information such as state parameters, capability parameters, important events, efficiency calculation results and the like.
Still further, further comprising d: the interface layout of the management simulation model, specifically including,
d1: creating a corresponding simulation model interface according to an interface configuration file of the 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;
d2: after the simulation model is dynamically loaded/unloaded during running, the model interface management module automatically adjusts according to the change of the current interface layout;
d3: freely dragging a main interface of the simulation model, displaying/hiding the main interface in time, and improving the flexibility of the layout of the model software interface;
d4: destroying the simulation model interface.
Still further, the d1 specifically includes,
driving a simulation model to read an interface configuration file of the simulation model, and obtaining interface information and data publishing/subscribing information of the simulation model, wherein the interface information comprises menu items, tool bar items, status bar items, service windows and layout modes of the simulation model;
associating interface information with the simulation model ID, driving the simulation model to create respective simulation model interfaces, wherein the simulation model interfaces comprise menu bars, tool bars, status bars, service interfaces, service windows and the like.
Still further, the d4 specifically includes,
inquiring interface information according to the simulation model ID, 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.
Still further, said d further comprises,
the model interface management module stores the current interface layout scheme, which specifically comprises,
and acquiring 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.
Still further, the method further comprises the steps of,
e: data communication between all simulation models, and between a simulation model and a model scheduling module, is managed, including in particular,
the model scheduling module and the simulation model register data topics to be published/subscribed to the communication management module when initializing the communication interface;
after collecting the published/subscribed data topics, the communication management module matches the published data topics with the subscribed data topics, and if matched, a data channel is established for the published/subscribed data topics according to the matched data topics, and data is transmitted.
The invention also provides a model integration device for online reloading 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 orderly scheduling each simulation model to carry out service simulation calculation;
the model interface management module is responsible for adjusting and storing the interface layout of the simulation model;
the communication management module is responsible for managing data communication between all simulation models and between the simulation models and the model scheduling module.
Further, the model management module comprises a loading simulation model interface, an unloading simulation model interface and a simulation model state acquisition interface which are used for calling a model container;
the loading simulation model interface loads a binary file of a simulation model;
the simulation model to be unloaded is released from the memory by the unloading simulation model interface;
the method comprises the steps of obtaining state information of a simulation model state interface query component, wherein the state information comprises operations such as loading state, description information, runtime configuration, obtaining factory class pointers and the like.
Further, 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 a model container;
the simulation driving interface receives simulation beats transmitted by the model container, and sequentially 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;
the simulation model cancellation interface deletes the specified simulation model from the model schedule list.
Furthermore, the model interface management module comprises a creation/destruction simulation model interface for the model container and the simulation model to call, a manual/automatic adjustment current simulation model interface and a simulation model interface storage interface;
the simulation model interface creation/destruction driving simulation model module creates/destroys respective simulation model interfaces, wherein the simulation model interfaces comprise menu bars, tool bars, status bars, service windows, service interfaces and the like;
the manual/automatic adjustment current simulation model interface adjusts the simulation model interface according to the requirements;
and the simulation model interface storage interface stores a simulation model interface.
Further, the communication management module comprises a data publishing interface, a data subscribing interface and a data sending interface for subscribing/publishing data by the simulation model and the model scheduling module;
the data release interface is used for releasing the data subject output by the simulation model and the model scheduling module;
the data subscription interface is used for subscribing the data subject input by the simulation model and the model scheduling module and receiving a callback function of the data;
the data transmission interface is used for transmitting service data to the appointed data theme by the simulation model and the model scheduling module.
Further, the simulation model comprises an initialization/inverse 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/inverse 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 simulation model interface of 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 beats input by the model scheduling module by the simulation models and interacting calculation results 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 reloading of the simulation model, so that the calculation of a plurality of sets of simulation model sets is supported in the single simulation task process, the user can complete the comparison analysis of a plurality of schemes through single simulation, and the simulation research efficiency is remarkably improved; the simulation model interface can be dynamically adjusted and stored in the running process, the application requirement of the user for online adjustment of the model in a visual mode is met, and the usability of model software is greatly improved.
Drawings
The invention will now be described by way of example and with reference to the accompanying drawings in which:
FIG. 1 is a schematic diagram of the composition of a model integration device for online reloading of a simulation model according to the present invention;
FIG. 2 is a schematic diagram of the modeling software composition of an embodiment of the present invention;
FIG. 3 is a schematic diagram of an online overloading effect of a model according to an embodiment of the present invention.
Detailed Description
Any feature disclosed in this specification may be replaced by alternative features serving the same or equivalent purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.
As shown in fig. 1, the present invention mainly includes: model container, model management module, model dispatch module, model interface management module, communication management module five major parts. The business algorithm is implemented as a plurality of simulation models, which are loaded and executed by the present invention, thereby implementing a specific business simulation. In the executing process of the invention, the on-line reloading of different simulation models can be realized by receiving the requirements of the simulation tasks.
Model container
The model container exists in the form of an executable program which creates a main process/main thread of the program when the model software is started, initializes the runtime environment, loads the model management module, the model scheduling module, the model interface management module and the 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 ordered scheduling of each simulation model, then calls the model interface management module to create interfaces for each simulation model, and finally calls the communication management module to carry out necessary initialization for inter-component communication. After the model container finishes the above work, the model software enters an executable state.
Model management module
The model management module is realized in the form of a dynamic link library and is mainly responsible for realizing the on-line loading and unloading of the simulation model according to the requirements of users. After the model management module is loaded by the model container, a corresponding simulation model is loaded from a simulation model library according to the input simulation design file, and is initialized. In the running process of the model software, the model management module can display the simulation model which runs currently and the simulation model which can be used for reloading in the simulation model library to the user. According to the requirements of the simulation task, a user can dynamically select a simulation model which is not loaded in the simulation model library in the simulation process to carry out online loading, and select an running simulation model to carry out online unloading, so that online reloading of the simulation model is realized 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 finish initialization; after receiving an unloading instruction of a user, the model management module sends related information of the unloaded model to the model scheduling module, so that the model scheduling module can complete the work of logging off and cleaning the unloaded model, and after the cleaning work is completed, the model management module unloads the selected simulation model and completes related anti-initialization operation.
Model scheduling module
The model scheduling module is realized in the form of a dynamic link library and is mainly responsible for orderly scheduling each simulation model 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 models are registered with the model scheduling module. After registration is completed, the model scheduling module instantiates the simulation model according to the simulation design file and determines a scheduling order. And then, according to the driving of an external simulation engine, carrying out calculation according to the beat scheduling simulation model. 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 a whole model software interface after loading and unloading of the simulation model, storage of a current interface layout scheme and the like, and supports multi-screen display. After loading, the model interface management module firstly collects display information, judges whether multi-screen display is possible, then creates corresponding menu bars, tool bars and status bars according to interface configuration files 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 in the running process, 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 the main interface can be displayed/hidden in time. The model interface management module can save 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 rapidly realize the design of the interface layout by editing the interface configuration file; when running, the user can dynamically change the interface layout through functions such as dragging, displaying/hiding and the like provided by the model interface management module, so that the flexibility of the model software interface layout is improved.
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. All simulation models and model scheduling modules do not directly interact data, and the data are firstly sent to a communication management module and then are uniformly distributed by the module. The communication management module employs a publish/subscribe mechanism. The model scheduling module and each simulation model register data topics to be published/subscribed by the model scheduling module and each simulation model with the communication management module when initializing the communication interface. After collecting each published/subscribed data topic, the communication management module establishes a data path for the data topic according to the paired data topic.
ADVANTAGEOUS EFFECTS OF INVENTION
The following is a detailed description of the aspects of the invention with reference to the drawings and examples:
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 framework, the basic program framework is realized by adopting an MFC, and the basic program framework is compiled into binary executable files in an EXE format.
The model container sequentially completes the following main works when the program is started:
a program main 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 of the model management module, the model scheduling module, the model interface management module and the communication management module to perform initialization operation.
The driving model management module loads and initializes the simulation model.
The driving model interface management module creates a simulation model interface and performs layout.
When the model container runs, the communication management module receives a drive from an external simulation engine, the time beat is transmitted to the model scheduling module, and the model scheduling module is driven to call the simulation model to perform simulation calculation.
The model container sequentially completes the following main works when the program is closed:
the driving model interface management module destroys the simulation model interface.
And the model scheduling module is reversely initialized to unload the model scheduling module.
The driving model management module reversely initializes and uninstalls the simulation model module.
And the inverse initialization model interface management module is used for unloading the model interface management module.
And reversely initializing the communication management module and unloading the communication management module.
And the model management module is reversely initialized and unloaded.
The necessary cleaning operation of the MFC is completed.
The procedure is exited.
The model management module is implemented as a binary file in DLL format, which requires a series of interfaces to be provided for model container calls, the most predominant interfaces being:
loading simulation model interfaces
And reading the name of the simulation model module to be loaded according to the simulation wanted file, and calling a Windows system interface LoadLibraryEx to load the binary file of the simulation model under the specified file path. And after loading is completed, the model management module calls a loading simulation model interface to perform initialization operation.
Unloading simulation model interface
Searching the name of the simulation model to be unloaded in the component management list, calling the anti-initialization interface to complete the 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.
Inquiring the loading state, description information, runtime configuration, factory class pointer acquisition and other operations of the components in the component management list.
The model scheduling module is implemented as a binary file in DLL format, which requires a series of interfaces to be provided for model container calls, the most predominant interfaces being:
simulation driving interface
And receiving the simulation beats transmitted by the model container, and orderly scheduling each simulation model 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.
Emulation model cancellation interface
The specified simulation model is searched in the model scheduling list, deleted from the model scheduling list, and the model is not scheduled any more in the subsequent scheduling process.
The model interface management module is implemented as a binary file in the MFC-based DLL format. It needs to provide a series of interfaces for model containers and simulation models to call, the most important interfaces are:
creating/destroying simulation model interface
The model interface management module firstly drives the simulation model module to read an interface configuration file of the simulation model module to obtain interface information of the simulation model, wherein the information comprises menu items, tool bar 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 bars, tool bars, status bars and business interfaces. When the simulation model interface needs to be destroyed, the model interface management module inquires interface information according to the simulation model ID, and drives the simulation model module to destroy the menu bar, tool bar item, status bar item and service window according to the information.
Manual/automatic adjustment of current simulation model interface
The model interface management module provides interfaces with draggable, dockable, changeable size, displayable/hidden and the like for the simulation model interface, and a user manually adjusts the layout of the interface according to the needs. After the simulation model is added/unloaded, the model interface management module adjusts all simulation model interfaces of the application again according to the actual conditions of the current application interface, so that the simulation model interfaces are positioned at proper positions.
Simulation model interface save interface
The model interface management module acquires the interface information of all the current simulation models and writes the interface information into the interface configuration file of the simulation model. And when the simulation model interface 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 fashion. The simulation model and the model scheduling module subscribe/publish the required data to the communication management module, and the communication management module performs unified data receiving and transmitting management. The interfaces mainly provided are as follows:
data distribution interface
The simulation model and model scheduling module uses the interface to publish data topics output by the simulation model and model scheduling module, the communication management module matches the data topics with subscribed data topics, and if the data topics are matched, logic 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 data topics input by the simulation model and callback functions used for receiving data, the communication management module matches the data topics with published data topics, and if the data topics are matched, logic 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 a simulation model subscribed to the data subject according to the logic connection, and calls a callback function registered by the simulation model and the model scheduling module to transmit the data.
The simulation model is implemented as a binary file in 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 comprise:
initialization/inverse initialization interface
The initialization/inverse initialization interface is invoked 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 service and carries out simulation logic cleaning work.
Creation/destruction simulation interface
The business interface creation/destruction interface is invoked by the model interface management module. In the simulation interface creation interface, the simulation model creates an own interface according to the read interface information, and the simulation interface creation interface comprises operations of creating a menu bar, a tool bar, a status bar, a simulation service main window and the like. In the simulation interface destroying 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 of the simulation interface destroying interface.
Simulation stepping calculation interface
The interface is invoked by the model dispatch module. The simulation model receives simulation driving beats input by the model scheduling through the interface, performs 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 components of simulation model software of a device. The simulation model software has the main functions of simulating the complete working process of a certain device, and parameter adjustment can be carried out on the component parts of the device through interfaces so as to generate different working effects. In order to carry out multi-scheme comparison on the component parts of the equipment, the invention can dynamically carry out online heavy load on the simulation model of each component part during operation, and can complete the effect comparison of three schemes in one simulation process. FIG. 3 is an effect diagram of the simulation model software of the device for developing multi-scheme comparison selection by the invention.
The technical effects of the invention include: the method and the device allow the user to carry out online reloading of the simulation model, thereby supporting the completion of the calculation of multiple sets of simulation model sets in the single simulation task process, enabling the user to complete the comparison analysis of multiple schemes through single simulation, and remarkably improving the efficiency of simulation research.
The simulation model interface can be dynamically adjusted and stored when the simulation model interface is operated, the application requirement of the user for online adjustment of the model in a visual mode is met, and the usability of model software is greatly improved.
While the foregoing description illustrates and describes a preferred embodiment of the present invention, it is to be understood that the invention is not limited to the form disclosed herein, but is not to be construed as limited to other embodiments, but is capable of use in various other combinations, modifications and environments and is capable of changes or modifications within the spirit of the invention described herein, either as a result of the foregoing teachings or as a result of the knowledge or skill of the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (13)

1. The model integration method for the online reloading of the simulation model is characterized by comprising the following steps of: comprising
a: enabling the model software to enter an executable state by a starting program;
b: realizing on-line loading/unloading of the simulation model according to the requirements;
c: sequentially scheduling each simulation model to carry out service simulation calculation;
the a specifically includes the group consisting of,
the model container creates a main process/main thread of the program when the model software is started;
loading a model management module, a model scheduling module, a model interface management module and a communication management module;
after all modules are loaded, a model management module is called to load each simulation model;
calling a model scheduling module to realize ordered scheduling of each simulation model;
calling a model interface management module to create an interface for each simulation model;
calling a communication management module to perform necessary initialization for the communication between the components;
the said c comprises in particular the group consisting of,
after each simulation model is loaded and initialized, registering the simulation model to a model scheduling module;
after registration is completed, instantiating a simulation model according to a simulation design file and determining a scheduling sequence;
carrying out calculation according to a beat scheduling simulation model according to the driving of an external simulation engine;
the model management module is realized in a dynamic link library form and is mainly responsible for realizing the on-line loading and unloading of the simulation model according to the requirements of users; after the model management module is loaded by the model container, loading a corresponding simulation model from a simulation model library according to the input simulation design file, and initializing the simulation model; in the running process of the model software, the model management module displays a simulation model which runs currently and a simulation model which can be used for reloading in a simulation model library to a user; according to the requirements of a simulation task, a user dynamically selects a simulation model which is not loaded in a simulation model library to be loaded on line in the simulation process, and selects an running simulation model to be unloaded on line at the same time, so that the on-line reloading of the simulation model is realized 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 finish initialization; after receiving an unloading instruction of a user, the model management module sends related information of the unloaded model to the model scheduling module, so that the model scheduling module can complete the work of logging off and cleaning the unloaded model, and after the cleaning work is completed, the model management module unloads the selected simulation model and completes related anti-initialization operation.
2. The model integration method for online reloading of simulation models according to claim 1, wherein: and in the process of simulation driving, collecting deduction information generated by a simulation model in the deduction process, and storing the deduction information in a simulation record file or database.
3. The model integration method for online reloading of simulation models according to claim 1, wherein: further comprising d: the interface layout of the management simulation model, specifically including,
d1: creating a corresponding simulation model interface according to the interface configuration file of the simulation model;
d2: after the simulation model is dynamically loaded/unloaded during running, the model interface management module automatically adjusts according to the change of the current interface layout;
d3: freely dragging a main interface of the simulation model, and displaying/hiding the main interface in time;
d4: destroying the simulation model interface.
4. The model integration method for online reloading of simulation models according to claim 3, wherein: the d1 specifically includes the group consisting of,
driving the simulation model to read an interface configuration file of the simulation model to obtain interface information 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.
5. The model integration method for online reloading of simulation models according to claim 3, wherein: the d4 is specifically included in the group consisting of,
inquiring interface information according to the simulation model ID, and destroying a corresponding simulation model interface according to the interface information.
6. The model integration method for online reloading of simulation models according to claim 3, wherein: the d may further comprise a combination of the above,
the model interface management module stores the current interface layout scheme, which specifically comprises,
and acquiring 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.
7. The model integration method for online reloading of simulation models according to claim 1, wherein: also included is a method of manufacturing a semiconductor device,
e: data communication between all simulation models, and between a simulation model and a model scheduling module, is managed, including in particular,
the model scheduling module and the simulation model register data topics to be published/subscribed to the communication management module when initializing the communication interface;
after collecting the published/subscribed data topics, the communication management module matches the published data topics with the subscribed data topics, and if matched, a data channel is established for the published/subscribed data topics according to the matched data topics, and data is transmitted.
8. An apparatus adapted for use in the method for model integration of on-line reloading of a simulation model according to any of claims 1-7, characterized in that: the model integration device for the online reloading of the simulation model 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 orderly scheduling each simulation model to carry out service simulation calculation;
the model interface management module is responsible for adjusting and storing the interface layout of the simulation model;
the communication management module is responsible for managing data communication between all simulation models and between the simulation models and the model scheduling module.
9. The model integration device for online reloading of simulation models according to claim 8, wherein: the model management module comprises a loading simulation model interface, an unloading simulation model interface and a simulation model state acquisition interface which are used for calling a model container;
the loading simulation model interface loads a binary file of a simulation model;
the simulation model to be unloaded is released from the memory by the unloading simulation model interface;
and acquiring the state information of the simulation model state interface query component.
10. The model integration device for online reloading of simulation models according to claim 8, 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 a model container;
the simulation driving interface receives simulation beats transmitted by the model container, and sequentially 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;
the simulation model cancellation interface deletes the specified simulation model from the model schedule list.
11. The model integration device for online reloading of simulation models according to claim 8, wherein: the model interface management module comprises a creation/destruction simulation model interface for calling a model container and a simulation model, a manual/automatic adjustment current simulation model interface and a simulation model interface storage interface;
the creating/destroying simulation model interface drives the simulation model module to create/destroy respective simulation model interfaces;
the manual/automatic adjustment current simulation model interface adjusts the simulation model interface according to the requirements;
and the simulation model interface storage interface stores a simulation model interface.
12. The model integration device for online reloading of simulation models according to claim 8, wherein: the communication management module comprises a data publishing interface, a data subscribing interface and a data sending interface for subscribing/publishing data by the simulation model and the model scheduling module;
the data release interface is used for releasing the data subject output by the simulation model and the model scheduling module;
the data subscription interface is used for subscribing the data subject input by the simulation model and the model scheduling module and receiving a callback function of the data;
the data transmission interface is used for transmitting service data to the appointed data theme by the simulation model and the model scheduling module.
13. The model integration device for online reloading of simulation models according to claim 8, wherein: the simulation model comprises an initialization/inverse 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/inverse 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 simulation model interface of the simulation model;
the simulation stepping calculation interface is used for receiving the simulation driving beats input by the model scheduling module by the simulation models and interacting calculation results 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 CN111522731A (en) 2020-08-11
CN111522731B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503320A (en) * 2016-10-17 2017-03-15 北京理工大学 A kind of order model dispatching method of distributing emulation system
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
CN108133099A (en) * 2017-12-21 2018-06-08 中国电子科技集团公司第二十八研究所 A kind of analogue system implementation method based on multi-resolution models frame

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8826250B2 (en) * 2010-06-30 2014-09-02 Bioproduction Group Method for just-in-time compilation and execution of code blocks within discrete event simulations
CN102004635B (en) * 2010-08-19 2014-10-01 中国船舶重工集团公司第七0九研究所 Simulation model system supporting reusing and development method thereof
KR20130091096A (en) * 2012-02-07 2013-08-16 한국전자통신연구원 Simulation apparatus and method for verifying hybrid system
CN103440376B (en) * 2013-08-26 2014-06-11 中国人民解放军国防科学技术大学 Distributed operation mode and centralized operation mode integrated simulation system operation supporting platform based on components
US9582623B2 (en) * 2014-02-12 2017-02-28 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
CN106682323B (en) * 2016-12-30 2019-11-12 苏州同元软控信息技术有限公司 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model
CN107832551B (en) * 2017-11-24 2021-10-01 北京宇航系统工程研究所 Modularized system simulation system and method for space equipment
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503320A (en) * 2016-10-17 2017-03-15 北京理工大学 A kind of order model dispatching method of distributing emulation system
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
CN108133099A (en) * 2017-12-21 2018-06-08 中国电子科技集团公司第二十八研究所 A kind of analogue system implementation method based on multi-resolution models frame

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Measurement-based dynamic load models: derivation, comparison, and validation;Byoung-Kon Choi等;IEEE Transactions on Power Systems;1276 - 1283 *
一种仿真模型动态加载技术研究;卞春丽;中国优秀硕士学位论文全文数据库 信息科技辑;I138-634 *
作战仿真模型体系分析及其模型设计与实现关键技术研究;彭勇;中国优秀博士学位论文全文数据库 信息科技辑;I138-169 *

Also Published As

Publication number Publication date
CN111522731A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
Leymann et al. Business process management with flowmark
CN110286892B (en) Rapid development engine system based on business process design
US7653903B2 (en) Modular imaging download system
US5950000A (en) Integrated of a third party software tool
US7788631B2 (en) Process automation system
US8099710B2 (en) UI behaviors
CN104239037A (en) Software framework with reconfigurable business function
US20070283352A1 (en) Sub-task mechanism for development of task-based user interfaces
US20120030573A1 (en) Framework for ad-hoc process flexibility
JPH05197573A (en) Task controlling system with task oriented paradigm
JP2009532758A (en) A framework for modeling continuations in a workflow
WO1997048045A1 (en) Activity based long-lived transaction system
WO2006124846A2 (en) Building digital assets for use with software applications
US20070027909A1 (en) Methods and apparatus for comparison of projects
CN115907683A (en) Realization system and method of workflow engine based on financial product management
GB2320111A (en) Data processing system and method for software development/configuration
CN111522731B (en) Model integration method and device for online reloading of simulation model
Vanderdonckt et al. A Design Space for Context-Sensitive User Interfaces.
CN106126213B (en) A kind of Android exploitation modeling method based on IFML
Kamigaki et al. An object-oriented visual model-building and simulation system for FMS control
CN114610368B (en) Platform tool chain integration and maintenance method, system, equipment and medium
US20130167051A1 (en) Method and system for customizing a graphic user interface of a manfuacturing execution system screen
US9177277B2 (en) Workflow modeling with worklets and transitions
US20220027135A1 (en) Model driven user interface
JP2002073929A (en) Archive of workflow management system

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