Method, System and Storage Medium for Generating Auto-Incrementing ID Encoding of Power Dispatching System Model
By using the judgment of ID coding rules and the time interval recovery mechanism in the power scheduling system, the coordination problem of model ID coding among different systems is solved, and the unified generation of ID coding and full life cycle management is realized, which improves the resource utilization efficiency of power grid objects.
Patent Information
- Application Number
- CN202111435526.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-11-29
AI Technical Summary
In traditional power scheduling systems, model ID encoding is difficult to coordinate between different systems, resulting in inconsistent encoding generation, unable to provide ID encoding resources for the entire life cycle, and difficult to recycle and utilize, affecting data correlation and resource management between systems.
The type of request is judged through the ID encoding rules, obtain SCHEMA information, generate ID encodings that meet the client's request, and recycle the reusable ID encoding within the set time interval, providing a unified ID encoding generation and recycling mechanism, adapting to the ID encoding management between multiple data types and systems.
It has achieved improvement in ID coding generation efficiency, provided ID coding resources and recycling mechanisms throughout the life cycle, supported unified management of power grid objects and efficient resource utilization, and reduced customized development among systems.
Smart Images

Figure CN114169724B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power dispatching automation, and particularly relates to a method, a system and a storage medium for generating an incrementing ID code of a power dispatching system model. Background Art
[0002] In a power dispatching automation system (hereinafter referred to as the automation system), the model ID code is the core data of the system. The ID code reflects the type of the model object, the region to which the model belongs, and the serial number recorded by the model. The region to which the model belongs is represented by a region code. The serial number recorded by the model is implemented by incrementing numbers. Through the ID code, the type of the model object, the creation region, and other information can be determined.
[0003] In traditional automation systems, the model ID is stored as a LONG type or a STRING type. No matter which type is used, the above ID code generation rules will be followed to obtain the stored model object code, region code, and recorded serial number. The ID code needs to follow the entire life cycle of the power grid object. However, the power grid object is in different systems at different stages, and each system has its own code generation algorithm. Therefore, it is very difficult to coordinate the ID code throughout the entire life cycle of the power grid object. The traditional approach is that each system model service program develops the logic for automatically generating an incrementing ID for a specific type of model ID, and generates a new ID for each record according to the applied operation. The object records are associated through ID mapping between the systems corresponding to different life cycles of the power grid object. This method can ensure the transfer of the ID code in the power grid system, but it also brings the following problems: 1) The code generation in a specific system can only be provided for a specified data type, and it is difficult to correspond the ID codes between systems; 2) The ID code cannot provide the ID code resources for the entire life cycle of the power grid model object; 3) It is impossible to recycle, judge, and utilize the ID code resources of the power grid model object throughout the life cycle. Summary of the Invention
[0004] To solve the deficiencies in the prior art, the present invention provides a method, a system and a storage medium for generating an incrementing ID code of a power dispatching system model, which improves the generation efficiency of the ID code, and can externally provide the ID code resources and ID code recycling mechanism for the entire life cycle of the power grid object, providing support for the efficient use of various business applications in the dispatching automation system.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] In a first aspect, a method for generating an incrementing ID code for a power dispatching system model is provided, including: in response to a client's request for an ID code of a specified object, determining the type of the requested ID code based on the ID coding rule; obtaining the corresponding SCHEMA information according to the type of the requested ID code; querying the ID coding arbitration library according to the SCHEMA information to generate an ID code that meets the client's request, and feeding it back to the client; querying the occupancy information of each ID code at a set time interval, and recycling the ID codes that meet the reuse conditions.
[0007] Further, the determining the type of the requested ID code based on the ID coding rule includes: matching the client's request for the ID code of the specified object with the ID coding resources stored in the ID coding arbitration library.
[0008] Further, the SCHEMA information is the storage structure of the ID coding resources in the ID coding arbitration library, including object classification, object coding, application system, application time, preliminary application time, and a reuse flag.
[0009] Further, the querying the ID coding arbitration library according to the SCHEMA information to generate an ID code that meets the client's request includes: querying the maximum record number of this type of model object in this area in the ID coding arbitration library according to the model object number and area number information, and the number obtained by adding one to the maximum record number becomes the object sequence number of the current application.
[0010] Further, the querying the occupancy information of each ID code at a set time interval, and recycling the ID codes that meet the reuse conditions includes: querying the usage status of each ID code in various power grid business systems at a set time interval, and judging whether the ID code is used by the business system according to whether there is a measurement definition of a certain ID code object in the sampling library; if a certain ID code is not used by the business system or the application time of a certain ID code has expired, it is considered that the ID code can be reused, and it is stored in the reusable ID coding resource library for subsequent client resource applications.
[0011] In a second aspect, a system for generating an incrementing ID code for a power dispatching system model is provided, including: a judgment module, configured to determine the type of the requested ID code based on the ID coding rule in response to a client's request for an ID code of a specified object; an ID coding information obtaining module, configured to obtain the corresponding SCHEMA information according to the type of the requested ID code; an ID coding information generating module, configured to query the ID coding arbitration library according to the SCHEMA information to generate an ID code that meets the client's request, and feed it back to the client; an ID coding arbitration library, configured to query the occupancy information of each ID code at a set time interval, and recycle the ID codes that meet the reuse conditions.
[0012] In a third aspect, there is provided a computer-readable storage medium, which includes a stored computer program. When the computer program is run by a processor, it controls the device where the storage medium is located to execute the method described in the first aspect.
[0013] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: By judging the type of the requested ID code based on the ID coding rule, the present invention obtains the corresponding SCHEMA information, generates an ID code that meets the client's request after querying the ID code arbitration library, and feeds it back to the client; at the same time, according to the set time interval, it queries the occupancy information of each ID code and reclaims the ID codes that meet the reuse conditions; it provides a method for generating ID codes that adapts to multiple data types, and gives a solution for batch generation of ID codes between different power grid systems, improving the generation efficiency of ID codes, and being able to uniformly provide ID code resources and ID code recycling mechanisms for the entire life cycle of power grid objects externally, providing support for the efficient use of various business applications in the dispatching automation system. Description of the Drawings
[0014] Figure 1 is a schematic flow chart of a method for generating an incrementing ID code for a power dispatching system model provided by an embodiment of the present invention;
[0015] Figure 2 is a block diagram of an ID code storage and recycling arbitration mechanism in an embodiment of the present invention. Detailed Embodiments
[0016] The present invention will be further described below with reference to the drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention and cannot be used to limit the protection scope of the present invention.
[0017] Embodiment 1:
[0018] As Figure 1 shown, a method for generating an incrementing ID code for a power dispatching system model includes: in response to a client's request for an ID code of a specified object, judging the type of the requested ID code based on the ID coding rule; obtaining the corresponding SCHEMA information according to the type of the requested ID code; generating an ID code that meets the client's request after querying the ID code arbitration library according to the SCHEMA information, and feeding it back to the client; querying the occupancy information of each ID code at the set time interval, and reclaiming the ID codes that meet the reuse conditions.
[0019] There are two common ways for the existing incrementing coding rules of power system models according to the data type of the ID code: 1) LONG type ID coding method, as shown in Table 1; 2) STRING type ID coding method, as shown in Table 2;
[0020] Table 1
[0021] 64~49 48~33 32~25 24~1 Model Object Number Measurement Type Region Number Object Serial Number
[0022] Example of LONG type ID coding: 115686301344202753 (model object number 411, measurement type 20, area number 1, object serial number 1; The Long type coding is generated through binary conversion. In the coding, the information is also generated according to the object number, area number, serial number, and measurement type, but the information needs to be obtained according to the corresponding data bits in the table).
[0023] Table 2
[0024] 4 Characters 6 Characters 8 Characters 8 Characters Model Object Number Region Number Object Serial Number Measurement Type
[0025] Example of STRING type ID coding: 13011306000000001000000010, where the model object number is 1301, the area number is 130600, the object serial number is 00000010, and the measurement type is 00000010;
[0026] The LONG type ID coding method is divided into four parts: model object number, measurement type, area number, and object serial number. Among them, the model object number is represented by bits 64 - 49 of LONG, the measurement type is represented by bits 48 - 33 of LONG, the area number is represented by bits 32 - 25 of LONG, and the object serial number is represented by bits 24 - 1 of LONG.
[0027] The STRING type ID coding method is divided into four parts: model object number, area number, object serial number, and measurement type. They are represented by 4 characters, 6 characters, 8 characters, and 8 characters in sequence in the string.
[0028] In summary, although the coding rules of LONG type and STRING type ID coding are different, their constituent elements are the same, both consisting of four parts: model object number, area number, object serial number, and measurement domain number. By judging the ID type, it can provide a choice for the subsequent generation of ID coding. According to the SCHEMA information of the system, the model object number, area number, and measurement type information required in the ID coding can be obtained. Based on the maximum object of this type of object in this area of the system, the object serial number for generating the ID coding this time can be obtained.
[0029] In this embodiment, for the process of the method for generating the self - incrementing ID coding of the power dispatching system model, refer to Figure 1, the application requests the ID encoding of a specified object through the client. After receiving the request, the model ID encoding management service determines the type of the requested ID encoding, obtains the corresponding SCHEMA information according to the type of the requested ID encoding, and queries the maximum record number of this type of model object in the ID encoding arbitration library under this region according to the model object number and region number information. After adding 1 to the maximum record number, it becomes the object sequence number of the current application. The model object number, region number, measurement type, and object sequence number obtained according to the above information can generate the ID encoding of the current model record.
[0030] In this embodiment, the storage structure of the ID encoding resources in the ID encoding arbitration library is shown in Table 3:
[0031] Table 3
[0032]
[0033] The ID encoding arbitration library stores all ID encoding resources according to the ID encoding associated object number, pre-allocated ID encoding, various system encodings in the full cycle, client application time, pre-allocated application time, and the flag indicating whether the ID encoding can be reused, for the ID encoding service to obtain ID encoding resources and for subsequent recycling of ID encoding resources.
[0034] The recycling of ID encoding full life cycle resources, as Figure 2 shown, the system ID encoding arbitration library regularly queries the power grid systems of various access ID encoding generation systems, such as every day, according to the locally stored encoding resources. According to the power grid topological relationship (this ID encoding object has no topological relationship), according to the usage of this ID encoding in each business system (such as whether it is included in the graphic G file and whether it is referenced in the data table), and according to the rules such as whether there is a measurement definition of the above ID encoding object in the sampling library to judge whether the object ID encoding is used by the business system. In the case where all three types of rules do not conform and at the same time the application time of the applied ID encoding has expired, it is considered that the ID encoding can be reused and will be stored in the reusable ID encoding resource library for subsequent client resource applications.
[0035] This embodiment provides unified service management for ID encoding between different power grid systems, reducing the customized development of ID encoding for various power dispatching automation systems. At the same time, it provides a recycling mechanism for the full life cycle of the power grid object ID encoding, realizing the reuse of ID encoding resources.
[0036] This embodiment includes, id coding rule adaptation, id coding allocation generation method, id coding service, id statistical service, characterized by: 1) ensuring the uniformity of global system model coding and rule adaptation through id coding rule adaptation; 2) pre-allocating ID resources through id coding resource pool technology to ensure efficient allocation of model coding; 3) providing unified and efficient id coding resource functions to the outside world through id coding services; 4) realizing intelligent recycling of invalid id codes through id coding statistical traceability services; 5) realizing the adaptation of ID codes to the different life cycle stages of associated objects through full life cycle management and processing of ID codes. The present invention patents a method for generating ID codes for adaptive models of power dispatching systems, provides a method for adaptively generating ID codes for power dispatching systems, realizes unified and efficient allocation and full life cycle management of id codes of dispatching automation systems, and provides efficient and unified id coding services for dispatching automation system model data services.
[0037] Example 2:
[0038] Based on the method for generating self-incremental ID codes for a power dispatching system model described in Example 1, this embodiment provides a system for generating self-incremental ID codes for a power dispatching system model, including: a judgment module, used to respond to a client's request for an ID code for a specified object, and judge the type of the requested ID code based on ID coding rules; an ID code information retrieval module, used to obtain corresponding SCHEMA information according to the type of the requested ID code; an ID code information generation module, used to query an ID code arbitration library according to the SCHEMA information and then generate an ID code that meets the client's request, and feed it back to the client; an ID code arbitration library, used to query the occupancy information of each ID code at a set time interval, and recycle the ID codes that meet the reuse conditions.
[0039] Example 3:
[0040] Based on the method for generating self-incremental ID codes for a power dispatching system model described in Example 1, this embodiment provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the method described in Example 1.
[0041] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0042] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of flows and / or blocks in the flowchart and / or block diagram can also be implemented. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in one or more of the flows Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0043] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implement the functions specified in one or more of the flows Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0044] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
Claims
1. A method for generating an incrementing ID code for an electric power dispatching system model, characterized in that, It includes: In response to a client's request for ID encoding of a specified object, determine the type of the requested ID encoding based on the ID encoding rule; According to the type of the requested ID encoding, obtain the corresponding SCHEMA information; After querying the ID encoding arbitration library according to the SCHEMA information, generate an ID encoding that meets the client's request and feedback it to the client; At a set time interval, query the occupancy information of each ID encoding and recycle the ID encodings that meet the reuse conditions; Among them, the determining the type of the requested ID encoding based on the ID encoding rule includes: matching the client's request for ID encoding of a specified object with the ID encoding resources stored in the ID encoding arbitration library; The SCHEMA information is the storage structure of ID encoding resources in the ID encoding arbitration library, including object classification, object encoding, application system, application time, preliminary application time, and a reuse flag; The generating an ID encoding that meets the client's request after querying the ID encoding arbitration library according to the SCHEMA information includes: according to the model object number and area number information, query the maximum record number of this type of model object number in this area in the ID encoding arbitration library, and the number after adding one to the maximum record number becomes the object serial number of the current application; The querying the occupancy information of each ID encoding at a set time interval and recycling the ID encodings that meet the reuse conditions includes: querying the usage situation of each ID encoding in various power grid business systems at a set time interval, and judging whether the ID encoding is used by the business system according to whether there is a measurement definition of a certain ID encoding object in the sampling library; if a certain ID encoding is not used by the business system or the application time of a certain ID encoding has expired, it is considered that the ID encoding can be reused and stored in the reusable ID encoding resource library for subsequent client resource applications.
2. A system for generating an incrementing ID code for an electric power dispatching system model, characterized in that, It includes: A judgment module, which is used to respond to a client's request for ID encoding of a specified object and determine the type of the requested ID encoding based on the ID encoding rule; An ID encoding information retrieval module, which is used to obtain the corresponding SCHEMA information according to the type of the requested ID encoding; An ID encoding information generation module, which is used to generate an ID encoding that meets the client's request after querying the ID encoding arbitration library according to the SCHEMA information and feedback it to the client; An ID encoding arbitration library, which is used to query the occupancy information of each ID encoding at a set time interval and recycle the ID encodings that meet the reuse conditions; Among them, the determining the type of the requested ID encoding based on the ID encoding rule includes: matching the client's request for ID encoding of a specified object with the ID encoding resources stored in the ID encoding arbitration library; The SCHEMA information is the storage structure of ID encoding resources in the ID encoding arbitration library, including object classification, object encoding, application system, application time, preliminary application time, and a reuse flag; Querying the ID coding arbitration library according to the SCHEMA information to generate an ID coding that meets the client's request includes: according to the model object number and area number information, querying the maximum record number of this type of model object number in this area in the ID coding arbitration library, and adding one to the maximum record number to become the object sequence number of the current application. Querying the occupancy information of each ID coding at a set time interval and recycling the ID codings that meet the reuse conditions includes: querying the usage of each ID coding in various power grid business systems at a set time interval, and judging whether the ID coding is used by the business system according to whether there is a measurement definition of a certain ID coding object in the sampling library; if a certain ID coding is not used by the business system or the application time of a certain ID coding has expired, it is considered that the ID coding can be reused and stored in the reusable ID coding resource library for subsequent client resource applications.
3. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein when the computer program is run by a processor, it controls the device where the storage medium is located to execute the method described in claim 1.
Citation Information
Patent Citations
Power grid model splicing method based on unified coding
CN102324784A
Data processing method and device, electronic equipment and readable storage medium
CN110691092A