Rapid conversion method and system for clearing cases in electric power spot market

By adopting XML format files and data table-oriented conversion methods in the power spot market, the efficiency and accuracy of clearing case data conversion between the power spot market technical support system and the simulation system is solved, and efficient data conversion and System construction support.

CN119090644AActive Publication Date: 2024-12-06ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411286155.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-06
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

The existing technology cannot effectively realize the conversion of clearing case data between the electric spot market technical support system and the simulation system, and lacks a method that takes into account accuracy, completeness and efficiency.

Method used

By obtaining XML-format case files, instantiate source cases, target cases and initial cases, perform text splitting to obtain standardized and non-standardized data, and splice and export according to the directory structure, adopting a data table-oriented conversion method to avoid one-by-one Create object fields to achieve rapid conversion.

Benefits of technology

It improves the efficiency and accuracy of data conversion and simplifies the data processing process of power dispatching agencies in the construction of the power spot market technical support system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090644A_ABST
    Figure CN119090644A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power dispatching, and discloses a power spot market clearing case rapid conversion method and system.The method comprises the steps that a case file of a clearing system is obtained through a set case operation interface, and according to the data structure characteristics of the case file, the data structure characteristics of an E text and the obtained case file are utilized; a data table-oriented conversion method is adopted, so that the situation that object fields are established one by one is avoided, rapid conversion of a large amount of data is realized, and the efficiency is higher; therefore, a power dispatching mechanism can refer to the content of the invention when a power spot market technical support system is constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power dispatching, and in particular to a method and system for quickly converting electric power spot market clearing cases. Background Art

[0002] The electricity spot market refers to the market where the power system conducts transactions such as electric energy and auxiliary services to ensure the safe, economical and reliable operation of the power grid. The electricity spot market technical support system refers to the system that provides technical support for the electricity spot market, such as data collection, data processing, data analysis, data display, etc. The electricity spot market simulation system refers to the system that simulates the transaction process of the electricity spot market, such as data collection, data processing, data analysis, data display, etc. The electricity spot market simulation system and the electricity spot market technical support system have similar functions. The main difference is that the former is used to simulate the real-world electricity spot transaction process while the latter is mainly used to support the real-world electricity spot transaction process.

[0003] In the context of the construction of the power spot market, the power spot market technical support system and the power spot market simulation system require a large amount of power grid operation and market transaction data as the input data of the system. These data usually describe the same objects, but the two systems are often developed by different developers, with different development purposes and system uses, and there are differences in the input data models. In order to achieve data sharing between the two systems, it is necessary to develop a data conversion tool for data conversion.

[0004] At present, the method for converting the clearing cases of the power spot market technical support system and the power spot market simulation system mainly establishes a one-to-one mapping to directly convert from the source data to the target data. The method based on direct conversion requires the establishment of complex mapping relationships and the construction of the target case structure one by one. Therefore, there is currently no clearing data conversion method that can take into account accuracy, completeness and efficiency. Summary of the invention

[0005] The present invention provides a method and system for rapid conversion of clearing cases in a power spot market, solving the technical problem of how to achieve rapid conversion of clearing cases.

[0006] A first aspect of the present invention provides a method for quickly converting a power spot market clearing case, comprising:

[0007] Obtaining a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case;

[0008] Instantiate the source case, the first target case and the second initial case, and construct a directory structure of the second initial case using the instantiation result;

[0009] Performing text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case;

[0010] The standardized data and the non-standardized data are spliced, and the splicing result is exported according to the directory structure of the second initial case to obtain a second target case.

[0011] Optionally, the instantiating the source case, the first target case and the second initial case, and constructing a directory structure of the second initial case using the instantiation result, includes:

[0012] Instantiating case operation objects of the source case, the first target case, and the second initial case, wherein the second initial case is a clearing case to be converted;

[0013] Based on the directory structure of the first target case, the second initial case is constructed through the case operation object of the second initial case, wherein the directory structure of the second initial case is the same as the directory structure of the first target case.

[0014] Optionally, the performing text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case includes:

[0015] Performing text splitting on the electronic text of the source case through the case operation object of the source case, taking the row data of the electronic text of the source case starting with the first preset symbol as the normalized data, and obtaining the normalized data of the source case;

[0016] Performing text splitting on the electronic text of the first target case through the case operation object of the first target case;

