Dynamic Trading Path Visualization Interaction Method, Device, Equipment and Medium
By loading and querying transaction path information in the power market trading operation system, and obtaining and mapping scattered data of transaction channel elements, the primitive definition problem caused by the dynamic generation characteristics of transaction paths is solved, and the visual display and configuration of dynamic transaction paths are realized, which improves the flexibility and ease of use of the system.
Patent Information
- Application Number
- CN202210120259.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-07
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-02-07
AI Technical Summary
In the power market trading operation system, it is difficult to define the element in advance due to the uncertainty of the transaction path and the dynamic generation characteristics in the transaction clearance business scenario, making it difficult to meet the configuration configuration and visualization needs of the dynamic transaction path.
By loading all primitives, including transaction channel primitives and transaction path information tables, query and select the transaction path records to be queried, obtain the scattered data of the transaction channel primitives, map them to the color value according to the scattered data and shading strategy, and draw them on the transaction channel primitives to form a transaction path visual display diagram.
It realizes the configuration, engineering configuration and dynamic display of dynamic trading paths, meets the tool-based usage needs in the power trading market scenario, and improves the flexibility of the system and the easy-to-engineering characteristics of the configuration.
Smart Images

Figure CN114510520B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power automation, and particularly relates to a dynamic trading path visualization interaction method, device, equipment and medium. Background Art
[0002] The deepening of the power market reform has put forward new requirements and challenges for the power trading operation system, which are mainly reflected in: the business scope supported by the trading system has increased significantly, and new trading varieties and trading rules are constantly introduced. Objectively, it is required that the human-computer interface of the trading system can provide a mechanism and function for generating graphic configurations, which can meet the flexible editing of specific business screens and the rapid adaptation to changing display requirements. At present, the human-computer interface of the power market operation system focuses on the display of the grid topology network structure on a customized grid topology diagram, lacking a flexible and extensible graphic display mechanism for the clearing results of cross-provincial and cross-regional transactions with both channels and paths. And due to the dynamic generation characteristics of the trading path, it is difficult to define primitive elements in advance, making it difficult to meet the configuration and visualization requirements of the dynamic trading path in the power clearing business scenario. Summary of the Invention
[0003] The purpose of the present invention is to provide a dynamic trading path visualization interaction method, device, equipment and medium to solve the technical problem that it is difficult to define primitive elements in advance due to the uncertainty and dynamic generation characteristics of the trading path in the trading clearing business scenario of the current power market trading operation system. The present invention can meet the configuration, engineering configuration and dynamic display requirements of the dynamic trading path.
[0004] To achieve the above purpose, the present invention adopts the following technical solutions:
[0005] In a first aspect, the present invention provides a dynamic trading path visualization interaction method, including:
[0006] Loading all primitive elements; all the primitive elements include N trading channel primitive elements and a trading path information table;
[0007] Querying the information in the trading path information table to obtain all trading path information in the current clearing calculation scenario;
[0008] Selecting a trading path record to be queried in the trading path information table;
[0009] Based on the trading path information of the trading path record, obtaining the scatter data corresponding to the N trading channel primitive elements;
[0010] According to the scatter data of the N trading channel primitive elements and the coloring strategy, mapping the scatter data corresponding to each trading channel primitive element to a color value;
[0011] The obtained color values are drawn on the trading channel primitive to form a visual display graph of the trading path.
[0012] A further improvement of the present invention is that: the trading path information table includes all trading path information under the current clearing calculation scenario; the trading path information includes the trading path name, trading path ID, and the time when the trading clearing calculation occurs.
[0013] A further improvement of the present invention is that: it further includes the step of reading the label information associated with N trading channel primitives;
[0014] The label information consists of the following four-dimensional label components and a numerical component:
[0015] The physical dimension label component is used to associate the ID or name of the trading channel;
[0016] The application dimension label component is used to associate the trading attributes of the trading path on this channel in the clearing result;
[0017] The time dimension label component is used to associate the time to which the trading path shown in the clearing result belongs;
[0018] The trading dimension label component is used to associate different trading path IDs selected during screen linkage;
[0019] The numerical component Value is the trading data value corresponding to the four-dimensional label component.
[0020] A further improvement of the present invention is that: the step of obtaining the scatter data corresponding to N trading channel primitives specifically includes:
[0021] The N trading channel primitives first dynamically parse the four-dimensional label components. The dynamic trading dimension label component and time dimension label component in the four-dimensional label components obtain the scatter data corresponding to the N trading channel primitives through the trading path records currently selected and to be queried in the trading path information table.
[0022] A further improvement of the present invention is that: the coloring strategy specifically includes:
[0023] Set at least two stepped value ranges for the scatter data, and different stepped value ranges correspond to different colors.
[0024] A further improvement of the present invention is that: the step of drawing the obtained color values on the trading channel primitive to form a visual display graph of the trading path specifically includes:
[0025] The obtained color values are drawn on the trading channel primitive, and path arrows are superimposed to form a visual display graph of the trading path.
[0026] A further improvement of the present invention lies in that the step of drawing the obtained color values onto the trading channel graphic elements to form a visual display graph of the trading path specifically includes:
[0027] The trading graphic elements without obtained color values are colored with the default background transparent color, and the trading graphic elements with obtained color values are colored with the foreground bright color, and path arrows are superimposed, forming a visual display graph of the trading path with a multi-segment line colored with the unified foreground bright color on the screen.
[0028] In a second aspect, the present invention provides a dynamic trading path visualization interaction device, including:
[0029] A loading unit for loading all graphic elements; all the graphic elements include N trading channel graphic elements and a trading path information table;
[0030] A query unit for querying information in the trading path information table to obtain all trading path information in the current clearing calculation scenario;
[0031] A selection unit for selecting a trading path record to be queried in the trading path information table;
[0032] An obtaining unit for obtaining scatter data corresponding to N trading channel graphic elements based on the trading path information of the trading path record;
[0033] A mapping unit for mapping the scatter data corresponding to each trading channel graphic element to a color value according to the scatter data of N trading channel graphic elements and the coloring strategy;
[0034] A drawing unit for drawing the obtained color values onto the trading channel graphic elements to form a visual display graph of the trading path.
[0035] In a third aspect, the present invention provides an electronic device, the electronic device includes a processor and a memory, and the processor is used to execute a computer program stored in the memory to implement the dynamic trading path visualization interaction method.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the dynamic trading path visualization interaction method is implemented.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention relates to a method, device, equipment and medium for visual interactive of dynamic trading path. By using the trading path information recorded based on the trading path, the scatter data corresponding to N trading channel elements is obtained; according to the scatter data of the N trading channel elements and the coloring strategy, the scatter data corresponding to each trading channel element is mapped to a color value, and data association is performed on the "trading channel", which is a component of the trading path; by drawing the trading channel elements in the same trading path with the same color, the effect of displaying a complete dynamically generated trading path is indirectly achieved. In this way, better flexibility and easy configuration engineering characteristics can be realized to meet the tooling use requirements in the power trading market scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings forming a part of this specification are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0040] Figure 1 It is a schematic diagram of a trading channel element in the present invention;
[0041] Figure 2 It is a flowchart of generating a trading path and visual interactive according to the clearing result data read by configuration configuration;
[0042] Figure 3 It is a flowchart of a method for visual interactive of dynamic trading path in the present invention;
[0043] Figure 4 It is a structural block diagram of a device for visual interactive of dynamic trading path in the present invention;
[0044] Figure 5 It is a structural block diagram of an electronic device in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0045] The present invention will be described in detail below with reference to the drawings and in combination with embodiments. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0046] The following detailed descriptions are all exemplary descriptions, aiming to provide further detailed descriptions of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as commonly understood by those of ordinary skill in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention.
[0047] The present invention proposes a dynamic transaction path visualization interaction method. This aspect does not directly associate the final clearing result, namely the "dynamic transaction path", but adopts a method of data association with the components of the transaction path, the "transaction channel", and uses the transaction tag structure as the key of data association. The combination method of "multiple channels form a transaction path" indirectly achieves the effect of displaying a complete dynamically generated transaction path.
[0048] Among them, the label data model in the trading system is used to associate the physical model in the network topology, that is, the trading channel element, with a label library. The trading path ID in the label configuration is substituted through the dynamic selection item of the trading path information table, so that different trading channel elements under the same trading path have the same highlight color, achieving the purpose of "multiple channels forming a trading path", and in this way, the trading path on the screen is linked and displayed. In this way, better flexibility and easy-to-configure engineering characteristics are achieved to meet the tool use in the power trading market scenario.
[0049] First, all independent transaction channel graphics are generated by using the editing tool in the entire screen. The transaction channel graphics are expressed as straight lines or broken line segments. As a structure of the transaction network topology, the transaction channel is physical in nature and generally does not change after definition. For example, the "Qinghai to Shanxi" transaction channel assumes that there are N transaction channels in the entire power grid. First, N line segment-shaped transaction channel graphics [TradeChanel] are drawn on the screen; then a table graphics [TradeTable] is drawn to display all transaction path information in the current clearing calculation scenario, including the transaction path name, transaction path ID, and the time when the transaction clearing calculation occurs.
[0050] Secondly, define the following labeled data structure [TradeLabelModel], which consists of the following four label components and one value component:
[0051] 1) [TagPhy] Physical dimension tag component, used to associate physical objects, here used to associate the ID or name of the transaction channel;
[0052] 2) [TagApp] application dimension tag component, used to associate the application attributes of the object. Here, it is used to associate the transaction attributes of a certain transaction path in the clearing result on this channel, which can be the clearing quantity;
[0053] 3) [TagTime] Time dimension tag component, used to associate time attributes, here used to associate the time of the transaction path to be displayed in the clearing result;
[0054] 4), [TagTrade] trading dimension label components, used to associate a certain ID attribute of a transaction. This dimension can generally be understood as a certain condition of the transaction and can be empty, that is, there is no such condition. Here, it is used to associate the different transaction path IDs selected during screen linkage.
[0055] 5), The Value numerical component is the transaction data value in the system corresponding to the 4-dimensional label structure defined above, that is, the [TagApp] attribute data value of [TagPhy] that occurs at [TagTime] under the condition of [TagTrade].
[0056] Again, for the labeled data structure [TradeLabelModel] defined above, use an editing tool to associate and configure this labeled structure to the aforementioned N transaction channel primitives:
[0057] [TagTrade] is associated with the transaction ID records brought out by the aforementioned table primitive [TradeTable], and this association component is a variable;
[0058] [TagTime] is associated with the time when the transaction clearing calculation occurs for the transaction brought out by the aforementioned table primitive [TradeTable], and this association component is a variable;
[0059] [TagPhy] is associated with the transaction channel ID corresponding to the physical meaning of the current transaction channel. For example, the channel ID or unique identifier of the "Qinghai to Shanxi" transaction channel in the system. This association component is a fixed constant;
[0060] [TagApp] can be fixedly associated with the attribute description of "cleared electricity quantity", such as "TRD_CQDL". This association component is a fixed constant.
[0061] Finally, the default coloring of the transaction channel primitive is configured as dark gray transparent, and the data coloring strategy [ColorCfg] of the N transaction channel primitives is configured as follows: color by value ladder, color 1 for [0 - V1), color 2 for [V1 - V2)..., and so on. In this scenario, a value of 0 means that the channel does not belong to this path, and a value greater than V1 means that the channel belongs to this path. The configuration strategy can be to set the background color to transparent for [0 - V1), and a certain bright color for the foreground for [V1 - 99999999999).
[0062] After saving the above primitive association configuration information, the overall configuration of this scenario screen is completed. When browsing later, after the entire screen is loaded, according to the path records selected in the transaction path information table [TradeTable], view the visual display of the dynamically generated transaction path network topology in a linked manner.
[0063] Example 1
[0064] Please refer to Figure 1 As shown, a dynamic trading path visualization interaction method of the present invention includes the following steps:
[0065] S1. Open the screen, load all the graphic elements on the screen including N trading channel graphic elements and the trading path information table, and read the label information [TradeLabelModel] associated with all the channel graphic elements;
[0066] S2. Query the information in the trading path information table to obtain all the trading path information in the current clearing calculation scenario, including the trading path name, trading path ID, and the time when the trading clearing calculation occurs.
[0067] S3. Select a certain trading path record in the trading path information table, that is, select the trading path ID and the time when the trading clearing calculation occurs.
[0068] S4. The N trading channel graphic elements start to batch fetch data. First, dynamically parse the four-dimensional label structure. The two dynamic dimensions [TagTrade][TagTime] in the four dimensions of the label [TagTrade][TagTime][TagPhy][TagApp] obtain the actual values through the current selection status of the table graphic element, that is, the selected trading path record; then obtain the scatter data corresponding to the N trading channel graphic elements through the system label data service. The scatter data described in the present invention refers to the configured cleared power value.
[0069] S5. After obtaining the corresponding scatter data, according to the dynamic data coloring strategy of the trading channel graphic element, the actual value corresponding to each trading channel graphic element is mapped to a color value;
[0070] S6. Sequentially draw the color value on the trading channel graphic element. The trading graphic element that fails to obtain a value is colored with the default background transparent color, and the trading graphic element that obtains a value is colored with the foreground bright color, and a path arrow is superimposed. Thus, a set of multiple trading channel graphic elements is formed, and a path display effect of a multi-segment with a unified bright color is naturally formed on the screen.
[0071] S7. Switch to select different records in the trading path information table, click the query on the screen, re-fetch data for all the trading channels, re-color, and form a new trading path and display it.
[0072] The above is the complete implementation logic execution process of the dynamic power trading path configuration and visualization implementation method in the trading clearing scenario.
[0073] Embodiment 2
[0074] A dynamic trading path visualization and interaction method of the present invention can meet the configuration and visualization interaction of the trading path of the clearing result in the power trading clearing business scenario, and runs in the power market trading human-machine configuration graphics system.
[0075] The schematic diagram of the typical use case provided in this embodiment is as shown in the appendix Figure 2 as follows:
[0076] 1. N trading channel graphic elements generated by drawing in this scenario, with fixed positions;
[0077] 2. A trading label type data structure associated with the trading channel graphic element, including a four-dimensional [TagTrade][TagTime][TagPhy][TagApp] structure, where [TagPhy][TagApp] are fixed labels;
[0078] 3. The association method of the [TagTrade][TagTime] two-dimensional labels in the above trading label type data structure, associated with different columns of the trading path information list graphic element on the screen;
[0079] 4. According to the actual clearing data of the trading system, each channel graphic element on the screen retrieves data according to the label structure, and after retrieving the data, according to the data coloring strategy, completes the numerical mapping color to perform high-brightness and arrow marking, so as to realize the visualization interaction of the dynamically generated complete trading path.
[0080] The following uses a typical use case to describe the specific implementation steps of a dynamic trading path visualization and interaction method of the present invention:
[0081] 1. Create the following graphic elements in the interface configuration tool software;
[0082] Draw N area graphic elements. Here, only four areas are listed in the example: Qinghai, Shanxi, Shanghai, and Hebei;
[0083] Draw and generate N trading channel graphic elements. Here, only four channels are listed in the example: 1) Qinghai -> Shanxi, 2) Shanxi -> Shanghai, 3) Hebei -> Shanghai, 4) Shanxi -> Hebei;
[0084] Draw and generate a trading path information list to display the following columns of data: 1) trading path ID, 2) trading path name, 3) trading path generation time.
[0085] 2. Configure the following data associations for the channel graphic elements:
[0086] Configure multi-dimensional trading label data association configuration for each channel graphic element;
[0087] Configure the physical dimension label [TagPhy], which is the channel ID corresponding to the graphic element. Here there are four IDs, namely "Qinghai - Shanxi Channel ID", "Qinghai - Hebei Channel ID", "Hebei - Shanghai Channel ID", and "Shanxi - Shanghai Channel ID".
[0088] Configure the application dimension label [TagApp], which is the cleared power attribute label "TRD_CQDL" corresponding to the clearing result of the trading path;
[0089] Configure the time dimension label [TagTime], which is on the third column of the selected row of the graphic element associated with the trading path information list. The components of this label are variables;
[0090] Configure the trading dimension label [TagTrade], which is on the second column of the selected row of the graphic element associated with the trading path information list. The components of this label are variables;
[0091] After configuration, save the configuration information into the database.
[0092] 3. After the clearing calculation in the trading system, the following clearing label result table is formed in the database:
[0093] Corresponding to trading path ID, channel ID, clearing time, application attribute, and attribute value;
[0094] In this example, assume there are two records
[0095] IDXXXA, Qinghai - Shanxi Channel ID, 2021 - 01 - 01 12:00:00, TRD_CQDL, 20.
[0096] IDXXXA, Shanxi - Shanghai Channel ID, 2021 - 01 - 01 12:00:00, TRD_CQDL, 20
[0097] 4. Start the configuration graphics browser, open the trading clearing scenario business screen configured above, and complete the following steps to achieve the generation and visual display of dynamic trading paths:
[0098] After opening the map, read the configuration information of the data sources of N trading channel graphic elements. The four - dimension label structure is {[TagTrade][TagTime][TagPhy][TagApp]};
[0099] Trigger the data query action according to the selection of a certain path record in the trading path information table graphic element on the screen. Here, assume the first - row record in the table is selected;
[0100] Analyze and form the explicit components of the N - group four - dimensional tag structure for all transaction channel graphic elements, making the dynamic time - dimension tag and transaction - dimension tag explicit. Here, the time - dimension tag [TagTime] within the graphic - element tag structure is: 2021 - 01 - 01 12:00:00; the transaction - dimension tag [TagTrade] is: IDXXXA; and call the data service to submit a data fetching request to complete data fetching.
[0101] Refresh all transaction channel graphic elements, and obtain the tag values associated with the configurations of all transaction channel graphic elements. Here, the data fetched for the four channel graphic elements are respectively: the "Qinghai - Shanxi Channel ID" fetches 20, the "Qinghai - Hebei Channel ID" fetches 0, the "Hebei - Shanghai Channel ID" fetches 0, and the "Shanxi - Shanghai Channel ID" fetches 20.
[0102] Compare the values corresponding to each transaction channel graphic element, and according to the data coloring strategy, color the transaction channel graphic elements that meet the conditions with bright colors or dark background colors, distinguish the two types of channel graphic elements, form a corresponding complete transaction path line and visually display it with highlighted colors. Here, the "Qinghai - Shanxi Channel ID" is colored with a bright color and shown with an arrow, the "Qinghai - Hebei Channel ID" is colored with a dark background, the "Hebei - Shanghai Channel ID" is colored with a dark background, and the "Shanxi - Shanghai Channel ID" is colored with a bright color and shown with an arrow.
[0103] After the graphic element of the transaction path information table on the screen is switched and selected, the query action can be triggered again, and the above process of forming a new transaction path and highlighting it can be completed.
[0104] A dynamic transaction path visualization interaction method of the present invention defines a tagged structure [TradeLabelModel] of transaction channel graphic elements, including four - dimensional components [TagTrade][TagTime][TagPhy][TagApp] and a corresponding value, and associates the data within the system in the following way:
[0105] [TagPhy] Physical - dimension tag component, used to associate physical objects, here used to associate the ID or name of the transaction channel.
[0106] [TagApp] Application - dimension tag component, used to associate the application attributes of objects, here used to associate the transaction attributes of a certain transaction path on this channel in the clearing result, which can be the cleared power.
[0107] [TagTime] Time - dimension tag component, used to associate time attributes, here used to associate the time to which the transaction path to be displayed in the clearing result belongs.
[0108] [TagTrade] Transaction - dimension tag component, used to associate a certain ID attribute of the transaction, here used to associate different transaction path IDs selected during the screen linkage.
[0109] The value component of the numerical value is the transaction data value in the system corresponding to the mapped 4-dimensional tag structure defined above, that is, the attribute data value of [TagApp] of [TagPhy] that occurred at [TagTime] under the condition of [TagTrade].
[0110] Configure the data coloring strategy [ColorCfg] for N transaction channel graph elements. The strategy is as follows: color by value ladder. Color 1 is used for [0 - V1), color 2 is used for [V1 - V2), and so on. In this scenario, a value of 0 means that the channel does not belong to this path, and a value greater than V1 means that the channel does not belong to this path. The configuration strategy can be to make the background transparent for [0 - V1), and a bright foreground color for [V1 - 99999999999).
[0111] Save the labeled structure [TradeLabelModel] of the transaction channel graph element and the rule description text of the data coloring strategy setting [ColorCfg] defined above to the configuration graphics file. The configuration graphics system browser reads the graphics file, opens the business screen of the configured transaction clearing scenario, and completes the generation and visual display of the dynamic transaction path according to the following process: Read the label information [TradeLabelModel] and data coloring strategy [ColorCfg] associated with all channel graph elements, trigger a query action based on the transaction path selected in the transaction path information table, dynamically parse the specific components of the corresponding label structure of all transaction channel graph elements and submit a data query service to form a scatter data set corresponding to N transaction channel graph elements. According to the dynamic data coloring strategy [ColorCfg] of the transaction channel graph element, draw the color value sequentially on the transaction channel graph element, and a path display effect with a multi-segment line in a unified bright color is naturally formed on the screen. The specific process is as follows:
[0112] Open the screen, load all the graph elements on the screen, including N transaction channel graph elements and the transaction path information table, and read the label information [TradeLabelModel] associated with all channel graph elements;
[0113] Query the information of the transaction path information table to obtain all the transaction path information in the current clearing calculation scenario, including the transaction path name, transaction path ID, and the time when the transaction clearing calculation occurred.
[0114] Select a transaction path record in the transaction path information table, that is, select the transaction path ID and the time when the transaction clearing calculation occurred.
[0115] For the N trading channel graphic elements to start batch data fetching, first, the four-dimensional tag structure is dynamically parsed. For the two dynamic dimensions [TagTrade] and [TagTime] in the four dimensions of the tag [TagTrade][TagTime][TagPhy][TagApp], the actual values are obtained through the current selection state of the table graphic element; then, the scatter data corresponding to the N trading channel graphic elements is obtained through the system tag data service.
[0116] After obtaining the corresponding scatter data, according to the dynamic data coloring strategy of the trading channel graphic element, each actual value corresponding to the trading channel graphic element is mapped to a color value.
[0117] The color value is sequentially drawn on the trading channel graphic element. The trading graphic elements without fetched values are colored with the default background transparent color, and the trading graphic elements with fetched values are colored with the foreground bright color, and path arrows are superimposed. Thus, a set of multiple trading channel graphic elements is formed, and a path display effect of a multi-segment with a unified bright color is naturally formed on the screen.
[0118] Embodiment 3
[0119] Please refer to Figure 4 As shown, the present invention provides a dynamic trading path visualization interaction device, including:
[0120] A loading unit for loading all graphic elements; the all graphic elements include N trading channel graphic elements [TradeChanel] and a trading path information table [TradeTable];
[0121] A query unit for querying information in the trading path information table [TradeTable] to obtain all trading path information in the current clearing calculation scenario;
[0122] A selection unit for selecting a trading path record to be queried in the trading path information table [TradeTable];
[0123] An acquisition unit for acquiring the scatter data corresponding to the N trading channel graphic elements [TradeChanel];
[0124] A mapping unit for mapping the scatter data corresponding to each trading channel graphic element [TradeChanel] to a color value according to the scatter data of the N trading channel graphic elements [TradeChanel] and the coloring strategy [ColorCfg];
[0125] A drawing unit for drawing the obtained color value on the trading channel graphic element to form a trading path visualization display graph.
[0126] Embodiment 4
[0127] Please refer toFigure 5 As shown in the figure, the present invention also provides an electronic device 100 for a dynamic transaction path visualization interaction method; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104.
[0128] The memory 101 can be used to store the computer program 103. The processor 102 realizes the method steps of the dynamic transaction path visualization interaction method described in any one of Embodiments 1 to 2 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device 100 (such as audio data), etc. In addition, the memory 101 can include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0129] The at least one processor 102 can be a Central Processing Unit (CPU), or can also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 102 can be a microprocessor or the processor 102 can also be any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and connects various parts of the entire electronic device 100 through various interfaces and lines.
[0130] The memory 101 in the electronic device 100 stores multiple instructions to implement a dynamic transaction path visualization interaction method, and the processor 102 can execute the multiple instructions to implement:
[0131] Load all graphic elements; all the graphic elements include N trading channel graphic elements [TradeChanel] and a trading path information table [TradeTable];
[0132] Query the trading path information table [TradeTable] to obtain all the trading path information under the current clearing calculation scenario;
[0133] Select the trading path record to be queried in the trading path information table [TradeTable];
[0134] Obtain the scatter data corresponding to the N trading channel graphic elements [TradeChanel];
[0135] According to the scatter data of the N trading channel graphic elements [TradeChanel] and the coloring strategy [ColorCfg], map the scatter data corresponding to each trading channel graphic element [TradeChanel] to a color value;
[0136] Draw the obtained color value on the trading channel graphic element to form a visual display graph of the trading path.
[0137] Specifically, for the specific implementation method of the above instructions by the processor 102, reference can be made to the descriptions of the relevant steps in Embodiment 1 or 2, which will not be elaborated here.
[0138] Embodiment 5
[0139] If the modules / units integrated in the electronic device 100 are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above embodiment methods of the present invention, it can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device that can carry the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, and a read-only memory (ROM, Read-Only Memory).
[0140] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can 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.) that contain computer-usable program code.
[0141] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows 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 the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0142] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent replacements can still be made to the specific embodiments of the present invention, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered by the protection scope of the claims of the present invention.
Claims
1. A dynamic trading path visualization and interaction method, characterized in that including: loading all graphic elements; all the graphic elements include N trading channel graphic elements and a trading path information table; querying information in the trading path information table to obtain all trading path information in the current clearing calculation scenario; selecting a trading path record to be queried in the trading path information table; obtaining scatter data corresponding to the N trading channel graphic elements based on the trading path information of the trading path record; mapping the scatter data corresponding to each trading channel graphic element to a color value according to the scatter data of the N trading channel graphic elements and the coloring strategy; drawing the obtained color value on the trading channel graphic element to form a visualized display graph of the trading path; further including the step of reading label information associated with the N trading channel graphic elements; the label information consists of the following four-dimensional label components and a numerical component: a physical dimension label component for associating the ID or name of the trading channel; an application dimension label component for associating the trading attributes of the trading path on this channel in the clearing result; a time dimension label component for associating the time to which the trading path shown in the clearing result belongs; a trading dimension label component for associating different trading path IDs selected during screen linkage; a numerical component Value, which is the trading data value corresponding to the four-dimensional label component; the step of obtaining scatter data corresponding to the N trading channel graphic elements specifically includes: the N trading channel graphic elements first dynamically parse the four-dimensional label components, and the dynamic trading dimension label component and time dimension label component in the four-dimensional label components obtain the scatter data corresponding to the N trading channel graphic elements through the trading path record to be queried currently selected in the trading path information table; the coloring strategy specifically includes: setting at least two stepped value ranges for the scatter data, and different stepped value ranges correspond to different colors; the step of drawing the obtained color value on the trading channel graphic element to form a visualized display graph of the trading path specifically includes: the trading graphic elements without obtained color values are colored with the default background transparent color, and the trading graphic elements with obtained color values are colored with the foreground bright color, and path arrows are superimposed to form a visualized display graph of the trading path with a multi-segment line colored with the unified foreground bright color on the screen; or, the obtained color value is drawn on the trading channel graphic element and path arrows are superimposed to form a visualized display graph of the trading path.
2. The dynamic trading path visualization and interaction method according to claim 1, characterized in that the trading path information table includes all trading path information in the current clearing calculation scenario; the trading path information includes the trading path name, trading path ID, and trading clearing calculation occurrence time.
3. A dynamic trading path visualization and interaction device, characterized in that including: a loading unit for loading all graphic elements; all the graphic elements include N trading channel graphic elements and a trading path information table; a querying unit for querying information in the trading path information table to obtain all trading path information in the current clearing calculation scenario; a selecting unit for selecting a trading path record to be queried in the trading path information table; an obtaining unit for obtaining scatter data corresponding to the N trading channel graphic elements based on the trading path information of the trading path record; A mapping unit, configured to map the scatter data of each transaction channel primitive to a color value according to the scatter data of N transaction channel primitives and a coloring strategy; A drawing unit, configured to draw the obtained color value on the transaction channel primitive to form a visual display graph of the transaction path; It further includes a unit for reading the label information associated with N transaction channel primitives; The label information consists of the following four-dimensional label components and a numerical component: A physical dimension label component, configured to associate the ID or name of the transaction channel; An application dimension label component, configured to associate the transaction attribute of the transaction path on this channel in the clearing result; A time dimension label component, configured to associate the time to which the transaction path shown in the clearing result belongs; A transaction dimension label component, configured to associate different transaction path IDs selected during screen linkage; A numerical component Value, which is the transaction data value corresponding to the four-dimensional label component; The step of obtaining the scatter data corresponding to N transaction channel primitives specifically includes: The N transaction channel primitives first dynamically parse the four-dimensional label components. The dynamic transaction dimension label component and time dimension label component in the four-dimensional label components obtain the scatter data corresponding to the N transaction channel primitives through the transaction path record currently selected and to be queried in the transaction path information table; The coloring strategy specifically includes: Setting at least two step value ranges for the scatter data, and different step value ranges correspond to different colors; The step of drawing the obtained color value on the transaction channel primitive to form a visual display graph of the transaction path specifically includes: The transaction primitive that does not obtain a color value is colored with the default background transparent color, and the transaction primitive that obtains a color value is colored with the foreground bright color, and a path arrow is superimposed to form a visual display graph of the transaction path with a multi-segment line colored with the unified foreground bright color on the screen; or, the obtained color value is drawn on the transaction channel primitive, and a path arrow is superimposed to form a visual display graph of the transaction path.
4. An electronic device, characterized in that, The electronic device includes a processor and a memory, and the processor is configured to execute a computer program stored in the memory to implement the dynamic transaction path visualization interaction method as described in claim 1 or 2.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, it implements the dynamic transaction path visualization interaction method as described in claim 1 or 2.
Citation Information
Patent Citations
Method and system for electricity transaction data picture generation
CN108182199A
Method and device for generating transaction path diagram based on configuration data, and equipment
CN113505235A