Method, device and equipment for judging correctness of virtual terminal loop, and program product
By obtaining the whitelist of virtual terminal loops and their judgment rules and automatically iteratively updates, the problem of low accuracy judgment efficiency in the prior art is solved, automatic update is realized, and judgment efficiency is improved.
Patent Information
- Application Number
- CN202411985028.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-27
AI Technical Summary
The existing virtual terminal loop correctness determination method is relatively inefficient and requires manual update of the judgment rules to cover each virtual terminal loop in actual applications.
By obtaining the virtual terminal loop to be judged and its corresponding whitelist of judgment rules, the electronic device automatically iteratively updates the whitelist of judgment rules to determine the correctness judgment result of the virtual terminal loop.
It improves the efficiency of determining the correctness of virtual terminal circuits, reduces the need for manual updates, and ensures that the judgment rules are updated at all times.
Smart Images

Figure CN120045568A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electric power, and particularly relates to a method, device, equipment and program product for determining the correctness of a virtual terminal loop. Background Art
[0002] With the rapid development of substations, the demand for determining the correctness of virtual terminal loops in substations is increasing. The latest method for determining the correctness of virtual terminal loops is as follows: Manually pre-determine the rules for determining the correctness of virtual terminal loops in advance, and use an electronic device to automatically determine the result of determining the correctness of virtual terminal loops according to the determined rules for determining the correctness.
[0003] This method improves the efficiency of determining the correctness of virtual terminal loops to a certain extent. However, the pre-determined rules for determining the correctness may not fully cover all virtual terminal loops in actual applications. Therefore, in actual applications, it is usually necessary to manually update the rules for determining the correctness, resulting in a low efficiency of determining the correctness of existing virtual terminal loops. Summary of the Invention
[0004] In view of this, embodiments of this application provide a method, device, equipment and program product for determining the correctness of a virtual terminal loop to solve the technical problem of low efficiency in determining the correctness of existing virtual terminal loops.
[0005] In a first aspect, an embodiment of this application provides a method for determining the correctness of a virtual terminal loop, including:
[0006] Obtain a first virtual terminal loop whose correctness is to be determined;
[0007] Obtain a white list of determination rules corresponding to the first virtual terminal loop, where the white list of determination rules is iteratively updated during the process of determining the correctness of the virtual terminal loop;
[0008] Determine the result of determining the correctness of the first virtual terminal loop according to the white list of determination rules.
[0009] Optionally, the obtaining of the first virtual terminal loop whose correctness is to be determined includes:
[0010] Obtain a substation configuration description file;
[0011] Obtain the first virtual terminal loop according to the substation configuration description file.
[0012] Optionally, the obtaining of the white list of determination rules corresponding to the first virtual terminal loop includes:
[0013] After completing the correctness determination of the previous virtual terminal circuit of the first virtual terminal circuit, update the determination rule whitelist corresponding to the previous virtual terminal circuit according to the correctness determination result of the previous virtual terminal circuit;
[0014] Determine the determination rule whitelist corresponding to the first virtual terminal circuit as the updated determination rule whitelist corresponding to the previous virtual terminal circuit.
[0015] Optionally, the determining the correctness determination result of the first virtual terminal circuit according to the determination rule whitelist includes:
[0016] Search for the target determination rule corresponding to the first virtual terminal circuit from the determination rule whitelist;
[0017] If the target determination rule is found, determine that the correctness determination result of the first virtual terminal circuit is correct;
[0018] If the target determination rule is not found, determine the correctness determination result of the first virtual terminal circuit according to the determination instruction input by the user.
[0019] Optionally, after determining the correctness determination result of the first virtual terminal circuit according to the determination rule whitelist, it further includes:
[0020] If the correctness determination result is correct and the number of other virtual terminal circuits with the same information as the first virtual terminal circuit obtained is greater than the preset threshold, extract the circuit information of the first virtual terminal circuit and update the determination rule whitelist according to the circuit information.
[0021] Optionally, the initial determination rule whitelist is determined by the following method:
[0022] Obtain a plurality of second virtual terminal circuits;
[0023] Determine the respective correctness determination results corresponding to each of the second virtual terminal circuits;
[0024] For each of the second virtual terminal circuits, if the correctness determination result of the second virtual terminal circuit is correct and the number of other virtual terminal circuits with the same information as the second virtual terminal circuit obtained is greater than the preset threshold, extract the circuit information of the second virtual terminal circuit and determine the determination rule corresponding to the second virtual terminal circuit according to the circuit information of the second virtual terminal circuit;
[0025] Determine the initial determination rule whitelist according to the determination rules respectively corresponding to each of the second virtual terminal circuits.
[0026] Optionally, determining the respective correctness determination results corresponding to each of the second virtual terminal circuits includes:
[0027] For each of the second virtual terminal circuits, determining a preliminary determination result of the second virtual terminal circuit through a preset determination model, obtaining a correction instruction input by a user, and correcting the preliminary determination result according to the correction instruction to obtain the correctness determination result corresponding to the second virtual terminal circuit.
[0028] In a second aspect, an embodiment of the present application provides a correctness determination device for a virtual terminal circuit, including:
[0029] A first acquisition unit, configured to acquire a first virtual terminal circuit whose correctness is to be determined;
[0030] A second acquisition unit, configured to acquire a determination rule white list corresponding to the first virtual terminal circuit, where the determination rule white list is iteratively updated during the process of determining the correctness of the virtual terminal circuit;
[0031] A determination unit, configured to determine a correctness determination result of the first virtual terminal circuit according to the determination rule white list.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step in the correctness determination method for a virtual terminal circuit according to any one of the first aspects described above is implemented.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, each step in the correctness determination method for a virtual terminal circuit according to any one of the first aspects described above is implemented.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device is caused to execute each step in the correctness determination method for a virtual terminal circuit according to any one of the first aspects described above.
[0035] The correctness determination method, device, equipment, and program product for a virtual terminal circuit provided by the embodiments of the present application have the following beneficial effects:
[0036] In the method for determining the correctness of the virtual terminal circuit of the present application, first, a first virtual terminal circuit to be determined for correctness is obtained, and then a whitelist of determination rules corresponding to the first virtual terminal circuit is obtained, where the whitelist of determination rules is iteratively updated during the process of determining the correctness of the virtual terminal circuit; finally, according to the whitelist of determination rules, the correctness determination result of the first virtual terminal circuit is determined. Through this method, during the process of determining the correctness of the virtual terminal circuit, the electronic device will automatically iteratively update the whitelist of determination rules without manual update, thus improving the efficiency of determining the correctness of the virtual terminal circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0038] Figure 1 It is a flowchart of the implementation of a method for determining the correctness of a virtual terminal circuit provided by an embodiment of the present application;
[0039] Figure 2 It is a schematic flowchart of the method for determining the correctness of the virtual terminal circuit provided by an embodiment of the present application;
[0040] Figure 3 It is a schematic structural diagram of a device for determining the correctness of a virtual terminal circuit provided by an embodiment of the present application;
[0041] Figure 4 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "a plurality of" means two or more than two, "at least one", "one or more" means one, two or more than two. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0043] References to "one embodiment" or "some embodiments" or the like described in this specification mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.
[0044] The method for determining the correctness of a virtual terminal circuit provided by an embodiment of the present application can be an electronic device, and this electronic device can execute each step of the method for determining the correctness of the virtual terminal circuit provided by this embodiment of the present application. Specifically, the electronic device can include, but is not limited to, mobile phones, tablet computers, laptop computers, desktop computers, etc.
[0045] The method for determining the correctness of a virtual terminal circuit provided by an embodiment of the present application can be applied to various application scenarios that require determining the correctness of a virtual terminal circuit. Specifically, when it is necessary to determine the correctness of a virtual terminal circuit, each step of the method for determining the correctness of the virtual terminal circuit provided by an embodiment of the present application can be executed by an electronic device, so that during the process of determining the correctness of the virtual terminal circuit, the electronic device will automatically iteratively update the whitelist of determination rules without manual update, thus improving the efficiency of determining the correctness of the virtual terminal circuit.
[0046] Please refer to Figure 1 , Figure 1 FIG. is a flowchart of the implementation of a method for determining the correctness of a virtual terminal circuit provided by an embodiment of the present application. The method for determining the correctness of the virtual terminal circuit can include S101 to S103, which are described in detail as follows:
[0047] In S101, a first virtual terminal circuit whose correctness is to be determined is obtained.
[0048] In an embodiment of the present application, the electronic device can first obtain a first virtual terminal circuit whose correctness is to be determined.
[0049] In a possible implementation manner, the electronic device can first obtain a Substation Configuration Description (SCD) file. After obtaining the substation configuration description file, the electronic device can obtain a first virtual terminal circuit whose correctness is to be determined according to the substation configuration description file.
[0050] Among them, there can be several first virtual terminal circuits whose correctness is to be determined.
[0051] In S102, obtain the white list of determination rules corresponding to the first virtual terminal loop, and the white list of determination rules is iteratively updated during the process of determining the correctness of the virtual terminal loop.
[0052] In the embodiment of the present application, after obtaining the first virtual terminal loop to be determined for correctness, the electronic device can obtain the white list of determination rules corresponding to the first virtual terminal loop, where the white list of determination rules is iteratively updated during the process of determining the correctness of the virtual terminal loop, and the white list of determination rules corresponding to the first virtual terminal loop can be the latest white list of determination rules when the electronic device obtains the first virtual terminal loop.
[0053] Based on this, the electronic device can obtain the white list of determination rules corresponding to the first virtual terminal loop in the following manner:
[0054] After completing the correctness determination of the previous virtual terminal loop of the first virtual terminal loop, the electronic device can update the white list of determination rules corresponding to the previous virtual terminal loop according to the correctness determination result of the previous virtual terminal loop, and determine the updated white list of determination rules corresponding to the previous virtual terminal loop as the white list of determination rules corresponding to the first virtual terminal loop. Similarly, the white list of determination rules corresponding to the previous virtual terminal loop can be the latest white list of determination rules when the electronic device obtains the previous virtual terminal loop.
[0055] Based on the above, it can be understood that after completing the correctness determination of the first virtual terminal loop, the electronic device can update the white list of determination rules corresponding to the first virtual terminal loop according to the correctness determination result of the first virtual terminal loop, and determine the updated white list of determination rules corresponding to the first virtual terminal loop as the white list of determination rules corresponding to the next virtual terminal loop of the first virtual terminal loop.
[0056] For the specific method of updating the white list of determination rules corresponding to the first virtual terminal loop according to the correctness determination result of the first virtual terminal loop, reference can be made to the content in S103, which will not be elaborated here.
[0057] In S103, determine the correctness determination result of the first virtual terminal loop according to the white list of determination rules.
[0058] In the embodiment of the present application, after obtaining the white list of determination rules corresponding to the first virtual terminal loop, the electronic device can determine the correctness determination result of the first virtual terminal loop according to the white list of determination rules corresponding to the first virtual terminal loop.
[0059] Specifically, the electronic device can determine the correctness determination result of the first virtual terminal loop according to the white list of determination rules corresponding to the first virtual terminal loop in the following manner:
[0060] The electronic device can first search for the target determination rule corresponding to the first virtual terminal circuit from the whitelist of determination rules corresponding to the first virtual terminal circuit. Specifically, for each determination rule in the whitelist of determination rules corresponding to the first virtual terminal circuit, the electronic device can determine whether the first virtual terminal circuit conforms to the determination rule. If the first virtual terminal circuit conforms to the determination rule, the electronic device can determine the determination rule as the target determination rule corresponding to the first virtual terminal circuit. If the first virtual terminal circuit does not conform to any determination rule, the electronic device can determine that the target determination rule cannot be found in the whitelist of determination rules corresponding to the first virtual terminal circuit.
[0061] If the electronic device finds the target determination rule corresponding to the first virtual terminal circuit, it can determine that the correctness determination result of the first virtual terminal circuit is correct.
[0062] If the electronic device cannot find the target determination rule corresponding to the first virtual terminal circuit, it can prompt the user to input a determination instruction in a preset manner, and determine the correctness determination result of the first virtual terminal circuit according to the determination instruction input by the user. The determination instruction is input to the electronic device by the user after making a correctness determination on the first virtual terminal circuit. The determination instruction can include a first instruction for determining that the correctness determination result of the first virtual terminal circuit is correct, and a second instruction for determining that the correctness determination result of the first virtual terminal circuit is incorrect. Based on this, if the determination instruction received by the electronic device is the first instruction for determining that the correctness determination result of the first virtual terminal circuit is correct, the electronic device can determine that the correctness determination result of the first virtual terminal circuit is correct; if the determination instruction received by the electronic device is the second instruction for determining that the correctness determination result of the first virtual terminal circuit is incorrect, the electronic device can determine that the correctness determination result of the first virtual terminal circuit is incorrect.
[0063] After the electronic device determines the correctness determination result of the first virtual terminal circuit, it can update the whitelist of determination rules corresponding to the first virtual terminal circuit according to the correctness determination result of the first virtual terminal circuit, so as to obtain the whitelist of determination rules for determining the next virtual terminal circuit.
[0064] Specifically, the electronic device can update the whitelist of determination rules corresponding to the first virtual terminal circuit in the following way:
[0065] If the correctness determination result of the first virtual terminal circuit is correct, and the number of other virtual terminal circuits with the same information as the first virtual terminal circuit obtained is greater than the preset threshold, the circuit information of the first virtual terminal circuit is extracted, and the whitelist of determination rules corresponding to the first virtual terminal circuit is updated according to the circuit information.
[0066] Specifically, the electronic device can first determine whether the correctness determination result of the first virtual terminal circuit is correct. If the correctness determination result of the first virtual terminal circuit is incorrect, the determination rule whitelist corresponding to the first virtual terminal circuit may not be updated.
[0067] If the correctness determination result of the first virtual terminal circuit is correct, the electronic device can obtain the number of other virtual terminal circuits with the same information as the first virtual terminal circuit. Specifically, the electronic device can determine each other virtual terminal circuit with the same information as the first virtual terminal circuit from each virtual terminal circuit obtained before the current moment, and count the number of other virtual terminal circuits with the same information as the first virtual terminal circuit, so as to obtain the number of other virtual terminal circuits with the same information as the first virtual terminal circuit.
[0068] After obtaining the number of other virtual terminal circuits with the same information as the first virtual terminal circuit, the electronic device can compare the number of other virtual terminal circuits with the same information as the first virtual terminal circuit with a preset threshold. If the number of other virtual terminal circuits with the same information as the first virtual terminal circuit is greater than the preset threshold, the circuit information of the first virtual terminal circuit is extracted, and the determination rule whitelist corresponding to the first virtual terminal circuit is updated according to the circuit information; if the number of other virtual terminal circuits with the same information as the first virtual terminal circuit is less than or equal to the preset threshold, the subsequent steps are not executed, that is, the determination rule whitelist corresponding to the first virtual terminal circuit may not be updated.
[0069] Among them, the specific implementation method for the electronic device to update the determination rule whitelist corresponding to the first virtual terminal circuit according to the circuit information can be: the electronic device generates a to-be-reviewed whitelist rule according to the circuit information, and prompts the user to review the to-be-reviewed whitelist rule. If the user's review is passed, the electronic device can add the to-be-reviewed whitelist rule to the determination rule whitelist corresponding to the first virtual terminal circuit to obtain the updated determination rule whitelist corresponding to the first virtual terminal circuit.
[0070] When the number of other virtual terminal circuits with the same information as the first virtual terminal circuit is greater than the preset threshold, the advantage of updating the determination rule whitelist corresponding to the first virtual terminal circuit according to the circuit information of the first virtual terminal circuit is that it can ensure the accuracy of each determination rule in the determination rule whitelist.
[0071] In a possible implementation manner, the electronic device can first obtain an initial determination rule whitelist, and then iteratively update the initial determination rule whitelist in the manner described above. Among them, the electronic device can obtain the initial determination rule whitelist through the following method:
[0072] The electronic device can first obtain multiple second virtual terminal circuits. Among them, the difference between the second virtual terminal circuit and the first virtual terminal circuit is that the second virtual terminal circuit is used to obtain the initial whitelist of determination rules, while the first virtual terminal circuit is the virtual terminal circuit whose correctness is to be determined. That is, the purpose of obtaining multiple second virtual terminal circuits is to obtain the initial whitelist of determination rules, so as to determine the correctness determination result of the first virtual terminal circuit. Exemplarily, the electronic device can obtain several substation configuration description files, and can obtain multiple second virtual terminal circuits according to the substation configuration description files.
[0073] After obtaining multiple second virtual terminal circuits, the electronic device can determine the corresponding correctness determination results of each second virtual terminal circuit. Exemplarily, the electronic device can jointly determine the corresponding correctness determination results of each second virtual terminal circuit by combining automatic and manual methods.
[0074] Specifically, for each second virtual terminal circuit, the electronic device can determine the preliminary determination result of the second virtual terminal circuit through a preset determination model, obtain the correction instruction input by the user, and correct the preliminary determination result according to the correction instruction to obtain the corresponding correctness determination result of the second virtual terminal circuit. Among them, the preset determination model can be pre-trained. By jointly determining the corresponding correctness determination results of each second virtual terminal circuit by combining automatic and manual methods, the accuracy of the corresponding correctness determination results of each second virtual terminal circuit can be ensured, and further the accuracy of each determination rule in the initial whitelist of determination rules can be ensured.
[0075] After determining the corresponding correctness determination results of each second virtual terminal circuit, for each second virtual terminal circuit, if the correctness determination result of the second virtual terminal circuit is correct and the number of other virtual terminal circuits with the same information as the second virtual terminal circuit obtained is greater than the preset threshold, the electronic device can extract the circuit information of the second virtual terminal circuit, and determine the determination rule corresponding to the second virtual terminal circuit according to the circuit information of the second virtual terminal circuit, so as to determine the determination rule corresponding to each second virtual terminal circuit.
[0076] Specifically, the electronic device can first determine whether the correctness determination result of the second virtual terminal circuit is correct. If the correctness determination result of the second virtual terminal circuit is incorrect, the subsequent steps are not executed, that is, the determination rule corresponding to the second virtual terminal circuit is not generated.
[0077] If the correctness determination result of the second virtual terminal loop is correct, the electronic device can obtain the number of other virtual terminal loops with the same information as that of the second virtual terminal loop. Specifically, the electronic device can determine each other virtual terminal loop with the same information as that of the second virtual terminal loop from each virtual terminal loop obtained before the current moment, and count the number of other virtual terminal loops with the same information as that of the second virtual terminal loop, so as to obtain the number of other virtual terminal loops with the same information as that of the second virtual terminal loop.
[0078] After obtaining the number of other virtual terminal loops with the same information as that of the second virtual terminal loop, the electronic device can compare the number of other virtual terminal loops with the same information as that of the second virtual terminal loop with a preset threshold. If the number of other virtual terminal loops with the same information as that of the second virtual terminal loop is greater than the preset threshold, the loop information of the second virtual terminal loop is extracted, and according to the loop information of the second virtual terminal loop, the corresponding determination rule of the second virtual terminal loop is determined. If the number of other virtual terminal loops with the same information as that of the second virtual terminal loop is less than or equal to the preset threshold, the subsequent steps may not be executed, that is, the determination rule corresponding to the second virtual terminal loop is not generated.
[0079] After determining the determination rule corresponding to each second virtual terminal loop, the electronic device can determine an initial determination rule whitelist according to the determination rule corresponding to each second virtual terminal loop respectively. Specifically, the electronic device can perform a deduplication process on the set of determination rules corresponding to each second virtual terminal loop respectively, so as to obtain an initial determination rule whitelist.
[0080] As can be seen from the above, in the method for determining the correctness of the virtual terminal loop of the present application, first, a first virtual terminal loop to be determined for correctness is obtained, and then a determination rule whitelist corresponding to the first virtual terminal loop is obtained, wherein the determination rule whitelist is iteratively updated during the process of determining the correctness of the virtual terminal loop; finally, according to the determination rule whitelist, the correctness determination result of the first virtual terminal loop is determined. Through this method, during the process of determining the correctness of the virtual terminal loop, the electronic device will automatically iteratively update the determination rule whitelist without manual update, so the efficiency of determining the correctness of the virtual terminal loop is improved.
[0081] Based on the method for determining the correctness of the virtual terminal loop provided by the present application, the following gives a schematic flowchart of the method for determining the correctness of the virtual terminal loop. Please refer to Figure 2 , Figure 2 is the schematic flowchart of the method for determining the correctness of the virtual terminal loop provided by the embodiments of the present application. The following will describe each step of the method for determining the correctness of the virtual terminal loop provided by the present application according to Figure 2 ,and explain each step of the method for determining the correctness of the virtual terminal loop provided by the present application.
[0082] First, the electronic device can first determine the preliminary determination results of each second virtual terminal loop in the substation configuration description file of the substation through a preset determination model.
[0083] After that, for each second virtual terminal loop, the user can manually modify the preliminary determination result of the second virtual terminal loop. The electronic device can obtain the correction instruction input by the user and can correct the preliminary determination result of the second virtual terminal loop according to the correction instruction to obtain the correctness determination result corresponding to the second virtual terminal loop.
[0084] After that, if the correctness determination result corresponding to the second virtual terminal loop is correct, the electronic device can extract the virtual terminal loop information of the second virtual terminal loop and query the virtual loop record review and record form according to the virtual terminal loop information of the second virtual terminal loop. If there is another virtual terminal loop in the virtual loop record review and record form that is the same as the virtual terminal loop information of the second virtual terminal loop, the repetition count of the second virtual terminal loop can be incremented by one, and it can be determined whether the repetition count of the second virtual terminal loop is greater than the set threshold. If the repetition count of the second virtual terminal loop is greater than the set threshold, the determination rule corresponding to the second virtual terminal loop can be determined according to the loop information of the second virtual terminal loop, and the determination rule corresponding to the second virtual terminal loop can be added to the white list to be reviewed. (Equivalent to the step of determining the initial determination rule white list in the embodiment of the present application).
[0085] The electronic device can execute the above steps for each second virtual terminal loop, so as to obtain the white list to be reviewed, and the user can review the white list to be reviewed to obtain the final determination rule white list.
[0086] After obtaining the final white list, the electronic device can obtain the first virtual terminal loop to be reviewed next, and determine whether there is a rule corresponding to the first virtual terminal loop to be reviewed in the final determination rule white list, so as to output the correctness determination result of the first virtual terminal loop to be reviewed. Specifically, if there is a rule corresponding to the first virtual terminal loop to be reviewed in the final determination rule white list, it is determined that the correctness determination result of the first virtual terminal loop is correct; if there is no rule corresponding to the first virtual terminal loop to be reviewed in the final determination rule white list and the determination instruction input by the user is correct, it is determined that the correctness determination result of the first virtual terminal loop is correct; if there is no rule corresponding to the first virtual terminal loop to be reviewed in the final determination rule white list and the determination instruction input by the user is incorrect, it is determined that the correctness determination result of the first virtual terminal loop is incorrect.
[0087] After obtaining the correctness determination result of the first virtual terminal circuit, the electronic device can also update the determination rule whitelist according to the correctness determination result of the first virtual terminal circuit. Specifically, if it is determined that the correctness determination result of the first virtual terminal circuit is correct, the electronic device can obtain the number of other virtual terminal circuits with the same information as the first virtual terminal circuit, where the other virtual terminal circuits with the same information as the first virtual terminal circuit are other first virtual terminal circuits for which the electronic device has previously made a correctness determination. If the number of other virtual terminal circuits with the same information as the first virtual terminal circuit is greater than a preset threshold, the circuit information of the first virtual terminal circuit is provided, and the determination rule whitelist is updated according to the circuit information; if the number of other virtual terminal circuits with the same information as the first virtual terminal circuit is less than or equal to the preset threshold, the determination rule whitelist is not updated.
[0088] Based on the virtual terminal circuit correctness determination method provided in the above embodiment, the embodiment of the present application further provides a virtual terminal circuit correctness determination device for implementing the above method embodiment. Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of a virtual terminal circuit correctness determination device provided by an embodiment of the present application. As Figure 3 shown, the virtual terminal circuit correctness determination device 30 may include: a first acquisition unit 31, a second acquisition unit 32, and a determination unit 33. Among them:
[0089] The first acquisition unit 31 is used to acquire a first virtual terminal circuit whose correctness is to be determined.
[0090] The second acquisition unit 32 is used to acquire the determination rule whitelist corresponding to the first virtual terminal circuit, and the determination rule whitelist is iteratively updated during the process of determining the correctness of the virtual terminal circuit.
[0091] The determination unit 33 is used to determine the correctness determination result of the first virtual terminal circuit according to the determination rule whitelist.
[0092] Optionally, the first acquisition unit 31 is specifically used for:
[0093] Acquire a substation configuration description file;
[0094] According to the substation configuration description file, acquire the first virtual terminal circuit.
[0095] Optionally, the second acquisition unit 32 is specifically used for:
[0096] After completing the correctness determination of the previous virtual terminal circuit of the first virtual terminal circuit, update the determination rule whitelist corresponding to the previous virtual terminal circuit according to the correctness determination result of the previous virtual terminal circuit;
[0097] Determine the whitelist of determination rules corresponding to the updated previous virtual terminal circuit as the whitelist of determination rules corresponding to the first virtual terminal circuit.
[0098] Optionally, the determination unit 33 is specifically configured to:
[0099] Search in the whitelist of determination rules for the target determination rule corresponding to the first virtual terminal circuit;
[0100] If the target determination rule is found, determine that the correctness determination result of the first virtual terminal circuit is correct;
[0101] If the target determination rule is not found, determine the correctness determination result of the first virtual terminal circuit according to the determination instruction input by the user.
[0102] Optionally, the correctness determination device 30 of the virtual terminal circuit may further include an update unit. Wherein:
[0103] The update unit is specifically configured to:
[0104] If the correctness determination result is correct, and the number of other virtual terminal circuits with the same information as the first virtual terminal circuit obtained is greater than the preset threshold, extract the circuit information of the first virtual terminal circuit, and update the whitelist of determination rules according to the circuit information.
[0105] Optionally, the correctness determination device 30 of the virtual terminal circuit may further include an initial determination rule whitelist acquisition unit. Wherein:
[0106] The initial determination rule whitelist acquisition unit is specifically configured to:
[0107] Obtain a plurality of second virtual terminal circuits;
[0108] Determine the respective correctness determination results corresponding to each second virtual terminal circuit;
[0109] For each second virtual terminal circuit, if the correctness determination result of the second virtual terminal circuit is correct, and the number of other virtual terminal circuits with the same information as the second virtual terminal circuit obtained is greater than the preset threshold, extract the circuit information of the second virtual terminal circuit, and determine the determination rule corresponding to the second virtual terminal circuit according to the circuit information of the second virtual terminal circuit;
[0110] Determine the initial whitelist of determination rules according to the determination rules corresponding to each second virtual terminal circuit respectively.
[0111] Optionally, the initial determination rule whitelist acquisition unit is specifically configured to:
[0112] For each second virtual terminal loop, determine the preliminary determination result of the second virtual terminal loop through a preset determination model, obtain the correction instruction input by the user, and correct the preliminary determination result according to the correction instruction to obtain the correctness determination result corresponding to the second virtual terminal loop.
[0113] It should be noted that the information interaction, execution process, etc. between the above units, due to being based on the same concept as the method embodiment of the present application, for their specific functions and the technical effects brought, please refer to the method embodiment part specifically, and will not be elaborated here.
[0114] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 4 shown, the electronic device 4 provided in this embodiment may include: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40, such as a program corresponding to the method for determining the correctness of a virtual terminal loop. When the processor 40 executes the computer program 42, the steps in the above method embodiment for determining the correctness of a virtual terminal loop are implemented, such as Figure 1 the S101 - S103 shown. Or, when the processor 40 executes the computer program 42, the functions of each module / unit in the above embodiment of the device for determining the correctness of a virtual terminal loop are implemented, such as Figure 3 the functions of the units 31 - 33 shown.
[0115] Exemplarily, the computer program 42 can be divided into one or more modules / units. One or more modules / units are stored in the memory 41 and executed by the processor 40 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 can be divided into a first acquisition unit 31, a second acquisition unit 32, and a determination unit 33. For the specific functions of each unit, please refer to Figure 3 the relevant descriptions in the corresponding embodiments, which will not be elaborated here.
[0116] Those skilled in the art can understand that Figure 4 this is only an example of the electronic device 4, and does not constitute a limitation on the electronic device 4. It may include more or fewer components than shown in the figure, or combine some components, or different components.
[0117] The processor 40 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc.
[0118] The memory 41 may be an internal storage unit of the electronic device 4, such as the hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card equipped on the electronic device 4, etc. Further, the memory 41 may also include both the internal storage unit and the external storage device of the electronic device 4. The memory 41 is used to store computer programs and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0119] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above division of each functional unit is used as an example. In actual applications, the above functions can be allocated to different functional units as needed, that is, the internal structure of the virtual terminal loop correctness determination device is divided into different functional units to complete all or part of the functions described above. Each functional unit in the embodiment may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units in the above system can refer to the corresponding process in the foregoing method embodiment and will not be elaborated here.
[0120] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
[0121] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device implements the steps in each of the above method embodiments.
[0122] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0123] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0124] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application 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 on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of this application, and should all be included in the protection scope of this application.
Claims
1. A method for determining the correctness of a virtual terminal loop, characterized in that: include: Acquire a first virtual terminal loop whose correctness is to be determined; Acquire a whitelist of determination rules corresponding to the first virtual terminal loop, wherein the whitelist of determination rules is iteratively updated in the process of determining the correctness of the virtual terminal loop; According to the determination rule whitelist, a correctness determination result of the first virtual terminal loop is determined.
2. The method according to claim 1, characterized in that The step of obtaining a first virtual terminal loop to be determined for correctness includes: Get the substation configuration description file; The first virtual terminal loop is obtained according to the substation configuration description file.
3. The method according to claim 1, characterized in that: The obtaining of a whitelist of determination rules corresponding to the first virtual terminal loop includes: After completing the correctness determination of the last virtual terminal loop of the first virtual terminal loop, updating the determination rule whitelist corresponding to the last virtual terminal loop according to the correctness determination result of the last virtual terminal loop; The updated white list of determination rules corresponding to the previous virtual terminal loop is determined as the white list of determination rules corresponding to the first virtual terminal loop.
4. The method according to claim 1, characterized in that The determining the correctness determination result of the first virtual terminal loop according to the determination rule whitelist includes: Searching for a target determination rule corresponding to the first virtual terminal loop from the determination rule whitelist; If the target determination rule is found, determining that the correctness determination result of the first virtual terminal loop is correct; If the target determination rule cannot be found, the correctness determination result of the first virtual terminal loop is determined according to the determination instruction input by the user.
5. The method according to claim 4, characterized in that After determining the correctness determination result of the first virtual terminal loop according to the determination rule whitelist, the method further includes: If the correctness determination result is correct, and the number of other virtual terminal loops with the same information as the first virtual terminal loop is greater than a preset threshold, the loop information of the first virtual terminal loop is extracted, and the determination rule whitelist is updated according to the loop information.
6. The method according to any one of claims 1 to 5, characterized in that: The initial whitelist of decision rules is determined in the following manner: Acquire multiple second virtual terminal loops; Determine the correctness determination result corresponding to each of the second virtual terminal loops; For each of the second virtual terminal loops, if the correctness determination result of the second virtual terminal loop is correct, and the number of other virtual terminal loops with the same information as the second virtual terminal loop is greater than a preset threshold, the loop information of the second virtual terminal loop is extracted, and the determination rule corresponding to the second virtual terminal loop is determined according to the loop information of the second virtual terminal loop; The initial white list of determination rules is determined according to the determination rules corresponding to each of the second virtual terminal loops.
7. The method according to claim 6, characterized in that The determining of the correctness determination results corresponding to each of the second virtual terminal loops includes: For each of the second virtual terminal loops, a preliminary determination result of the second virtual terminal loop is determined by a preset determination model, and a correction instruction input by a user is obtained. According to the correction instruction, the preliminary determination result is corrected to obtain a correctness determination result corresponding to the second virtual terminal loop.
8. A device for determining the correctness of a virtual terminal circuit, characterized in that: include: A first acquisition unit, used for acquiring a first virtual terminal loop to be determined for correctness; A second acquisition unit is used to acquire a determination rule whitelist corresponding to the first virtual terminal loop, wherein the determination rule whitelist is iteratively updated in the process of determining the correctness of the virtual terminal loop; A determination unit is used to determine the correctness determination result of the first virtual terminal loop according to the determination rule white list.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps in the method for determining the correctness of a virtual terminal loop as described in any one of claims 1 to 7.
10. A computer program product, characterized in that When the computer program product is executed by a processor, each step of the method for determining the correctness of a virtual terminal loop as claimed in any one of claims 1 to 7 is implemented.