Simulation system and method based on network servitization simulation model
By using network service-based simulation models in the simulation system, the problems of complex management of traditional simulation model libraries and inability to support remote calls are solved, and the convenient reuse and cross-platform and cross-language calls of simulation models are realized.
Patent Information
- Application Number
- CN202411261480.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-10
AI Technical Summary
Traditional simulation models are encapsulated in the form of libraries, resulting in complex model library management, inconvenient model reuse, no remote calls, no quick response to simulation application requirements, and no cross-platform and cross-language calls.
A simulation system based on the network service simulation model is adopted. Through the combination of simulation engine, network service infrastructure and network service simulation model, the network remote calling function and cross-platform and cross-language support are provided.
The convenient reuse of simulation models, version management, supporting local and remote access, rapid response simulation application requirements, and cross -platform and cross -language calls.
Smart Images

Figure CN119358062A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of model simulation technology, and in particular to a simulation system and method based on a network service simulation model. Background Art
[0002] The most basic parts of the simulation system are the simulation model and the simulation engine. The simulation model is an abstraction of real-world objects. For example, the radar simulation model is a simulation of the functions and performance of radar equipment in the real world. The simulation engine is used to drive the operation of the simulation model and provide services such as data interaction for the simulation model. The simulation model, simulation engine and other simulation support tools together constitute the simulation system, which provides simulation service functions for upper-level applications.
[0003] Traditional simulation models are generally packaged in the form of libraries (.lib static libraries and .dll dynamic libraries under Windows, .a static libraries and .so dynamic libraries under Linux) for simulation engines to load and call. The simulation model library needs to be deployed on the same computing node as the simulation engine. The following disadvantages are associated with the use of libraries to package simulation models: First, the management of the simulation model library is complex, and it needs to be copied to multiple locations, making it difficult to manage the model library version; second, it is not convenient for model reuse. If different simulation engines want to call the same simulation model library, they need to copy the simulation model library to each simulation engine directory; third, it does not support remote calls. The simulation model library can only be called by the local simulation engine, not by other simulation engines in the network; fourth, it cannot respond quickly to simulation application requirements. When the simulation application requirements change, the simulation model library needs to be manually configured and deployed. The simulation model library cannot be flexibly organized to quickly build new simulation applications; fifth, it does not support cross-platform and cross-language calls. If a simulation model library needs to support cross-platform calls, the source code needs to be recompiled on the target operating system platform. If it needs to support cross-language calls, it needs to meet more complex cross-language calling conventions. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a simulation system and method based on a network service simulation model to replace the traditional simulation system based on a library-based simulation model, thereby avoiding the problems of complex simulation model library management, inconvenience in model reuse, lack of support for remote calls, inability to quickly respond to simulation application requirements, and lack of support for cross-platform and cross-language calls.
[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a simulation system based on a network service simulation model, the system comprising a simulation engine, a network service infrastructure and N network service simulation models;
[0006] The simulation engine is connected with the N network service simulation model data to provide model solving services for other simulation applications;
[0007] The network service infrastructure is connected with the N network service simulation model data to provide network services;
[0008] The N network service simulation models are connected with the simulation engine data to provide a network remote calling function.
[0009] As an optional implementation, in the first aspect of the embodiment of the present invention, the simulation engine provides model solving services for other simulation applications by driving the operation of the simulation model;
[0010] The simulation model includes an internal model and an agent model;
[0011] The internal model is the original simulation model inside the simulation engine;
[0012] The proxy model complies with the model interface specification of the simulation engine and is a simulation model specially developed for calling the network service simulation model;
[0013] The internal model and the proxy model interact with each other through an internal communication mechanism provided by the simulation engine.
[0014] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the network services provided by the network service infrastructure include network service registration, network service positioning and network service discovery;
[0015] The network service registration includes domain name registration, company registration and universal website registration;
[0016] The network service positioning includes determining the network service object, determining the service content and determining the service method;
[0017] The network service discovery is used to discover devices supporting this function through a specific function in a local area network and establish connections with other devices.
[0018] As an optional implementation, in the first aspect of the embodiment of the present invention, the network service simulation model includes a simulation model encapsulated according to the network service infrastructure specification;
[0019] Any network service-oriented simulation model can realize its simulation function by calling other network service-oriented simulation models.
[0020] A second aspect of an embodiment of the present invention discloses a simulation method based on a network service simulation model, the method comprising:
[0021] S1, obtain simulation requirement information;
[0022] S2, processing the simulation requirement information to obtain a simulation model;
[0023] S3, encapsulating the simulation model according to the specification of the network service infrastructure to obtain a network service simulation model;
[0024] S4, registering the network service simulation model with the network service infrastructure;
[0025] S5, scheduling the simulation engine and the network service simulation model to achieve collaborative simulation.
[0026] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of the simulation requirement information to obtain a simulation model includes:
[0027] S21, processing the simulation requirement information to obtain simulation model description information; the simulation model description information includes model structure information and model function description information;
[0028] S22, processing the simulation model description information to obtain a demand model, a scenario model, a function model and an interface model;
[0029] S23, processing the demand model, the scenario model, the function model and the interface model to obtain a simulation model.
[0030] As an optional implementation, in the second aspect of the embodiment of the present invention, the scheduling of the simulation engine and the network service simulation model to implement collaborative simulation includes:
[0031] S51, developing a proxy model of the network service simulation model according to the packaging specification of the simulation engine;
[0032] S52, in the initialization phase, using the proxy model to obtain the service interface of the network service simulation model;
[0033] S53, during the simulation operation, using the simulation engine to schedule the operation interface of the internal model and the proxy model;
[0034] S54, when the running interface is called, scheduling the proxy model and the network service simulation model to achieve collaborative simulation.
[0035] As an optional implementation, in the second aspect of the embodiment of the present invention, when the running interface is called, the proxy model and the network service simulation model are scheduled to implement collaborative simulation, including:
[0036] S541, when the operation interface is called, using the proxy model to obtain outputs of the internal model and other proxy models through the internal communication mechanism of the simulation engine;
[0037] S542, inputting the outputs of the internal model and other proxy models into a network service-oriented simulation model, calling a service interface of the network service-oriented simulation model, and obtaining the output of the network service-oriented simulation model;
[0038] S543, using the internal communication mechanism of the simulation engine, sending the output of the network service simulation model to the internal model and other proxy models to achieve collaborative simulation.
[0039] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0040] (1) It facilitates the reuse of simulation models. Network service-oriented simulation models can be directly accessed and called by different simulation engines in the network.
[0041] (2) It is convenient for simulation model version management. The versions of different simulation model network services can be reflected in the network interface;
[0042] (3) As a network service, it naturally supports local and remote access;
[0043] (4) It can quickly respond to simulation application requirements. When the simulation application requirements change, there is no need to reconfigure and deploy the simulation model library. The simulation model service to be called can be flexibly switched according to the simulation application requirements.
[0044] (5) Support cross-platform and cross-language calls. The simulation model network service and the simulation engine are based on the same simulation model network service interface specification. Therefore, no matter what platform the simulation model network service is on or what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 It is a structural schematic diagram of a simulation system based on a network service simulation model disclosed in an embodiment of the present invention;
[0047] Figure 2 It is a flow chart of a simulation method based on a network service simulation model disclosed in an embodiment of the present invention;
[0048] Figure 3 It is the input-output relationship and scheduling sequence of the internal model, proxy model and network service simulation model disclosed in the embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0051] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0052] The present invention discloses a simulation system and method based on a network service simulation model, the system includes a simulation engine, a network service infrastructure and N network service simulation models; the simulation engine is connected with the N network service simulation model data to provide model solving services for other simulation applications; the network service infrastructure is connected with the N network service simulation model data to provide network services; the N network service simulation models are connected with the simulation engine data to provide network remote calling functions. The method of the present invention supports cross-platform and cross-language calling, and the simulation model network service and the simulation engine are based on the same simulation model network service interface specification. Therefore, no matter what platform the simulation model network service is on and what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language. The following is a detailed description of each.
[0053] Embodiment 1
[0054] See also Figure 1 , Figure 1 : is a structural diagram of a simulation system based on a network service simulation model disclosed in an embodiment of the present invention. Figure 1 The simulation system based on the network service simulation model described is applied to the field of model simulation technology, facilitates model reuse, supports remote calls, can quickly respond to simulation application requirements, and supports cross-platform and cross-language calls, which is not limited in the embodiments of the present invention. Figure 1 As shown, the simulation system based on the network service simulation model includes a simulation engine, a network service infrastructure and N network service simulation models;
[0055] The simulation engine is connected with the N network service simulation model data to provide model solving services for other simulation applications;
[0056] The network service infrastructure is connected with the N network service simulation model data to provide network services;
[0057] The N network service simulation models are connected with the simulation engine data to provide a network remote calling function.
[0058] The network service simulation model provides a specific network simulation model implementation, which is internally a simulation model implemented in the user's preferred method and development language. It is then encapsulated as a network service simulation model according to the specifications of the network service infrastructure, thereby providing the function of network remote calling. In particular, a network service simulation model can realize its simulation function by calling other network service simulation models.
[0059] The specifications for network service infrastructure include network management specifications, critical information infrastructure security protection specifications, and the scope of critical information infrastructure;
[0060] Optionally, the simulation engine provides model solving services for other simulation applications by driving the operation of the simulation model;
[0061] The simulation model includes an internal model and an agent model;
[0062] The internal model is the original simulation model inside the simulation engine; the internal model is the model preset by the simulation engine according to the processing task,
[0063] The proxy model complies with the model interface specification of the simulation engine and is a simulation model specially developed for calling the network service simulation model;
[0064] Model interface specifications include the selection of data interface methods, the use of specific message patterns to ensure reliable and timely processing of model instructions, etc.
[0065] The internal model and the proxy model interact with each other through an internal communication mechanism provided by the simulation engine.
[0066] The internal communication mechanism is a preset mechanism of the simulation engine and is used for internal communication, including storage method, data transmission method, data processing method, etc.
[0067] Optionally, the network services provided by the network service infrastructure include network service registration, network service location and network service discovery;
[0068] The network service registration includes domain name registration, company registration and universal website registration;
[0069] The network service positioning includes determining the network service object, determining the service content and determining the service method;
[0070] The network service discovery is used to discover devices supporting this function through a specific function in a local area network and establish connections with other devices.
[0071] Network service discovery allows devices on a network to automatically identify and discover other devices that support this feature. Specific functions include discovering devices and establishing connections.
[0072] Optionally, the network service-oriented simulation model includes a simulation model encapsulated according to network service infrastructure specifications;
[0073] Encapsulation is a prior art in the art, which is a technology for encapsulating data and methods in a single unit, and is not limited in this embodiment.
[0074] Any network service-oriented simulation model can realize its simulation function by calling other network service-oriented simulation models.
[0075] It can be seen that the simulation system and method based on the network service simulation model of the present invention have the following advantages compared with the traditional simulation system based on library call: first, it is easy to reuse the simulation model, and the network service simulation model can be directly accessed and called by different simulation engines in the network; second, it is easy to manage the simulation model version, and the versions of different simulation model network services can be reflected in the network interface; third, as a network service, it naturally supports local and remote access; fourth, it can quickly respond to simulation application requirements. When the simulation application requirements change, there is no need to reconfigure and deploy the simulation model library, and the simulation model service called can be flexibly switched according to the simulation application requirements; fifth, it supports cross-platform and cross-language calls. The simulation model network service and the simulation engine are based on the same simulation model network service interface specification. Therefore, no matter what platform the simulation model network service is on and what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language.
[0076] Embodiment 2
[0077] See also Figure 2 , Figure 2 1 is a flow chart of a simulation method based on a network service simulation model disclosed in an embodiment of the present invention. Figure 2 The simulation method based on the network service simulation model described is applied to the field of model simulation technology, which is convenient for model reuse, supports remote calls, can quickly respond to simulation application requirements, and supports cross-platform and cross-language calls, which is not limited in the embodiments of the present invention. Figure 2 As shown, the simulation method based on the network service simulation model includes:
[0078] S1, obtain simulation requirement information;
[0079] S2, processing the simulation requirement information to obtain a simulation model;
[0080] S3, encapsulating the simulation model according to the specification of the network service infrastructure to obtain a network service simulation model;
[0081] S4, registering the network service simulation model with the network service infrastructure;
[0082] S5, scheduling the simulation engine and the network service simulation model to achieve collaborative simulation.
[0083] Optionally, the processing the simulation requirement information to obtain a simulation model includes:
[0084] S21, processing the simulation requirement information to obtain simulation model description information; the simulation model description information includes model structure information and model function description information;
[0085] The simulation requirement information includes the goal and purpose of the simulation model, the function and operation principle of the simulation, etc.
[0086] S22, processing the simulation model description information to obtain a demand model, a scenario model, a function model and an interface model;
[0087] S23, processing the demand model, the scenario model, the function model and the interface model to obtain a simulation model.
[0088] Step S23 specifically includes: establishing mathematical models of the demand model, the scenario model, the functional model and the interface model, and using the mathematical model to describe the input-output relationship of the system and the relationship between various internal variables; using the programming language and the user's favorite method to implement model programming (considering the specific data structure, algorithm selection, code standardization, etc.). After completing the programming, the model needs to be verified to ensure the correctness and reliability of the model.
[0089] Optionally, the scheduling of the simulation engine and the network service-oriented simulation model to implement collaborative simulation includes:
[0090] S51, developing a proxy model of the network service simulation model according to the packaging specification of the simulation engine;
[0091] The method of developing the proxy model of the network service simulation model is a prior art in the art;
[0092] S52, in the initialization phase, using the proxy model to obtain the service interface of the network service simulation model;
[0093] S53, during the simulation operation, using the simulation engine to schedule the operation interface of the internal model and the proxy model;
[0094] S54, when the running interface is called, scheduling the proxy model and the network service simulation model to achieve collaborative simulation.
[0095] Optionally, when the running interface is called, scheduling the proxy model and the network service simulation model to implement collaborative simulation includes:
[0096] S541, when the operation interface is called, using the proxy model to obtain outputs of the internal model and other proxy models through the internal communication mechanism of the simulation engine;
[0097] S542, inputting the outputs of the internal model and other proxy models into a network service-oriented simulation model, calling a service interface of the network service-oriented simulation model, and obtaining the output of the network service-oriented simulation model;
[0098] S543, using the internal communication mechanism of the simulation engine, sending the output of the network service simulation model to the internal model and other proxy models to achieve collaborative simulation.
[0099] Optionally, after the collaborative simulation is implemented, the method of the present invention further includes evaluating the collaborative simulation results, and the specific evaluation method is:
[0100] Constructing a set of collaborative simulation performance evaluation indicators; the collaborative simulation performance evaluation indicator set includes a structure compliance test indicator, a software platform compliance test indicator and a waveform compliance test indicator;
[0101] Structural compliance test indicators include software architecture compliance, security and confidentiality architecture compliance, and waveform portability;
[0102] The software platform compliance test indicators include operating system interface standard compliance, core framework standard compliance and transmission mechanism interface standard compliance;
[0103] The waveform compliance test indicators include waveform component standard compliance, waveform system compliance and waveform platform adaptability;
[0104] The collaborative simulation performance evaluation index set is obtained by testing the integrated management software in the preset test integrated management platform through the integrated management protocol based on the adapted test cases. The test integrated management platform first performs model recognition and reports the recognition results to the test platform. The test platform calls the corresponding test components and test cases according to the recognized model, and performs automatic testing according to the configured test process to obtain structural compliance test indicators, software platform compliance test indicators and waveform compliance test indicators. These test indicators can be quantified as percentages or values between 0 and 1, which are not limited in this embodiment.
[0105] Construct the membership of the collaborative simulation performance evaluation index set:
[0106] The structural compliance test index membership includes software architecture compliance membership u1(x), security and confidentiality architecture compliance membership u2(x) and waveform portability membership u3(x);
[0107] The software platform compliance test indicator membership includes the operating system interface standard compliance membership u4(x), the core framework standard compliance membership u5(x) and the transmission mechanism interface standard compliance membership u6(x);
[0108] The waveform conformity test index membership includes waveform component standard conformity membership u7(x), waveform system conformity membership u8(x) and waveform platform adaptability membership u9(x);
[0109] The structural compliance test index membership is processed to obtain the structural compliance test index comprehensive evaluation value S1;
[0110] The expression of the comprehensive evaluation value S1 of the system architecture compliance test index is:
[0111]
[0112] Among them, w ak is the weight vector w of the structural compliance test index a =(w a1 ,w a2 ,w a3 ), w a1 is the software architecture compliance weight, w a2 is the security and confidentiality architecture compliance weight, w a3 For waveform portability, u k (x) is the element in the structural compliance test index membership, w a1 +w a2 +w a3 =1;
[0113] Process the software platform conformity test indicator membership to obtain the software platform conformity test indicator comprehensive evaluation value S2;
[0114] The software platform compliance test index comprehensive evaluation value S2 is expressed as:
[0115]
[0116] Among them, w bk is the weight vector w of software platform conformity test indicators b =(w b1 ,w b2 ,w b3 ), u k (x) is the element in the software platform conformity test indicator membership, w b1 is the interface standard compliance weight, w b2 is the weight of the core framework standard compliance, w b3 is the transmission mechanism interface standard compliance weight, w b1 +w b2 +w b3 =1;
[0117] Process the waveform conformity test index membership to obtain the waveform conformity test index comprehensive evaluation value S3;
[0118] The waveform compliance test index comprehensive evaluation value S3 is expressed as:
[0119]
[0120] Among them, w ck is the waveform compliance test index weight vector w c =(w c1 ,w c2 ,w c3 ), u k (x) is the element in the waveform compliance test index membership, w c1 is the waveform component standard compliance weight, w c2 is the waveform system compliance weight, w c3 is the waveform platform adaptability weight, w c1 +w c2 +w c3 =1;
[0121] Using a comprehensive evaluation model, the comprehensive evaluation value S1, the comprehensive evaluation value S2, and the comprehensive evaluation value S3 are processed to obtain an evaluation value of the collaborative simulation result;
[0122] The comprehensive evaluation model is:
[0123]
[0124] Among them, w l is the corresponding element in the collaborative simulation evaluation matrix E = [w1, w2, w3], w1 is the weight of the comprehensive evaluation value of the architecture compliance test indicator, w2 is the weight of the comprehensive evaluation value of the software platform compliance test indicator, w3 is the weight of the comprehensive evaluation value of the waveform compliance test indicator, w1+w2+w3=1, S is the evaluation value of the collaborative simulation result, the collaborative simulation evaluation matrix is determined by experiments, and this embodiment does not impose any limitation.
[0125] The weights involved in this embodiment are all set by specific experiments and are not limited in this embodiment.
[0126] It can be seen that the simulation system and method based on the network service simulation model of the present invention have the following advantages compared with the traditional simulation system based on library call: first, it is easy to reuse the simulation model, and the network service simulation model can be directly accessed and called by different simulation engines in the network; second, it is easy to manage the simulation model version, and the versions of different simulation model network services can be reflected in the network interface; third, as a network service, it naturally supports local and remote access; fourth, it can quickly respond to simulation application requirements. When the simulation application requirements change, there is no need to reconfigure and deploy the simulation model library, and the simulation model service called can be flexibly switched according to the simulation application requirements; fifth, it supports cross-platform and cross-language calls. The simulation model network service and the simulation engine are based on the same simulation model network service interface specification. Therefore, no matter what platform the simulation model network service is on and what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language.
[0127] Embodiment 3
[0128] In view of the shortcomings of simulation systems based on library-based simulation models, encapsulating simulation models as network services has the following advantages: First, it is easy to reuse simulation models. Network-based simulation models can be directly accessed and called by different simulation engines in the network; second, it is easy to manage simulation model versions. The versions of different simulation model network services can be reflected in the network interface; third, as a network service, it naturally supports local and remote access; fourth, it can quickly respond to simulation application requirements. When the simulation application requirements change, there is no need to reconfigure and deploy the simulation model library. The simulation model service can be flexibly switched according to the simulation application requirements; fifth, it supports cross-platform and cross-language calls. The simulation model network service and the simulation engine are based on the same simulation model network service interface specification. Therefore, no matter what platform the simulation model network service is on or what language it is implemented in, it can be called by simulation engines developed on any platform and in any language.
[0129] The simulation system based on the network service-oriented simulation model in this embodiment includes three parts: a simulation engine, a network service infrastructure and a network service-oriented simulation model.
[0130] The simulation engine is used to drive the operation of simulation models and provide model solving services for other simulation applications. The simulation models scheduled by the simulation engine include internal models and proxy models. The internal model is the original simulation model inside the engine, and the proxy model is a simulation model specially developed for calling network service simulation models. The proxy model conforms to the model interface specification of the simulation engine and is exactly the same as other internal simulation models from the perspective of the simulation engine. The internal model and the proxy model interact through the internal communication mechanism provided by the simulation engine.
[0131] The network service infrastructure is used to provide functions such as network service registration, service location and service discovery, and is generally implemented using open source network middleware such as ICE (Internet Communications Engine), DDS and ZMQ.
[0132] The network service simulation model provides a specific network simulation model implementation, which is internally a simulation model implemented in the user's preferred method and development language. It is then encapsulated as a network service simulation model according to the specifications of the network service infrastructure, thereby providing the function of network remote calling. In particular, a network service simulation model can realize its simulation function by calling other network service simulation models.
[0133] The process of developing a simulation system based on a network service-oriented simulation model is as follows:
[0134] The first step is to implement the simulation model in the way the user likes and in the development language they are good at;
[0135] The second step is to encapsulate the above model into a network service simulation model according to the specifications of the network service infrastructure;
[0136] The third step is to register the above network service simulation model with the network service infrastructure;
[0137] The fourth step is to develop the proxy model of the corresponding network service simulation model according to the packaging specification of the simulation engine;
[0138] Step 5: The proxy model obtains the service interface of the network service-oriented simulation model during the initialization phase;
[0139] Step 6: During the simulation operation, the simulation engine schedules the operation interface of the internal model and the proxy model;
[0140] In the seventh step, when the running interface is called, the proxy model obtains the output of the internal model and other proxy models through the internal communication mechanism of the simulation engine, and uses it as input to call the service interface of the network service simulation model. After the scheduling is completed, the output of the network service simulation model is obtained, and then the output of the network service simulation model is sent to the internal model and other proxy models through the internal communication mechanism of the simulation engine, thereby realizing the collaborative simulation of the internal simulation model and the external network service simulation model. The input-output relationship and scheduling order of the internal model, proxy model and network service simulation model are shown in Figure 1. Figure 3 shown.
[0141] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0142] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0143] Finally, it should be noted that the simulation system and method based on the network service simulation model disclosed in the embodiment of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that it is still possible to modify the technical solutions recorded in the aforementioned embodiments, or to make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A simulation system based on a network service simulation model, characterized in that: The system includes a simulation engine, a network service infrastructure and N network service-oriented simulation models; The simulation engine is connected with the N network service simulation model data to provide model solving services for other simulation applications; The network service infrastructure is connected with the N network service simulation model data to provide network services; The N network service simulation models are connected with the simulation engine data to provide a network remote calling function.
2. The simulation system based on the network service simulation model according to claim 1 is characterized in that: The simulation engine provides model solving services for other simulation applications by driving the operation of the simulation model; The simulation model includes an internal model and an agent model; The internal model is the original simulation model inside the simulation engine; The proxy model complies with the model interface specification of the simulation engine and is a simulation model specially developed for calling the network service simulation model; The internal model and the proxy model interact with each other through an internal communication mechanism provided by the simulation engine.
3. The simulation system based on the network service simulation model according to claim 1, characterized in that: The network services provided by the network service infrastructure include network service registration, network service location and network service discovery; The network service registration includes domain name registration, company registration and universal website registration; The network service positioning includes determining the network service object, determining the service content and determining the service method; The network service discovery is used to discover devices supporting this function through a specific function in a local area network and establish connections with other devices.
4. The simulation system based on the network service simulation model according to claim 1, characterized in that: The network service-oriented simulation model includes a simulation model encapsulated according to the network service infrastructure specification; Any network service-oriented simulation model can realize its simulation function by calling other network service-oriented simulation models.
5. A simulation method based on a network service simulation model, characterized in that: The method is applied to the simulation system based on the network service simulation model according to any one of claims 1 to 4, and the method comprises: S1, obtain simulation requirement information; S2, processing the simulation requirement information to obtain a simulation model; S3, encapsulating the simulation model according to the specification of the network service infrastructure to obtain a network service simulation model; S4, registering the network service simulation model with the network service infrastructure; S5, scheduling the simulation engine and the network service simulation model to achieve collaborative simulation.
6. The simulation method based on the network service simulation model according to claim 5, characterized in that: The step of processing the simulation requirement information to obtain a simulation model includes: S21, processing the simulation requirement information to obtain simulation model description information; the simulation model description information includes model structure information and model function description information; S22, processing the simulation model description information to obtain a demand model, a scenario model, a function model and an interface model; S23, processing the demand model, the scenario model, the function model and the interface model to obtain a simulation model.
7. The simulation method based on the network service simulation model according to claim 5, characterized in that: The step of scheduling the simulation engine and the network service-oriented simulation model to realize collaborative simulation includes: S51, developing a proxy model of the network service simulation model according to the packaging specification of the simulation engine; S52, in the initialization phase, using the proxy model to obtain the service interface of the network service simulation model; S53, during the simulation operation, using the simulation engine to schedule the operation interface of the internal model and the proxy model; S54, when the running interface is called, scheduling the proxy model and the network service simulation model to achieve collaborative simulation.
8. The simulation method based on the network service simulation model according to claim 7, characterized in that: When the running interface is called, the proxy model and the network service simulation model are scheduled to realize collaborative simulation, including: S541, when the operation interface is called, using the proxy model to obtain outputs of the internal model and other proxy models through the internal communication mechanism of the simulation engine; S542, inputting the outputs of the internal model and other proxy models into a network service-oriented simulation model, calling a service interface of the network service-oriented simulation model, and obtaining the output of the network service-oriented simulation model; S543, using the internal communication mechanism of the simulation engine, sending the output of the network service simulation model to the internal model and other proxy models to achieve collaborative simulation.
Citation Information
Patent Citations
Service-oriented distributed simulation system and realizing method thereof
CN103093058A
Real-time simulation platform system and simulation system construction method
CN116822135A
Extensible simulation service framework system based on micro-service architecture
CN118449995A
Operating system for scheduling operation of digital twin model
CN118585344A
Multi-agent simulation system and multi-agent simulation method
JP2014174705A