Simulation system based on simulation model framework and universal middleware and implementation method

Through the simulation model framework based on object-oriented and DEVS and general middleware design, the decoupling and integration problems between simulation models are solved, and the platform-independent and efficient reuse of simulation models is realized, reducing development costs and complexity.

CN119088504APending Publication Date: 2024-12-06SHANGHAI SATELLITE ENG INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411122043.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing technology has failed to effectively solve the problems of decoupling and general middleware design between simulation models, resulting in high cost of integration and reuse of simulation models between different platforms, and the existing methods are not suitable for non-programmer users.

Method used

The simulation model framework is adopted based on object-oriented generative reuse and DEVS combined reuse design simulation platform decoupled, and the general middleware is designed based on DEVS theory to realize the call and adaptation of the simulation model by the simulation platform, reducing the simulation model The low level of repeated development costs improves the reusability of simulation models.

Benefits of technology

The simulation model platform is irrelevant, which reduces the low-level repeated development cost of simulation models among different platforms, improves the reusability and adaptability of simulation models, and is suitable for the integration of different simulation platforms and heterogeneous models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088504A_ABST
    Figure CN119088504A_ABST
Patent Text Reader

Abstract

The invention provides a simulation system and implementation method based on a simulation model framework and universal middleware, and the method comprises the steps: 1, designing a simulation model framework for simulation platform decoupling, and giving a function design and a data structure design of the model framework; 2, designing general middleware based on rules, wherein the general middleware comprises simulation model creation, event acquisition, simulation execution, event processing design and the like; and step 3, platform-oriented integration calling logic design, including platform integration method and calling logic design. According to the method, the simulation model framework and the universal middleware are designed based on rules, when different simulation platforms are integrated, rapid integration of all simulation models can be completed by slightly transforming the universal middleware, and irrelevance of the simulation model platforms is achieved; when the heterogeneous models are integrated, the heterogeneous models or the heterogeneous model agents are packaged on the basis of the simulation model framework, so that the heterogeneous models are conveniently integrated, the transplantation cost of the simulation models is reduced, and the reusability of the simulation models is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a simulation model and a middleware design method for a simulation system, and in particular, to a simulation system and an implementation method based on a simulation model framework and universal middleware, and more particularly, to a rule-based platform decoupling simulation model framework and a universal middleware design method. Background Art

[0002] With the development and progress of computer technology, information technology, network technology, cloud computing, big data, artificial intelligence and other related technologies, the scope of simulation applications has been greatly expanded, from single machine, single system to multiple machines, multiple systems, from centralized simulation to distributed simulation, cloud simulation, from single discipline, specific link simulation to multi-disciplinary joint, full life cycle simulation, the capacity and scale of simulation systems are gradually increasing, the objects of simulation research are becoming more and more complex, and simulation model resources are also tending to be multi-granular and heterogeneous.

[0003] Realize the interconnection of existing simulation models of various colleges, factories, and user units, reduce the low-level repeated development of simulation models, create a reusable and combinable simulation model resource library, and build a sustainable simulation model development and service ecosystem. There is an urgent need for a platform that can guide simulation model building, decouple the simulation model framework, and a general middleware design solution.

[0004] Patent document CN101751332A (application number: 200910215589.6) discloses a process simulation method, device and system for workflow middleware, which is an automatic simulation process for computerized node processes. It solves the problem that existing process simulation methods require programmers to perform simulation, the process is too complicated, and is not suitable for ordinary users who are not programmers. However, this method is oriented to node process simulation, similar to the approval system, rather than physical model simulation, and is oriented to different fields.

[0005] Patent document CN102663203A (application number: 201210125473.5) discloses a Fortran simulation model middleware based on HLA, which is designed to solve the problem that the existing Fortran simulation model cannot be added to the HLA distributed system. It is a Fortran simulation model middleware based on HLA and does not have the access capability to access non-HLA distributed systems.

[0006] "Research on Service-Oriented Simulation Real-Time Middleware System" (1006-9348 (2019) 07-0257-04) The service-oriented simulation real-time middleware system in the article includes four parts: master control management module, protocol conversion module, real-time model adaptation module and real-time middleware. Its essence is a simulation engine with heterogeneous interconnection integration function, and it fails to provide a platform-independent simulation model design framework.

[0007] The middleware architecture of the article "Research on Radiation-Reinforced Simulation Cloud Platform Technology Based on Middleware" (1674-1579(2020)03-0018-10) includes an input layer, an operation processing layer, a data scheduling layer, and an output layer. From a design function perspective, the operation processing layer has the function of processing and scheduling business data, and the data scheduling layer has the function of format conversion of business data, which leads to a deep coupling between the middleware and the business software. Different simulation computing business software requires specific middleware to support it.

[0008] The above existing patents and papers do not solve the problem of platform decoupling simulation model framework and general middleware design. Summary of the invention

[0009] In view of the defects in the prior art, the object of the present invention is to provide a simulation system and an implementation method based on a simulation model framework and universal middleware.

[0010] A simulation system based on a simulation model framework and general middleware provided by the present invention includes:

[0011] Module M1: Construct a simulation model framework that decouples the simulation platform;

[0012] Module M2: Building rule-based general middleware;

[0013] Module M3: The simulation platform calls the general middleware through the simulation model framework, and the general middleware calls each simulation model through the simulation model framework, thereby realizing the simulation platform calling each simulation model.

[0014] Preferably, the module M1 adopts: constructing a simulation model framework with decoupled simulation platforms based on object-oriented generative reuse and combined reuse of DEVS; realizing the integration of isomorphic models, encapsulating heterogeneous models and constructing heterogeneous model agents based on the constructed simulation model framework with decoupled simulation platforms.

[0015] Preferably, the simulation model framework includes: a simulation model framework function and a simulation model data structure;

[0016] The simulation model framework functions include: initialization module, setting current simulation time and step module, obtaining current simulation time and step module, updating model status module, receiving and processing isomorphic model event module, sending isomorphic model event module, receiving and processing heterogeneous model event module, sending heterogeneous model event module and creating simulation model instance module;

[0017] The initialization module is used to initialize the simulation model instance and initialize the data type;

[0018] The module for setting the current simulation time and step size is used to set the simulation time and step size of the simulation model instance;

[0019] The module for obtaining the current simulation time and step length is used to obtain the current simulation time and step length;

[0020] The model status update module is used to update the simulation model instance status;

[0021] The module for receiving and processing isomorphic model events is used to process isomorphic model events;

[0022] The isomorphic model event sending module is used to send isomorphic model instance events;

[0023] The module for receiving and processing heterogeneous model events is used to process heterogeneous model events;

[0024] The heterogeneous model event sending module is used to send heterogeneous model instance events;

[0025] The simulation model instance creation module is used to create a simulation model instance;

[0026] The simulation model data structure includes: the initialization data type is a JSON string type; the abbreviated Julian day time type is a double-precision floating point type; the model input and output port number is a string type; the event is a structure type; wherein the event structure type includes: event time, event type, port number and event content; wherein the event time is a double-precision floating point type, the event type is an enumeration type, the port number is a string type, and the event content is a variable length array.

[0027] Preferably, the module M2 adopts: based on DEVS theory and abstracting the model operation rules of creating objects, obtaining events, executing simulations, and processing events, by inheriting the simulation platform model framework, overloading the simulation model creation, event acquisition, simulation execution and event processing, and realizing the adaptation of the general middleware to various simulation platforms.

[0028] Preferably, the module M3 adopts:

[0029] Module M3.1: Creating simulation models based on common middleware;

[0030] Module M3.2: Implement event acquisition based on general middleware;

[0031] Module M3.3: Implement simulation execution based on general middleware;

[0032] Module M3.4: Implement event processing based on common middleware.

[0033] Preferably, the module M3.1 adopts:

[0034] Module M3.1.1: Load the corresponding simulation model link library based on the parameters passed in by the simulation platform;

[0035] Module M3.1.2: Create simulation model instances based on the simulation model framework. The module creates simulation model instances;

[0036] Module M3.1.3: The initialization module based on the simulation model framework initializes the simulation model instance, and the initialization data type is JSON string type;

[0037] Module M3.1.4: Setting the current simulation time and step size based on the simulation model framework The module sets the current simulation time and simulation step size. The simulation time type is double-precision floating point simplified Julian day, and the simulation step size is double-precision floating point type in seconds.

[0038] Preferably, the module M3.2 adopts:

[0039] Module M3.2.1: Obtain events sent by other simulation models from the simulation platform, and obtain events sent to this simulation model instance through the event distribution module of the simulation platform;

[0040] Module M12: Stores the events received from the simulation platform in the event queue of this simulation model instance.

[0041] Preferably, the module M3.3 adopts:

[0042] Module M3.3.1: According to the process control instructions of the simulation platform, call the module of setting current simulation time and step size of the simulation model framework to set the simulation time and step size of this simulation model instance;

[0043] Module M3.3.2: Determine whether it is a homogeneous model or a heterogeneous model. If it is a homogeneous model, module M3.3.3 is triggered; if it is a heterogeneous model, module M3.3.6 is triggered;

[0044] Module M3.3.3: Process events one by one in order of time, calling the receiving and processing isomorphic model event module of the simulation model framework until all events less than or equal to the current simulation time are processed;

[0045] Module M3.3.4: Call the update model status module of the simulation model framework to update the simulation model instance status;

[0046] Module M3.3.5: Call the send isomorphic model event module of the simulation model framework to send the model instance event;

[0047] Module M3.3.6: Process events one by one in order of time, calling the module for receiving and processing heterogeneous model events of the simulation model framework until all events less than or equal to the current simulation time are processed;

[0048] Module M3.3.7: Call the update model status module of the simulation model framework to update the simulation model instance status;

[0049] Module M3.3.8: Call the Send Heterogeneous Model Event module of the simulation model framework to send the event of this model instance;

[0050] Module M3.3.9: Request the simulation platform to recurse to the next moment, where the moment is the smaller of the current simulation time plus the simulation step time and the earliest event time in the event queue of the simulation model instance.

[0051] Preferably, the module M3.4 adopts:

[0052] Module M3.4.1: Obtain the event when the simulation model instance sends the model instance event through the sending homogeneous / heterogeneous model event module of the simulation model framework;

[0053] Module M3.4.2: Call the event sending module of the simulation platform to send the model instance event to the simulation platform.

[0054] A simulation system implementation method based on a simulation model framework and universal middleware provided by the present invention includes:

[0055] Step S1: construct a simulation model framework that decouples the simulation platform;

[0056] Step S2: Building a rule-based general middleware;

[0057] Step S3: the simulation platform calls the general middleware through the simulation model framework, and the general middleware calls each simulation model through the simulation model framework, so that the simulation platform calls each simulation model.

[0058] Compared with the prior art, the present invention has the following beneficial effects:

[0059] 1. When integrating different simulation platforms, a small amount of modification to the general middleware can complete the rapid integration of all simulation models, making the simulation model platform-independent;

[0060] 2. When integrating heterogeneous models, the simulation model framework is used to encapsulate heterogeneous models or heterogeneous model agents to achieve convenient integration of heterogeneous models, reduce the transplantation cost of low-level repeated development of simulation models, and improve the reusability of simulation models;

[0061] 3. Through the rule-based platform decoupling simulation model framework and general middleware design technology, the simulation model is platform-independent, the transplantation cost of low-level repeated development of the simulation model is reduced, and the reusability of the simulation model is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0063] Figure 1 This is a functional composition diagram of the simulation model framework.

[0064] Figure 2 It is a diagram for the general middleware function composition.

[0065] Figure 3 Flowchart for creating simulation model instances.

[0066] Figure 4 To obtain the event flow chart.

[0067] Figure 5 Execute the flow chart for the simulation.

[0068] Figure 6 Flowchart for handling events.

[0069] Figure 7 This is the relationship diagram of simulation model, general middleware and simulation platform. DETAILED DESCRIPTION

[0070] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0071] In view of the defects in the prior art, the present invention provides a rule-based platform-decoupled simulation model framework and a universal middleware design method, which can solve the problem of decoupling simulation models and simulation platforms. When integrating different simulation platforms, only a small amount of adaptive modification of the universal middleware is required to complete the rapid integration of all simulation models, thereby reducing the migration cost of simulation models for low-level repeated development on different platforms and improving the reusability of simulation models.

[0072] Example 1

[0073] like Figures 1 to 7 As shown, the present invention provides a rule-based platform decoupling simulation model framework and a general middleware design method, comprising the following steps:

[0074] Step 1: Design of simulation model framework for decoupling simulation platform;

[0075] Based on object-oriented generative reuse and combined reuse of DEVS, the functional design and data structure design of a simulation model framework with decoupling of simulation platforms are proposed. The platform-independent simulation model inherited from the simulation model framework can construct isomorphic models, encapsulate heterogeneous models, and construct heterogeneous model agents to achieve heterogeneous model integration through network communication: the integration of the three models requires overloading the initialization module, setting the current simulation time and step module, obtaining the current simulation time and step module, updating the model status module, and creating the simulation model instance module. Among them, the isomorphic model also needs to overload the module for receiving and processing isomorphic model events and the module for sending isomorphic model events; encapsulating heterogeneous models also needs to overload the module for receiving and processing heterogeneous model events and the module for sending heterogeneous model events to implement function and method calls to heterogeneous models, thereby realizing encapsulation and integration of heterogeneous models; constructing heterogeneous model agents to achieve heterogeneous model integration through network communication also needs to overload the module for receiving and processing heterogeneous model events and the module for sending heterogeneous model events, construct heterogeneous model agents, and achieve heterogeneous model integration through network communication. Its network communication methods include UDP, TCP / IP and message middleware.

[0076] Step 2: Design of rule-based general middleware;

[0077] Based on DEVS theory and abstract model operation rules of creating objects (including initialization), obtaining events, executing simulations, and processing events (including issuing events), by inheriting the simulation platform model framework, overloading the simulation model creation, event acquisition, simulation execution, and event processing design, the general middleware can be adapted to various simulation platforms.

[0078] Step three: Platform-oriented integrated call logic design, including platform integration method and call logic design.

[0079] Specifically, the rule-based platform decoupling simulation model framework and general middleware design method include:

[0080] like Figure 1 As shown, the present invention discloses a functional composition diagram of a simulation model framework, including: an initialization module, a module for setting the current simulation time and step size, a module for obtaining the current simulation time and step size, a module for updating the model status, a module for receiving and processing isomorphic model events, a module for sending isomorphic model events, a module for receiving and processing heterogeneous model events, a module for sending heterogeneous model events and a module for creating a simulation model instance.

[0081] In the data structure design of the simulation model framework design that is decoupled from the simulation platform: the initialization data type is a JSON string type; the abbreviated Julian day time type is a double-precision floating point type; the model input and output port number is a string type; the event is a structure type; wherein the event structure type includes: event time, event type, port number and event content; wherein the event time is a double-precision floating point type, the event type is an enumeration type, the port number is a string type, and the event content is a variable-length array.

[0082] like Figure 2 As shown, the present invention discloses a general middleware functional composition diagram, including: simulation model creation, event acquisition, simulation execution and event processing design, etc.

[0083] like Figure 3 As shown, the present invention discloses a simulation model creation flow chart of rule-based universal middleware design, specifically:

[0084] Step S11: Loading the simulation model link library, loading the simulation model link library specified by the parameters passed in by the simulation platform;

[0085] Step S12: creating a simulation model instance, calling a simulation model instance creation module of the simulation model framework to create a simulation model instance;

[0086] Step S13: Initialize the simulation model instance, call the initialization module of the simulation model framework to initialize the simulation model instance, and initialize the data type to JSON string type;

[0087] Step S14: Set the current simulation time and step size of the simulation model instance, call the current simulation time and step size setting module of the simulation model framework to set the current simulation time and simulation step size, the simulation time type is double-precision floating point simplified Julian day, the simulation step size is double-precision floating point type, and the unit is seconds.

[0088] like Figure 4 As shown, the present invention discloses an event acquisition flow chart of a rule-based general middleware design, specifically:

[0089] Step S11: obtaining events sent by other simulation models from the simulation platform, and obtaining events sent to the current simulation model instance through the event distribution module of the simulation platform;

[0090] Step S12: Store events. Store the events received from the simulation platform in the event queue of the simulation model instance.

[0091] like Figure 5 As shown, the present invention discloses a simulation execution flow chart of a rule-based general middleware design, specifically:

[0092] Step S11: setting the current simulation time and step size, according to the process control instruction of the simulation platform, calling the setting current simulation time and step size module of the simulation model framework to set the simulation time and step size of the simulation model instance;

[0093] Step S12: determine whether it is a homogeneous model or a heterogeneous model, if it is a homogeneous model, go to S13, if it is a heterogeneous model, go to S16;

[0094] Step S13: receiving and processing isomorphic model events, processing the events one by one in order of time, calling the module for receiving and processing isomorphic model events of the simulation model framework, until all events less than or equal to the current simulation time are processed;

[0095] Step S14: updating the state of the simulation model instance, calling the model state update module of the simulation model framework to update the state of the simulation model instance;

[0096] Step S15: Sending isomorphic model events, calling the sending isomorphic model event module of the simulation model framework to send the model instance event;

[0097] Step S16: receiving and processing heterogeneous model events, processing the events one by one in order of time, calling the module for receiving and processing heterogeneous model events of the simulation model framework, until all events less than or equal to the current simulation time are processed;

[0098] Step S17: updating the state of the simulation model instance, calling the model state updating module of the simulation model framework to update the state of the simulation model instance;

[0099] Step S18: Send heterogeneous model events, calling the sending heterogeneous model event module of the simulation model framework to send the model instance event;

[0100] Step S19: Apply for recursion to the next time, and request the simulation platform to recurse to the next time, where the time is the smaller of the current simulation time plus the simulation step time and the earliest event time in the event queue of the simulation model instance.

[0101] like Figure 6 As shown, the present invention discloses an event processing flow chart of a rule-based general middleware design, specifically:

[0102] Step S11: Acquire an event sent from a simulation model instance, and acquire the event when the simulation model instance sends an event of the model instance through a sending homogeneous / heterogeneous model event module of the simulation model framework;

[0103] Step S12: Send the event to the simulation platform, and call the event sending module of the simulation platform to send the model instance event to the simulation platform.

[0104] like Figure 7As shown, the present invention discloses a relationship diagram of a simulation model, a general middleware and a simulation platform, and gives in detail the inheritance relationship, dependency relationship, etc. between the simulation model, the general middleware and the simulation platform, as well as the integration method and calling logic, specifically:

[0105] The isomorphic model is realized by overloading the initialization module, setting the current simulation time and step module, obtaining the current simulation time and step module, updating the model status module, receiving and processing isomorphic model event module, sending isomorphic model event module and creating a simulation model instance module;

[0106] Encapsulating heterogeneous models is to realize the function and method calls of heterogeneous models by overloading initialization module, setting current simulation time and step module, obtaining current simulation time and step module, updating model status module, receiving and processing heterogeneous model event module, sending heterogeneous model event module and creating simulation model instance module, so as to realize the encapsulation and integration of heterogeneous models;

[0107] The heterogeneous model agent is constructed to realize heterogeneous model integration through network disk communication by overloading the initialization module, setting the current simulation time and step module, obtaining the current simulation time and step module, updating the model status module, receiving and processing heterogeneous model event module, sending heterogeneous model event module and creating simulation model instance module, and the heterogeneous model agent is constructed to realize heterogeneous model integration through network communication. The network communication methods include UDP, TCP / IP and message middleware;

[0108] The general middleware is based on DEVS theory and abstracts the model operation rules of creating objects (including initialization), obtaining events, executing simulations, and processing events (including issuing events). By inheriting the simulation platform model framework, overloading the simulation model creation, event acquisition, simulation execution, and event processing design, the general middleware can be adapted to various simulation platforms.

[0109] The integration method of platform-oriented integrated call logic design, each simulation model inherits from the simulation model framework, the general middleware inherits from the simulation platform model framework, the general middleware depends on the simulation model framework, and the simulation platform call module depends on the simulation model framework;

[0110] The calling logic design of the platform-oriented integrated calling logic design, the simulation platform calls the general middleware through the simulation platform model framework, the general middleware calls each simulation model through the simulation model framework, and the simulation platform calls each simulation model.

[0111] The present invention also provides a simulation system based on a simulation model framework and universal middleware. The simulation system based on the simulation model framework and universal middleware can be implemented by executing the process steps of the simulation system implementation method based on the simulation model framework and universal middleware, that is, those skilled in the art can understand the simulation system implementation method based on the simulation model framework and universal middleware as a preferred implementation mode of the simulation system based on the simulation model framework and universal middleware.

[0112] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0113] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A simulation system based on a simulation model framework and general middleware, characterized in that: include: Module M1: Construct a simulation model framework that decouples the simulation platform; Module M2: Building rule-based general middleware; Module M3: The simulation platform calls the general middleware through the simulation model framework, and the general middleware calls each simulation model through the simulation model framework, thereby realizing the simulation platform calling each simulation model.

2. The simulation system based on the simulation model framework and universal middleware according to claim 1, characterized in that: The module M1 adopts: constructing a simulation model framework with decoupling of simulation platforms based on object-oriented generative reuse and combined reuse of DEVS; realizing the integration of isomorphic models, encapsulating heterogeneous models and constructing heterogeneous model agents based on the constructed simulation model framework with decoupling of simulation platforms.

3. The simulation system based on the simulation model framework and universal middleware according to claim 2, characterized in that: The simulation model framework includes: simulation model framework functions and simulation model data structure; The simulation model framework functions include: initialization module, setting current simulation time and step module, obtaining current simulation time and step module, updating model status module, receiving and processing isomorphic model event module, sending isomorphic model event module, receiving and processing heterogeneous model event module, sending heterogeneous model event module and creating simulation model instance module; The initialization module is used to initialize the simulation model instance and initialize the data type; The module for setting the current simulation time and step size is used to set the simulation time and step size of the simulation model instance; The module for obtaining the current simulation time and step length is used to obtain the current simulation time and step length; The model status update module is used to update the simulation model instance status; The module for receiving and processing isomorphic model events is used to process isomorphic model events; The isomorphic model event sending module is used to send isomorphic model instance events; The module for receiving and processing heterogeneous model events is used to process heterogeneous model events; The heterogeneous model event sending module is used to send heterogeneous model instance events; The simulation model instance creation module is used to create a simulation model instance; The simulation model data structure includes: the initialization data type is a JSON string type; the abbreviated Julian day time type is a double-precision floating point type; the model input and output port number is a string type; the event is a structure type; wherein the event structure type includes: event time, event type, port number and event content; wherein the event time is a double-precision floating point type, the event type is an enumeration type, the port number is a string type, and the event content is a variable length array.

