Graphics processing method and device for simulation test system

By creating absolutely positioned vector graphics and graph neural network model analysis in the simulation test system, the problem of inaccurate positioning and difficult view synchronization in graphics editing is solved, and efficient and accurate graphics rendering and operation experience is achieved.

CN118760387BActive Publication Date: 2024-12-06KAIYUN LIANCHUANG (BEIJING) TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411234304.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-06
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

Existing simulation testing systems have problems such as inaccurate positioning, complex operation and difficulty in view synchronization in graphics editing. Especially when SVG image scaling, coordinate calculation of temporary line segment elements leads to waste of performance and delayed view update, resulting in view exceptions.

Method used

Create the first vector diagram and the second vector diagram in the graphic editing container of the simulation test system with relative positioning, place the channel elements according to the static placement instructions, and update the drawing of temporary channel elements through the mouse operation event, and analyze the topology using the graph neural network model Relationships to determine channel types, realize absolute positioning and intelligent management.

Benefits of technology

It improves the accuracy and reliability of graphics drawing and rendering in the simulation test system, reduces manual operation complexity, improves operation efficiency and user experience, and ensures the synchronization and consistency of views.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760387B_ABST
    Figure CN118760387B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a simulation test system graphics processing method and device, the method comprising: creating a first vector diagram and a second vector diagram in a simulation test system graphics editing container with relative positioning, placing channel elements in the first vector diagram according to static placement instructions, and placing corresponding temporary channel elements in the second vector diagram, obtaining the pointer coordinates of the mouse pointer during mouse operation, updating and drawing the temporary channel elements in the second vector diagram according to the pointer coordinates, and performing element topological relationship analysis on two device elements connected to the temporary channel elements according to a set graph neural network image element analysis model, determining the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updating and drawing the channel elements in the first vector diagram according to the temporary channel elements, and setting the temporary channel elements to a hidden state; the present application can effectively improve the accuracy and reliability of graphics drawing and rendering in the simulation test system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a method and device for processing graphics in a simulation test system. Background Art

[0002] In the existing simulation test system, the working environment of a certain system or device in reality is simulated by software simulation in order to carry out measurement and control work. Device is the abbreviation of various terminals in the simulation environment, and the device can generate or consume data. In the whole system, each device is connected using channels and performs data communication. There are two types of existing system devices. The first is the simulation device (script), which is the test executor and the object of the script simulation; the second is the physical device, which can be the device under test in different systems, such as equipment used in electrical, mechanical, chemical, hydraulic, thermal and other systems. Using simulation devices instead of physical devices for testing and verification can avoid damage to physical devices or affect actual production and operation. In the simulation environment, in order to make the development of measurement and control systems easy and simple, the existing technology provides many graphic editors. Graphic editors are developed based on SVG.

[0003] SVG is an XML-based vector graphics format that uses mathematical formulas and geometric descriptions to represent images, so it can be scaled and enlarged losslessly without distortion or blurring like bitmap images. However, in the interactive graphics editor, when an SVG image is scaled, when the mouse is used to connect two graphic elements, the line segments will be offset in position due to the change in coordinates after scaling, resulting in abnormal viewing.

[0004] Existing solutions and technologies: To ensure that the view of the editor is normal during the interaction under zoom conditions, it is necessary to correctly handle the coordinates of temporary line segment elements to avoid offset. Usually, calculations are performed based on the zoom factor and the moving distance during the mouse movement during interaction, which will have the following defects: 1. Since the new coordinates need to be calculated during movement, there is a waste of performance. 2. Since the line segment coordinates need to be updated when the calculation is completed, the view will be updated late, causing view abnormalities. Summary of the invention

[0005] In response to the problems in the prior art, the present application provides a simulation test system graphics processing method and device, which can effectively improve the accuracy and reliability of graphics drawing and rendering in the simulation test system.

[0006] In order to solve at least one of the above problems, the present application provides the following technical solutions:

[0007] In a first aspect, the present application provides a simulation test system graphics processing method, comprising:

[0008] Creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has absolute positioning in the simulation test system graphic editing container;

[0009] When a mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, and the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and an element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to a set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0010] The channel elements in the first vector image are updated and drawn according to the temporary channel elements in the second vector image, and the temporary channel elements are set to a hidden state.

[0011] Furthermore, before performing element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, it includes:

[0012] Extract the specific type and simulation test relationship of each device element in the historical sample data, and construct a topological relationship graph by taking the device element as a node and the simulation test relationship between two device elements as an edge;

[0013] The topological relationship diagram is input into a preset graph neural network model for deep learning to obtain a graph neural network image element analysis model after the deep learning.

[0014] Furthermore, the topological relationship graph is input into a preset graph neural network model for deep learning to obtain a graph neural network image element analysis model after deep learning, including:

[0015] Input the topological relationship graph into the convolutional neural network layer in the preset graph neural network model for feature extraction, and input the extracted features into the graph attention layer in the graph neural network model for device element relationship modeling to obtain a relationship representation between device elements;

[0016] The relationship representation between the device elements is input into the graph pooling layer in the graph neural network model for compression and abstraction, so as to obtain a graph neural network image element analysis model after deep learning.

[0017] Furthermore, the performing element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model includes:

[0018] Identify the specific types of two device elements connected to the temporary channel element;

[0019] The specific types of the two device elements are input into the set graph neural network image element analysis model to obtain a simulation test relationship output by the graph neural network image element analysis model, wherein the simulation test relationship includes at least one of a series relationship, a parallel relationship and a cascade relationship.

[0020] Furthermore, the step of obtaining the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation, and updating and drawing the temporary channel element in the second vector map according to the pointer coordinates, includes:

[0021] Obtaining the pointer coordinates of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is pressed and released, and obtaining the moving track of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is moved;

[0022] The temporary channel element is updated and drawn in the second vector map according to the pointer coordinates and the moving trajectory.

[0023] Further, the determining the channel type of the temporary channel element according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model includes:

[0024] Determine whether the simulation test relationship between the two device elements output by the graph neural network image element analysis model is one of a series relationship, a parallel relationship, and a cascade relationship;

[0025] If so, it is determined that the channel type of the corresponding temporary channel element is one of a series channel, a parallel channel and a cascade channel.

[0026] Furthermore, the updating and drawing of the channel element in the first vector image according to the temporary channel element in the second vector image, and setting the temporary channel element to a hidden state, includes:

[0027] Redrawing the channel elements in the first vector diagram according to the coordinate parameters and line parameters of the temporary channel elements in the second vector diagram;

[0028] The second vector image and the temporary channel element are set to a hidden state.

[0029] In a second aspect, the present application provides a simulation test system graphics processing device, comprising:

[0030] A dual vector diagram creation module, used to create a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, wherein the first vector diagram and the second vector diagram have an absolute positioning relationship, receive a static placement instruction of a channel element sent by a user, place the channel element in the first vector diagram according to the static placement instruction, and place a corresponding temporary channel element in the second vector diagram, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0031] A channel element determination module is used to obtain the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation when monitoring the mouse operation event of the user, update and draw the temporary channel element in the second vector diagram according to the pointer coordinates, and perform element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and determine the channel type of the temporary channel element according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0032] A channel element drawing module is used to update and draw the channel elements in the first vector image according to the temporary channel elements in the second vector image, and set the temporary channel elements to a hidden state.

[0033] In a third aspect, 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 implements the steps of the simulation test system graphics processing method when executing the program.

[0034] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the simulation test system graphics processing method.

[0035] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which implements the steps of the simulation test system graphics processing method when executed by a processor.

[0036] It can be seen from the above technical scheme that the present application provides a simulation test system graphics processing method and device, by creating a first vector diagram and a second vector diagram in a simulation test system graphics editing container with relative positioning, placing channel elements in the first vector diagram according to static placement instructions, and placing corresponding temporary channel elements in the second vector diagram, obtaining the pointer coordinates of the mouse pointer during mouse operation, updating and drawing the temporary channel elements in the second vector diagram according to the pointer coordinates, and performing element topological relationship analysis on the two device elements connected to the temporary channel elements according to the set graph neural network image element analysis model, determining the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updating and drawing the channel elements in the first vector diagram according to the temporary channel elements, and setting the temporary channel elements to a hidden state, thereby effectively improving the accuracy and reliability of graphics drawing and rendering in the simulation test system. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 This is one of the flowcharts of the graphics processing method of the simulation test system in the embodiment of the present application;

[0039] Figure 2 The second flowchart of the graphics processing method of the simulation test system in the embodiment of the present application;

[0040] Figure 3 The third flowchart of the graphics processing method of the simulation test system in the embodiment of the present application;

[0041] Figure 4 The fourth flowchart of the graphics processing method of the simulation test system in the embodiment of the present application;

[0042] Figure 5 FIG5 is a flowchart of a graphics processing method for a simulation test system in an embodiment of the present application;

[0043] Figure 6 This is a sixth flow chart of the graphics processing method of the simulation test system in the embodiment of the present application;

[0044] Figure 7 FIG7 is a flowchart of a graphics processing method for a simulation test system in an embodiment of the present application;

[0045] Figure 8It is a structural diagram of a graphics processing device of a simulation test system in an embodiment of the present application;

[0046] Fig. 9 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application.

[0047] Reference numerals:

[0048] Electronic device 9600, central processing unit 9100, memory 9140, communication module 9110, input unit 9120, audio processor 9130, display 9160, power supply 9170, buffer memory 9141, application / function storage unit 9142, data storage unit 9143, driver program storage unit 9144, antenna 9111, speaker 9131, microphone 9132. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0051] In view of the problems existing in the prior art, the present application provides a simulation test system graphics processing method and device, which creates a first vector diagram and a second vector diagram in a simulation test system graphics editing container with relative positioning, places channel elements in the first vector diagram according to static placement instructions, and places corresponding temporary channel elements in the second vector diagram, obtains the pointer coordinates of the mouse pointer during mouse operation, updates and draws the temporary channel elements in the second vector diagram according to the pointer coordinates, and performs element topological relationship analysis on the two device elements connected to the temporary channel elements according to a set graph neural network image element analysis model, determines the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updates and draws the channel elements in the first vector diagram according to the temporary channel elements, thereby effectively improving the accuracy and reliability of graphics drawing and rendering in the simulation test system.

[0052] In order to effectively improve the accuracy and reliability of graphics rendering in a simulation test system, the present application provides an embodiment of a simulation test system graphics processing method, see Figure 1 The simulation test system graphics processing method specifically includes the following contents:

[0053] Step S101: creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0054] Optionally, in this embodiment, step S101 describes how to create a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, and place channel elements in the two vector images respectively according to user instructions. This process realizes the visual configuration and management of the simulation environment through the absolute positioning of the vector image and the static placement of the channel elements.

[0055] First, the system creates the first vector graph and the second vector graph in a relatively positioned simulation test system graphic editing container. A vector graph is a type of graph based on mathematical description, which constructs complex graphs through basic elements such as points, lines, and polygons. Relative positioning means that the positional relationship of the vector graph in the graphic editing container is relative to the container, rather than fixed to a specific coordinate. There is an absolute positioning relationship between the first vector graph and the second vector graph, that is, their relative positions are fixed and determined. In the specific implementation process, the system first initializes the graphic editing container and creates two independent vector graph objects in the container. Each vector graph object contains a set of graphic elements and positioning information to ensure that their positions and relationships in the editing container are clear.

[0056] Next, the system receives the static placement instructions of the channel elements sent by the user. The user selects and determines the channel elements to be placed and their positions through the graphical editing interface. The static placement instructions include the type, size, color and specific coordinate position of the channel elements in the first vector diagram. The implementation of this step relies on the graphical user interface (GUI) technology. The user can intuitively define the position and properties of the channel elements through operations such as dragging and clicking. The system captures the user's operations through the event monitoring mechanism and parses and generates corresponding placement instructions.

[0057] After receiving the static placement instruction, the system places the channel element in the first vector diagram according to the instruction, and places the corresponding temporary channel element in the second vector diagram. The channel element has absolute positioning in the first vector diagram, that is, its position and size are determined relative to the fixed coordinate system of the first vector diagram. The system adds the channel element to the element list of the first vector diagram based on the coordinates and attribute information provided by the user, and updates the graphic display. In the second vector diagram, the system places a corresponding temporary channel element to indicate the existence and position of the channel element. The role of the temporary channel element is to assist users in synchronously viewing and operating channel elements in different views or levels to ensure the consistency and operability of the simulation environment.

[0058] This embodiment solves the problems of inaccurate positioning, complex operation and difficult view synchronization in traditional graphic editing. Through the absolute positioning and static placement of the vector diagram, the system can accurately and quickly complete the placement and display of channel elements, improving the efficiency and accuracy of graphic editing. Users can intuitively define and adjust the position and properties of channel elements in the graphical interface, reducing the complexity and error rate of manual operations. In addition, by placing temporary channel elements in the second vector diagram, the system realizes synchronization and collaborative operation between different views, improving the overall experience and effect of simulation testing.

[0059] In practical applications, this embodiment can significantly improve the configuration and management efficiency of the simulation environment. For example, in a simulation test of an industrial control system, engineers need to frequently configure and adjust various sensors and control channels. Through this embodiment, engineers can intuitively create and operate sensor channels in a graphic editing container, and the system automatically completes the placement and view synchronization of channel elements, significantly improving the efficiency and accuracy of configuration. Engineers can quickly adjust the position and properties of channels by dragging and clicking, reducing the workload of manual input and adjustment, and improving the overall simulation test effect.

