CN110069279A - A kind of method of calibration, device and the storage medium of DC control protective program - Google Patents

A kind of method of calibration, device and the storage medium of DC control protective program Download PDF

Info

Publication number
CN110069279A
CN110069279A CN201910356116.1A CN201910356116A CN110069279A CN 110069279 A CN110069279 A CN 110069279A CN 201910356116 A CN201910356116 A CN 201910356116A CN 110069279 A CN110069279 A CN 110069279A
Authority
CN
China
Prior art keywords
module
program
page
verified
functional module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910356116.1A
Other languages
Chinese (zh)
Other versions
CN110069279B (en
Inventor
卢远宏
郭琦
李书勇
郭海平
刘志江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Co Ltd, Research Institute of Southern Power Grid Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN201910356116.1A priority Critical patent/CN110069279B/en
Publication of CN110069279A publication Critical patent/CN110069279A/en
Application granted granted Critical
Publication of CN110069279B publication Critical patent/CN110069279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

This application discloses a kind of methods of calibration of DC control protective program, comprising: is respectively target DC control protective program and standard DC control protective program partition functionality module, and corresponding topological structure is arranged according to the oriented line of each functional module;Call pre-stored verification script; judge whether each target program page of target DC control protective program and each objective function module are corresponding identical as each standardization program page of standard DC control protective program and each standard feature module, determine the difference program page and/or difference function module according to topological structure.This method can save a large amount of human resources;It opposite can improve the verification efficiency and verification accuracy verified to DC control protective program.Disclosed herein as well is the calibration equipments and computer readable storage medium of a kind of DC control protective program, all have above-mentioned beneficial effect.

Description

A kind of method of calibration, device and the storage medium of DC control protective program
Technical field
The present invention relates to power grid control field, in particular to a kind of method of calibration of DC control protective program, device and Computer readable storage medium.
Background technique
Currently, the DC control protective program in DC control and protection system is in large scale and logic is complicated, and in order to The actual demand for adapting to continue to develop variation, needs update of modifying to DC control protective program, each procedural details Tremendous influence will be generated to whole system.Therefore, it is necessary to verify to DC control protective program, show that DC control is protected The concrete modification details of program is protected, to ensure the normal operation of DC control and protection system.In the prior art, generally by people The mode of work compares verification according to modification of program record.But by way of manually being verified, on the one hand, need Consume a large amount of human resources;On the other hand, manual operation is easy to be influenced by environmental factor or individual factor, causes version Situations such as this rollback, additional modifications, gaps and omissions modification, to cause check errors.
Therefore, how a kind of method of calibration of DC control protective program is provided, opposite can improve and DC control is protected The efficiency and accuracy that shield program is verified are a technical problem that technical personnel in the field need to solve at present.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of method of calibration of DC control protective program, it can be opposite Improve the efficiency and accuracy verified to DC control protective program;It is a further object of the present invention to provide a kind of direct current controls The calibration equipment and computer readable storage medium of protective program processed, all have above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of method of calibration of DC control protective program, comprising:
Respectively target DC control protective program and standard DC control protective program partition functionality module, and according to each Corresponding topological structure is arranged in the oriented line of the functional module;
Pre-stored verification script is called, judges the target DC control protective program according to the topological structure Each target program page and each objective function module whether each standardization program page with the standard DC control protective program It is corresponded to each standard feature module identical, determines the difference program page and/or difference function module.
Preferably, described to call pre-stored verification script, the target direct current control is judged according to the topological structure Whether each target program page of protective program processed and each objective function module are each with the standard DC control protective program The standardization program page and each standard feature module correspond to identical, determine that the difference program page and/or difference function module are specific Include:
Pre-stored first verification script is called, according to the target identification information of each target program page and each institute State the standard logo information of the standardization program page corresponding relationship determine matching the page to the difference program page;
Pre-stored second verification script is called, is judged in the same matching page pair respectively, each target Whether functional module corresponds with each standard feature module, determines the difference function module.
Preferably, described to be judged in the same matching page pair respectively, each objective function module whether with respectively The standard feature module corresponds, and determines that the difference function module specifically includes:
Functional module to be verified is chosen from the target program page of the matching page centering;
Judge each institute in the standardization program page for matching page centering corresponding with the functional module to be verified Whether identical as the functional module to be verified state standard feature module;
Determine identical standard feature module corresponding with the functional module to be verified in the standardization program page First quantity;
If first quantity is 0, the functional module to be verified is labeled as the difference function module;
Judge the matching page centering with the presence or absence of unlabelled objective function module;
If so, choosing functional module to be verified from the target program page of the matching page centering described in entering Step;
If it is not, then terminating process;
If first quantity is 1, by the functional module to be verified and identical with the functional module to be verified Standard feature module marks are matching module, and enter the judgement matching page to whether there is in the target program page The step of unlabelled objective function module;
If first quantity be greater than 1, further determine that out uniquely corresponded to the functional module to be verified it is identical Standard feature module, and enter described by the functional module to be verified and the mark identical with the functional module to be verified Quasi- functional module is labeled as the step of matching module.
Preferably, the judgement standardization program page for matching page centering corresponding with the functional module to be verified Whether each standard feature module in face is identical as the functional module to be verified to specifically include:
The object identifier code of the functional module to be verified is calculated according to preset algorithm rule;
According to the preset algorithm rule calculate matching page centering corresponding with the functional module to be verified it is each described in The criteria check code of standard feature module;
Judge whether each criteria check code and the object identifier code are consistent respectively;
If consistent, standard feature module corresponding with the criteria check code and the functional module phase to be verified are determined Together.
Preferably, described to determine the step of uniquely corresponding to identical standard feature module with the functional module to be verified It specifically includes:
Using the functional module to be verified, the functional module to be verified oriented line and with the function to be verified It can the connected first object functional module setting object element of module;
Obtain multiple standard feature modules to be confirmed identical with the functional module to be verified;
Be utilized respectively each standard feature module to be confirmed, each standard feature module to be confirmed oriented line with And corresponding standard block is arranged in the first connected standard feature module corresponding with each standard feature module to be confirmed;
Whether the quantity for judging the standard block identical with the object element is 1;
If so, being determined and the functional module to be verified according to the standard block identical with the object element Uniquely correspond to identical standard feature module;
If it is not, then updating the object element and the standard block respectively, and enter the judgement and the target list The step of whether quantity of the identical standard block of member is 1;
Wherein, the step of updating the object element include:
Utilize the object element, the oriented line of the object element and the second mesh for being connected with the object element It marks functional module and updates the object element;
The step of updating the standard block include:
It is utilized respectively each standard block, the oriented line of each standard block and is connected with the standard block The second standard feature module update each corresponding standard block.
Preferably, it is described from it is described matching the page pair in the target program page in choose functional module to be verified it Before, further comprise:
Each functional module of the matching page centering is classified according to type function;
It is corresponding, it is described from it is described matching the page pair in the target program page in choose functional module to be verified it Afterwards, further comprise:
Obtain objective function type corresponding with the functional module to be verified;
It is corresponding, the judgement standardization program page for matching page centering corresponding with the functional module to be verified Whether each standard feature module in face is identical as the functional module to be verified specifically:
Acquisition and institute from the standardization program page for matching page centering corresponding with the functional module to be verified State the corresponding standard feature module of objective function type;
Whether judgement and the corresponding standard feature module of the objective function type are identical as the functional module to be verified.
Preferably, pre-stored verification script is called described, judges the target direct current according to the topological structure Control protective program each target program page and each objective function module whether with the standard DC control protective program Each standardization program page and each standard feature module correspond to it is identical, determine the difference program page and/or difference function module it Afterwards, further comprise:
The difference program page and/or the difference function module are shown in the form of a list, and the list is set With the linking relationship of the standardization program page or the target program page.
In order to solve the above technical problems, the present invention also provides a kind of calibration equipments of DC control protective program, comprising:
Setup module, for respectively target DC control protective program and standard DC control protective program partition functionality Module, and corresponding topological structure is arranged according to the oriented line of each functional module;
Judgment module judges the target direct current according to the topological structure for calling pre-stored verification script Control protective program each target program page and each objective function module whether with the standard DC control protective program Each standardization program page and each standard feature module correspond to identical, determine the difference program page and/or difference function module.
In order to solve the above technical problems, the present invention also provides the calibration equipments of another DC control protective program, comprising:
Memory, for storing computer program;
Processor realizes the verification side of any of the above-described kind of DC control protective program when for executing the computer program The step of method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable Computer program is stored on storage medium, the computer program realizes any of the above-described kind of DC control when being executed by processor The step of method of calibration of protective program.
The method of calibration of DC control protective program provided by the invention, by calling pre-stored verification script to realize To the mode that DC control protective program is verified, compared to the prior art in by manually to DC control protective program carry out On the one hand the mode of verification, this method can save a large amount of human resources;On the other hand, it is verified by perform script Mode can be avoided the check errors as caused by itself or environment influence during desk checking, this method being capable of phase The verification efficiency and verification accuracy that raising verifies DC control protective program.
In order to solve the above technical problems, the present invention also provides a kind of calibration equipment of DC control protective program and calculating Machine readable storage medium storing program for executing all has above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the method for calibration of DC control protective program provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the topological structure of DC control protective program provided in an embodiment of the present invention;
Fig. 3 is that step " judges respectively in a kind of method of calibration of DC control protective program provided in an embodiment of the present invention In the same matching page pair, whether each objective function module corresponds with each standard feature module, determines difference function The flow chart of module ";
Fig. 4 is a kind of structure chart of the calibration equipment of DC control protective program provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of method of calibration of DC control protective program, being capable of opposite raising pair The efficiency and accuracy that DC control protective program is verified;Another core of the invention is to provide a kind of DC control protection The calibration equipment and computer readable storage medium of program, all have above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the method for calibration of DC control protective program provided in an embodiment of the present invention.Such as Fig. 1 institute Show, a kind of method of calibration of DC control protective program includes:
S10: respectively target DC control protective program and standard DC control protective program partition functionality module, and root According to the oriented line of each functional module, corresponding topological structure is set.
In the present embodiment, in order to be verified to target DC control protective program, provided with what is compared for reference Standard DC control protective program, and target DC control protective program and standard DC control protective program can be respectively Update the DC control protective program of front and back.
It is understood that the DC control protective program in DC control and protection system is in large scale, can generally divide For the thousands of program pages, there is dozens of functional module in each program page.Please refer to a kind of DC control as shown in Figure 2 The schematic diagram of the topological structure of protective program, the program page 1, the program page 2 ... program page N indicate different program pages Face, functional module in each program page are provided with intrinsic function in each functional module, such as the y=x1+ in functional module x2.According to the input and output number between each intrinsic function and it is correspondingly connected with relationship, corresponds to the oriented company of each functional module Line, so that each functional module in each program page connects into topological structure.That is, entire DC control protective program will It is set as the topological structure of a large-scale functional module and oriented line composition, each functional module is the vertex of topological structure Gather, the line between each functional module is the oriented line set of topological structure.
In the present embodiment, according to the program page of target DC control protective program and standard DC control protective program In the connection relationship of each functional module and each functional module obtain corresponding topological structure.Specifically, target DC control is protected Shield program includes the oriented line of the target program page, objective function module and each objective function module;Standard DC control Protective program includes the oriented line of the standardization program page, standard feature module and each standard feature module.
S20: calling pre-stored verification script, and each mesh of target DC control protective program is judged according to topological structure The beacon course sequence page and each objective function module whether with each standardization program page of standard DC control protective program and each standard Functional module corresponds to identical, determines the difference program page and/or difference function module.
Specifically, being provided in respectively target DC control protective program and standard DC control protective program corresponding After topological structure, pre-stored verification script is called, using standard DC control protective program as reference, according to topology knot Structure judge each target program page in target DC control protective program and objective function module whether with standard DC control The standardization program page and standard feature module of protective program respectively correspond;If mutually corresponding to identical, then it represents that target direct current It is identical with standard DC control protective program to control protective program;Otherwise, it determines go out the program page that is not correspond to and/or Functional module realizes the school to target DC control protective program to get the difference program page out and/or difference function module It tests.
The method of calibration of DC control protective program provided in an embodiment of the present invention, by calling pre-stored verification foot The mode that this realization verifies DC control protective program, compared to the prior art in by manually to DC control protect journey On the one hand the mode that sequence is verified, this method can save a large amount of human resources;On the other hand, it is carried out by perform script The mode of verification can be avoided the check errors as caused by itself or environment influence during desk checking, this method It opposite can improve the verification efficiency and verification accuracy verified to DC control protective program.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically, Call pre-stored verification script, according to topological structure judge each target program page of target DC control protective program with Whether each objective function module is corresponding with each standardization program page of standard DC control protective program and each standard feature module It is identical, determine that the difference program page and/or difference function module specifically include:
Pre-stored first verification script is called, according to the target identification information of each target program page and each standard journey The corresponding relationship of the standard logo information of the sequence page determine matching the page to and the difference program page;
Pre-stored second verification script is called, is judged in the same matching page pair respectively, each objective function module Whether corresponded with each standard feature module, determines difference function module.
Specifically, first judge target DC control protective program and standard DC control protective program the program page whether It is identical, if the program page is different, then it represents that the functional module in the program page is inevitable different, therefore obtains the difference program page; In the identical situation of the program page, further judge whether the functional module in the corresponding program page is identical, if obtaining Functional module is different, then correspondence obtains difference function module.
In actual operation, pre-stored first verification script is called first, by executing the first verification script to sentence Whether the standard logo information of target identification information and each standardization program page of each target program page of breaking corresponds;If phase It is corresponding, it is determined that go out the corresponding standardization program page and the target program page, i.e. the matching page pair;If being not correspond to, The difference program page out.
The matching page is being obtained to later, the pre-stored second verification script of calling judges same matching page centering The target program page in objective function module whether corresponded with the standard feature module in the standardization program page it is identical, According to whether corresponding result determines matching module and difference function module.Specifically, if corresponding, it is concluded that matching mould Block, if being not correspond to, it is concluded that difference function module.
It should be strongly noted that in the case where computing capability allows, it can will be in target DC control protective program The target program page of all target program pages as a whole, it is corresponding, it will be in standard DC control protective program The standardization program page of all standardization program pages as a whole, and then by the whole target program page and whole The standardization program page recycles the second verification script to compare the functional module of matching page centering as the matching page pair Compared with, it in this way can be with respect to the program page difference that avoid as where functional module and by the error in judgement of appearance, it can be into one Step improves the accuracy for determining difference function module.
The method of calibration of DC control protective program provided in this embodiment passes through the first verification script checking routine page Face, obtain matching the page to and the difference program page, by second verification script to matching page centering functional module carry out Verification, in the difference program page and difference that can verify out target DC control protective program and standard DC control protective program On the basis of exclusive-OR function module, opposite the complexity verified can be reduced, improve verification efficiency.
As shown in figure 3, " being judged respectively in same matching page for step in a kind of method of calibration of DC control protective program In facing, each objective function module whether with each standard feature module correspond, determine difference function module " process Figure.As preferred embodiment, judged in the same matching page pair respectively, each objective function module whether with each standard function Energy module corresponds, and determines that difference function module specifically includes:
S101: functional module to be verified is chosen from the target program page of matching page centering;
S102: each standard function in the standardization program page of judgement matching page centering corresponding with functional module to be verified Whether energy module is identical as functional module to be verified;
S103: first of identical standard feature module corresponding with functional module to be verified in the standardization program page is determined Quantity.
In the present embodiment, objective function module is first chosen from the target program page of matching page centering as to be verified Then functional module obtains each standard function of the standardization program page for matching page centering corresponding with the functional module to be verified Energy module, is compared with the functional module to be verified respectively using each standard feature module in the standardization program page, is judged Whether each standard feature module is identical as the functional module to be verified, if they are the same, then adds up identical as the functional module to be verified Standard feature module the first quantity;If not identical, another standard feature mould is obtained from the corresponding standardization program page Block continues with standard feature module and is compared with functional module to be verified, until the standard journey of same matching page centering Each standard feature module in the sequence page is compared with functional module to be verified, and is obtained in the standardization program page and to school Test the first quantity that functional module corresponds to identical standard feature module.
S104: if the first quantity is 0, functional module to be verified is labeled as difference function module;
S105: judgement matching page centering whether there is unlabelled objective function module;
If so, into the step of choosing functional module to be verified from the target program page for matching page centering;
S106: if it is not, then terminating process;
S107: if the first quantity is 1, by functional module to be verified and standard feature identical with functional module to be verified Module marks are matching module, and enter judgement matching the page in the target program page whether there is unlabelled objective function The step of module;
S108: it if the first quantity is greater than 1, further determines that out and uniquely corresponds to identical standard with functional module to be verified Functional module, and entering functional module to be verified and standard feature module marks identical with functional module to be verified is pairing The step of module.
According to the difference of the first quantity, different steps is executed by corresponding.Specifically, being indicated same if the first quantity is 0 It matches page centering and standard feature module identical with functional module to be verified is not present, therefore by the functional module mark to be verified It is denoted as difference function module.If the first quantity is 1, indicates to exist in the standardization program page of same matching page centering and be waited for this Verifying function module uniquely corresponds to identical standard feature module, by the functional module to be verified and with functional module phase to be verified Same standard feature module marks are matching module.If the first quantity is greater than 1, need to further determine that out and function to be verified Module uniquely corresponds to identical standard feature module, then by the functional module to be verified and with functional module to be verified it is uniquely right Answering identical standard feature module marks is matching module.
So far, it indicates to verify an objective function module in the target program page, in order to realize to target journey All objective function modules in the sequence page are verified, after treating verifying function module and being marked (including be labeled as Difference function module or label matching module), judge to match page centering with the presence or absence of unlabelled objective function module;
If it exists, then enter S101: choosing functional module to be verified from the target program page of matching page centering, after It is continuous that the objective function module that other are not labeled is verified;If it does not exist, each target journey to matching page centering is indicated All objective function modules in the sequence page are verified, then terminate process.
As it can be seen that the method for calibration of DC control protective program provided in this embodiment, it can be by the target verified Functional module is marked, and standard feature module identical with objective function module is marked.In subsequent verification It does not just need again to verify labeled objective function module and standard feature module in the process, therefore opposite reduction is entire Number of comparisons in checking procedure further promotes verification efficiency.
As preferred embodiment, the standardization program page of matching page centering corresponding with functional module to be verified is judged Whether each standard feature module in face is identical as functional module to be verified to specifically include:
The object identifier code of functional module to be verified is calculated according to preset algorithm rule;
Each standard feature module of matching page centering corresponding with functional module to be verified is calculated according to preset algorithm rule Criteria check code;
Judge whether each criteria check code and object identifier code are consistent respectively;
If consistent, determine and the corresponding standard feature module of criteria check code is identical as functional module to be verified.
Specifically, being to choose function mould to be verified from the target program page in the matching page pair in the present embodiment After block, the corresponding object identifier code of the functional module to be verified is calculated according to preset algorithm;It obtains and the target program page Each standard feature module in the standardization program page of corresponding matching page centering, and according to identical preset algorithm rule point The criteria check code of each standard feature module is not calculated;Then compared respectively with the object identifier code using each criteria check code Compared with, by judging whether each criteria check code and object identifier code consistent, come judge each standard feature module whether with target function Energy module is identical;If criteria check code is consistent with object identifier code, standard feature module corresponding with criteria check code is determined It is identical as functional module to be verified.
Specifically, preset algorithm rule can be the type according to functional module, input link and output line according to pre- If algorithm calculated, obtain corresponding check code, the present embodiment is to calculating the concrete mode of check code without limitation.
The present embodiment is by the check code of each functional module of calculating, and whether the object identifier code of functional module more to be verified It is consistent with the criteria check code of standard feature module, to judge whether functional module to be verified is identical as standard feature module, mentions A kind of more convenient and fast judgment criteria functional module and the whether identical mode of functional module to be verified are supplied.
As preferred embodiment, judging that there are multiple standard feature modules identical with functional module to be verified When, it needs to further determine that out and uniquely corresponds to identical standard feature module with functional module to be verified.In the present embodiment, really The step of uniquely corresponding to identical standard feature module with functional module to be verified is made to specifically include:
It is connected using functional module to be verified, the oriented line of functional module to be verified and with functional module to be verified Object element is arranged in first object functional module;
Obtain multiple standard feature modules to be confirmed identical with functional module to be verified;
Be utilized respectively each standard feature module to be confirmed, each standard feature module to be confirmed oriented line and with respectively to Corresponding standard block is arranged in corresponding the first connected standard feature module of validation criteria functional module;
Whether the quantity for judging standard block identical with object element is 1;
If so, determining uniquely to correspond to functional module to be verified according to standard block identical with object element identical Standard feature module;
If it is not, then updating object element and standard block respectively, and enters and judge standard block identical with object element Quantity the step of whether being 1;
Wherein, the step of update object element includes:
More using object element, the oriented line of object element and the second objective function module for being connected with object element Fresh target unit;
Update standard block the step of include:
It is utilized respectively each standard block, the oriented line of each standard block and the second standard function for being connected with standard block It can each corresponding standard block of module update.
Specifically, when there are multiple standard feature modules identical with functional module to be verified, by function mould to be verified Block, with the oriented line of functional module to be verified and the first object functional module being connected with functional module to be verified as one A entirety, is set as object element;It is corresponding, obtaining multiple standard feature moulds to be confirmed identical with functional module to be verified After block, by standard feature module to be confirmed, standard feature module to be confirmed oriented line and with standard feature to be confirmed The first connected standard feature module of module as a whole, is set as standard block, to multiple standard feature moulds to be confirmed Block is respectively provided with corresponding standard block;Judge whether each standard block identical as object element respectively again, so that it is determined that go out and mesh Whether the quantity for marking the identical standard block of unit is 1.
If 1, then it represents that obtain with the unique corresponding standard feature module of functional module to be verified, specifically according to and mesh The identical standard block of mark unit is determined uniquely to correspond to identical standard feature module with functional module to be verified.If not 1, It indicates that there are still multiple standard blocks identical with object element, therefore also needs to further confirm that.Specifically, utilizing target list First, object element oriented line and the second objective function module being connected with object element update object element;And respectively It is updated using each standard block, the oriented line of each standard block and the second standard feature module for being connected with standard block each Corresponding standard block;Whether the quantity for then judging standard block identical with object element again is 1.Likewise, if 1, It then indicates to obtain and the unique corresponding standard feature module of functional module to be verified;If not 1, then again to object element and mark Quasi- unit is updated, and is carried out judgement confirmation again, is circuited sequentially, until obtaining and the unique corresponding mark of functional module to be verified Quasi- functional module.
It should be noted that in specific implementation, it is understood that there may be there are multiple with object element phase in last round of verification Same standard block, but in current verification, the quantity of standard block identical with object element is 0, in such case Under, then it needs to determine from last round of multiple standard blocks according to preset rules uniquely to correspond to identical mark with object element Quasi- unit, and then obtain and the unique corresponding standard feature module of functional module to be verified.
As it can be seen that the present embodiment passes through more multiple connected functional modules and connection relationship simultaneously, so that it is determined that bid Identical standard feature module is uniquely corresponded to the objective function module in the target program page in the quasi-ordering page.
On the basis of the above embodiments, the present embodiment has done further instruction and optimization to technical solution, specifically, Before choosing functional module to be verified in the target program page in the matching page pair, further comprise:
Each functional module for matching page centering is classified according to type function;
It is corresponding, from matching the page pair in the target program page in choose functional module to be verified after, further Include:
Obtain objective function type corresponding with functional module to be verified;
It is corresponding, judge each standard in the standardization program page of matching page centering corresponding with functional module to be verified Whether functional module is identical as functional module to be verified specifically:
It is obtained and objective function class from the standardization program page of matching page centering corresponding with functional module to be verified The corresponding standard feature module of type;
Whether judgement and the corresponding standard feature module of objective function type are identical as functional module to be verified.
Specifically, the present embodiment be from matching the page pair in the target program page in choose functional module to be verified it Before, first each functional module for matching the page centering standardization program page and the target program page is divided according to type function Class, that is, by each functional module in the target program page and the standardization program page that match page centering according to type function Classify, obtains the combination of type function-functional module set, a kind of specific specific functional module point as shown in Table 1 Class situation.
1 type function of table-functional module classification chart
According to the information of table 1, after choosing functional module af1 to be verified in target program page A, according to function to be verified The corresponding objective function type " function f " of energy module af1, obtains and the objective function type " function from standardization program page B F " corresponding standard feature module bf1, bf2, bf3, the then successively criteria check of judgment criteria functional module bf1, bf2, bf3 Whether code is consistent with the object identifier code of af1.
Therefore, from matching the page pair in the target program page in choose functional module to be verified after, obtain with to The corresponding objective function type of verifying function module, then successively from matching page centering corresponding with functional module to be verified Standard feature module corresponding with objective function type is obtained in the standardization program page;By first to the progress of standard feature module The screening for the type function matched, then respectively the standard feature module corresponding with objective function type that filters out of judgement whether with to Verifying function module is identical.
As it can be seen that the present embodiment is by advance classifying to each functional module, after selecting functional module to be verified, Standard feature module is obtained from objective function type corresponding with functional module to be verified to be verified, and benefit can be greatly reduced The number being compared with standard feature module with functional module to be verified further decreases the cumbersome degree of verification.
On the basis of the above embodiments, the present embodiment has done further instruction and optimization to technical solution, specifically, Pre-stored verification script is being called, each target program page of target DC control protective program is judged according to topological structure With each objective function module whether each standardization program page with standard DC control protective program and each standard feature module pair It answers identical, after determining the difference program page and/or difference function module, further comprises:
The difference program page and/or difference function module are shown in the form of a list, and list and standardization program page are set The linking relationship of face or the target program page.
Specifically, the difference program page and/or difference function mould that the present embodiment obtains verification by visualization device Block is shown.Visualization device includes display screen, touch screen etc., and the present embodiment does not limit this.Exhibition method is included in The difference program page or difference are shown with highlighted form in standard DC control protective program and target DC control protective program Exclusive-OR function module, or the difference program page and the corresponding information of difference function module are shown by way of list.
As preferred embodiment, it can be and showing target DC control protective program and standard in the form of a list After the difference program page and/or difference function module of DC control protective program, linking relationship is further set, by setting Set the target program page or the protection of standard DC control of the difference condition and target DC control protective program recorded in list The linking relationship of corresponding position in the standardization program page of program, so that clicking the corresponding information of difference condition in list When, the corresponding program page can be jumped to and shown, and shown in the corresponding program page in highlighted form.
Specifically, a kind of mRNA differential display mRNA table as shown in Table 2, by recording target DC control protective program and mark respectively The program page of flow control protective program or the difference condition of functional module are collimated, and corresponding difference is obtained according to difference condition Heterogeneity explanation.Specific difference condition is marked out with symbol " [] " in table, when the information of the difference condition in click " [] ", The corresponding program page will be jumped to, and will be shown in the corresponding program page in highlighted form.
2 mRNA differential display mRNA table of table
As it can be seen that the present embodiment further shows the difference program page and/or difference function module in the form of a list, and set The linking relationship of list and the standardization program page or the target program page is set, the user that can be more convenient for checks check results, further Promote the usage experience of user.
As preferably embodiment, the present embodiment further comprises:
Store the program page info of the difference program page and/or the module information of difference function module.
In the present embodiment, it after verification obtains the difference program page and/or difference function module, will further obtain The program page info of the difference program page and/or the module information of difference function module stored.Specifically, for depositing The memory module for storing up program page info and/or module information can be specially memory bar, hard disk, TF (Trans-flash Card) card and SD (Secure Digital Memory Card) card etc., can be selected, the present embodiment according to actual needs It does not limit this.
As it can be seen that program page info and/or difference function mould of the present embodiment by the further storage difference program page The module information of block can check check results in the later period convenient for user, further promote the usage experience of user.
A kind of embodiment of the method for calibration of DC control protective program provided by the invention has been carried out in detail above Description, the present invention also provides the calibration equipments of a kind of DC control protective program corresponding with this method and computer-readable Storage medium, since the embodiment of device and computer readable storage medium part and the embodiment of method part mutually correlate, Therefore the embodiment of device and computer readable storage medium part refers to the description of the embodiment of method part, here wouldn't It repeats.
Fig. 4 is a kind of structure chart of the calibration equipment of DC control protective program provided in an embodiment of the present invention, such as Fig. 4 institute Show, a kind of calibration equipment of DC control protective program includes:
Setup module 41 divides function for respectively target DC control protective program and standard DC control protective program Energy module, and corresponding topological structure is arranged according to the oriented line of each functional module;
Judgment module 42 judges each mesh of target DC control protective program for calling pre-stored verification script The beacon course sequence page and each objective function module whether with each standardization program page of standard DC control protective program and each standard Functional module corresponds to identical, determines the difference program page and/or difference function module.
The calibration equipment of DC control protective program provided in an embodiment of the present invention has above-mentioned DC control protective program Method of calibration beneficial effect.
The present embodiment provides the calibration equipments of another DC control protective program, comprising:
Memory, for storing computer program;
Processor realizes the step of the method for calibration such as above-mentioned DC control protective program when for executing computer program Suddenly.
The calibration equipment of DC control protective program provided in an embodiment of the present invention has above-mentioned DC control protective program Method of calibration beneficial effect.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage It is stored with computer program on medium, the school such as above-mentioned DC control protective program is realized when computer program is executed by processor The step of proved recipe method.
Computer readable storage medium provided in an embodiment of the present invention, the verification side with above-mentioned DC control protective program The beneficial effect of method.
Above to method of calibration, device and the computer-readable storage medium of DC control protective program provided by the present invention Matter is described in detail.Principle and implementation of the present invention are described for specific embodiment used herein, with The explanation of upper embodiment is merely used to help understand method and its core concept of the invention.It should be pointed out that being led for this technology For the those of ordinary skill in domain, without departing from the principle of the present invention, can also to the present invention carry out it is several improvement and Modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of method of calibration of DC control protective program characterized by comprising
Respectively target DC control protective program and standard DC control protective program partition functionality module, and according to each described Corresponding topological structure is arranged in the oriented line of functional module;
Pre-stored verification script is called, each mesh of the target DC control protective program is judged according to the topological structure The beacon course sequence page and each objective function module whether with each standardization program page of the standard DC control protective program and each Standard feature module corresponds to identical, determines the difference program page and/or difference function module.
2. the method according to claim 1, wherein described call pre-stored verification script, according to described in Topological structure judge the target DC control protective program each target program page and each objective function module whether with institute Each standardization program page and each standard feature module for stating standard DC control protective program correspond to identical, determine difference program The page and/or difference function module specifically include:
Pre-stored first verification script is called, according to the target identification information and each mark of each target program page The corresponding relationship of the standard logo information of the quasi-ordering page determine matching the page to the difference program page;
Pre-stored second verification script is called, is judged in the same matching page pair respectively, each objective function Whether module corresponds with each standard feature module, determines the difference function module.
3. according to the method described in claim 2, it is characterized in that, described judge respectively in the same matching page pair, Whether each objective function module corresponds with each standard feature module, determines that the difference function module is specific Include:
Functional module to be verified is chosen from the target program page of the matching page centering;
Judge each mark in the standardization program page for matching page centering corresponding with the functional module to be verified Whether quasi- functional module is identical as the functional module to be verified;
Determine first of identical standard feature module corresponding with the functional module to be verified in the standardization program page Quantity;
If first quantity is 0, the functional module to be verified is labeled as the difference function module;
Judge the matching page centering with the presence or absence of unlabelled objective function module;
If so, entering the step for choosing functional module to be verified from the target program page of the matching page centering Suddenly;
If it is not, then terminating process;
If first quantity is 1, by the functional module to be verified and standard identical with the functional module to be verified Functional module is labeled as matching module, and enters the judgement matching page and do not mark to whether there is in the target program page The step of objective function module of note;
If first quantity is greater than 1, further determines that out and uniquely correspond to identical standard with the functional module to be verified Functional module, and enter described by the functional module to be verified and the standard function identical with the functional module to be verified The step of energy module marks are matching module.
4. according to the method described in claim 3, it is characterized in that, described judge and described functional module corresponding to be verified Collating face in the standardization program page in each standard feature module whether with the functional module phase to be verified It is same to specifically include:
The object identifier code of the functional module to be verified is calculated according to preset algorithm rule;
Each standard of matching page centering corresponding with the functional module to be verified is calculated according to the preset algorithm rule The criteria check code of functional module;
Judge whether each criteria check code and the object identifier code are consistent respectively;
If consistent, determine and the corresponding standard feature module of the criteria check code is identical as the functional module to be verified.
5. according to the method described in claim 4, it is characterized in that, it is described determine it is uniquely right with the functional module to be verified The step of answering identical standard feature module specifically includes:
Using the functional module to be verified, the functional module to be verified oriented line and with the function mould to be verified Object element is arranged in the connected first object functional module of block;
Obtain multiple standard feature modules to be confirmed identical with the functional module to be verified;
Be utilized respectively each standard feature module to be confirmed, each standard feature module to be confirmed oriented line and with Corresponding standard block is arranged in each corresponding the first connected standard feature module of the standard feature module to be confirmed;
Whether the quantity for judging the standard block identical with the object element is 1;
If so, being determined according to the standard block identical with the object element unique with the functional module to be verified Corresponding identical standard feature module;
If it is not, then updating the object element and the standard block respectively, and enter the judgement and the object element phase The step of whether quantity of the same standard block is 1;
Wherein, the step of updating the object element include:
Utilize the object element, the oriented line of the object element and the second target function for being connected with the object element It can the module update object element;
The step of updating the standard block include:
Be utilized respectively each standard block, each standard block oriented line and be connected with the standard block Two standard feature modules update each corresponding standard block.
6. according to the method described in claim 3, it is characterized in that, in the target program page from the matching page pair Before choosing functional module to be verified in face, further comprise:
Each functional module of the matching page centering is classified according to type function;
It is corresponding, after choosing functional module to be verified in the target program page from the matching page pair, into One step includes:
Obtain objective function type corresponding with the functional module to be verified;
It is corresponding, in the judgement standardization program page for matching page centering corresponding with the functional module to be verified Each standard feature module it is whether identical as the functional module to be verified specifically:
It is obtained and the mesh from the standardization program page for matching page centering corresponding with the functional module to be verified The corresponding standard feature module of scalar functions type;
Whether judgement and the corresponding standard feature module of the objective function type are identical as the functional module to be verified.
7. method according to any one of claims 1 to 6, which is characterized in that call pre-stored verification foot described This, each target program page and each objective function mould of the target DC control protective program are judged according to the topological structure Whether block is corresponding identical as each standardization program page of the standard DC control protective program and each standard feature module, determines Out after the difference program page and/or difference function module, further comprise:
The difference program page and/or the difference function module are shown in the form of a list, and the list and institute are set State the linking relationship of the standardization program page or the target program page.
8. a kind of calibration equipment of DC control protective program characterized by comprising
Setup module, for respectively target DC control protective program and standard DC control protective program partition functionality mould Block, and corresponding topological structure is arranged according to the oriented line of each functional module;
Judgment module judges the target DC control according to the topological structure for calling pre-stored verification script Each target program page of protective program and each objective function module whether each mark with the standard DC control protective program The quasi-ordering page and each standard feature module correspond to identical, determine the difference program page and/or difference function module.
9. a kind of calibration equipment of DC control protective program characterized by comprising
Memory, for storing computer program;
Processor realizes DC control protection as described in any one of claim 1 to 7 when for executing the computer program The step of method of calibration of program.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize DC control protection journey as described in any one of claim 1 to 7 when being executed by processor The step of method of calibration of sequence.
CN201910356116.1A 2019-04-29 2019-04-29 Method, device and storage medium for checking direct current control protection program Active CN110069279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910356116.1A CN110069279B (en) 2019-04-29 2019-04-29 Method, device and storage medium for checking direct current control protection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910356116.1A CN110069279B (en) 2019-04-29 2019-04-29 Method, device and storage medium for checking direct current control protection program

Publications (2)

Publication Number Publication Date
CN110069279A true CN110069279A (en) 2019-07-30
CN110069279B CN110069279B (en) 2023-08-08

Family

ID=67369531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910356116.1A Active CN110069279B (en) 2019-04-29 2019-04-29 Method, device and storage medium for checking direct current control protection program

Country Status (1)

Country Link
CN (1) CN110069279B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647666A (en) * 2019-09-03 2020-01-03 平安科技(深圳)有限公司 Intelligent matching method and device for template and formula and computer readable storage medium
CN111206377A (en) * 2019-12-30 2020-05-29 无锡小天鹅电器有限公司 Parameter display method and device and household appliance
CN113238748A (en) * 2021-06-17 2021-08-10 南方电网科学研究院有限责任公司 Method, device, terminal and medium for modifying and checking direct current control security program page
CN113900853A (en) * 2021-11-03 2022-01-07 中国南方电网有限责任公司超高压输电公司昆明局 Method, device and equipment for checking direct current control protection program and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022568A (en) * 1999-07-08 2001-01-26 Hitachi Ltd Package application support system and storage medium stored with package application support program
CN107832062A (en) * 2017-09-08 2018-03-23 上海壹账通金融科技有限公司 A kind of method for updating program and terminal device
CN108255507A (en) * 2018-01-17 2018-07-06 北京奇艺世纪科技有限公司 The update method and system of a kind of server
CN108459962A (en) * 2018-01-23 2018-08-28 平安普惠企业管理有限公司 Code specification detection method, device, terminal device and storage medium
CN109543316A (en) * 2018-02-26 2019-03-29 上海安路信息科技有限公司 The method for extracting domain disparate modules connection relationship

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022568A (en) * 1999-07-08 2001-01-26 Hitachi Ltd Package application support system and storage medium stored with package application support program
CN107832062A (en) * 2017-09-08 2018-03-23 上海壹账通金融科技有限公司 A kind of method for updating program and terminal device
CN108255507A (en) * 2018-01-17 2018-07-06 北京奇艺世纪科技有限公司 The update method and system of a kind of server
CN108459962A (en) * 2018-01-23 2018-08-28 平安普惠企业管理有限公司 Code specification detection method, device, terminal device and storage medium
CN109543316A (en) * 2018-02-26 2019-03-29 上海安路信息科技有限公司 The method for extracting domain disparate modules connection relationship

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贺敏: "图形化程序特征码的算法设计与应用" *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647666A (en) * 2019-09-03 2020-01-03 平安科技(深圳)有限公司 Intelligent matching method and device for template and formula and computer readable storage medium
CN111206377A (en) * 2019-12-30 2020-05-29 无锡小天鹅电器有限公司 Parameter display method and device and household appliance
CN111206377B (en) * 2019-12-30 2022-12-20 无锡小天鹅电器有限公司 Parameter display method and device and household appliance
CN113238748A (en) * 2021-06-17 2021-08-10 南方电网科学研究院有限责任公司 Method, device, terminal and medium for modifying and checking direct current control security program page
CN113238748B (en) * 2021-06-17 2023-05-23 南方电网科学研究院有限责任公司 Direct current control and protection program page modification and verification method, device, terminal and medium
CN113900853A (en) * 2021-11-03 2022-01-07 中国南方电网有限责任公司超高压输电公司昆明局 Method, device and equipment for checking direct current control protection program and storage medium

Also Published As

Publication number Publication date
CN110069279B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN110069279A (en) A kind of method of calibration, device and the storage medium of DC control protective program
CN103631720B (en) The generation method and apparatus of test case
CN102331967B (en) Method for managing chip verification test cases
CN101888655B (en) Method and device for configuring network element data in template way in network management system
CN110245220A (en) Electronic document signs method, apparatus and server, storage medium
CN108804322A (en) Automated testing method, device, computer equipment and storage medium
CN109359277A (en) Data monitoring method, equipment and computer storage medium
CN103530223A (en) Method and device for automatically generating unit test cases
CN107741904A (en) Test machine method of automatic configuration, device, equipment and storage medium
CN109472496A (en) Workflow construction method and device based on visualization guidance and automatic Verification
CN103677821A (en) Method and device for publishing software development tool code
CN107870827A (en) Data quality control method and device based on verification
CN110209584A (en) A kind of automatic generation of test data and relevant apparatus
CN103605814B (en) Information processing method and information processing system in substation transformation process
CN110147312A (en) Software development test method, device, computer installation and storage medium
CN110287113A (en) Automation interface test method
CN106603259B (en) The configuration data method of calibration and device of network element, network management device
CN106952081A (en) A kind of flow instance method and apparatus of authority classification business
CN103885341B (en) Performance analysis system based on automotive performance simulator and method
CN100512157C (en) Protocol validity verifying and testing method based on mode conversion
CN110427178A (en) Configuration method, device, equipment and the readable storage medium storing program for executing of air control engine
CN106055326A (en) Program processing method and dispatch server
CN109783287A (en) Test instruction generation method, system, terminal and medium based on configuration file
US20210117593A1 (en) Configurable digital twin
CN109032956A (en) A kind of interface test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant