A simulation system based on network service simulation model
Through a system based on the network service simulation model, the problems of complex management and call limitations of traditional simulation model are solved, and convenient reuse, version management, remote access and cross-platform calls of simulation models are realized, improving the flexibility and efficiency of the simulation system.
Patent Information
- Application Number
- CN202411261480.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The traditional simulation model encapsulated as a library form leads to complex management, inconvenient model reuse, no remote calls, no quick response to simulation application requirements, and no cross-platform and cross-language calls.
The system based on the network service simulation model is adopted, and the network remote call function is provided through the combination of simulation engine, network service infrastructure and network service simulation model, and the simulation model is encapsulated according to the network service infrastructure specifications, supporting cross-platform and cross-language calls.
It realizes convenient reuse of simulation models, version management, support for local and remote access, quickly respond to simulation application requirements, and cross-platform and cross-language calls, improving the flexibility and efficiency of the simulation system.
Smart Images

Figure CN119358062B_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 fundamental components of a simulation system are the simulation model and the simulation engine. The simulation model is an abstraction of real-world objects. For example, a radar simulation model simulates the functions and performance of real-world radar equipment. The simulation engine drives the simulation model and provides services such as data exchange. The simulation model, simulation engine, and other simulation support tools together constitute the simulation system, providing simulation services for upper-layer applications.
[0003] Traditional simulation models are typically packaged as libraries (.lib static libraries and .dll dynamic libraries on Windows, and .a static libraries and .so dynamic libraries on Linux) for loading and calling by simulation engines. The simulation model library must be deployed on the same compute node as the simulation engine. This library approach has the following disadvantages: First, simulation model library management is complex, requiring copies to multiple locations and making model library version management difficult. Second, it is inconvenient for model reuse. If different simulation engines want to call the same simulation model library, they must copy the library to each engine's directory. Third, it lacks support for remote calls. The simulation model library can only be called by the local simulation engine, not by other simulation engines on the network. Fourth, it cannot quickly respond to simulation application requirements. When simulation application requirements change, the simulation model library must be manually configured and deployed, preventing flexible organization of the library to quickly build new simulation applications. Fifth, it lacks support for cross-platform and cross-language calls. To support cross-platform calls, a simulation model library must recompile its source code on the target operating system. To support cross-language calls, it must adhere to 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 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 to the N network service simulation model data to provide model solution services for other simulation applications;
[0007] The network service infrastructure is connected to the N network service simulation model data to provide network services;
[0008] The N network service simulation models are connected to 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 general 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 that support this function through specific functions in the local area network and establish connections with other devices.
[0018] As an optional implementation manner, 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 specifications 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 manner, in the second aspect of the embodiment of the present invention, scheduling 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 interfaces 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, scheduling the proxy model and the network service simulation model to implement collaborative simulation includes:
[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 an 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 facilitates 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 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 any 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 This is a schematic diagram of the structure of a simulation system based on a network service simulation model disclosed in an embodiment of the present invention;
[0047] Figure 2 This 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 solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of 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 making any creative efforts shall fall within the scope of protection of the present invention.
[0050] The terms "first," "second," and so on, in the description and claims of the present invention and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or device comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or device.
[0051] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, 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 data-connected to the N network service simulation models to provide model solving services for other simulation applications; the network service infrastructure is data-connected to the N network service simulation models to provide network services; the N network service simulation models are data-connected to the simulation engine to provide network remote calling functions. The method of the present invention supports cross-platform and cross-language calling. 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. The following are detailed descriptions.
[0053] Example 1
[0054] See also Figure 1 , Figure 1 This 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 in 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 to the N network service simulation model data to provide model solution services for other simulation applications;
[0056] The network service infrastructure is connected to the N network service simulation model data to provide network services;
[0057] The N network service simulation models are connected to the simulation engine data to provide a network remote calling function.
[0058] The network service simulation model provides a specific network simulation model implementation. Its internal structure is 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 and the use of specific message patterns to ensure reliable and timely processing of model instructions;
[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, which 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 positioning and network service discovery;
[0068] The network service registration includes domain name registration, company registration and general 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 that support this function through specific functions in the 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-based simulation model includes a simulation model encapsulated according to network service infrastructure specifications;
[0073] Encapsulation is an existing technology in this field, 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 or what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language.
[0076] Example 2
[0077] See also Figure 2 , Figure 2 This 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. The embodiment of the present invention does not limit this. 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 specifications 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] Simulation requirement information includes the goals and uses of the simulation model, the functions and operating principles 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 (taking into account 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 for 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 interfaces 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 an 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 implementing the collaborative simulation, the method of the present invention further includes evaluating the collaborative simulation results. The specific evaluation method is:
[0100] Constructing a set of collaborative simulation performance evaluation indicators; the collaborative simulation performance evaluation indicator set includes structure compliance test indicators, software platform compliance test indicators and waveform compliance test indicators;
[0101] Structural compliance test indicators include software architecture compliance, security and confidentiality architecture compliance, and waveform portability;
[0102] Software platform compliance test indicators include operating system interface standard compliance, core framework standard compliance and transmission mechanism interface standard compliance;
[0103] 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 through the integrated management software in the preset test integrated management platform, through the integrated management protocol and based on the adapted test case. The test integrated management platform first performs model identification and reports the identification results to the test platform. The test platform calls the corresponding test components and test cases according to the identified 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 degree of the collaborative simulation performance evaluation index set:
[0106] The structural compliance test indicator 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 the waveform component standard conformity membership u7(x), the waveform system conformity membership u8(x) and the waveform platform adaptability membership u9(x);
[0109] Process the structural compliance test index membership to obtain the structural compliance test index comprehensive evaluation value S1;
[0110] The comprehensive evaluation value S1 of the system architecture conformity test index is expressed as:
[0111]
[0112] Among them, w ak is the weight vector w of the structural compliance test index a =(w a1 ,w a2 ,w a3 ) in the corresponding element, 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 membership of the software platform conformity test indicators to obtain the comprehensive evaluation value S2 of the software platform conformity test indicators;
[0114] The comprehensive evaluation value S2 of the software platform compliance test index 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 ) in the corresponding element, 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 core framework standard compliance weight, w b3 is the transmission mechanism interface standard compliance weight, w b1 +w b2 +w b3 =1;
[0117] Processing the membership degree of the waveform conformity test index 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 ) in the corresponding element, 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 restrictions.
[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 or what language it is implemented in, it can be called by a simulation engine developed on any platform and in any language.
[0127] Example 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 facilitates the reuse of simulation models, and network service-based simulation models can be directly accessed and called by different simulation engines in the network; second, it facilitates simulation model version management, 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 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 complies with the model interface specification of the simulation engine. From the perspective of the simulation engine, it is exactly the same as other internal simulation models. 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 positioning 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. Its internal structure is 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 prefers 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 a proxy model for the corresponding network service simulation model according to the packaging specifications of the simulation engine;
[0138] In the fifth step, the proxy model obtains the service interface of the network service simulation model during the initialization phase;
[0139] Step 6: During the simulation process, 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 and output relationship and scheduling order of the internal model, proxy model and network service simulation model are as follows: Figure 3 shown.
[0141] The device embodiments described above are merely illustrative. Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0142] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by means of hardware. Based on this understanding, the above technical solution, in essence, or the portion that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, including 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 programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing 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 are only 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 replace some of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate 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 simulation models; The simulation engine is connected to the N network service simulation model data to provide model solution services for other simulation applications; The network service infrastructure is connected to the N network service simulation model data to provide network services; The N network service simulation models are connected to the simulation engine data to provide a network remote call function; The steps of the simulation method based on the network service simulation model include: S1, obtain simulation requirement information; S2, processing the simulation requirement information to obtain a simulation model, including: 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; S3, encapsulating the simulation model according to the specifications 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-oriented simulation model to implement collaborative simulation, including: 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 interfaces of the internal model and the proxy model; S54, when the operation interface is called, scheduling the proxy model and the network service simulation model to implement 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 an 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.
2. The simulation system based on the network service simulation model according to claim 1, 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 general 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 that support this function through specific functions in the 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.
Citation Information
Patent Citations
Real-time simulation platform system and simulation system construction method
CN116822135A
Operating system for scheduling operation of digital twin model
CN118585344A