[0060] In general, step S101 achieves high efficiency and intuitiveness of graphic editing of the simulation test system by creating relatively positioned vector diagrams and absolutely positioned channel elements.

[0061] Step S102: when the mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and the element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0062] Optionally, in this embodiment, step S102 describes how to obtain the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container when monitoring the user's mouse operation event, and update the temporary channel element in the second vector diagram. At the same time, based on the set graph neural network image element analysis model, the topological relationship analysis of the two device elements connected to the temporary channel element is performed, and the type of the channel element is determined. This process realizes the dynamic configuration and optimization of the simulation environment through real-time interaction and intelligent analysis.

[0063] First, when the system listens to the user's mouse operation events, such as clicks and drags, the system obtains the pointer coordinates of the mouse pointer relative to the fixed window boundary of the graphic editing container. In the specific implementation process, the system captures the user's mouse operation events through the event monitoring mechanism and calls the corresponding API to obtain the current position of the mouse pointer. The pointer coordinates are defined relative to the fixed window boundary of the graphic editing container, which ensures the consistency and accuracy of the coordinates. After obtaining the pointer coordinates, the system uses them as the basic data for subsequent operations, for updating the graphical interface and performing topological analysis.

[0064] Next, the system updates and draws the temporary channel element in the second vector map based on the obtained pointer coordinates. The temporary channel element is used to represent the temporary state of the user's current operation so that the user can intuitively see the operation effect. The system calculates the starting and ending positions of the temporary channel element based on the pointer coordinates and draws it in the second vector map. In the specific implementation process, the system calls the graphics drawing library or framework to render the temporary channel element into the vector map. During the drawing process, the system ensures that the style, color, and position of the temporary channel element meet the user's expectations and system settings, thereby improving the user's operating experience.

[0065] At the same time, the system performs a topological relationship analysis on the two device elements connected to the temporary channel element based on the set graph neural network image element analysis model. Graph neural network (GNN) is a deep learning model for processing graph structure data, which is suitable for analyzing complex relationships between nodes and edges. In the simulation test system, device elements and channel elements can be regarded as nodes and edges of graph structure data. The system uses a pre-trained graph neural network model to perform a topological structure analysis on the device elements connected to the temporary channel element to determine the association relationship between them. In the specific implementation process, the system inputs the feature data of the device elements and channel elements into the graph neural network model, and the model outputs the topological relationship and simulation test relationship of the device elements.

[0066] Based on the output results of the graph neural network image element analysis model, the system determines the channel type of the temporary channel element. Channel types may include electrical connections, data transmission, control signals, etc. The specific type depends on the simulation test relationship between the device elements. The system dynamically updates the properties of the temporary channel element based on the results of the model output and displays them accordingly in the graphical interface. In this way, the system can intelligently identify and determine the intention and results of the user's operation, and improve the accuracy and intelligence level of the simulation test.

[0067] This embodiment solves the problem of insufficient real-time interaction and intelligent analysis in traditional graphic editing. By acquiring pointer coordinates in real time, dynamically updating temporary channel elements and intelligent topology analysis, the system can provide instant feedback and intelligent suggestions during user operations, improving the efficiency and accuracy of operations. Users can intuitively see the operation effects and make adjustments and optimizations based on the system's intelligent analysis results, reducing the complexity and error rate of manual operations.

[0068] In practical applications, this embodiment can significantly improve the interactivity and intelligence level of the simulation test system. For example, in a smart grid simulation test system, engineers need to frequently configure and adjust various electrical equipment and connection channels. Through this embodiment, engineers can intuitively create and operate electrical equipment connections in a graphic editing container. The system automatically obtains the mouse pointer coordinates, updates temporary channel elements, and performs intelligent topology analysis, which significantly improves the efficiency and accuracy of the configuration. Engineers can quickly adjust device connections and channel types based on the system's intelligent suggestions to improve the overall simulation test effect.

[0069] In general, step S102 realizes the efficiency and intelligence of the graphics editing of the simulation test system through real-time interaction and intelligent analysis.

[0070] Step S103: updating and drawing the channel elements in the first vector image according to the temporary channel elements in the second vector image, and setting the temporary channel elements to a hidden state.

[0071] Optionally, in this embodiment, step S103 describes how to update and draw the channel elements in the first vector diagram according to the temporary channel elements in the second vector diagram, and set the temporary channel elements to a hidden state. This process achieves dynamic adjustment and optimization of the simulation environment through synchronous update and state management.

[0072] After the user completes the operation of the temporary channel element in the simulation test system, the system needs to reflect the user's operation results in the first vector diagram. In the specific implementation process, the system first obtains the attribute and position data of the temporary channel element drawn in the second vector diagram, which includes the starting and ending coordinates, type, color, width, etc. of the channel element. The system accurately extracts this attribute information through internal data structures or API calls to provide basic data for subsequent drawing operations.

[0073] Next, the system updates and draws the channel elements in the first vector image based on the acquired temporary channel element attributes and position data. The system calls the graphics drawing library or framework to render the channel elements in the first vector image according to the extracted attributes and position data. During the drawing process, the system ensures that the style and attributes of the channel elements are consistent with the user's operations in the second vector image, ensuring accurate reflection of the user's operation results. In the specific implementation process, the system may use vector graphics libraries such as SVG or Canvas to achieve efficient graphics rendering and updating.

[0074] After completing the drawing of the channel elements in the first vector image, the system sets the temporary channel elements in the second vector image to a hidden state. The temporary channel elements are used to display the operation effects in real time during the user operation, but after the operation is completed, they need to be hidden to avoid interface clutter. The system removes the temporary channel elements from the rendering list of the second vector image or sets their transparency to zero by setting the visibility attribute of the temporary channel elements. In the specific implementation process, the system may call the attribute setting method of the graphics library to update the display state of the temporary channel elements to hidden.

[0075] This embodiment solves the problem of difficulty in synchronizing operation results between different views in traditional graphic editing. By updating the channel elements in the first vector diagram in real time after the user operation is completed and hiding the temporary channel elements, the system achieves accurate reflection of the operation results and simplicity of the interface. Users can intuitively view and confirm the operation results through the first vector diagram to ensure the accuracy and consistency of the simulation environment configuration. At the same time, by hiding the temporary channel elements, the system avoids visual interference on the interface and improves the user experience.

