A Fast Conversion Method and System for Power Spot Market Clearing Cases

The method and system convert out-clearance cases using XML-formatted files and instance-based directory structures to enhance data transformation efficiency and accuracy in power market systems.

CN119090644BActive Publication Date: 2025-07-15ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the power spot market technical support system and simulation system lack a clearing case conversion method that takes into account accuracy, completeness and efficiency when converting data. It mainly establishes complex mapping relationships through mapping one by one, resulting in inefficient conversion efficiency.

Method used

Case files in XML format are obtained and instantiated, combined with the data structure characteristics of E text, through text splitting and splicing, and using data table-oriented conversion methods to avoid creating object fields one by one, and 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 CN119090644B_ABST
    Figure CN119090644B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of power dispatching, and discloses a method and system for quickly converting clearing cases in the electricity spot market. 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, and adopts a conversion method oriented to data tables to avoid establishing object fields one by one, so as to achieve the quick 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 technical support system for the electricity spot market.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

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

[0004] Currently, for the method of converting clearing cases in the technical support system for the power spot market and the power spot market simulation system, it mainly directly converts from the source data to the target data by establishing a one-to-one mapping. The method based on direct conversion requires establishing complex mapping relationships and constructing the target case structure one by one. Therefore, there is currently no clearing data conversion method that can balance accuracy, integrity, and efficiency. Summary of the Invention

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

[0006] A method for quickly converting clearing cases in a power spot market provided by the first aspect of the present invention includes:

[0007] 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;

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

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

[0010] Concatenate the standardized data and the non-standardized data, and export according to the directory structure of the second initial case based on the concatenation result to obtain the second target case.

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

[0012] Instantiate the case operation objects of the source case, the first target case, and the second initial case, where the second initial case is the clearance case to be converted;

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

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

[0015] Perform text splitting on the electronic text of the source case through the case operation object of the source case, and the line data starting with the first preset symbol in the electronic text of the source case is the standardized data to obtain the standardized data of the source case;

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

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

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

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

[0020] Vertically concatenate the data tables using the standardized data after the addition, deletion, query, and modification operations and the non-standardized data of the first target case;

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

[0022] Optionally, after vertically splicing the data tables of the standardized data after the addition, deletion, query, and modification operations and the non-standardized data of the first target case, the following is further included:

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

[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 fast conversion system for clearing cases in the electricity spot market provided by the second aspect of the present invention includes:

[0026] An operation interface module for obtaining a case file in XML format of a case operation interface, where the case file includes a source case and a first target case;

[0027] An instantiation module for instantiating the source case, the first target case, and the second initial case, and constructing the directory structure of the second initial case using the instantiation result;

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

[0029] A case output module for splicing the standardized data and the non-standardized data, and exporting according to the splicing result according to the directory structure of the second initial case to obtain a second target case.

[0030] An electronic device provided by the third aspect of the present invention includes a memory and a processor. When a computer program stored in the memory is executed by the processor, the processor executes the steps of the fast conversion method for clearing cases in the electricity spot market as described in any one of the above.

[0031] A computer-readable storage medium provided by the fourth aspect of the present invention stores a computer program, and when the computer program is executed, it implements the fast conversion method for clearing cases in the electricity spot market as described in any one of the above.

[0032] A computer program product provided by the fifth aspect of the present invention, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, wherein, when the program instructions are executed by a computer, the computer is made to execute the method for quickly converting the power spot market clearing case as described in any one of the above.

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

[0034] The present invention provides a method and system for quickly converting a power spot market clearing case, 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 a second initial case, and constructing a directory structure of the second initial case, respectively splitting the source case and the first target case into texts to obtain standardized data and non-standardized data corresponding to each case, and determining a 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, uses the data structure characteristics of E text and the obtained case file, and adopts a conversion method oriented to data tables to avoid establishing object fields one by one, so as to realize the quick conversion of a large amount of data, with higher efficiency; furthermore, it is realized 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. Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0036] Figure 1 It is a step flow chart of a method for quickly converting a power spot market clearing case provided in Embodiment 1 of the present invention;

[0037] Figure 2 It is a step flow chart of a method for quickly converting a power spot market clearing case provided in Embodiment 2 of the present invention;

[0038] Figure 3 It is a structural block diagram of a system for quickly converting a power spot market clearing case provided in Embodiment 3 of the present invention;

[0039] Figure 4 It is a structural block diagram of a computer device provided in Embodiment 4 of the present invention. Specific implementation manners

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

