General simulation dynamic monitoring and analysis system, method, equipment and medium
Through a general simulation dynamic monitoring and analysis system, using interface protocols of various types of formats to build a dynamic simulation environment, process and backtrack the simulation data, solving the problems of poor adaptability and high development and maintenance costs in the existing technology, and realizing the Flexibility and efficient development of simulation systems.
Patent Information
- Application Number
- CN202410378982.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-03-29
AI Technical Summary
The existing technology has poor general adaptability to variable simulation data, and the code development and maintenance costs are high, resulting in the simulation system redesign and redevelopment when business logic changes, increasing the development and maintenance costs.
Provide a general simulation dynamic monitoring and analysis system, including simulation environment construction module, simulation data processing module and simulation process backtracking module, build a dynamic simulation environment through interface protocols of various types of formats, obtain and process simulation data, generate data charts, and Dynamically display the operating parameters of the simulation process according to the simulation clock cycle, realizing general adaptation and flexible adjustment of simulation data.
It improves the flexibility and scalability of the simulation system, reduces the cost of secondary development, enhances the efficiency of simulation data processing, and solves the problems of poor general adaptability and high development and maintenance costs in the existing technology.
Smart Images

Figure CN118245061B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication system processing technology, and in particular to a general simulation dynamic monitoring and analysis system, method, device and medium. Background Art
[0002] At present, most common communication process simulation technologies are developed by designing specific business logic units, solidifying parameter configurations, and combining them with specific application scenarios. The simulation data generated can only be traced back through the simulation system itself. In addition, simulation data simulation systems developed for specific simulation business data are rare, and they cannot achieve universal adaptability to variable simulation data; when the simulation business process changes, not only does the simulation system need to be redesigned, but the simulation system also needs to be redeveloped, which greatly increases the cost of developing new code and the maintenance cost of old code.
[0003] In summary, the existing technology has poor universal adaptability to variable simulation data, and the cost of code development and maintenance is high, which needs to be solved urgently. Summary of the invention
[0004] The present application provides a general simulation dynamic monitoring and analysis system, method, device and medium to solve the problems that the prior art has poor general adaptability to variable simulation data and high cost of code development and maintenance.
[0005] The first aspect of the present application provides a general simulation dynamic monitoring and analysis system, including: a simulation environment construction module, which is used to build a dynamic simulation environment for the target device to be simulated based on the interface protocol with multiple types of formats in the target device to be simulated; a simulation data processing module, which is used to obtain a simulation data set of the target device to be simulated based on the dynamic simulation environment, and establish a corresponding memory file for each simulation file in the simulation data set, so as to perform a preset data processing operation on the simulation data corresponding to each simulation file according to the memory file, and obtain a simulation business processing result, a communication topology diagram and a simulation data query result, wherein the simulation data query result includes a general query result and a combination condition query result; a simulation process backtracking module, which is used to generate a variety of data charts of the simulation business processing result based on the simulation business processing result, the simulation data query result and a preset simulation management strategy, and dynamically display the operating parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to backtrack the operating status of the simulation process within any simulation clock cycle through the operating parameters.
[0006] Optionally, in an embodiment of the present application, it also includes: a display interface module, used to display the simulation business processing results, the various data charts, the communication topology diagram and the simulation data query results.
[0007] Optionally, in one embodiment of the present application, the simulation environment construction module includes: a simulation data structure unit, which is used to construct a simulation data hierarchical structure according to the interface protocols of the multiple types of formats; a simulation data chart object unit, which is used to load multiple data chart objects through preset multiple simulation data chart models; a general query logic unit, which is used to dynamically query the data in the simulation data hierarchical structure according to the simulation clock cycle to obtain the general query result; a combination query logic unit, which is used to query the data corresponding to the multiple field structures in each simulation file based on preset matching combination conditions to obtain the combination condition query results corresponding to the multiple field structures; a business logic operation unit, which is used to use a preset multi-threaded processing mechanism to decouple simulation operations that meet preset computing requirements.
[0008] Optionally, in one embodiment of the present application, the simulation data processing module includes: a data import unit, used to obtain a simulation data set of the target device to be simulated, and parse each simulation file in the simulation data set to generate a parsed simulation file; a memory partitioning unit, used to establish the corresponding memory file for each simulation file based on the parsed simulation file, and store each simulation file in the corresponding memory file; a business main control unit, used to perform preset data processing operations on the simulation data corresponding to the simulation data set based on the memory file to obtain the simulation business processing result; a query display unit, used to display the simulation business processing result and the simulation data query result; a topology generation unit, used to draw the communication topology diagram according to the simulation data corresponding to the simulation data set.
[0009] Optionally, in one embodiment of the present application, the simulation backtracking module includes: a simulation sub-module management unit, used to generate at least one target sub-functional unit that meets preset simulation requirements, so as to call the at least one target sub-functional unit to perform corresponding simulation operations through the simulation data and the simulation business processing results; a chart generation unit, used to draw and display a variety of data charts corresponding to the simulation business processing results according to the various data chart objects; a dynamic display unit, used to trace the simulation data and the simulation business processing results according to the simulation clock cycle, and find and display problems existing in the simulation process of the target device to be simulated.
[0010] The second aspect of the present application provides a general simulation dynamic monitoring and analysis method, including the following steps: based on the interface protocols with various types of formats in the target device to be simulated, building a dynamic simulation environment for the target device to be simulated; based on the dynamic simulation environment, obtaining a simulation data set of the target device to be simulated, and establishing a corresponding memory file for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results; based on the simulation business processing results, the simulation data query results and preset simulation management strategies, generating multiple data charts of the simulation business processing results, and dynamically displaying the operating parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters.
[0011] Optionally, in one embodiment of the present application, based on the dynamic simulation environment, a simulation data set of the target device to be simulated is obtained, and a corresponding memory file is established for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file to obtain simulation business processing results, communication topology diagrams and simulation data query results, including: obtaining the simulation data set of the target device to be simulated, and parsing each simulation file in the simulation data set to generate a parsed simulation file; based on the parsed simulation file, establishing the corresponding memory file for each simulation file, and storing each simulation file in the corresponding memory file; based on the memory file, performing preset data processing operations on the simulation data corresponding to the simulation data set to obtain the simulation business processing results, and drawing the communication topology diagram according to the simulation data corresponding to the simulation data set.
[0012] Optionally, in one embodiment of the present application, the running parameters of the simulation process are dynamically displayed according to the simulation clock cycle in each simulation file, so as to trace back the running status of the simulation process within any simulation clock cycle through the running parameters, including: tracing back the simulation data and the simulation business processing results according to the simulation clock cycle to obtain the simulation process running parameters, and using the simulation process running parameters to find and display problems existing in the simulation process of the target device to be simulated.
[0013] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the general simulation dynamic monitoring and analysis method as described in the above embodiment.
[0014] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above-mentioned general simulation dynamic monitoring and analysis method.
[0015] Therefore, the embodiments of the present application have the following beneficial effects:
[0016] The embodiment of the present application may include a simulation environment construction module, which is used to build a dynamic simulation environment of the target device to be simulated based on the interface protocol with multiple types of formats in the target device to be simulated; a simulation data processing module, which is used to obtain the simulation data set of the target device to be simulated based on the dynamic simulation environment, and establish a corresponding memory file for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results, wherein the simulation data query results include general query results and combined condition query results; a simulation process backtracking module, which is used to generate multiple data charts of simulation business processing results based on simulation business processing results, simulation data query results and preset simulation management strategies, and dynamically display the operation parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to backtrack the operation status of the simulation process within any simulation clock cycle through the operation parameters. The present application can only adjust the corresponding business unit function by changing the lightweight modification of the simulation data structure unit, so as to adapt to the needs of new business, greatly improve the efficiency of secondary development, and enhance the flexible scalability of the simulation system. This solves the problems of poor universal adaptability of the prior art to variable simulation data and high cost of code development and maintenance.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 is an example diagram of a general simulation dynamic monitoring and analysis system according to an embodiment of the present application;
[0020] Figure 2 A schematic diagram of the execution logic of a general simulation dynamic monitoring and analysis system provided for one embodiment of the present application;
[0021] Figure 3 A schematic diagram of a simulation data structure provided for an embodiment of the present application;
[0022] Figure 4 A schematic diagram of a general structure of a simulation data primary key provided for an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a general structure of a simulation data sub-key provided for an embodiment of the present application;
[0024] Figure 6 A schematic diagram of the functional topology structure of a general simulation dynamic monitoring and analysis system provided for one embodiment of the present application;
[0025] Figure 7 A flowchart of a general simulation dynamic monitoring and analysis method provided according to an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0027] Among them, 10-general simulation dynamic monitoring and analysis system; 100-simulation environment construction module, 101-simulation data structure unit, 102-simulation data chart object unit, 103-general query logic unit, 104-combination query logic unit, 105-business logic operation unit; 200-simulation data processing module, 201-data import unit, 202-memory partition unit, 203-business main control unit, 204-query display unit, 205-topology generation unit; 300-simulation process backtracking module, 301-simulation sub-module management unit, 302-chart generation unit, 303-dynamic display unit; 400-display interface module; 801-memory, 802-processor, 803-communication interface. DETAILED DESCRIPTION
[0028] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0029] The following describes the general simulation dynamic monitoring and parsing system, method, device and medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology, the present application provides a general simulation dynamic monitoring and parsing system, in which the system includes a simulation environment construction module, which is used to build a dynamic simulation environment of the target device to be simulated based on the interface protocol with multiple types of formats in the target device to be simulated; a simulation data processing module, which is used to obtain the simulation data set of the target device to be simulated based on the dynamic simulation environment, and establish a corresponding memory file for each simulation file in the simulation data set, so as to perform a preset data processing operation on the simulation data corresponding to each simulation file according to the memory file, and obtain the simulation business processing result, the communication topology diagram and the simulation data query result, wherein the simulation data query result includes a general query result and a combination condition query result; a simulation process backtracking module, which is used to generate a variety of data charts of the simulation business processing result based on the simulation business processing result, the simulation data query result and the preset simulation management strategy, and dynamically display the operation parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to backtrack the operation status of the simulation process in any simulation clock cycle through the operation parameters. This application can adapt to the needs of new businesses by only making lightweight changes to the simulation data structure unit and adjusting the corresponding business unit functions accordingly, greatly improving the work efficiency of secondary development and enhancing the flexible scalability of the simulation system. It improves the general adaptability of existing simulation analysis technology to variable simulation data, improves the simulation data processing efficiency and the dynamic simulation capability of the simulator. As a result, it solves the problems of poor general adaptability of existing technology to variable simulation data and high cost of code development and maintenance.
[0030] Specifically, Figure 1 A block diagram of a general simulation dynamic monitoring and analysis system according to an embodiment of the present application.
[0031] like Figure 1 As shown, the universal simulation dynamic monitoring and analysis system 10 includes: a simulation environment construction module 100 , a simulation data processing module 200 and a simulation process backtracking module 300 .
[0032] The simulation environment building module 100 is used to build a dynamic simulation environment of the target device to be simulated based on the interface protocols with various types of formats in the target device to be simulated.
[0033] The embodiments of the present application can first set the simulation data structure unit, the simulation data chart object unit, the general query logic unit, the combined query logic unit and the business logic operation unit according to the interface protocols and transmission protocols in various formats such as json, txt or xml of the target device to be simulated, and in combination with the simulation requirements of the target device to be simulated, so as to design the simulation data structure, simulation data chart type and layout, general query logic scheme and business logic operation strategy of the target device to be simulated, so as to complete the adaptation work of the general simulation dynamic monitoring and parsing system, build a dynamic simulation environment for the target device to be simulated, and provide guidance and basis for the implementation of subsequent simulation data processing and backtracking operations.
[0034] Optionally, in one embodiment of the present application, the simulation environment construction module 100 includes: a simulation data structure unit 101, a simulation data chart object unit 102, a general query logic unit 103, a combined query logic unit 104 and a business logic operation unit 105.
[0035] The simulation data structure unit 101 is used to construct a simulation data hierarchical structure according to interface protocols of various formats.
[0036] The simulation data chart object unit 102 is used to load a variety of data chart objects through a plurality of preset simulation data chart models.
[0037] The general query logic unit 103 is used to dynamically query the data in the simulation data hierarchy structure according to the simulation clock cycle to obtain a general query result.
[0038] The combined query logic unit 104 is used to query the data corresponding to the multiple field structures in each simulation file based on the preset matching combined conditions, so as to obtain the combined condition query results corresponding to the multiple field structures.
[0039] The business logic operation unit 105 is used to decouple simulation operations that meet preset computing requirements by using a preset multi-thread processing mechanism.
[0040] Specifically, in the embodiments of the present application, Figure 2 As shown, the simulation environment construction module includes a simulation data structure unit 101 , a simulation data chart object unit 102 , a general query logic unit 103 , a combined query logic unit 104 and a business logic operation unit 105 .
[0041] It should be noted that the simulation data structure unit 101 can create a simulation data hierarchical structure according to the structure abstracted from the simulation data to be traced back later (taking JSON as an example) to save the parsed simulation data; currently, the general data structure can be defined as a two-layer structure, such as Figure 3As shown, the embodiments of the present application can flexibly expand the original data structure into a multi-layer structure according to the complexity of the user simulation data, fully reflecting the universal characteristics of the embodiments of the present application.
[0042] Secondly, the simulation data chart object unit 102 in the embodiment of the present application pre-fabricates multiple simulation data chart models, which are responsible for loading the data chart objects of the simulation business. The user only needs to import the key value data to be expressed into the horizontal and vertical coordinates of the chart through the chart generation unit in the system of the embodiment of the present application, so that it can conveniently display various chart information such as data operation point charts, line charts or bar charts. The chart generation unit will be introduced in detail later and will not be repeated here.
[0043] Again, in the embodiments of the present application, a business logic operation unit 105 can be created in a multi-threaded module. Since a multi-threaded processing mechanism is set up in the unit, the user can decouple large-scale computing tasks into sub-threads for execution, thereby avoiding the blockage and delay caused by the occupation and consumption of system resources by computing in a single process; in addition, the embodiments of the present application can also arbitrarily add the number of thread processing according to the complexity of the simulation task. Therefore, the embodiments of the present application can not only isolate data management and business management, but also improve the operating efficiency of the system.
[0044] Afterwards, the embodiment of the present application may also create a query logic unit (i.e., including the above-mentioned general query logic unit 103 and the combination query logic unit 104). This unit serves as a query template framework of the general simulation dynamic monitoring and parsing system of the embodiment of the present application. It can arbitrarily combine matching conditions for any items of multiple field structures of the simulation data within any clock interval within the entire cycle to obtain matching combination conditions, and perform combined dynamic query based on the matching combination conditions to obtain combined condition query results corresponding to multiple field structures in the simulation data query results; in addition, the unit can also dynamically query the data in the simulation data hierarchical structure according to the simulation clock cycle to obtain a general query result.
[0045] Therefore, the embodiments of the present application effectively ensure the import of simulation data files corresponding to the subsequent simulation system by creating a configurable simulation data structure (i.e., a simulation data structure unit); in addition, the embodiments of the present application meet the user's needs for different business presentations by providing a general data query interface (i.e., a general query logic unit and a combined query logic unit).
[0046] The simulation data processing module 200 is used to obtain a simulation data set of a target device to be simulated based on a dynamic simulation environment, and to establish a corresponding memory file for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results, wherein the simulation data query results include general query results and combined condition query results.
[0047] After building a dynamic simulation environment for the target device to be simulated, further, the embodiments of the present application can also obtain a simulation result data set in a dynamic simulation environment according to the designed simulation data structure and memory data structure of the target device to be simulated, and import it into a memory file corresponding to each simulation file in the simulation data set; the embodiments of the present application can utilize the above-mentioned general query logic unit and combined query logic unit, etc. to perform data generalization processing such as data query, retrieval, and merging on the simulation data corresponding to each simulation file in the memory file to obtain simulation business processing results, communication topology diagrams and simulation data query results, thereby completing the preliminary processing of the simulation data, and can intuitively display and verify the effect of the basic data conversion of the simulation data.
[0048] Optionally, in one embodiment of the present application, the simulation data processing module 200 includes: a data import unit 201, a memory partition unit 202, a business main control unit 203, a query display unit 204 and a topology generation unit 205.
[0049] The data import unit 201 is used to obtain a simulation data set of a target device to be simulated, and parse each simulation file in the simulation data set to generate a parsed simulation file.
[0050] The memory partitioning unit 202 is used to establish a corresponding memory file for each simulation file based on parsing the simulation file, and store each simulation file in the corresponding memory file.
[0051] The business main control unit 203 is used to perform a preset data processing operation on the simulation data corresponding to the simulation data set based on the memory file to obtain a simulation business processing result.
[0052] The query display unit 204 is used to display the simulation business processing results and the simulation data query results.
[0053] The topology generating unit 205 is used to draw a communication topology diagram according to the simulation data corresponding to the simulation data set.
[0054] Specifically, the simulation data processing module includes: a data import unit 201 , a memory partition unit 202 , a business main control unit 203 , a query display unit 204 and a topology generation unit 205 .
[0055] The data import unit 201 takes simulation files as units, and can dynamically manage simulation data under different simulation project directories, and can automatically parse all simulation files to obtain parsed simulation files after importing the project folder.
[0056] Secondly, the memory division unit 202 (i.e., the simulation result memory file unit) in the embodiment of the present application can divide the memory unit (i.e., the memory file) according to the number of files of the simulation data, and automatically establish a corresponding memory file for each parsed simulation file to store it in the corresponding memory file. The structure of the memory file is as follows: Figure 4 and Figure 5 shown.
[0057] Again, the business main control unit 203 in the embodiment of the present application is mainly responsible for managing the memory data interface, obtaining the corresponding simulation data from the memory file, and directly processing the simulation data to obtain the simulation business processing results; further, the embodiment of the present application splits the data such as the simulation business processing results, and uses the split data to schedule the sub-functions in the simulation sub-module management unit to perform corresponding operations, among which the specific functions of the simulation sub-module management unit will be introduced in detail later and will not be repeated here.
[0058] Afterwards, the query display unit 204 (i.e., the unit for displaying general query results) in the embodiment of the present application is a system prefabricated structure, which provides a combination matching query function for multiple groups of all data structure elements, and can use the above-mentioned general query logic unit and combination query logic unit to query the imported data content, and through the echo of the memory data, the data in each unit structure (such as general query results and simulation data query results such as combination condition query results) are all displayed on the user interface for user reference and comparison. Users can freely combine query plans according to their own simulation business to realize scenario application.
[0059] In addition, the simulation data processing module in the embodiment of the present application also includes a topology generation unit 205 (i.e., a general topology structure generation unit). This unit is a system prefabricated structure, which provides a global topology map generation mechanism and can draw a communication topology map based on the IO flow of the simulation data. In other words, the embodiment of the present application can view the network topology of the simulation system through this unit, and based on the topology structure description field in the simulation data and the port performance parameters in the description of the target device to be simulated, automatically connect, draw and display the devices in the simulation project to generate a communication topology map. Therefore, the embodiment of the present application can automatically generate the data flow topology structure of the simulation system through the topology generation unit according to the logical structure of the simulation data.
[0060] The simulation process backtracking module 300 is used to generate a variety of data charts of simulation business processing results based on simulation business processing results, simulation data query results and preset simulation management strategies, and dynamically display the operating parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters.
[0061] After obtaining the simulation business processing results, communication topology diagram and simulation data query results, further, the embodiments of the present application can also abstract the functions of the part with large computational amount in the simulation business and put it into the sub-thread execution unit, and provide a common chart class for different devices in the simulation network to generate various data charts of the simulation business processing results according to the preset simulation management strategy and common chart class; in addition, the embodiments of the present application can also start and end the simulation clock cycle synchronization multi-threading function in each simulation file, and synchronously and asynchronously trace back the operation of multiple devices, so as to trace back the running status of any clock cycle segment in the simulation business by calling the business algorithm added in the multi-thread module, and dynamically display the running parameters of the simulation process.
[0062] Optionally, in one embodiment of the present application, the simulation backtracking module 300 includes: a simulation sub-module management unit 301 , a chart generation unit 302 and a dynamic display unit 303 .
[0063] The simulation submodule management unit 301 is used to generate at least one target sub-functional unit that meets the preset simulation requirements, so as to call at least one target sub-functional unit to perform corresponding simulation operations through simulation data and simulation business processing results.
[0064] The chart generating unit 302 is used to draw and display a variety of data charts corresponding to the simulation business processing results according to a variety of data chart objects.
[0065] The dynamic display unit 303 is used to trace back the simulation data and simulation business processing results according to the simulation clock cycle, and to find and display the problems existing in the simulation process of the target device to be simulated.
[0066] In the actual execution process, the embodiment of the present application can construct a simulation backtracking module through a simulation sub-module management unit, a chart generation unit and a dynamic display unit.
[0067] Specifically, the simulation sub-module management unit 301 in the embodiment of the present application is mainly responsible for the maintenance and scheduling of the system sub-function modules (i.e., target sub-function units), wherein the sub-function modules serve as an important entry point for users to expand specific simulation services. The specific target sub-function units generated by the corresponding functional editing of the simulation data in the memory files generated in the early stage in combination with their own business needs can be included in the sub-module management unit, and the corresponding target sub-function units can be called through the simulation data and the simulation business processing results to perform the corresponding simulation operations; this unit abstracts the part with large computational complexity in the simulation business and puts it into the sub-thread execution unit, which plays a key role in efficiently managing data operations.
[0068] Secondly, the chart generation unit 302 in the embodiment of the present application provides a common chart class for different devices in the simulation network. The unit can draw corresponding charts based on the data results after the simulation business operation (simulation business processing results and simulation data query results, etc.) and the icon types such as point graphs, line graphs or bar graphs according to the needs of the user's own simulation business.
[0069] It should be noted that, in the embodiment of the present application, the simulation backtracking module also includes a dynamic display unit 303, which takes the simulation data of the entire cycle as the object, and dynamically evolves or backtracks each step in the simulation process. That is to say, the embodiment of the present application can be based on the requirements of the general simulation system and takes the system clock cycle data as the main line to reproduce the state data of the system parameters under each clock one by one, and dynamically display the running parameters of the simulation process, so as to find out possible problems in the simulation process and optimize the problem.
[0070] Therefore, the embodiments of the present application can be applied to the development of various types of simulation data backtracking systems. For changes in users' future simulation business adjustments, the embodiments of the present application only need to make lightweight changes to the simulation data structure unit and adjust the corresponding business unit functions accordingly, so as to well meet and adapt to the needs of new simulation business, greatly improve the work efficiency of secondary development, and enhance the flexibility and scalability of the simulation system.
[0071] Optionally, in one embodiment of the present application, the universal simulation dynamic monitoring and analysis system 10 of the embodiment of the present application also includes: a display interface module 400, which is used to display the real business processing results, various data charts, communication topology diagrams and simulation data query results.
[0072] In the specific implementation process, the embodiment of the present application also includes a display interface module 400, which can centrally manage the output display function of the general simulation dynamic monitoring and analysis system, so that static or dynamic charts of multiple devices can be intuitively displayed to the user at the same time based on the system display interface through preset icon templates, such as Figure 6As shown, the simulation data query results or simulation business processing results such as general query results and combined condition query results can be displayed through the query result display template, and the communication topology diagram can be displayed through the display topology structure module, thereby enhancing and improving the visualization function of the simulation system and improving the utilization efficiency of the simulation system.
[0073] To sum up, the embodiments of the present application can reproduce the dynamic state of the simulation process with static simulation result files by parsing and reconstructing the simulation document and the simulation system clock execution logic, and can meet the needs of various simulation business logics; and the embodiments of the present application can also match more types and levels of simulation data by expanding the data structure units; in addition, the embodiments of the present application provide a universal method template for the development process of various simulators. When the user adjusts the simulation business in the future, it only needs to change a small part of the simulation data structure units to adapt well to the needs of the new simulation business.
[0074] According to the general simulation dynamic monitoring and parsing system proposed in the embodiment of the present application, it includes a simulation environment construction module, which is used to build a dynamic simulation environment of the target device to be simulated based on the interface protocol with multiple types of formats in the target device to be simulated; a simulation data processing module, which is used to obtain the simulation data set of the target device to be simulated based on the dynamic simulation environment, and establish a corresponding memory file for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results; a simulation process backtracking module, which is used to generate multiple data charts of simulation business processing results based on simulation business processing results, simulation data query results and preset simulation management strategies, and dynamically display the operating parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process in any simulation clock cycle through the operating parameters. The present application can only adjust the corresponding business unit function by changing the lightweight modification of the simulation data structure unit, so as to adapt to the needs of new business, greatly improve the work efficiency of secondary development, and enhance the flexible scalability of the simulation system.
[0075] Secondly, the general simulation dynamic monitoring and analysis method proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0076] Figure 7 A flowchart of a general simulation dynamic monitoring and analysis method provided in an embodiment of the present application.
[0077] like Figure 7 As shown, the general simulation dynamic monitoring and analysis method includes the following steps:
[0078] In step S701, a dynamic simulation environment of the target device to be simulated is constructed based on the interface protocols having multiple types of formats in the target device to be simulated.
[0079] In step S702, based on the dynamic simulation environment, a simulation data set of the target device to be simulated is obtained, and a corresponding memory file is established for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results.
[0080] Optionally, in one embodiment of the present application, based on a dynamic simulation environment, a simulation data set of a target device to be simulated is obtained, and a corresponding memory file is established for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results, including: obtaining a simulation data set of a target device to be simulated, and parsing each simulation file in the simulation data set to generate a parsed simulation file; based on the parsed simulation file, establishing a corresponding memory file for each simulation file, and storing each simulation file in the corresponding memory file; based on the memory file, performing preset data processing operations on the simulation data corresponding to the simulation data set to obtain simulation business processing results, and drawing a communication topology diagram according to the simulation data corresponding to the simulation data set.
[0081] In step S703, based on the simulation business processing results, simulation data query results and preset simulation management strategies, multiple data charts of the simulation business processing results are generated, and the operating parameters of the simulation process are dynamically displayed according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters.
[0082] Optionally, in one embodiment of the present application, the operating parameters of the simulation process are dynamically displayed according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters, including: tracing back the simulation data and simulation business processing results according to the simulation clock cycle to obtain the simulation process operating parameters, and using the simulation process operating parameters to find and display problems existing in the simulation process of the target device to be simulated.
[0083] It should be noted that the above explanation of the embodiment of the general simulation dynamic monitoring and analysis system is also applicable to the general simulation dynamic monitoring and analysis method of this embodiment, and will not be repeated here.
[0084] According to the general simulation dynamic monitoring and parsing method proposed in the embodiment of the present application, a dynamic simulation environment of the target device to be simulated is built based on the interface protocol with multiple types of formats in the target device to be simulated; based on the dynamic simulation environment, a simulation data set of the target device to be simulated is obtained, and a corresponding memory file is established for each simulation file in the simulation data set, so as to perform preset data processing operations on the simulation data corresponding to each simulation file according to the memory file, and obtain simulation business processing results, communication topology diagrams and simulation data query results; based on the simulation business processing results, simulation data query results and preset simulation management strategies, multiple data charts of simulation business processing results are generated, and the operating parameters of the simulation process are dynamically displayed according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters. The present application can adjust the corresponding business unit functions correspondingly by only changing the lightweight modification of the simulation data structure unit, so as to adapt to the needs of new businesses, greatly improve the efficiency of secondary development work, and enhance the flexible scalability of the simulation system.
[0085] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0086] A memory 801 , a processor 802 , and a computer program stored in the memory 801 and executable on the processor 802 .
[0087] When the processor 802 executes the program, the general simulation dynamic monitoring and analysis method provided in the above embodiment is implemented.
[0088] Furthermore, the electronic device further comprises:
[0089] The communication interface 803 is used for communication between the memory 801 and the processor 802 .
[0090] The memory 801 is used to store computer programs that can be executed on the processor 802 .
[0091] The memory 801 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0092] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0093] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.
[0094] The processor 802 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0095] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned general simulation dynamic monitoring and analysis method.
[0096] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0097] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0098] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0099] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.
[0100] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0101] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0103] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A general simulation dynamic monitoring and analysis system, It is characterized in that include: A simulation environment construction module is used to determine the simulation data structure, simulation data chart type and layout, general query logic scheme and business logic operation strategy of the target device to be simulated based on the interface protocol with multiple types of formats in the target device to be simulated and in combination with the simulation requirements of the target device to be simulated, and to build a dynamic simulation environment corresponding to the target device to be simulated based on the simulation data structure, the simulation data chart type and layout, the general query logic scheme and the business logic operation strategy; A simulation data processing module, used for obtaining a simulation result data set according to the simulation data structure and the preset memory data structure of the target device to be simulated in the dynamic simulation environment, and establishing a corresponding memory file for each simulation file in the simulation result data set, so as to perform data generalization processing on the simulation data corresponding to each simulation file through the memory file based on the dynamic simulation environment, and obtain a simulation business processing result, a communication topology diagram and a simulation data query result, wherein the data generalization processing includes at least one of data query, data retrieval and data merging, and the simulation data query result includes a general query result and a combination condition query result; The simulation process backtracking module is used to generate a variety of data charts of the simulation business processing results based on the simulation business processing results, the simulation data query results and the preset simulation management strategy, and dynamically display the operating parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters.
2. The system according to claim 1, It is characterized in that Also includes: The display interface module is used to display the simulation business processing results, the various data charts, the communication topology diagram and the simulation data query results.
3. The system according to claim 1, It is characterized in that The simulation environment building module includes: A simulation data structure unit, used for constructing a simulation data hierarchical structure according to the interface protocols of the plurality of types of formats; A simulation data chart object unit, used to load a variety of data chart objects through a plurality of preset simulation data chart models; A general query logic unit, used for dynamically querying the data in the simulation data hierarchy structure according to the simulation clock cycle to obtain the general query result; A combined query logic unit, used to query the data corresponding to the multiple field structures in each simulation file based on a preset matching combination condition, so as to obtain the combined condition query results corresponding to the multiple field structures; The business logic operation unit is used to decouple simulation operations that meet preset computing requirements by utilizing a preset multi-threaded processing mechanism.
4. The system according to claim 1, It is characterized in that The simulation data processing module comprises: A data import unit, used for acquiring a simulation result data set of the target device to be simulated, and parsing each simulation file in the simulation result data set to generate a parsed simulation file; A memory partitioning unit, configured to establish the corresponding memory file for each simulation file based on the parsed simulation file, and store each simulation file in the corresponding memory file; A business main control unit, configured to perform a preset data processing operation on the simulation data corresponding to the simulation result data set based on the memory file to obtain the simulation business processing result; A query display unit, used to display the simulation business processing result and the simulation data query result; A topology generating unit is used to draw the communication topology diagram according to the simulation data corresponding to the simulation result data set.
5. The system according to claim 3, It is characterized in that The simulation process backtracking module comprises: A simulation submodule management unit, used to generate at least one target sub-functional unit that meets the preset simulation requirements, so as to call the at least one target sub-functional unit to perform corresponding simulation operations through the simulation data and the simulation business processing results; A chart generating unit, used for drawing and displaying a plurality of data charts corresponding to the simulation business processing results according to the plurality of data chart objects; The dynamic display unit is used to trace back the simulation data and the simulation business processing results according to the simulation clock cycle, and to find and display the problems existing in the simulation process of the target device to be simulated.
6. A general simulation dynamic monitoring and analysis method, It is characterized in that The following steps are involved: Based on the interface protocols with various types of formats in the target device to be simulated, and in combination with the simulation requirements of the target device to be simulated, the simulation data structure, simulation data chart type and layout, general query logic scheme and business logic operation strategy of the target device to be simulated are determined, and a dynamic simulation environment corresponding to the target device to be simulated is built based on the simulation data structure, the simulation data chart type and layout, the general query logic scheme and the business logic operation strategy; In the dynamic simulation environment, according to the simulation data structure and the preset memory data structure of the target device to be simulated, a simulation result data set is obtained, and a corresponding memory file is established for each simulation file in the simulation result data set, so as to perform data generalization processing on the simulation data corresponding to each simulation file through the memory file based on the dynamic simulation environment, and obtain simulation business processing results, communication topology diagrams and simulation data query results, wherein the data generalization processing includes at least one of data query, data retrieval and data merging; Based on the simulation business processing results, the simulation data query results and the preset simulation management strategy, a variety of data charts of the simulation business processing results are generated, and the operating parameters of the simulation process are dynamically displayed according to the simulation clock cycle in each simulation file, so as to trace back the operating status of the simulation process within any simulation clock cycle through the operating parameters.
7. The method according to claim 6, It is characterized in that The method of obtaining a simulation result data set according to the simulation data structure and the preset memory data structure of the target device to be simulated in the dynamic simulation environment, and establishing a corresponding memory file for each simulation file in the simulation result data set, so as to perform data generalization processing on the simulation data corresponding to each simulation file through the memory file based on the dynamic simulation environment, and obtain a simulation business processing result, a communication topology diagram and a simulation data query result, including: Acquire a simulation result data set of the target device to be simulated, and parse each simulation file in the simulation result data set to generate a parsed simulation file; Based on the parsed simulation file, the corresponding memory file is established for each simulation file, and each simulation file is stored in the corresponding memory file; Based on the memory file, a preset data processing operation is performed on the simulation data corresponding to the simulation result data set to obtain the simulation business processing result, and the communication topology diagram is drawn according to the simulation data corresponding to the simulation result data set.
8. The method according to claim 6, It is characterized in that The dynamically displaying the operation parameters of the simulation process according to the simulation clock cycle in each simulation file, so as to trace back the operation status of the simulation process in any simulation clock cycle through the operation parameters, comprises: The simulation data and the simulation business processing results are back-traced according to the simulation clock cycle to obtain simulation process running parameters, and the simulation process running parameters are used to find and display problems existing in the simulation process of the target device to be simulated.
9. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the general simulation dynamic monitoring and analysis method as described in any one of claims 6 to 8.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the general simulation dynamic monitoring and analysis method as described in any one of claims 6 to 8.
