A kind of empty terminal table automatic generation method based on many SCD template
Technical field
The present invention relates to the design of intelligent substation, debugging, operation, area of maintenance, particularly relate to a kind of empty terminal table automatic generation method based on many SCD template.
Background technology
In intelligent substation, along with the digitizing of intelligent electronic device Signal transmissions, hardwire design " the empty terminal " become based on device model feature index based on terminal block in former normal station designs, and the empty terminal association between each device becomes the main contents of intelligent substation secondary design.Substation configuration description file SCD (substation configuration description) is used for describing the configuration information of each equipment.The empty terminal that China adopted empty terminal table (Excel file) to describe between each device of intelligent substation in recent years contacts, empty terminal table file generally comprises the respective virtual connections of each device, and every bar virtual connections comprises: receiving trap, input empty terminal and describe, input empty terminal and quote, design descriptions, export the description of empty terminal, export the information such as empty terminal is quoted, dispensing device.
At present, empty terminal design flow process mainly contains following three kinds:
(1) conventional design method.Producer is each intelligent electronic device capabilities description file ICD(IED Capability Description, ICD) in equipment input, export empty terminal information derive be saved in EXCEL table in, form the empty terminal source list file of each equipment, be supplied to designing institute; Designing institute is for the empty terminal source list file of each equipment, and design scheme combining, designs the empty terminal table file of intelligent substation.Specific practice is: in empty terminal table file, for each equipment, copy from the list file of empty terminal source respectively manually, paste, produce empty terminal information (describe and quote) of input of receiving trap in certain virtual connections record in empty terminal table file, empty terminal information (describe and quote) of output of transmitting apparatus, then carry out edit.For the empty terminal table having several thousand virtual connections, such method for designing is very loaded down with trivial details, and inefficiency, easily makes mistakes.
(2) assistant software is adopted to design empty terminal table.ICD file is supplied to designing institute by producer, and designing institute take assistant software as platform, imports ICD file and reads empty terminal information wherein, on assistant software interface, directly realized the craft association of empty terminal by modes such as drag and drop, click, editors.This method comparatively method (1) has certain improvement, without the need to copying empty terminal, decreases the mistake that may occur in copy procedure, but the association of empty terminal relies on manual connection completely, does not have intelligent association, and workload is still very large.
(3) the empty terminal table auxiliary design method of common template is adopted.First the empty terminal of manual association is as common template, then is mated by key character, makes the empty terminal position that empty terminal in file to be associated is identical with function in common template consistent, thus realizes the empty terminal auto-associating of the major part of different manufacturers different model.The method can reduce design efforts would to a certain extent, but for the empty terminal of same implication, in the empty terminal source table that different manufacturers provides, the description (quoting) of this empty terminal is different, adopt the method for key character coupling can not find the empty terminal of target exactly, this makes common template can not be applicable to the empty terminal table design of multiple producer completely.The limitation of common template is comparatively strong, and does not use for reference the similar empty terminal design in existing multiple existing SCD file.
In sum, present inventor, in the process realizing invention technical scheme in the embodiment of the present application, finds that above-mentioned technology at least exists following technical matters:
In the prior art, because traditional empty terminal design method adopts in empty terminal table file, for each equipment, copy manually, paste, produce certain virtual connections information in empty terminal table file, carry out edit again, or adopt assistant software to design empty terminal table, the association of empty terminal relies on manual connection completely, there is no intelligent association, or adopt the empty terminal table auxiliary design method of common template, make common template can not be applicable to the empty terminal table design of multiple producer completely, the limitation of common template is stronger, and the similar empty terminal design of existing SCD file can not be used for reference, so, it is larger to there is workload in empty terminal design method of the prior art, efficiency is lower, easily make mistakes, do not use for reference the technical matters of existing SCD result of design.
Summary of the invention
The invention provides a kind of empty terminal table automatic generation method based on many SCD template, have for empty terminal design method of the prior art that workload is comparatively large, efficiency is lower, the technical matters of existing SCD result of design of easily makeing mistakes, do not use for reference, achieve the automatic generation of empty terminal design, its workload is less, accuracy rate is higher, efficiency is higher, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the technique effect of the reusability of existing design result.
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of empty terminal table automatic generation method based on many SCD template, and described method comprises:
A: for the device each to be designed of transformer station to be designed, specifies corresponding ICD file for it is manual, specifies corresponding dispensing device collection, define the dispensing device collection List chained list of each device to be designed;
B: obtain N number of SCD template file, described N be more than or equal to 1 positive integer;
C: according to N number of SCD template file, for each device to be designed, treat each plate device name in design apparatus name and each SCD template file, similarity of character string matching algorithm GST is adopted to carry out character string comparison successively, find front 3 plate devices that matching degree is the highest, as the similar templates device collection of device to be designed, form the similar templates device List chained list of each device to be designed;
D: process each device to be designed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding;
E: after the virtual connections of all devices to be designed generates automatically, according to the generation virtual connections List chained list of each device to be designed, writes the empty terminal table file of target successively its each virtual connections had.
Further, described step B: obtain SCD template file and be specially: certain SCD file of transformer station is resolved, read the wherein information of each virtual connections ExtRef node that Inputs node comprises under each LD under each IED, be deposited in the virtual connections chained list of each IED; Then by each IED grouping, the virtual connections of each IED is derived from internal memory, is written to an empty terminal table Excel file corresponding to this transformer station, using the SCD template file of the empty terminal table Excel file after the virtual connections of all IED in the full station of write as automatic generating process; In like manner N number of SCD file is processed accordingly, can form and obtain N number of SCD template file.
Further, described step D: process each device to be designed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding, specifically comprise:
D1: empty for the input of certain similar templates device every bar template virtual connections in SCD template file terminal is described, describe with the empty terminal of each existing input of current device to be designed successively and carry out character string comparison, when describing identical with the empty terminal of certain existing input, be device to be designed to have found an existing input empty terminal identical with template virtual connections and describe, then forward D2 to and continue process; Describe all inconsistent if the empty terminal of the input of this template virtual connections describes with the empty terminal of all existing input of current device to be designed, then process next template virtual connections information of similar templates device;
D2: by the dispensing device name of current similar templates device this template virtual connections in SCD template file, character string comparison is carried out with each dispensing device name in the dispensing device collection List chained list of current device to be designed, find the dispensing device that matching degree is the highest, as the dispensing device of target virtual connections; The description of the empty terminal of each output of empty for the output of this virtual connections terminal and this dispensing device is carried out string matching successively, if obtain the empty terminal of output that the match is successful, then using the output empty terminal of empty for the output of current template virtual connections terminal as target virtual connections;
D3: when the match is successful for step C1, C2 simultaneously, just automatically for current device to be designed forms a new virtual connections, the empty terminal of input of this new virtual connections adopts the empty terminal of input that in device to be designed, the match is successful, the dispensing device of this new virtual connections adopts the dispensing device that matching degree is the highest, and it exports empty terminal and adopts the empty terminal of output that in this dispensing device, the match is successful; The all virtual connections generated by current similar templates device, join generation virtual connections List corresponding to described similar templates device and connect;
D4: for current device to be designed, compares the number of generation virtual connections List chained list corresponding to its each similar templates device, using generation virtual connections List chained list maximum for number as in the final generation virtual connections List chained list of current device to be designed.
Further, described by the dispensing device name of this template virtual connections in current template, carry out character string comparison with the dispensing device collection List chained list of current device to be designed, find the dispensing device that matching degree is the highest; The empty terminal of all outputs of empty for the output of this template virtual connections terminal and this dispensing device is described and carries out character string comparison successively, find the empty terminal of the output of Corresponding matching, be specially: empty for the output of this virtual connections in current template terminal is described, the empty terminal of each output of the dispensing device the highest with the matching degree just found describes and carries out character string comparison successively, when certain two character string comparison is completely the same, is in device to be designed and have found the empty terminal of the output identical with template virtual connections and describe; If the empty terminal of each output of the dispensing device the highest with matching degree describes all inconsistent, in the dispensing device that this matching degree is the highest, the empty terminal of identical output is not namely found to describe, then next template virtual connections of processing template device.
Further, described empty terminal table file comprises: certain IED name is put into certain row the 2nd and arranges, all the other are respectively classified as sky, the mark that this row starts as certain IED virtual connections is capable, following row deposits the virtual connections of this IED, often go the 2nd has arranged each row is respectively: receiving trap, input empty terminal to describe, input empty terminal to quote, design describes, export empty terminal to describe, export empty terminal to quote, the information such as dispensing device, wherein, described design describes by user's edit in empty terminal table file, the mark that two row terminate as this certain IED virtual connections is vacated capable after each virtual connections row of this IED.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
Owing to have employed, the empty terminal table automatic generation method based on many SCD template is designed to comprise: be first the corresponding ICD file of the manual appointment of device each to be designed of transformer station to be designed, specify corresponding dispensing device collection, define the dispensing device collection List chained list of each device to be designed, then obtain N each SCD template file, described N be more than or equal to 1 positive integer, then according to N number of SCD template file, for each device to be designed, treat each plate device name in design apparatus name and each SCD template file, similarity of character string matching algorithm GST is adopted once to carry out character string comparison, find front 3 plate devices that matching degree is the highest, as the similar templates device of device to be designed, form the similar templates device List chained list of each device to be designed, then each device to be designed is processed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding, finally, after the virtual connections of all devices to be designed generates automatically, according to the generation virtual connections List chained list of each device to be designed, its each virtual connections had is write successively the technical scheme of the empty terminal table file of template, namely, first all devices of intelligent substation are built, and be that each device specifies empty terminal source to show and dispensing device collection, according to multiple SCD template file, find the similar templates device that each device to be designed is corresponding in each SCD template, process each device to be designed one by one, process its each similar templates device one by one, process every bar virtual connections of current similar templates device one by one, by empty terminal profile matching, find the empty terminal of input that the match is successful, export empty terminal, the virtual connections of automatic formation device to be designed, by automatically generating empty terminal table, shown to obtain input from the empty terminal source of specifying by program, export empty terminal information, decrease traditional design method to need to copy the mistake brought by hand, utilize multiple SCD template, pass through string matching, for device to be designed is automatically found the virtual connections the most close with current transformer substation, and automatically form empty terminal table file, the result of design of existing SCD file can be made full use of, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the reusability of existing design result, so, efficiently solving empty terminal design method of the prior art, to there is workload larger, efficiency is lower, easily make mistakes, do not use for reference the technical matters of existing SCD result of design, and then achieve the automatic generation of empty terminal design, its workload is less, accuracy rate is higher, efficiency is higher, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the technique effect of the reusability of existing design result.
Accompanying drawing explanation
Fig. 1 is the process flow diagram based on the empty terminal table automatic generation method of many SCD template in the embodiment of the present application one;
Fig. 2 is the process flow diagram of designer's empty terminal table automatic generation method in application the embodiment of the present application in the embodiment of the present application one.
Embodiment
The invention provides a kind of empty terminal table automatic generation method based on many SCD template, have for empty terminal design method of the prior art that workload is comparatively large, efficiency is lower, the technical matters of existing SCD result of design of easily makeing mistakes, do not use for reference, achieve the automatic generation of empty terminal design, its workload is less, accuracy rate is higher, efficiency is higher, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the technique effect of the reusability of existing design result.
Technical scheme during the application implements is for solving the problems of the technologies described above.General thought is as follows:
Have employed and the empty terminal table automatic generation method based on many SCD template is designed to comprise: be first the corresponding ICD file of the manual appointment of device each to be designed of transformer station to be designed, specify corresponding dispensing device collection, define the dispensing device collection List chained list of each device to be designed, then obtain N each SCD template file, described N be more than or equal to 1 positive integer, then according to N number of SCD template file, for each device to be designed, treat each plate device name in design apparatus name and each SCD template file, similarity of character string matching algorithm GST is adopted once to carry out character string comparison, find front 3 plate devices that matching degree is the highest, as the similar templates device of device to be designed, form the similar templates device List chained list of each device to be designed, then each device to be designed is processed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding, finally, after the virtual connections of all devices to be designed generates automatically, according to the generation virtual connections List chained list of each device to be designed, its each virtual connections had is write successively the technical scheme of the empty terminal table file of template, namely, first all devices of intelligent substation are built, and be that each device specifies empty terminal source to show and dispensing device collection, according to multiple SCD template file, find the similar templates device that each device to be designed is corresponding in each SCD template, process each device to be designed one by one, process its each similar templates device one by one, process every bar virtual connections of current similar templates device one by one, by empty terminal profile matching, find the empty terminal of input that the match is successful, export empty terminal, the virtual connections of automatic formation device to be designed, by automatically generating empty terminal table, shown to obtain input from the empty terminal source of specifying by program, export empty terminal information, decrease traditional design method to need to copy the mistake brought by hand, utilize multiple SCD template, pass through string matching, for device to be designed is automatically found the virtual connections the most close with current transformer substation, and automatically form empty terminal table file, the result of design of existing SCD file can be made full use of, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the reusability of existing design result, so, efficiently solving empty terminal design method of the prior art, to there is workload larger, efficiency is lower, easily make mistakes, do not use for reference the technical matters of existing SCD result of design, and then achieve the automatic generation of empty terminal design, its workload is less, accuracy rate is higher, efficiency is higher, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the technique effect of the reusability of existing design result.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
Embodiment one:
In embodiment one, provide a kind of empty terminal table automatic generation method based on many SCD template, please refer to Fig. 1-Fig. 2, described method comprises:
A: for the device each to be designed of transformer station to be designed, specifies corresponding ICD file for it is manual, specifies corresponding dispensing device collection, define the dispensing device collection List chained list of each device to be designed;
B: obtain N number of SCD template file, described N be more than or equal to 1 positive integer;
C: according to N number of SCD template file, for each device to be designed, treat each plate device name in design apparatus name and each SCD template file, similarity of character string matching algorithm GST is adopted to carry out character string comparison successively, find front 3 plate devices that matching degree is the highest, as the similar templates device collection of device to be designed, form the similar templates device List chained list of each device to be designed;
D: process each device to be designed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding;
E: after the virtual connections of all devices to be designed generates automatically, according to the generation virtual connections List chained list of each device to be designed, writes the empty terminal table file of target successively its each virtual connections had.
Wherein, in the embodiment of the present application, described step B: obtain SCD template file and be specially: resolve certain SCD file of transformer station, reads the information of each virtual connections ExtRef node that Inputs node comprises under each LD under wherein each IED, is deposited in the virtual connections chained list of each IED; Then by each IED grouping, the virtual connections of each IED is derived from internal memory, is written to an empty terminal table Excel file corresponding to this transformer station, using the SCD template file of the empty terminal table Excel file after the virtual connections of all IED in the full station of write as automatic generating process; In like manner N number of SCD file is processed accordingly, can form and obtain N number of SCD template file.
Wherein, in the embodiment of the present application, described step D: process each device to be designed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically generate corresponding virtual connections collection by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding, specifically comprise:
D1: empty for the input of certain similar templates device every bar template virtual connections in SCD template file terminal is described, describe with the empty terminal of each existing input of current device to be designed successively and carry out character string comparison, when describing identical with the empty terminal of certain existing input, be device to be designed to have found an existing input empty terminal identical with template virtual connections and describe, then forward D2 to and continue process; Describe all inconsistent if the empty terminal of the input of this template virtual connections describes with the empty terminal of all existing input of current device to be designed, then process next template virtual connections information of similar templates device;
D2: by the dispensing device name of current similar templates device this template virtual connections in SCD template file, character string comparison is carried out with each dispensing device name in the dispensing device collection List chained list of current device to be designed, find the dispensing device that matching degree is the highest, as the dispensing device of target virtual connections; The description of the empty terminal of each output of empty for the output of this virtual connections terminal and this dispensing device is carried out string matching successively, if obtain the empty terminal of output that the match is successful, then using the output empty terminal of empty for the output of current template virtual connections terminal as target virtual connections;
D3: when the match is successful for step C1, C2 simultaneously, just automatically for current device to be designed forms a new virtual connections, the empty terminal of input of this new virtual connections adopts the empty terminal of input that in device to be designed, the match is successful, the dispensing device of this new virtual connections adopts the dispensing device that matching degree is the highest, and it exports empty terminal and adopts the empty terminal of output that in this dispensing device, the match is successful; The all virtual connections generated by current similar templates device, join generation virtual connections List corresponding to described similar templates device and connect;
D4: for current device to be designed, compares the number of generation virtual connections List chained list corresponding to its each similar templates device, using generation virtual connections List chained list maximum for number as in the final generation virtual connections List chained list of current device to be designed.
Wherein, in the embodiment of the present application, described by the dispensing device name of this template virtual connections in current template, carry out character string comparison with the dispensing device collection List chained list of current device to be designed, find the dispensing device that matching degree is the highest; The empty terminal of all outputs of empty for the output of this template virtual connections terminal and this dispensing device is described and carries out character string comparison successively, find the empty terminal of the output of Corresponding matching, be specially: empty for the output of this virtual connections in current template terminal is described, the empty terminal of each output of the dispensing device the highest with the matching degree just found describes and carries out character string comparison successively, when certain two character string comparison is completely the same, is in device to be designed and have found the empty terminal of the output identical with template virtual connections and describe; If the empty terminal of each output of the dispensing device the highest with matching degree describes all inconsistent, in the dispensing device that this matching degree is the highest, the empty terminal of identical output is not namely found to describe, then next template virtual connections of processing template device.
Wherein, in the embodiment of the present application, described empty terminal table file comprises: certain IED name is put into certain row the 2nd and arranges, all the other are respectively classified as sky, the mark that this row starts as certain IED virtual connections is capable, following row deposits the virtual connections of this IED, often go the 2nd has arranged each row is respectively: receiving trap, input empty terminal to describe, input empty terminal to quote, design describes, export empty terminal to describe, export empty terminal to quote, the information such as dispensing device, wherein, described design describes by user's edit in empty terminal table file, the mark that two row terminate as this certain IED virtual connections is vacated capable after each virtual connections row of this IED.
Wherein, in the embodiment of the present application, similarity of character string metric algorithm GST is a kind of greedy character string string matching algorithm, this algorithm carries out Greedy search to source character string, these two character strings of target string, find out maximum total substring, with 2 times of maximum total substring divided by the length sum of two character strings, obtain the matching degree of two character strings.
Wherein, in actual applications, for the device each to be designed of current transformer station to be designed, for it specifies corresponding ICD file, manual from this transformer station is its appointment dispensing device collection, and the dispensing device collection List chained list defining each device to be designed is specific as follows:
As: device to be designed " PL2201A:220kV olive pacifies line 268 isolating switch No. 1 protection ", needing manual is its appointment dispensing device " IL2201A:220kV olive pacifies a line 268 isolating switch intelligent terminal A ", " ML2201A:220kV olive pacifies a line 268 isolating switch merge cells A ", " No. 1, PM2201A:220kV mother difference failure protection ".
For each device to be designed constructs a dispensing device structure set body object, it comprises device name name to be designed, the set of dispensing device name, and specifically its structure is defined as follows:
Struct IED_Senders // dispensing device structure set body
{
QString ied_name;
QStringList ied_senders;
};
Wherein, in actual applications, according to multiple SCD template file, for each device to be designed, this device name is carried out character string comparison with each plate device name in each SCD template and mated, adopt similarity of character string metric algorithm GST to carry out string matching, get the similar templates device of the highest front 3 plate devices of matching degree as device to be designed, the similar templates device List chained list forming each device to be designed is specially:
As: device to be designed is " PL2201A:220kV olive pacifies line 268 isolating switch No. 1 protection ", and by it, in " three branch off transformer station ", all IED describe and mate one by one with template SCD, obtain matching degree as shown in table 1.Get front 3 plate devices that matching degree is the highest; as the similar templates device collection of device to be designed; they are route protection A CSC-103B/E, PL2201B:220kV peach township of PL2201A:220kV peach township route protection B WXH-803B, PL2202A:220kV Ziyang I route protection A CSC-103B/E respectively, as shown in table 1 below.
Table 1
Wherein, in the embodiment of the present application, by the dispensing device name of the virtual connections of this in current template, mate with the dispensing device collection List chained list of current device to be designed, find the dispensing device that matching degree is the highest, described by empty for the output of the virtual connections of this in current template terminal, the empty terminal of each output of the dispensing device the highest with the matching degree just found describes and carries out character string comparison.When two character string comparisons are completely the same, are in device to be designed and have found the empty terminal of the output identical with template virtual connections and describe; When two character string comparisons are inconsistent, when namely not finding the empty terminal of identical output to describe in device to be designed, then next virtual connections information of processing template device is specially:
As: device to be designed is " PL2201A:220kV olive pacifies line 268 isolating switch No. 1 protection ", and the dispensing device collection of device to be designed comprises: " IL2201A:220kV olive pacifies a line 268 isolating switch intelligent terminal A ", " ML2201A:220kV olive pacifies a line 268 isolating switch merge cells A ", " No. 1, PM2201A:220kV mother difference failure protection ".
Plate device is " PL2201A:220kV peach township route protection A CSC-103B/E ", and the dispensing device collection of plate device comprises:
" IL2201A:220kV peach township circuit intelligent terminal A JFZ600F ", " ML2201A:220kV peach township circuit merge cells A CSN-15B4 ", " PM2201A:220kV bus protection A PCS-915 "
When process dispensing device is the template virtual connections of " IL2201A:220kV peach township circuit intelligent terminal A JFZ600F ", then need the dispensing device collection of character string " IL2201A:220kV peach township circuit intelligent terminal A JFZ600F " with device to be designed: " IL2201A:220kV olive pacifies a line 268 isolating switch intelligent terminal A ", " ML2201A:220kV olive pacifies a line 268 isolating switch merge cells A ", " No. 1, PM2201A:220kV mother difference failure protection " etc. mate one by one.Matching result is as shown in table 2 below, so the dispensing device of the device to be designed of " IL2201A:220kV peach township circuit intelligent terminal A JFZ600F " correspondence is " IL2201A:220kV olive pacifies a line 268 isolating switch intelligent terminal A ".
Table 2
Wherein, in actual applications, please refer to Fig. 2, designer using idiographic flow when being applied in reality based on the empty terminal table automatic generation method of many SCD template is: A1: first start design, A2: then process making to be designed one by one, A3: then find corresponding plate device according to device mapping table, A4: all virtual connections of then searching plate device, and process one by one, A5: whether the empty terminal description of input of then comparing this virtual connections of plate device describes identical with the empty terminal of all inputs of device to be designed, if not identical, then repeat A4 step, if identical, then A6: the empty terminal of output searching this virtual connections of plate device describes, dispensing device, the dispensing device to be designed that dispensing device is corresponding, A7: by the empty terminal of the output of this template virtual connections, this dispensing device to template SCD finds the empty terminal of this output to describe, describe with the empty terminal of all outputs of dispensing device to be designed and check one by one, check whether identical two kinds of empty terminals describe, if not identical, then repeat A4 step, if identical, then the dispensing device of newly-built virtual connections is " device to be designed that this virtual connections dispensing device of plate device is corresponding ", the empty terminal of output of newly-built virtual connections is that the empty terminal of the above-mentioned output just matched is every, the empty terminal of input of newly-built virtual connections is the above-mentioned intaddr matched, A8: when whether the virtual connections of pre-treatment is the last item virtual connections of plate device, if not then, repeat A4 step, if identical, then judge whether the device to be designed when pre-treatment is last device to be designed, then repeat steps A 2 if not, if then generate the empty terminal table of Automated Design.
Give a concrete illustration below and provide the virtual connections of a template, as shown in table 3, the virtual connections how automatically to generate is described during the application implements, is specially:
Table 3
During as processed this template virtual connections: device to be designed is " PL2201A:220kV olive pacifies line 268 isolating switch No. 1 protection ", and the dispensing device of device to be designed is: " IL2201A:220kV olive pacifies a line 268 isolating switch intelligent terminal A ".
Plate device is " PL2201A:220kV peach township route protection A CSC-103B/E ", and the dispensing device of this template virtual connections is " IL2201A:220kV peach township circuit intelligent terminal A JFZ600F ".
Input empty terminal and describe by each to " sequential trip position TWJA " and " L2201A:220kV olive is pacified No. 1, line 268 isolating switch and protect " and carry out character string comparison, when two input empty terminals describe character string comparison completely the same time, " isolating switch A phase _ from 1 " and " IL2201A:220kV peach township circuit intelligent terminal A JFZ600F " are respectively exported empty terminal and describe and carry out character string comparison, when two export empty terminals describe character string comparison completely the same time, it is then " L2201A:220kV olive pacifies line 268 isolating switch No. 1 protection " generation new virtual connections, as shown in table 4 below.
Table 4
Wherein, the virtual connections of plate device " PL2201A:220kV peach township route protection A CSC-103B/E " is as shown in table 5:
Table 5
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
Owing to have employed, the empty terminal table automatic generation method based on many SCD template is designed to comprise: be first the corresponding ICD file of the manual appointment of device each to be designed of transformer station to be designed, specify corresponding dispensing device collection, define the dispensing device collection List chained list of each device to be designed, then obtain N each SCD template file, described N be more than or equal to 1 positive integer, then according to N number of SCD template file, for each device to be designed, treat each plate device name in design apparatus name and each SCD template file, similarity of character string matching algorithm GST is adopted once to carry out character string comparison, find front 3 plate devices that matching degree is the highest, as the similar templates device of device to be designed, form the similar templates device List chained list of each device to be designed, then each device to be designed is processed one by one, process each similar templates device of its correspondence one by one, process the every bar virtual connections of each similar templates device in corresponding SCD template file one by one, automatically corresponding virtual connections collection is generated by each similar templates device, therefrom choose the virtual connections collection that number is maximum, be deposited into the generation virtual connections List chained list that this device to be designed is corresponding, finally, after the virtual connections of all devices to be designed generates automatically, according to the generation virtual connections List chained list of each device to be designed, its each virtual connections had is write successively the technical scheme of the empty terminal table file of template, namely, first all devices of intelligent substation are built, and be that each device specifies empty terminal source to show and dispensing device collection, according to multiple SCD template file, find the similar templates device that each device to be designed is corresponding in each SCD template, process each device to be designed one by one, process its each similar templates device one by one, process every bar virtual connections of current similar templates device one by one, by empty terminal profile matching, find the empty terminal of input that the match is successful, export empty terminal, the virtual connections of automatic formation device to be designed, by automatically generating empty terminal table, shown to obtain input from the empty terminal source of specifying by program, export empty terminal information, decrease traditional design method to need to copy the mistake brought by hand, utilize multiple SCD template, pass through string matching, for device to be designed is automatically found the virtual connections the most close with current transformer substation, and automatically form empty terminal table file, the result of design of existing SCD file can be made full use of, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the reusability of existing design result, so, efficiently solving empty terminal design method of the prior art, to there is workload larger, efficiency is lower, easily make mistakes, do not use for reference the technical matters of existing SCD result of design, and then achieve the automatic generation of empty terminal design, its workload is less, accuracy rate is higher, efficiency is higher, improve the intelligence degree of empty terminal table design, improve the work efficiency of design, improve the technique effect of the reusability of existing design result.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.