[0041] In order to make the object, features, and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the embodiments described below are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0042] The present invention considers the data structure characteristics of clearing cases in the spot power market, and provides a method and a system for quickly converting a clearing case in the spot power market. By making full use of the data structure characteristics of E-text (Electronic Text) and the existing target cases, and adopting a conversion method oriented to data tables, it avoids establishing object fields one by one to achieve the quick conversion of a large amount of data, with higher efficiency. Due to the effective practical significance of the present invention, power dispatching agencies can refer to the content of the present invention when carrying out the construction of a technical support system for the spot power market.

[0043] Please refer to Figure 1 , Figure 1 which is a step flowchart of a method for quickly converting a clearing case in a spot power market provided in Embodiment 1 of the present invention.

[0044] A method for quickly converting a clearing case in a spot power market provided by the present invention includes:

[0045] Step 101: 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.

[0046] The XML format refers to the file format of the Extensible Markup Language. XML is a markup language used for storing and transmitting data, which uses custom tags to describe the structure and content of the data.

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

[0048] Step 102: Instantiate the source case, the first target case, and a second initial case, and construct the directory structure of the second initial case by using the instantiation result.

[0049] The 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-like structure. Each directory can contain multiple subdirectories and files, but each file and subdirectory can only have one parent directory.

[0050] In the embodiment of the present invention, instantiate the source case, the first target case, and the second initial case, these three different case operation objects, and use the source case and the first target case as the inputs of the conversion process at the same time, and generate the file directory structure of the second initial case 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 the standardized data of the source case and the non-standardized data of the first target case.

[0052] Text splitting refers to the process of splitting a larger text block into smaller and more manageable parts, which can be based on various criteria, such as characters, sentences, paragraphs, themes, keywords, or other logical structures. In this embodiment, text splitting is performed according to the set characters as the rule.

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

[0054] Step 104: Concatenate the standardized data and the non-standardized data, and export according to the directory structure of the second initial case based on the concatenation result to obtain the second target case.

[0055] In the embodiment of the present invention, perform operations on the standardized data, concatenate the operation result of the standardized data and the non-standardized data, and then export the concatenated file 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, 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 by 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 spliced, and the splicing 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 set case operation interface and using the data structure characteristics of the E text and the obtained case file according to the data structure characteristics of the case file, the present invention adopts a conversion method oriented to data tables to avoid establishing object fields one by one, so as to realize the rapid conversion of a large amount of data with higher efficiency; furthermore, it is realized 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.

[0057] Please refer to Figure 2 , Figure 2 which is a step flow chart of a method for rapidly converting a clearing case in a power spot market provided in Embodiment 2 of the present invention.

[0058] A method for rapidly converting a clearing case in a power spot market provided by the present invention includes:

[0059] Step 201, 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.

[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 an embodiment of the present invention, this step is a prerequisite for carrying out subsequent steps, and the designed and implemented case operation interface can realize functions such as directory construction, file decoding, file statistics, file splitting, file splicing, and data acquisition.

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

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

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

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

[0066] The data acquisition function refers to acquiring the case data file with the specified file name.

[0067] Step 202: Instantiate the case operation objects of the source case, the first target case, and the second initial case, where the second initial case is the clearing case to be converted.

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

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

[0070] The second initial case refers to the initial clearing case to be converted and generated.

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

[0072] In the embodiment of the present invention, from the developed clearing system, the source case and the first target case are obtained through the case operation interface. The source case and the first target case are used as the inputs of the conversion process at the same time. The second initial case is the initial case to be output after conversion. Instantiate the case operation objects of the three different cases, 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, instantiate three objects, which are respectively used to operate the source case, the first target case, and the second initial case.

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

[0074] In the embodiment of the present invention, after instantiating the case operation object, it is necessary to generate the file directory structure of the second initial case according to the file directory structure of the first target case as the basis for subsequent steps.

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

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

[0077] S11. Split the electronic text of the source case through the case operation object of the source case. The line data starting with the first preset symbol in the electronic text of the source case is standardized data, and the standardized data of the source case is obtained.

[0078] In the embodiment of the present invention, the file splitting function of the above case operation interface is used to implement text splitting. 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 addition, deletion, query, and modification operations of the data table are performed on the standardized part. The standard data part refers to the content including fields and data text. For the E text, it refers to the line data starting with the first preset symbols "@" and "#".

[0079] S12. Split the electronic text of the first target case through the case operation object of the first target case;

[0080] S13. The line data starting with the first preset symbol in the electronic text of the first target case is 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 the data outside the standard data part. Usually, it refers to annotation content, data timestamp information, etc. For the E text, it refers to the annotation line starting with double slashes " / / ", the data time information line containing "<!… …!>", the data start line represented by angle brackets "<… … >", and the data end line represented by angle brackets with a single slash inside "< / … …>".

[0082] Step 205. Concatenate the standardized data and the non-standardized data, and export according to the directory structure of the second initial case based on the concatenation result to obtain the second target case.

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

[0084] S21. Perform addition, deletion, query, and modification operations on the standardized data of the source case.

[0085] In the embodiment of the present invention, addition, deletion, query, and modification operations are performed on the standardized data of the source case and the first target case.

[0086] S22. Vertically concatenate the data tables using the standardized data after the addition, deletion, query, and modification operations and the non-standardized data of the first target case.

[0087] The addition, deletion, query, and modification operations refer to the basic operation set for data in database management, information systems, or application programs, including creation, reading, update, and deletion. In this embodiment, specifically, addition, deletion, query, and modification operations are performed on the standardized data for the data table.

[0088] In the embodiment of the present invention, the standardized data of the source case after the add, delete, query, and modification 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] Further, 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", they are unified. The class name identifier corresponding to the final output object name "Belonging Group" of 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, thus 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, Grid to which the power plant belongs, Power plant type