[0076] In practical applications, this embodiment can significantly improve the operational efficiency and user experience of the simulation test system. For example, in a network simulation test system, users need to frequently configure and adjust network nodes and connection channels. Through this embodiment, users can intuitively operate and adjust the connection channels in the second vector diagram, and the system automatically updates the operation results to the first vector diagram and hides the temporary channel elements to ensure accurate reflection of the operation results and simplicity of the interface. Users can quickly view and confirm the configuration of the connection channel, reducing the time for manual adjustment and confirmation, and improving the efficiency and effect of the overall simulation test.

[0077] In general, step S103 achieves high efficiency and consistency of graphics editing in the simulation test system through synchronous updating and state management.

[0078] From the above description, it can be seen that the simulation test system graphics processing method provided in the embodiment of the present application can create a first vector diagram and a second vector diagram in a simulation test system graphics editing container with relative positioning, place the channel element in the first vector diagram according to the static placement instruction, and place the corresponding temporary channel element in the second vector diagram, obtain the pointer coordinates of the mouse pointer during mouse operation, update and draw the temporary channel element in the second vector diagram according to the pointer coordinates, and perform element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, determine the channel type of the temporary channel element according to the simulation test relationship between the two device elements; update and draw the channel element in the first vector diagram according to the temporary channel element, thereby effectively improving the accuracy and reliability of graphics drawing and rendering in the simulation test system.

[0079] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 2 , and can also include the following:

[0080] Step S201: extracting the specific type and simulation test relationship of each device element in the historical sample data, taking the device element as a node and the simulation test relationship between two device elements as an edge to construct a topological relationship graph;

[0081] Step S202: input the topological relationship graph into a preset graph neural network model for deep learning to obtain a graph neural network image element analysis model after the deep learning.

[0082] Optionally, in this embodiment, steps S201 and S202 describe how to extract the specific types and simulation test relationships of device elements in historical sample data, construct a topological relationship diagram, and input it into a preset graph neural network model for deep learning, and finally obtain a trained graph neural network image element analysis model. This process realizes the construction and optimization of intelligent analysis models through data extraction and deep learning.

[0083] First, the system extracts the specific type and simulation test relationship of each device element from the historical sample data. The historical sample data includes a large number of known device elements and their interactive relationships in simulation tests. These data are usually stored in a structured form, such as a database or file. The system obtains the attribute information of each device element through query and parsing, including type, function, connection method, etc. At the same time, the system also extracts the simulation test relationship between each pair of device elements. These relationships can be electrical connections, data transmission, control signals, etc. Through data extraction, the system obtains complete information about device elements and simulation test relationships, providing basic data for the subsequent construction of topological relationship diagrams.

[0084] Next, the system uses the extracted device elements as nodes and the simulation test relationship between the two device elements as edges to construct a topological relationship graph. A topological relationship graph is a graph structure used to represent the relationship between nodes and edges, where nodes represent device elements and edges represent the test relationship between device elements. The system traverses the extracted data, adds the device elements as nodes of the graph in turn, and adds corresponding edges based on the relationship between the device elements. In the specific implementation process, the system may use graph structure libraries such as NetworkX or GraphX ​​to efficiently build and manage topological relationship graphs. By constructing a topological relationship graph, the system can intuitively represent the interaction relationship between device elements and provide structured data for subsequent deep learning.

[0085] After completing the construction of the topological relationship graph, the system inputs it into the preset graph neural network (GNN) model for deep learning. Graph neural network is a deep learning model specifically designed to process graph structure data, which can effectively capture the complex relationship between nodes and edges. The system takes the node and edge information of the topological relationship graph as input and passes it to the preset graph neural network model. The model extracts features and models relationships of graph structure data through multi-layer neural networks and message passing mechanisms. In the specific implementation process, the system may use deep learning frameworks such as TensorFlow or PyTorch, combined with graph neural network libraries such as DGL or PyTorch Geometric, to achieve efficient model training and optimization.

[0086] After deep learning training, the system obtains a trained graph neural network image element analysis model. This model can intelligently analyze the relationship between device elements based on the input topological relationship diagram and output relevant information for simulation testing. Through continuous training and optimization, the prediction accuracy and robustness of the model are significantly improved. In the specific implementation process, the system may conduct multiple rounds of training and verification to ensure the convergence and performance of the model.

[0087] This embodiment solves the problem of insufficient accuracy of relationship analysis and prediction in traditional simulation test systems. By extracting historical sample data, building a topological relationship diagram and deep learning, the system can establish an efficient image element analysis model and improve the intelligent level of simulation testing. When using the simulation test system, users can rely on the intelligent analysis of the model to quickly obtain accurate prediction results of device elements and test relationships, reducing the workload and error rate of manual analysis.

[0088] In practical applications, this embodiment can significantly improve the intelligence and prediction accuracy of the simulation test system. For example, in the smart grid simulation test system, engineers need to analyze a large number of electrical devices and connection relationships. Through this embodiment, the system can learn the device and connection relationship from historical data, build an intelligent analysis model, help engineers quickly identify and predict the performance and fault conditions of device connections, and improve the efficiency and effect of simulation testing.

[0089] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 3 , and can also include the following:

[0090] Step S301: input the topological relationship graph into the convolutional neural network layer in the preset graph neural network model for feature extraction, and input the extracted features into the graph attention layer in the graph neural network model for device element relationship modeling to obtain a relationship representation between device elements;

[0091] Step S302: Input the relationship representation between the device elements into the graph pooling layer in the graph neural network model for compression and abstraction, and obtain a graph neural network image element analysis model after deep learning.

[0092] Optionally, in this embodiment, steps S301 and S302 describe in detail how to input the topological relationship graph into a preset graph neural network model, and finally obtain a graph neural network image element analysis model after deep learning through feature extraction of the convolutional neural network layer, relationship modeling of the graph attention layer, and compression abstraction of the graph pooling layer. This process realizes intelligent analysis and optimization of device element relationships through a multi-layer neural network structure.

[0093] First, the system inputs the constructed topological relationship graph into the convolutional neural network layer (GCN) in the preset graph neural network model for feature extraction. The topological relationship graph contains structural information of device elements as nodes and the simulation test relationships between them as edges. The convolutional neural network layer can extract high-order features of each node through node neighbor information aggregation and convolution operations. These features not only contain the attribute information of the node itself, but also integrate the influence of its neighboring nodes, thereby more comprehensively representing the characteristics of the device elements. In the specific implementation process, the system may use graph convolution operations, such as convolution based on the adjacency matrix or convolution based on the spectral method, to efficiently extract features.

[0094] Next, the system inputs the features extracted by the convolutional neural network layer into the graph attention layer (GAT) in the graph neural network model to model the device element relationship. The graph attention layer uses the attention mechanism to perform weighted aggregation on each node and its neighboring nodes, thereby more accurately modeling the relationship between nodes. The attention mechanism dynamically adjusts the weight of each neighbor node based on the similarity and correlation of node features, so that important relationships receive higher attention. In this way, the graph attention layer can capture the complex interactions between device elements and generate a more accurate relationship representation. In the specific implementation process, the system may use a multi-head attention mechanism to further improve the representation ability and robustness of the model.

[0095] After completing the modeling of the device element relationship, the system inputs the obtained relationship representation into the graph pooling layer in the graph neural network model for compression and abstraction. The main function of the graph pooling layer is to downsample and aggregate features of the graph structure, reducing the scale of the graph while retaining important structural information and features. Through the pooling operation, the system can compress the high-dimensional relationship representation into a low-dimensional abstract representation, which not only reduces the computational complexity but also retains key relationship information. In the specific implementation process, the system may use a pooling method based on node importance, such as Top-K pooling or graph convolution-based pooling, to achieve efficient graph compression and feature aggregation.

[0096] After compression and abstraction of the graph pooling layer, the system finally obtains a graph neural network image element analysis model after deep learning. This model can intelligently analyze the relationship between device elements based on the input topological relationship graph and output relevant information for simulation testing. Through feature extraction, relationship modeling and compression abstraction of multi-layer neural networks, the model has efficient representation and prediction capabilities and can accurately capture the complex relationships between device elements. In the specific implementation process, the system may conduct multiple rounds of training and verification to ensure the convergence and performance of the model.

[0097] This embodiment solves the problem of insufficient accuracy of relationship analysis and prediction in traditional simulation test systems. Through feature extraction of the convolutional neural network layer, relationship modeling of the graph attention layer, and compression abstraction of the graph pooling layer, the system can establish an efficient image element analysis model and improve the intelligence level of simulation testing. When using the simulation test system, users can rely on the intelligent analysis of the model to quickly obtain accurate prediction results of device elements and test relationships, reducing the workload and error rate of manual analysis.

[0098] In practical applications, this embodiment can significantly improve the intelligence and prediction accuracy of the simulation test system. For example, in the intelligent traffic simulation test system, engineers need to analyze a large number of traffic equipment and connection relationships. Through this embodiment, the system can learn equipment and connection relationships from historical data, build an intelligent analysis model, help engineers quickly identify and predict the performance and failure conditions of traffic equipment, and improve the efficiency and effect of simulation testing.

[0099] In general, steps S301 and S302 implement the construction and optimization of the intelligent analysis model of the simulation test system through feature extraction, relationship modeling and compression abstraction of multi-layer neural networks.

[0100] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 4 , and can also include the following:

[0101] Step S401: Identify the specific types of two device elements connected to the temporary channel element;

[0102] Step S402: Input the specific types of the two device elements into the set graph neural network image element analysis model to obtain a simulation test relationship output by the graph neural network image element analysis model, wherein the simulation test relationship includes at least one of a series relationship, a parallel relationship and a cascade relationship.

[0103] Optionally, in this embodiment, steps S401 and S402 describe how to identify the specific types of the two device elements connected by the temporary channel element, and input them into the preset graph neural network image element analysis model to obtain the corresponding simulation test relationship. This process realizes the automation and intelligence of device relationship identification through device type identification and intelligent model analysis.

[0104] First, the system needs to identify the specific types of the two device elements connected by the temporary channel element. The temporary channel element is created by the user when operating on the simulation interface and is used to represent the connection relationship between devices. The system determines the device element to which it is connected by analyzing the starting point and end point of the temporary channel element. In the specific implementation process, the system can find the corresponding device element through the unique identifier (such as ID) or location coordinates of the device element. Then, the system accesses the attribute database of the device element to obtain its specific type information. This type information usually includes the functional attributes of the device, such as power supply, load, switch, etc. By accurately identifying the type of device elements, the system provides basic data for subsequent intelligent analysis.

[0105] Next, the system inputs the specific types of the two identified device elements into the preset graph neural network image element analysis model. This model has been trained and can intelligently analyze the relationship between devices based on the input device type information. The system inputs the device type information into the model in a specific format, such as encoding the type as a vector or other suitable input form. The graph neural network model processes and analyzes the input data through its internal multi-layer neural network structure. In the specific implementation process, the system may use deep learning frameworks such as TensorFlow or PyTorch, combined with graph neural network libraries such as DGL or PyTorch Geometric, to achieve efficient model reasoning and analysis.

[0106] After analysis by the graph neural network model, the system obtains the simulation test relationship between the device elements. The simulation test relationship includes at least one of a series relationship, a parallel relationship, and a cascade relationship. The series relationship means that the device elements are connected one by one, and the current or signal passes through each device in turn; the parallel relationship means that the device elements are connected side by side, and the current or signal is shunted through multiple devices; the cascade relationship means that the device elements are connected in a specific hierarchy or sequence to form a multi-level structure. Through the analysis of the intelligent model, the system can accurately determine the specific relationship between the two device elements and output the corresponding test relationship. In the specific implementation process, the system may output the probability distribution of the relationship or the direct relationship category for subsequent simulation tests.

[0107] This embodiment solves the problem that the identification of device relationships in traditional simulation test systems relies on manual judgment and is inefficient. Through device type identification and intelligent model analysis, the system can automatically identify the relationship between devices, significantly improving the efficiency and accuracy of the test. When operating the simulation test system, users can rely on the system's intelligent analysis to quickly obtain accurate judgments on device connection relationships, reducing the workload and error rate of manual analysis.

[0108] In practical applications, this embodiment can significantly improve the intelligence and operational efficiency of the simulation test system. For example, in the power system simulation test, engineers need to frequently configure and adjust the connection relationship of power equipment. Through this embodiment, the system can automatically identify the device type and intelligently determine the connection relationship between devices, helping engineers to quickly complete configuration and adjustment, and improve the efficiency and effect of simulation testing.

[0109] In general, steps S401 and S402 realize the automation and intelligence of the equipment relationship identification of the simulation test system through equipment type identification and intelligent model analysis.

[0110] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 5 , and can also include the following:

[0111] Step S501: obtaining the pointer coordinates of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is pressed and released, and obtaining the moving track of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is moved;

[0112] Step S502: updating and drawing the temporary channel element in the second vector map according to the pointer coordinates and the moving trajectory.

[0113] Optionally, in this embodiment, steps S501 and S502 describe how to update and draw temporary channel elements in the graphic editing container of the simulation test system by obtaining mouse operation information, thereby realizing visualization and interaction of connection relationships. This process ensures the real-time and accuracy of user operations through mouse event capture and graphic update mechanisms.