[0017] In the electronic text of the first target case, the row data starting with the first preset symbol is standardized data, and the electronic text data other than the standardized data is non-standardized data of the first target case.

[0018] Optionally, the splicing of the standardized data and the non-standardized data, and exporting the splicing result according to the directory structure of the second initial case to obtain a second target case, includes:

[0019] Performing addition, deletion, query and modification operations on the standardized data of the source case;

[0020] Using the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case to perform vertical splicing of the data table;

[0021] The separator file is exported according to the directory structure of the second initial case to obtain the second target case.

[0022] Optionally, after vertically splicing the data table using the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case, the method further includes:

[0023] The spliced ​​file is retrieved, and different class name identifiers of the same object name in the spliced ​​file are unified.

[0024] Optionally, the case operation interface includes a directory construction function interface, a file decoding function interface, a file statistics function interface, a file splitting function interface, a file splicing function interface and a data acquisition function interface.

[0025] A second aspect of the present invention provides a system for quickly converting power spot market clearing cases, comprising:

[0026] An operation interface module, used to obtain a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case;

[0027] An instantiation module, used to instantiate the source case, the first target case and the second initial case, and construct a directory structure of the second initial case using the instantiation result;

[0028] A text splitting module, used to perform text splitting on the source case and the first target case respectively, to obtain standardized data of the source case and non-standardized data of the first target case;

[0029] The case output module is used to splice the standardized data and the non-standardized data, and export the splicing results according to the directory structure of the second initial case to obtain a second target case.

[0030] A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for rapid conversion of electricity spot market clearing cases as described in any one of the above items.

[0031] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the method for rapid conversion of electricity spot market clearing cases as described in any one of the above items.

[0032] A fifth aspect of the present invention provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the method for rapid conversion of electricity spot market clearing cases as described in any one of the above items.

[0033] It can be seen from the above technical solutions that the present invention has the following advantages:

[0034] The present invention provides a method and system for rapid conversion of clearing cases in a power spot market, including obtaining a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case, instantiating the source case, the first target case and the second initial case, and constructing a directory structure of the second initial case, respectively performing text splitting on the source case and the first target case to obtain standardized data and non-standardized data corresponding to each case, and determining the second target case based on the standardized data, the non-standardized data and the directory structure of the second initial case; the present invention obtains the case file of the clearing system through the set case operation interface, and according to the data structure characteristics of the case file, utilizes the data structure characteristics of the E text and the obtained case file, adopts a data table-oriented conversion method, avoids establishing object fields one by one, and realizes rapid conversion of a large amount of data with higher efficiency; thereby realizing that the power dispatching agency can refer to the content of the present invention when carrying out the construction of the power spot market technical support system. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A flowchart of the steps of a method for quickly converting a power spot market clearing case provided in the first embodiment of the present invention;

[0037] Figure 2 A flowchart of the steps of a method for quickly converting a power spot market clearing case provided in Embodiment 2 of the present invention;

[0038] Figure 3 A structural block diagram of a power spot market clearing case rapid conversion system provided in Embodiment 3 of the present invention;

[0039] Figure 4 This is a structural block diagram of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0040] The embodiment of the present invention provides a method and system for rapid conversion of clearing cases in a power spot market, which are used to solve the technical problem of how to achieve rapid conversion of clearing cases.

[0041] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The present invention considers the data structure characteristics of the electricity spot market clearing case, provides a method and system for quickly converting the electricity spot market clearing case, makes full use of the data structure characteristics of E-text (Electronic Text) and existing target cases, adopts a data table-oriented conversion method, avoids establishing object fields one by one, and realizes the rapid conversion of a large amount of data with higher efficiency. Based on the effective practical significance of the present invention, the power dispatching agency can refer to the content of the present invention when carrying out the construction of the electricity spot market technical support system.

[0043] See also Figure 1 , Figure 1 A flowchart of the steps of a method for quickly converting a power spot market clearing case provided in Example 1 of the present invention.

[0044] The present invention provides a method for quickly converting a power spot market clearing case, comprising:

[0045] Step 101: Obtain a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case.

[0046] XML format refers to the file format of Extensible Markup Language. XML is a markup language used to store and transmit data, using custom tags to describe the structure and content of data.

[0047] In an embodiment of the present invention, a case file in XML format of a clearing system is obtained through a case operation interface, wherein the case file includes a source case and a first target case.

[0048] Step 102: instantiate the source case, the first target case, and the second initial case, and use the instantiation result to construct a directory structure of the second initial case.

[0049] Directory structure refers to the file directory structure, also known as the file system structure, which refers to the way and hierarchical relationship of organizing and managing files and directories (folders) in a computer system; for example, the root directory and the directories under the root directory can contain other files and subdirectories; the hierarchical relationship between directories and files forms a tree structure. Each directory can contain multiple subdirectories and files, but each file and subdirectory can only have one parent directory.

[0050] In an embodiment of the present invention, three different case operation objects, namely a source case, a first target case and a second initial case, are instantiated, and the source case and the first target case are simultaneously used as inputs of the conversion process, and the file directory structure of the second initial case is generated according to the file directory structure of the first target case.

[0051] Step 103: Perform text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case.

[0052] Text splitting refers to the process of dividing a large text block into smaller, more manageable parts, which can be based on a variety of criteria, such as characters, sentences, paragraphs, topics, keywords or other logical structures. In this embodiment, text splitting is performed based on set characters as rules.

[0053] In an embodiment of the present invention, text splitting is performed on the E text in the source case and the first target case respectively to obtain standardized data and non-standardized data corresponding to the source case, and to obtain standardized data and non-standardized data corresponding to the first target case.

[0054] Step 104: splice the standardized data and the non-standardized data, and export the splicing result according to the directory structure of the second initial case to obtain a second target case.

[0055] In an embodiment of the present invention, the standardized data is operated, the operated standardized data and non-standardized data are spliced, and then the spliced ​​file is exported according to the directory structure of the second initial case to obtain the second target case.

[0056] In the present invention, a case file in XML format of a case operation interface is obtained, wherein the case file includes a source case and a first target case; the source case, the first target case and the second initial case are instantiated, and the directory structure of the second initial case is constructed using the instantiation result; the source case and the first target case are respectively subjected to text splitting to obtain standardized data of the source case and non-standardized data of the first target case; the standardized data and the non-standardized data are spliced, and exported according to the splicing result according to the directory structure of the second initial case to obtain the second target case; the present invention obtains the case file of the clearing system through the set case operation interface, and according to the data structure characteristics of the case file, utilizes the data structure characteristics of the E text and the obtained case file, adopts a data table-oriented conversion method, avoids establishing object fields one by one, and realizes rapid conversion of large amounts of data with higher efficiency; thereby realizing that the power dispatching agency can refer to the contents of the present invention when carrying out the construction of the power spot market technical support system.

[0057] See also Figure 2 , Figure 2 A flowchart of the steps of a method for quickly converting a power spot market clearing case provided in Embodiment 2 of the present invention.

[0058] The present invention provides a method for quickly converting a power spot market clearing case, comprising:

[0059] Step 201: Obtain a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case.

[0060] Furthermore, the case operation interface includes a directory construction function interface, a file decoding function interface, a file statistics function interface, a file splitting function interface, a file splicing function interface and a data acquisition function interface.

[0061] In the embodiment of the present invention, this step is a prerequisite for carrying out subsequent steps. The designed and implemented case operation interface can realize directory construction, file decoding, file statistics, file splitting, file splicing and data acquisition functions.

[0062] The directory construction function generates the directory hierarchy and directory name of the file according to the structure of the first target case, so that the second initial case generated by the conversion has the same directory hierarchy and directory name as the first target case.

[0063] The file decoding function is used to parse the file encoding according to the specified format.

[0064] The file statistics function is used to assist users in counting the number of files in the source case or target case, including the number of folders and files.

[0065] The file splitting function and file splicing function are used to split a single file into multiple files or merge it into one file according to certain conditions.

[0066] The data acquisition function is to obtain the case data file with the specified file name.

[0067] Step 202: instantiate case operation objects of a source case, a first target case, and a second initial case, wherein the second initial case is a clearance case to be converted.

[0068] The source case refers to the clearing case that is converted.

[0069] The first target case refers to an existing, artificially constructed case that has the same data structure as the second initial case that is expected to be generated.

[0070] The second initial case refers to the initial clearing case to be generated by conversion.

[0071] It is worth mentioning that, usually, the first target case and the second initial case have been established manually during the development of different systems.

[0072] In the embodiment of the present invention, the source case and the first target case are obtained from the developed clearing system through the case operation interface, the source case and the first target case are used as inputs of the conversion process at the same time, the second initial case is the initial case to be converted and output, and three different case operation objects, namely the source case, the first target case and the second initial case, are instantiated, including the source case operation object, the first target case operation object and the second initial case operation object. For the case operation interface established in step 201, three objects are instantiated, which are used to operate the source case, the first target case and the second initial case respectively.

[0073] Step 203: Based on the directory structure of the first target case, a second initial case is constructed through the case operation object of the second initial case, wherein the directory structure of the second initial case is the same as the directory structure of the first target case.

[0074] In the embodiment of the present invention, after the case operation object is instantiated, the file directory structure of the second initial case needs to be generated according to the file directory structure of the first target case as a basis for subsequent steps.

[0075] Step 204: Perform text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case.

[0076] Further, step 204 may include the following sub-steps:

[0077] S11. Splitting the electronic text of the source case through the case operation object of the source case, taking the row data of the electronic text of the source case starting with the first preset symbol as the normalized data, and obtaining the normalized data of the source case.

[0078] In an embodiment of the present invention, the file splitting function of the above-mentioned case operation interface is used to implement text splitting, and the E text in the source case and the first target case is split into a standardized data part and a non-standardized data part. The standardized part performs operations of adding, deleting, checking and modifying the data table. The standard data part refers to the content containing fields and data text. For E text, it refers to row data starting with the first preset symbol "@" and "#" symbol.

[0079] S12, performing text splitting on the electronic text of the first target case through the case operation object of the first target case;

[0080] S13. In the electronic text of the first target case, the row data starting with the first preset symbol is the standardized data, and the electronic text data other than the standardized data is the non-standardized data of the first target case.

[0081] In the embodiment of the present invention, non-standard data refers to data outside the standard data part. It usually refers to comment content, data timestamp information, etc. For E text, it refers to comment lines starting with double slashes " / / ", containing "<!… …!> "The data time information line, the data start line indicated by angle brackets "<... >", and the line with a single slash in angle brackets "< / … …> " indicates the end of the data line.

[0082] Step 205: splice the standardized data and the non-standardized data, and export the splicing result according to the directory structure of the second initial case to obtain a second target case.

[0083] Further, step 205 may include the following sub-steps:

[0084] S21. Perform add, delete, query and modify operations on the standardized data of the source case.

[0085] In the embodiment of the present invention, the standardized data of the source case and the first target case are added, deleted, checked and modified.

[0086] S22. Use the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case to perform vertical splicing of the data table.

[0087] Add, delete, query and modify operations refer to a set of basic operations performed on data in database management, information systems or applications, including creation, reading, updating and deletion. In this embodiment, specifically, add, delete, query and modify operations are performed on data tables of standardized data.

[0088] In the embodiment of the present invention, the standardized data of the source case after the add, delete, query, and modify operations and the non-standardized data of the first target case are vertically spliced for the data table.

[0089] S23. Export a delimiter file according to the directory structure of the second initial case to obtain a second target case.

[0090] In the embodiment of the present invention, a delimiter file is exported according to the directory structure of the second initial case, so as to obtain the final second target case.

[0091] Furthermore, step 205 may further include the following sub-steps:

[0092] S22a. Retrieve the spliced file and unify the different class name identifiers for the same object name in the spliced file.

[0093] It is worth mentioning that it is necessary to retrieve the spliced file. If there are different class name identifiers for the same object name in the spliced file, they need to be unified. For example, taking the conversion of the "Power Plant Information Table" as an example, when the class name identifier corresponding to the object name "Belonging Group" in the standardized data extracted from the source case is "PlantGroup", and the class name identifier corresponding to the object name "Belonging Group" in the standardized data extracted from the first target case is "UnionID", unified processing is performed, and the class name identifier corresponding to the final output object name "Belonging Group" in the second target case is "UnionID". By standardizing the adjustment of "PlantGroup" to "UnionID", during the process of migrating the data of the cleared case file, the compatibility with the technical support system of the power spot market is ensured, thereby achieving the beneficial effects of improving the efficiency and accuracy of data processing.

[0094] For the convenience of understanding, the following provides an application example:

[0095] Taking the conversion of the "Power Plant Information Table" as an example:

[0096] Source case

[0097] File 1:

[0098] <!-- Grid=XX Power Grid Type=Day-ahead Market Time='yyyy-mm-dd hh:mm:ss'!-->

[0099] <plantbasic>

[0100] @PlantID PlantName CIM_ID GridID Type

[0101] / / Power plant ID Power plant name CIM model ID Power plant grid type

[0102] #1 A Power Plant 111 GX 101

[0103] #2 B Power Plant 222 GD 101

[0104] #3C Power Plant 333 GZ 101

[0105] #4D Power Plant 444 HN 102

[0106] < / plantbasic>

[0107] File 2:

[0108] <!-- Grid=XX Power Grid Type=Day-ahead Market Time='yyyy-mm-dd hh:mm:ss' !-->

[0109] <plantgroup>

[0110] @PlantID PlantGroup

[0111] / / Power Plant ID Power Plant Group

[0112] # A Power Plant A Group

[0113] # B Power Plant B Group

[0114] # C Power Plant C Group

[0115] # D Power Plant D Group

[0116] < / plantgroup>

[0117] Operation: The standardized data parts of File 1 and File 2 need to be calculated to obtain the following data:

[0118] @PlantID PlantName SubAreaID Type PlantGroup

[0119] / / Power plant ID, Power plant name, Region where the power plant belongs, Power plant type, Group to which it belongs

[0120] # 1 Power Plant A GX 101 Group A

[0121] # 2 Power Plant B GD 101 Group B

[0122] # 3 Power Plant C GZ 101 Group B

[0123] # 4 Power Plant D HN 102 Group D

[0124] First target case

[0125] File 3:

[0126] <!-- Grid = NF Time='2024-01-01 00:00:00' Type=Day-ahead !-->

[0127] <plantbasic>

[0128] @PlantID PlantName SubAreaID Type UnionID

[0129] / / Power plant ID Power plant name Power plant region Power plant type Power plant group

[0130] #10 F Power Plant GX 301 F Group

[0131] #11 G Power Plant YN 301 G Group

[0132] #12 H Power Plant GD 101 H Group

[0133] #13 I Power Plant YN 201 I Group

[0134] #14 J Power Plant GD 101 J Group

[0135] < / plantbasic>

[0136] Operation: The non-standardized data part of File 3 is extracted as follows:

[0137] <!-- Grid = NF Time='2024-01-01 00:00:00' Type=Day-ahead !-->

[0138] <plantbasic>

[0139] < / plantbasic>

[0140] Second target case

[0141] Operation: Concatenate the standardized data part after calculation and the non-standardized data part, and rename PlantGroup to UnionID:

[0142] File 4:

[0143] <!-- Grid = NF Time='2024-01-01 00:00:00' Type=Recently! -->

[0144] <plantbasic>

[0145] @PlantID PlantName SubAreaID Type UnionID

[0146] / / Power plant ID Power plant name Power plant region Power plant type Power plant group

[0147] #1 A Power Plant GX 101 A Group

[0148] #2 B Power Plant GD 101 B Group

[0149] #3 C Power Plant GZ 101 C Group

[0150] #4 D Power Plant HN 102 D Group

[0151] < / plantbasic> 。

[0152] In the present invention, a case file in XML format of a case operation interface is obtained, where the case file includes a source case and a first target case; the source case, the first target case, and a second initial case are instantiated, and the directory structure of the second initial case is constructed using the instantiation result; the source case and the first target case are respectively split into texts to obtain the standardized data of the source case and the non-standardized data of the first target case; the standardized data and the non-standardized data are concatenated, and the concatenation result is exported according to the directory structure of the second initial case to obtain a second target case; by obtaining the case file of the clearing system through the provided case operation interface, and according to the data structure characteristics of the case file, using the data structure characteristics of E text and the obtained case file, adopting a conversion method oriented to data tables, the invention avoids establishing object fields one by one to achieve fast conversion of a large amount of data, with higher efficiency; furthermore, it enables the power dispatching agency to refer to the content of the present invention when carrying out the construction of the power spot market technical support system.

[0153] 1) The present invention makes full use of the data structure of the first target case. The data structure of the first target case contains detailed target information, and there is no need to initialize the data fields manually one by one.

[0154] 2) The present invention designs a case operation interface of the functional function interface type, which is reusable and easy to expand, making the development efficiency of the conversion program high.