[0102] # 1 Power plant A 111 GX 101

[0103] # 2 Power plant B 222 GD 101

[0104] # 3 Power plant C 333 GZ 101

[0105] # 4 Power plant D 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] # Power plant A, Group A

[0113] # Power plant B, Group B

[0114] # Power plant C, Group C

[0115] # Power plant D, Group D

[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, Area where the power plant belongs, Power plant type, Group to which it belongs

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

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

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

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

[0134] # Power plant 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=Date before!-->

[0144] <plantbasic>

[0145] @PlantID PlantName SubAreaID Type UnionID

[0146] / / Power plant ID, Power plant name, Area where the power plant is located, Power plant type, Group to which it belongs

[0147] # 1 Power plant A, GX, 101, Group A

[0148] # 2 Power plant B, GD, 101, Group B

[0149] # 3 Power plant C, GZ, 101, Group C

[0150] # 4 Power plant D, HN, 102, Group D

[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 a directory structure of the second initial case is constructed by using the instantiation result; the source case and the first target case are respectively split into texts 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; 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, and adopting a conversion method oriented to data tables, the present 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 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 and provides more valuable technical support for system developers.

[0157] Please refer to Figure 3 , Figure 3 , which is a 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] The instantiation module 302 is used to instantiate the source case, the first target case, and the second initial case, and construct the directory structure of the second initial case by using the instantiation results;

[0161] The text splitting module 303 is used to split the text of the source case and the first target case respectively, and obtain the standardized data of the source case and the 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 them according to the directory structure of the second initial case according to the splicing result, so as to obtain the 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] The case processing sub-module is used to instantiate the case operation objects of the source case, the first target case, and the second initial case, where the second initial case is the clearance case to be converted;

[0166] The structure construction sub-module is used to construct the second initial case through the case operation object of the second initial case based on the directory structure of the first target case, where the directory structure of the second initial case is the same as that of the first target case.

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

[0168] The standardized data sub-module is used to split the electronic text of the source case through the case operation object of the source case, and the line data starting with the first preset symbol in the electronic text of the source case is the standardized data, so as to obtain the standardized data of the source case;

[0169] The text processing sub-module is used to split the electronic text of the first target case through the case operation object of the first target case;

[0170] The non-standardized data sub-module is used to use the line 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 is the non-standardized data of the first target case.

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

[0172] The add / delete / check / modify operation sub-module is used to perform add / delete / check / modify operations on the standardized data of the source case;

[0173] A vertical splicing sub-module for vertically splicing a data table using the standardized data after add, delete, query, and modification operations and the non-standardized data of the first target case;

[0174] An export sub-module for exporting a delimiter file according to the directory structure of the second initial case to obtain a second target case.

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

[0176] A unification sub-module for retrieving the spliced file and unifying different class name identifiers for the same object name in the spliced file.

[0177] In the present invention, a case file in XML format of the 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 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 text-split 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 spliced, and exported according to the directory structure of the second initial case based on the splicing result to obtain a second target case; by setting the case operation interface in the present invention, the case file of the clearing system is obtained, and according to the data structure characteristics of the case file, using the data structure characteristics of the E text and the obtained case file, a data table-oriented conversion method is adopted to avoid establishing object fields one by one, so as to achieve fast conversion of a large amount of data, with higher efficiency; furthermore, it is realized 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.