4. The simulation system based on the simulation model framework and universal middleware according to claim 1, characterized in that: The module M2 adopts: based on DEVS theory and abstracting the model operation rules of creating objects, obtaining events, executing simulations, and processing events, by inheriting the simulation platform model framework, overloading the simulation model creation, event acquisition, simulation execution and event processing, and realizing the adaptation of the general middleware to various simulation platforms.

5. The simulation system based on the simulation model framework and universal middleware according to claim 1, characterized in that: The module M3 adopts: Module M3.1: Creating simulation models based on common middleware; Module M3.2: Implement event acquisition based on general middleware; Module M3.3: Implement simulation execution based on general middleware; Module M3.4: Implement event processing based on common middleware.

6. The simulation system based on the simulation model framework and universal middleware according to claim 5, characterized in that: The module M3.1 adopts: Module M3.1.1: Load the corresponding simulation model link library based on the parameters passed in by the simulation platform; Module M3.1.2: Create simulation model instances based on the simulation model framework. The module creates simulation model instances; Module M3.1.3: The initialization module based on the simulation model framework initializes the simulation model instance, and the initialization data type is JSON string type; Module M3.1.4: Setting the current simulation time and step size based on the simulation model framework The module sets the current simulation time and simulation step size. The simulation time type is double-precision floating point simplified Julian day, and the simulation step size is double-precision floating point type in seconds.

7. The simulation system based on the simulation model framework and universal middleware according to claim 5, characterized in that: The module M3.2 adopts: Module M3.2.1: Obtain events sent by other simulation models from the simulation platform, and obtain events sent to this simulation model instance through the event distribution module of the simulation platform; Module M12: Stores the events received from the simulation platform in the event queue of this simulation model instance.

8. The simulation system based on the simulation model framework and universal middleware according to claim 5, characterized in that: The module M3.3 adopts: Module M3.3.1: According to the process control instructions of the simulation platform, call the module of setting current simulation time and step size of the simulation model framework to set the simulation time and step size of this simulation model instance; Module M3.3.2: Determine whether it is a homogeneous model or a heterogeneous model. If it is a homogeneous model, module M3.3.3 is triggered; if it is a heterogeneous model, module M3.3.6 is triggered; Module M3.3.3: Process events one by one in order of time, calling the receiving and processing isomorphic model event module of the simulation model framework until all events less than or equal to the current simulation time are processed; Module M3.3.4: Call the update model status module of the simulation model framework to update the simulation model instance status; Module M3.3.5: Call the send isomorphic model event module of the simulation model framework to send the model instance event; Module M3.3.6: Process events one by one in order of time, calling the module for receiving and processing heterogeneous model events of the simulation model framework until all events less than or equal to the current simulation time are processed; Module M3.3.7: Call the update model status module of the simulation model framework to update the simulation model instance status; Module M3.3.8: Call the Send Heterogeneous Model Event module of the simulation model framework to send the event of this model instance; Module M3.3.9: Request the simulation platform to recurse to the next moment, where the moment is the smaller of the current simulation time plus the simulation step time and the earliest event time in the event queue of the simulation model instance.

9. The simulation system based on the simulation model framework and universal middleware according to claim 5, characterized in that: The module M3.4 adopts: Module M3.4.1: Obtain the event when the simulation model instance sends the model instance event through the sending homogeneous / heterogeneous model event module of the simulation model framework; Module M3.4.2: Call the event sending module of the simulation platform to send the model instance event to the simulation platform.

10. A method for implementing a simulation system based on a simulation model framework and universal middleware, characterized in that: include: Step S1: construct a simulation model framework that decouples the simulation platform; Step S2: Building a rule-based general middleware; Step S3: the simulation platform calls the general middleware through the simulation model framework, and the general middleware calls each simulation model through the simulation model framework, so that the simulation platform calls each simulation model.

Citation Information

Patent Citations

  • Method, device and system for simulating process of workflow middleware

    CN101751332A

  • Fortran simulation model middleware based on high level architecture (HLA)

    CN102663203A