[0114] First, the system needs to obtain the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container when the mouse is pressed and released, as well as the movement trajectory of the mouse pointer when the mouse moves. When the user operates in the graphic editor, the system captures mouse events through the event monitoring mechanism. In the specific implementation process, the system can use JavaScript, HTML5 Canvas or other graphics libraries, such as Qt or WPF, to monitor the mouse press, release and move events. Whenever the user presses the mouse button, the system records the coordinate position of the current pointer, which is usually a two-dimensional coordinate relative to the fixed window boundary. Subsequently, when the user moves the mouse, the system continues to record the movement trajectory of the pointer, that is, a series of continuous coordinate points. When the user releases the mouse button, the system records the final coordinate position of the pointer.

[0115] After obtaining these pointer coordinates and movement trajectories, the system needs to update and draw temporary channel elements in the second vector diagram based on this information. The second vector diagram is a graphical representation used to represent device connection relationships in the simulation test system. The system determines the shape and position of the temporary channel elements drawn by the user by parsing the initial coordinates, movement trajectory, and final coordinates of the pointer. In the specific implementation process, the system can use vector graphics drawing technology, such as SVG (Scalable Vector Graphics) or Canvas API, to dynamically update the graphics. During the drawing process, the system needs to consider the line style, color, and width attributes of the temporary channel elements to ensure their clear visibility on the graphical interface.

[0116] By updating and drawing temporary channel elements in real time, the system can intuitively display the user's operation results, allowing users to clearly see the connection relationship between devices. In this way, when users are configuring device connections, they can directly drag and draw operations through the graphical interface, and the system will respond and display the connection effect in real time. This interactive method greatly improves user experience and operating efficiency. In the specific implementation process, the system may need to smooth and optimize the graphics to ensure that the drawn temporary channel elements display smoothly and naturally.

[0117] This embodiment solves the problem of cumbersome device connection configuration operation and poor real-time performance in traditional simulation test systems. Through mouse event capture and graphic update mechanism, the system can respond to user operations in real time and dynamically update the visual representation of device connection relationships. When operating the simulation test system, users can quickly complete device connection configuration through simple drag and draw operations, reducing the complexity and error rate of manual operations.

[0118] In practical applications, this embodiment can significantly improve the interactivity and operational efficiency of the simulation test system. For example, in the power system simulation test, engineers need to frequently configure and adjust the connection relationship of power equipment. Through this embodiment, the system can capture mouse operations in real time, dynamically update the graphical representation of the device connection relationship, help engineers quickly complete configuration and adjustment, and improve the efficiency and effect of simulation testing.

[0119] In general, steps S501 and S502 achieve real-time visualization and interaction of device connection relationships in the simulation test system through mouse event capture and graphic update mechanisms.

[0120] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 6 , and can also include the following:

[0121] Step S601: determining whether the simulation test relationship between the two device elements output by the graph neural network image element analysis model is one of a series relationship, a parallel relationship and a cascade relationship;

[0122] Step S602: If yes, determine that the channel type of the corresponding temporary channel element is one of a series channel, a parallel channel and a cascade channel.

[0123] Optionally, in this embodiment, steps S601 and S602 describe in detail how to determine the connection relationship between devices through the results output by the graph neural network image element analysis model, and determine the corresponding channel type accordingly. This process realizes the intelligent and automatic connection of devices through relationship judgment and channel type determination.

[0124] First, in step S601, the system needs to determine whether the simulation test relationship between the two device elements output by the graph neural network image element analysis model is one of a series relationship, a parallel relationship, or a cascade relationship. The graph neural network image element analysis model is a trained deep learning model that can output the relationship category between devices based on the input device type and connection information. After receiving the output results of the model, the system first parses and judges the results. In the specific implementation process, the system can set a number of judgment conditions or thresholds to determine whether the relationship between the devices is one of series, parallel, or cascade based on the probability distribution or classification results of the output results. If the relationship category output by the model matches one of these predefined relationship categories, it is judged that the condition is met.

[0125] Next, in step S602, if the above judgment result is true, the system further determines that the channel type of the corresponding temporary channel element is one of a series channel, a parallel channel or a cascade channel. Temporary channel elements are created during user operation and are used to represent the connection relationship between devices. According to the judgment result of step S601, the system updates the type of the temporary channel element to the corresponding channel type. In the specific implementation process, the system can mark the temporary channel element as a series channel, a parallel channel or a cascade channel by modifying the attributes or labels of the temporary channel element. These markings not only help with relationship management within the system, but also provide clear instructions for subsequent simulation tests and visualization.

[0126] Through the above steps, the system realizes the intelligent judgment of device connection relationship and the automatic update of channel type. This embodiment solves the problem that the identification of device connection relationship in traditional simulation test system relies on manual judgment and is inefficient. Through the intelligent analysis of graph neural network model and the automatic judgment of the system, users can quickly obtain accurate judgment of device relationship and automatic update of channel type when configuring device connection, which significantly improves the operation efficiency and accuracy.

[0127] To give a specific example, in the power system simulation test, engineers need to configure and adjust the connection relationship of various power equipment. Through this embodiment, when the engineer connects two transformers on the graphical interface, the system automatically analyzes their connection relationship through the graph neural network model. If the model determines that the relationship between the two transformers is a series relationship, the system will immediately update the type of the temporary channel element to a series channel. In this way, engineers can intuitively see the connection relationship, reduce the workload of manual judgment and configuration, and improve the accuracy and efficiency of the configuration.

[0128] This embodiment has important application value in the intelligentization and operation optimization of the simulation environment. Through relationship judgment and channel type determination, the system can automatically identify and update the device connection relationship, significantly improving the intelligence level of the simulation test system. Users can rely on the system's intelligent analysis to quickly obtain accurate judgments on device connection relationships and automatic updates of channel types, reducing the complexity and error rate of manual operations.

[0129] In general, steps S601 and S602 realize the intelligence and automation of the device connection relationship in the simulation test system through the intelligent analysis of the graph neural network model and the automatic judgment of the system.

[0130] In one embodiment of the simulation test system graphics processing method of the present application, see Figure 7 , and can also include the following:

[0131] Step S701: redrawing the channel elements in the first vector diagram according to the coordinate parameters and line parameters of the temporary channel elements in the second vector diagram;

[0132] Step S702: setting the second vector image and the temporary channel element to a hidden state.

[0133] Optionally, in this embodiment, steps S701 and S702 describe how to redraw the channel element according to the parameters of the temporary channel element and set the temporary channel element and the second vector map to a hidden state. This process achieves final confirmation of the connection relationship and interface simplification through graphic updating and state management.

[0134] First, the system needs to redraw the channel elements in the first vector map according to the coordinate parameters and line parameters of the temporary channel elements in the second vector map. During the user operation, the temporary channel elements are used to display the user's connection operations in real time. After the connection relationship is finally confirmed, these temporary elements need to be converted into formal channel elements and drawn in the first vector map. In the specific implementation process, the system first reads the coordinate parameters (such as the coordinates of the starting point and the end point) and line parameters (such as color, line width, style, etc.) of the temporary channel elements. Then, the system creates a new channel element in the first vector map and draws it according to these parameters. The drawing process can use vector graphics technology, such as SVG (Scalable Vector Graphics) or Canvas API, to ensure the drawing accuracy and display effect of the channel elements. In this way, the temporary channel elements are replaced by formal channel elements, indicating the final determination of the connection relationship.

[0135] Next, the system needs to set the second vector map and temporary channel elements to a hidden state. The second vector map is used to display temporary connection effects during user operations, and after the connection relationship is finally confirmed, these temporary elements no longer need to be displayed. In the specific implementation process, the system can set the second vector map and the temporary channel elements therein to a hidden state by modifying the visibility attributes of the graphic elements. For example, when using HTML5 Canvas, the hiding effect can be achieved by clearing the corresponding area or setting the transparency of the element; when using SVG, the relevant elements can be hidden by modifying the visibility or display attributes of the element. In this way, the system interface becomes concise and clear, avoiding the interference of temporary elements on user operations.

[0136] This embodiment solves the complexity of connection relationship confirmation and interface management in traditional simulation test systems. By reading the parameters of temporary channel elements and redrawing the formal channel elements, the system realizes accurate confirmation and visual display of connection relationships. By hiding temporary elements and the second vector diagram, the system interface is simplified, improving the user's operating experience and the neatness of the interface.

[0137] To give a specific example, in the power system simulation test, engineers perform equipment connection operations through a graphical interface. When the engineer completes the connection operation and confirms it, the system first reads the various parameters of the temporary channel elements and redraws the corresponding channel elements in the formal vector diagram to indicate the final confirmation of the connection relationship. Subsequently, the system hides the second vector diagram and temporary channel elements used to display the temporary effect to keep the interface simple. In this way, engineers can view and manage the connection relationship of the equipment more clearly, reducing visual interference and operational complexity.

[0138] This embodiment has important application value in the operation optimization and interface management of the simulation environment. Through graphic updates and status management, the system can realize the final confirmation and visual display of the device connection relationship, significantly improving the operation efficiency and user experience of the simulation test system. Users can configure device connections through a simple and intuitive interface, and the system ensures the accuracy of operation and the neatness of the interface through real-time graphic updates and temporary element management.

[0139] In general, steps S701 and S702 realize the confirmation of device connection relationship and interface simplification in the simulation test system by reading parameters of temporary channel elements and redrawing formal channel elements, as well as hiding temporary elements. This embodiment has significant advantages in improving system operation efficiency and user experience, and can help users quickly and accurately complete device connection configuration, thereby improving the efficiency and effect of simulation testing.

[0140] In order to effectively improve the accuracy and reliability of graphics rendering in a simulation test system, the present application provides an embodiment of a simulation test system graphics processing device for implementing all or part of the contents of the simulation test system graphics processing method, see Figure 8 The simulation test system graphics processing device specifically includes the following contents:

[0141] A dual vector diagram creation module 10 is used to create a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, wherein the first vector diagram and the second vector diagram have an absolute positioning relationship, receive a static placement instruction of a channel element sent by a user, place the channel element in the first vector diagram according to the static placement instruction, and place a corresponding temporary channel element in the second vector diagram, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0142] The channel element determination module 20 is used to obtain the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation when monitoring the mouse operation event of the user, update and draw the temporary channel element in the second vector diagram according to the pointer coordinates, and perform element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and determine the channel type of the temporary channel element according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0143] The channel element drawing module 30 is used to update and draw the channel elements in the first vector image according to the temporary channel elements in the second vector image, and set the temporary channel elements to a hidden state.

[0144] From the above description, it can be seen that the simulation test system graphics processing device provided in the embodiment of the present application can create a first vector diagram and a second vector diagram in a simulation test system graphics editing container with relative positioning, place the channel element in the first vector diagram according to a static placement instruction, and place the corresponding temporary channel element in the second vector diagram, obtain the pointer coordinates of the mouse pointer during mouse operation, update and draw the temporary channel element in the second vector diagram according to the pointer coordinates, and perform element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, determine the channel type of the temporary channel element according to the simulation test relationship between the two device elements; update and draw the channel element in the first vector diagram according to the temporary channel element, thereby effectively improving the accuracy and reliability of graphics drawing and rendering in the simulation test system.

[0145] From the hardware level, in order to effectively improve the accuracy and reliability of graphics rendering in the simulation test system, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the simulation test system graphics processing method, and the electronic device specifically includes the following contents:

[0146] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the graphics processing device of the simulation test system and related devices such as the core business system, user terminal and related database; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the graphics processing method of the simulation test system and the embodiment of the graphics processing device of the simulation test system in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.

[0147] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.

[0148] In practical applications, part of the simulation test system graphics processing method can be executed on the electronic device side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.

[0149] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0150] Fig. 9 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig. 9 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0151] In one embodiment, the function of the simulation test system graphics processing method can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:

[0152] Step S101: creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0153] Step S102: when the mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and the element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0154] Step S103: updating and drawing the channel elements in the first vector image according to the temporary channel elements in the second vector image, and setting the temporary channel elements to a hidden state.

[0155] From the above description, it can be seen that the electronic device provided by the embodiment of the present application creates a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, places the channel element in the first vector diagram according to a static placement instruction, and places the corresponding temporary channel element in the second vector diagram, obtains the pointer coordinates of the mouse pointer during mouse operation, updates and draws the temporary channel element in the second vector diagram according to the pointer coordinates, and performs element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, determines the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updates and draws the channel element in the first vector diagram according to the temporary channel element, thereby effectively improving the accuracy and reliability of graphic drawing and rendering in the simulation test system.

[0156] In another embodiment, the simulation test system graphics processing device can be configured separately from the central processing unit 9100. For example, the simulation test system graphics processing device can be configured as a chip connected to the central processing unit 9100, and the simulation test system graphics processing method function is implemented through the control of the central processing unit.

[0157] like Fig. 9 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig. 9 In addition, the electronic device 9600 may also include Fig. 9 For components not shown, reference may be made to the prior art.

[0158] like Fig. 9As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0159] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0160] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0161] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0162] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0163] The communication module 9110 is a transmitter / receiver that sends and receives signals via the antenna 9111. The communication module 9110 (transmitter / receiver) is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0164] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module 9110 (transmitter / receiver) is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0165] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the graphics processing method for a simulation test system in the above-mentioned embodiment, in which the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all the steps of the graphics processing method for a simulation test system in the above-mentioned embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0166] Step S101: creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0167] Step S102: when the mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and the element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0168] Step S103: updating and drawing the channel elements in the first vector image according to the temporary channel elements in the second vector image, and setting the temporary channel elements to a hidden state.