[0178] Please refer to Figure 4 , Figure 4 which 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, the electronic device includes: a memory 401 and a processor 402, and a computer program is stored in the memory 402; when the computer program is executed by the processor 402, the processor 402 is caused to execute the power spot market clearing case fast conversion method as described in any one 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 program code 413 for performing any of the method steps in the above-described method. For example, the storage space 403 for the program code may include respective program codes 413 for implementing the various steps in the above method. 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 discs (CDs), memory cards, or floppy disks. The program code may be compressed in a suitable form, for example. When these codes are run by a computing processing device, they cause the computing processing device to execute the respective 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 discs (CDs), memory cards, or floppy disks. The program code may be compressed in a suitable form, for example. When these codes are run by a computing processing device, they cause the computing processing device to execute the respective steps in the fast conversion method for the electricity spot market clearing case described above.

[0181] Embodiment 5 of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the fast conversion method for the electricity spot market clearing case as described in any of the above embodiments.

[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. When the program instructions are executed by a computer, they cause the computer to execute the fast conversion method for the electricity spot market clearing case 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 foregoing method embodiments, and will not be elaborated herein.

[0184] In several embodiments provided by 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 merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. 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 displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces, and the indirect coupling or communication connection of devices or units can be in electrical, mechanical, or other forms.

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

[0186] In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can 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 this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical disks, and other various media that can store program codes.

[0188] The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of various embodiments of the present invention.

Claims

1. A fast conversion method for clearing cases in the electricity spot market, characterized in that, including: Obtain a case file in XML format of the case operation interface, where the case file includes a source case and a first target case; Instantiate the source case, the first target case, and a second initial case, and use the instantiation result to construct the directory structure of the second initial case; Perform text splitting on the source case and the first target case respectively to obtain the standardized data of the source case and the non-standardized data of the first target case; Concatenate the standardized data and the non-standardized data, and export according to the concatenation result in the directory structure of the second initial case to obtain a second target case.

2. The fast conversion method for the clearing case of the electricity spot market according to claim 1, wherein The step of instantiating the source case, the first target case, and the second initial case, and using the instantiation result to construct the directory structure of the second initial case includes: Instantiate the case operation objects of the source case, the first target case, and the second initial case, where the second initial case is a clearance case to be converted; Based on the directory structure of the first target case, construct the second initial case through the case operation object of the second initial case, where the directory structure of the second initial case is the same as that of the first target case.

3. The fast conversion method for clearing cases in the electricity spot market according to claim 2, characterized in that, The step of performing text splitting on the source case and the first target case respectively to obtain the standardized data of the source case and the non-standardized data of the first target case includes: Perform text splitting on the electronic text of the source case through the case operation object of the source case, and the line data starting with a first preset symbol in the electronic text of the source case is the standardized data, to obtain the standardized data of the source case; Perform 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 line data starting with a 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.

4. The fast conversion method for the clearing case of the electricity spot market according to claim 1, characterized in that The step of concatenating the standardized data and the non-standardized data, and exporting according to the concatenation result in the directory structure of the second initial case to obtain a second target case includes: Perform operations of adding, deleting, querying, and modifying on the standardized data of the source case; Vertically concatenate the data tables using the standardized data after the add, delete, query, and modify operations and the non-standardized data of the first target case; Export a delimiter file according to the directory structure of the second initial case to obtain a second target case.

5. The fast conversion method for clearing cases in the electricity spot market according to claim 4, wherein After vertically concatenating the data tables using the standardized data after the add, delete, query, and modify operations and the non-standardized data of the first target case, it further includes: Retrieve the concatenated file, and unify the different class name identifiers for the same object name in the concatenated file.

6. The fast conversion method for clearing cases in the electricity spot market according to claim 1, 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 concatenation function interface, and a data acquisition function interface.

7. A fast conversion system for electricity spot market clearing cases, characterized in that including: An operation interface module, configured 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, configured to instantiate the source case, the first target case and a second initial case, and construct a directory structure of the second initial case by using the instantiation result; A text splitting module, configured to split the text of the source case and the first target case respectively, so as to obtain the standardized data of the source case and the non-standardized data of the first target case; A case output module, configured to splice the standardized data and the non-standardized data, and export according to the splicing result according to the directory structure of the second initial case, so as to obtain a second target case.

8. An electronic device, characterized in that, It includes a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of the fast conversion method for electricity spot market clearing cases according to any one of claims 1-6.

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

10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the fast conversion method for electricity spot market clearing cases according to any one of claims 1-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