[0155] 3) The present invention uses a lightweight data operation method, supports addition, deletion, query, and modification, does not require a relational database, and does not require persistent object modeling.

[0156] 4) The present invention improves the accuracy and efficiency of data conversion, providing more valuable technical support for system developers.

[0157] Please refer to Figure 3 , Figure 3 which is the structural block diagram of a fast conversion system for power spot market clearing cases provided in Embodiment 3 of the present invention.

[0158] A fast conversion system for power spot market clearing cases provided by the present invention includes:

[0159] An operation interface module 301, configured to obtain a case file in XML format of a case operation interface, where the case file includes a source case and a first target case;

[0160] An instantiation module 302 is used to instantiate the source case, the first target case and the second initial case, and construct a directory structure of the second initial case using the instantiation result;

[0161] A text splitting module 303 is used to perform text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case;

[0162] The case output module 304 is used to splice the standardized data and the non-standardized data, and export the splicing result according to the directory structure of the second initial case to obtain a second target case.

[0163] Furthermore, the case operation interface includes a directory construction function interface, a file decoding function interface, a file statistics function interface, a file splitting function interface, a file splicing function interface and a data acquisition function interface.

[0164] Furthermore, the instantiation module 302 includes:

[0165] A case processing submodule, used for instantiating case operation objects of a source case, a first target case and a second initial case, wherein the second initial case is a clearing case to be converted;

[0166] The structure construction submodule is used to construct a second initial case based on the directory structure of the first target case through the case operation object of the second initial case, wherein the directory structure of the second initial case is the same as the directory structure of the first target case.

[0167] Furthermore, the text splitting module 303 includes:

[0168] The standardized data submodule is used to perform text splitting on the electronic text of the source case through the case operation object of the source case, and to standardize the row data starting with the first preset symbol in the electronic text of the source case as the standardized data, so as to obtain the standardized data of the source case;

[0169] A text processing submodule, used for performing text splitting on the electronic text of the first target case through the case operation object of the first target case;

[0170] The non-standardized data submodule is used to standardize the row data starting with the first preset symbol in the electronic text of the first target case as the standardized data, and the electronic text data other than the standardized data as the non-standardized data of the first target case.

[0171] Furthermore, the case output module 304 includes:

[0172] The add, delete, query and modify operation submodule is used to perform add, delete, query and modify operations on the standardized data of the source case;

[0173] A vertical splicing submodule, used to perform vertical splicing of the data table using the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case;

[0174] The export submodule is used to export the separator file according to the directory structure of the second initial case to obtain the second target case.

[0175] Furthermore, the case output module 304 also includes:

[0176] The unification submodule is used to retrieve the spliced ​​files and unify the different class name identifiers of the same object name in the spliced ​​files.

[0177] In the present invention, a case file in XML format of a case operation interface is obtained, wherein the case file includes a source case and a first target case; the source case, the first target case and the second initial case are instantiated, and the directory structure of the second initial case is constructed using the instantiation result; the source case and the first target case are respectively subjected to text splitting to obtain standardized data of the source case and non-standardized data of the first target case; the standardized data and the non-standardized data are spliced, and exported according to the splicing result according to the directory structure of the second initial case to obtain the second target case; the present invention obtains the case file of the clearing system through the set case operation interface, and according to the data structure characteristics of the case file, utilizes the data structure characteristics of the E text and the obtained case file, adopts a data table-oriented conversion method, avoids establishing object fields one by one, and realizes rapid conversion of large amounts of data with higher efficiency; thereby realizing that the power dispatching agency can refer to the contents of the present invention when carrying out the construction of the power spot market technical support system.

[0178] See also Figure 4 , Figure 4 This is a structural block diagram of a computer device provided in Embodiment 4 of the present invention.

[0179] An electronic device according to an embodiment of the present invention comprises: a memory 401 and a processor 402, wherein the memory 402 stores a computer program; when the computer program is executed by the processor 402, the processor 402 executes a method for rapid conversion of a power spot market clearing case as described in any of the above embodiments.

[0180] The memory 401 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 401 has a storage space 403 for a program code 413 for executing any method step in the above method. For example, the storage space 403 for the program code may include individual program codes 413 for implementing the various steps in the above method, respectively. These program codes may be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. The program code may be compressed, for example, in an appropriate form. When these codes are run by a computing and processing device, the computing and processing device performs the various steps in the method described above. These program codes may be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. The program code may be compressed, for example, in an appropriate form. When these codes are executed by a computing and processing device, they cause the computing and processing device to perform the steps in the electricity spot market clearing case rapid conversion method described above.