[0169] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application creates a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, places the channel element in the first vector diagram according to a static placement instruction, and places the corresponding temporary channel element in the second vector diagram, obtains the pointer coordinates of the mouse pointer during mouse operation, updates and draws the temporary channel element in the second vector diagram according to the pointer coordinates, and performs element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, determines the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updates and draws the channel element in the first vector diagram according to the temporary channel element, thereby effectively improving the accuracy and reliability of graphic drawing and rendering in the simulation test system.

[0170] The embodiments of the present application also provide a computer program product capable of implementing all the steps of the graphics processing method for a simulation test system in the above embodiments, where the execution subject is a server or a client. When the computer program / instruction is executed by a processor, the steps of the graphics processing method for a simulation test system are implemented. For example, the computer program / instruction implements the following steps:

[0171] Step S101: creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has an absolute positioning in the simulation test system graphic editing container;

[0172] Step S102: when the mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and the element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model;

[0173] Step S103: updating and drawing the channel elements in the first vector image according to the temporary channel elements in the second vector image, and setting the temporary channel elements to a hidden state.

[0174] From the above description, it can be seen that the computer program product provided by the embodiment of the present application creates a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, places the channel element in the first vector diagram according to a static placement instruction, and places the corresponding temporary channel element in the second vector diagram, obtains the pointer coordinates of the mouse pointer during mouse operation, updates and draws the temporary channel element in the second vector diagram according to the pointer coordinates, and performs element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, determines the channel type of the temporary channel element according to the simulation test relationship between the two device elements; updates and draws the channel element in the first vector diagram according to the temporary channel element, thereby effectively improving the accuracy and reliability of graphic drawing and rendering in the simulation test system.

[0175] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0176] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0179] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A graphics processing method for a simulation test system, characterized in that: The method comprises: Creating a first vector image and a second vector image in a simulation test system graphic editing container with relative positioning, wherein the first vector image and the second vector image have an absolute positioning relationship, receiving a static placement instruction of a channel element sent by a user, placing the channel element in the first vector image according to the static placement instruction, and placing a corresponding temporary channel element in the second vector image, wherein the channel element has absolute positioning in the simulation test system graphic editing container; When a mouse operation event of the user is monitored, the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation are obtained, and the temporary channel element is updated and drawn in the second vector diagram according to the pointer coordinates, and an element topological relationship analysis is performed on the two device elements connected to the temporary channel element according to a set graph neural network image element analysis model, and the channel type of the temporary channel element is determined according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model; The channel elements in the first vector image are updated and drawn according to the temporary channel elements in the second vector image, and the temporary channel elements are set to a hidden state.

2. The simulation test system graphics processing method according to claim 1, characterized in that: Before performing element topological relationship analysis on two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, the method includes: Extract the specific type and simulation test relationship of each device element in the historical sample data, and construct a topological relationship graph by taking the device element as a node and the simulation test relationship between two device elements as an edge; The topological relationship diagram is input into a preset graph neural network model for deep learning to obtain a graph neural network image element analysis model after the deep learning.

3. The simulation test system graphics processing method according to claim 2, characterized in that: The step of inputting the topological relationship graph into a preset graph neural network model for deep learning to obtain a graph neural network image element analysis model after deep learning includes: Input the topological relationship graph into the convolutional neural network layer in the preset graph neural network model for feature extraction, and input the extracted features into the graph attention layer in the graph neural network model for device element relationship modeling to obtain a relationship representation between device elements; The relationship representation between the device elements is input into the graph pooling layer in the graph neural network model for compression and abstraction, so as to obtain a graph neural network image element analysis model after deep learning.

4. The simulation test system graphics processing method according to claim 1, characterized in that: The performing element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model includes: Identify the specific types of two device elements connected to the temporary channel element; The specific types of the two device elements are input into the set graph neural network image element analysis model to obtain a simulation test relationship output by the graph neural network image element analysis model, wherein the simulation test relationship includes at least one of a series relationship, a parallel relationship and a cascade relationship.

5. The simulation test system graphics processing method according to claim 1, characterized in that: The step of obtaining the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation, and updating and drawing the temporary channel element in the second vector map according to the pointer coordinates, comprises: Obtaining the pointer coordinates of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is pressed and released, and obtaining the moving track of the mouse pointer relative to the fixed window border of the simulation test system graphic editing container when the mouse is moved; The temporary channel element is updated and drawn in the second vector map according to the pointer coordinates and the moving trajectory.

6. The simulation test system graphics processing method according to claim 1, characterized in that: The determining the channel type of the temporary channel element according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model includes: Determine whether the simulation test relationship between the two device elements output by the graph neural network image element analysis model is one of a series relationship, a parallel relationship, and a cascade relationship; If so, it is determined that the channel type of the corresponding temporary channel element is one of a series channel, a parallel channel and a cascade channel.

7. The simulation test system graphics processing method according to claim 1, characterized in that: The updating and drawing of the channel element in the first vector diagram according to the temporary channel element in the second vector diagram, and setting the temporary channel element to a hidden state, comprises: Redrawing the channel elements in the first vector diagram according to the coordinate parameters and line parameters of the temporary channel elements in the second vector diagram; The second vector image and the temporary channel element are set to a hidden state.

8. A graphics processing device for a simulation test system, characterized in that: The device comprises: A dual vector diagram creation module, used to create a first vector diagram and a second vector diagram in a simulation test system graphic editing container with relative positioning, wherein the first vector diagram and the second vector diagram have an absolute positioning relationship, receive a static placement instruction of a channel element sent by a user, place the channel element in the first vector diagram according to the static placement instruction, and place a corresponding temporary channel element in the second vector diagram, wherein the channel element has an absolute positioning in the simulation test system graphic editing container; A channel element determination module is used to obtain the pointer coordinates of the mouse pointer relative to the fixed window boundary of the simulation test system graphic editing container during the mouse operation when monitoring the mouse operation event of the user, update and draw the temporary channel element in the second vector diagram according to the pointer coordinates, and perform element topological relationship analysis on the two device elements connected to the temporary channel element according to the set graph neural network image element analysis model, and determine the channel type of the temporary channel element according to the simulation test relationship between the two device elements output by the graph neural network image element analysis model; A channel element drawing module is used to update and draw the channel elements in the first vector image according to the temporary channel elements in the second vector image, and set the temporary channel elements to a hidden state.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the simulation test system graphics processing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the simulation test system graphics processing method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Page generation method and device, computer equipment and storage medium

    CN115357237A

  • Vector diagram rendering method and device, storage medium and electronic equipment

    CN116452407A

  • Vector graph drawing method and device, electronic equipment and storage medium

    CN117911569A

  • Data processing method and system, and electronic device

    WO2023005934A1

  • Data-driven offline and online integrated simulation system and method for power distribution network

    WO2023115842A1