[0181] Embodiment 5 of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for quickly converting a power spot market clearing case as described in any of the above embodiments is implemented.

[0182] Embodiment 6 of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes a method for rapid conversion of electricity spot market clearing cases as described in any of the above embodiments.

[0183] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0184] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0185] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0187] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0188] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fast conversion method for electricity spot market clearing cases, It is characterized in that include: Obtaining a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case; Instantiate the source case, the first target case and the second initial case, and construct a directory structure of the second initial case using the instantiation result; Performing text splitting on the source case and the first target case respectively to obtain standardized data of the source case and non-standardized data of the first target case; The standardized data and the non-standardized data are spliced, and the splicing result is exported according to the directory structure of the second initial case to obtain a second target case.

2. The method for rapid conversion of power spot market clearing cases according to claim 1, It is characterized in that The instantiating the source case, the first target case, and the second initial case, and constructing a directory structure of the second initial case using the instantiation result, includes: Instantiating case operation objects of the source case, the first target case, and the second initial case, wherein the second initial case is a clearing case to be converted; Based on the directory structure of the first target case, the second initial case is constructed through the case operation object of the second initial case, wherein the directory structure of the second initial case is the same as the directory structure of the first target case.

3. The method for rapid conversion of power spot market clearing cases according to claim 2, It is characterized in that The step of performing text splitting on the source case and the first target case to obtain standardized data of the source case and non-standardized data of the first target case includes: Performing text splitting on the electronic text of the source case through the case operation object of the source case, taking the row data of the electronic text of the source case starting with the first preset symbol as the normalized data, and obtaining the normalized data of the source case; Performing text splitting on the electronic text of the first target case through the case operation object of the first target case; In the electronic text of the first target case, the row data starting with the first preset symbol is standardized data, and the electronic text data other than the standardized data is non-standardized data of the first target case.

4. The method for rapid conversion of power spot market clearing cases according to claim 1, It is characterized in that The step of splicing the standardized data and the non-standardized data, and exporting the splicing result according to the directory structure of the second initial case to obtain a second target case includes: Performing addition, deletion, query and modification operations on the standardized data of the source case; Using the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case to perform vertical splicing of the data table; The separator file is exported according to the directory structure of the second initial case to obtain the second target case.

5. The method for rapid conversion of power spot market clearing cases according to claim 4, It is characterized in that After vertically splicing the data table using the standardized data after the addition, deletion, query and modification operations and the non-standardized data of the first target case, the method further includes: The spliced ​​file is retrieved, and different class name identifiers of the same object name in the spliced ​​file are unified.

6. The method for rapid conversion of power spot market clearing cases according to claim 1, It is characterized in that The case operation interface includes a directory construction function interface, a file decoding function interface, a file statistics function interface, a file splitting function interface, a file splicing function interface and a data acquisition function interface.

7. A system for rapid conversion of electricity spot market clearing cases, It is characterized in that include: An operation interface module, used to obtain a case file in XML format of a case operation interface, wherein the case file includes a source case and a first target case; An instantiation module, used to instantiate the source case, the first target case and the second initial case, and construct a directory structure of the second initial case using the instantiation result; A text splitting module, used to perform text splitting on the source case and the first target case respectively, to obtain standardized data of the source case and non-standardized data of the first target case; The case output module is used to splice the standardized data and the non-standardized data, and export the splicing results according to the directory structure of the second initial case to obtain a second target case.

8. An electronic device, It is characterized in that It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for rapid conversion of electricity spot market clearing cases as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the method for rapid conversion of electricity spot market clearing cases as described in any one of claims 1 to 6 is implemented.

10. A computer program product, It is characterized in that The computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer is caused to execute the method for rapid conversion of electricity spot market clearing cases as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Extensible markup language (XML) based information interoperability verification method in high-speed model intelligent power distribution and consumption field

    CN105160590A

  • Case clearing calculation method, system, device, computer equipment and storage medium

    CN110659288A

  • Power transaction platform server, client and exchange method of clearing case

    CN111046093A

  • Nuclear power station program file conversion method and device

    CN112667722A

  • Electric power spot market case management and data statistical analysis system and method

    CN113704324A