CN110908645A - Method for comparing forwarding information in object-oriented programming - Google Patents
Method for comparing forwarding information in object-oriented programming Download PDFInfo
- Publication number
- CN110908645A CN110908645A CN201911150772.2A CN201911150772A CN110908645A CN 110908645 A CN110908645 A CN 110908645A CN 201911150772 A CN201911150772 A CN 201911150772A CN 110908645 A CN110908645 A CN 110908645A
- Authority
- CN
- China
- Prior art keywords
- character string
- string array
- comparing
- point
- array
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a method for comparing forwarding information in object-oriented programming, which comprises the following steps: 1) selecting an input point table file; 2) judging whether the file is correct or not; 3) respectively reading in two point tables, and forming a character string array A and a character string array B after processing; 4) comparing the character string array A with the character string array B; 5) and exporting the comparison result to an excel file. The configuration data derived from the telecontrol device can be quickly positioned and screened at one time through software comparison no matter new points are added, original points are deleted, and descriptions of the original points are modified, so that the uniqueness and the accuracy of the telecontrol data at the station end are ensured.
Description
Technical Field
The invention belongs to the technical field of electric network point table data comparison, and relates to a forwarding information comparison method for object-oriented programming.
Background
The dispatching automation system can correctly realize that monitoring and control must depend on a substation telecontrol device, and the accurate data interaction between the telecontrol system and a dispatching master station depends on a four-remote-point meter. In actual work, the point table is modified manually according to actual changes, but if the modified data are repeated and omitted, the modified data need to be checked again manually, and particularly when the actual changes are large, the manual checking action consumes a large amount of time and energy, so that the physical health of workers is seriously influenced, and meanwhile, great potential safety hazards are brought to the operation of a power grid.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a method for comparing forwarding information in object-oriented programming is provided to solve the problems in the prior art.
The technical scheme adopted by the invention is as follows: a method for comparing forwarding information in object-oriented programming, the method comprising the steps of:
1) selecting an input point table file;
2) judging whether the file is correct or not;
3) respectively reading in two point tables, and forming a character string array A and a character string array B after processing;
4) comparing the character string array A with the character string array B;
5) and exporting the comparison result to an excel file.
The method for processing the two point tables in the step 3) comprises the following steps:
(a) judging whether the document has content or not;
(b) if yes, entering a row, obtaining a point number i, and describing data as str;
(c) two point tables respectively obtain data A [ i ] and B [ i ];
(d) and (c) repeating the steps (a) to (c) to complete the content processing of all the point tables and outputting a character string array A and a character string array B.
The method for comparing the character string array A with the character string array B in the step 4) comprises the following steps:
①, judging the data of i + + if A [ i ] of the array A and B [ i ] of the array B are both empty;
② if A [ i ] is null, the data corresponding to the point number i is new;
③ if A [ i ] is not null and B [ i ] is null, the data corresponding to the point number i is deleted;
④ if B [ i ] is not null, comparing whether A [ i ] is the same as B [ i ];
⑤ if they are the same, the data corresponding to the point number i is not changed, if the data corresponding to different point numbers i is changed;
⑥ repeat steps ① - ⑤ to output the comparison result.
The invention has the beneficial effects that: compared with the prior art, the configuration data exported from the telecontrol device can be quickly positioned and screened at one time through software comparison no matter new points are added, original points are deleted, and descriptions of the original points are modified, so that the uniqueness and the accuracy of the telecontrol data at the station end are ensured.
Drawings
FIG. 1 is a process flow diagram of the present invention;
FIG. 2 is a data entry process flow diagram of the present invention;
FIG. 3 is a flow chart of data alignment according to the present invention.
Detailed Description
The invention is further described below with reference to the figures and specific embodiments.
Example (b): as shown in fig. 1 to fig. 3, a method for comparing forwarding information in object-oriented programming includes the following steps:
1) selecting an input point table file;
2) judging whether the file is correct or not;
3) respectively reading in two point tables, and forming a character string array A and a character string array B after processing;
4) comparing the character string array A with the character string array B;
5) and exporting the comparison result to an excel file.
The method for processing the two point tables in the step 3) comprises the following steps:
(a) judging whether the document has content or not;
(b) if yes, entering a row, obtaining a point number i, and describing data as str;
(c) two point tables respectively obtain data A [ i ] and B [ i ];
(d) and (c) repeating the steps (a) to (c) to complete the content processing of all the point tables and outputting a character string array A and a character string array B.
The method for comparing the character string array A with the character string array B in the step 4) comprises the following steps:
①, judging the data of i + + if A [ i ] of the array A and B [ i ] of the array B are both empty;
② if A [ i ] is null, the data corresponding to the point number i is new;
③ if A [ i ] is not null and B [ i ] is null, the data corresponding to the point number i is deleted;
④ if B [ i ] is not null, comparing whether A [ i ] is the same as B [ i ];
⑤ if they are the same, the data corresponding to the point number i is not changed, if the data corresponding to different point numbers i is changed;
⑥ repeat steps ① - ⑤ to output the comparison result.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and therefore, the scope of the present invention should be determined by the scope of the claims.
Claims (3)
1. A method for comparing forwarding information in object-oriented programming is characterized in that: the method comprises the following steps:
1) selecting an input point table file;
2) judging whether the file is correct or not;
3) respectively reading in two point tables, and forming a character string array A and a character string array B after processing;
4) comparing the character string array A with the character string array B;
5) and exporting the comparison result to an excel file.
2. The method of claim 1, wherein the forwarding information comparison method comprises: the method for processing the two point tables in the step 3) comprises the following steps:
(a) judging whether the document has content or not;
(b) if yes, entering a row, obtaining a point number i, and describing data as str;
(c) two point tables respectively obtain data A [ i ] and B [ i ];
(d) and (c) repeating the steps (a) to (c) to complete the content processing of all the point tables and outputting a character string array A and a character string array B.
3. The method of claim 1, wherein the forwarding information comparison method comprises: the method for comparing the character string array A with the character string array B in the step 4) comprises the following steps:
①, judging the data of i + + if A [ i ] of the array A and B [ i ] of the array B are both empty;
② if A [ i ] is null, the data corresponding to the point number i is new;
③ if A [ i ] is not null and B [ i ] is null, the data corresponding to the point number i is deleted;
④ if B [ i ] is not null, comparing whether A [ i ] is the same as B [ i ];
⑤ if they are the same, the data corresponding to the point number i is not changed, if the data corresponding to different point numbers i is changed;
⑥ repeat steps ① - ⑤ to output the comparison result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911150772.2A CN110908645A (en) | 2019-11-21 | 2019-11-21 | Method for comparing forwarding information in object-oriented programming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911150772.2A CN110908645A (en) | 2019-11-21 | 2019-11-21 | Method for comparing forwarding information in object-oriented programming |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110908645A true CN110908645A (en) | 2020-03-24 |
Family
ID=69818531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911150772.2A Pending CN110908645A (en) | 2019-11-21 | 2019-11-21 | Method for comparing forwarding information in object-oriented programming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110908645A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN103647353A (en) * | 2013-12-25 | 2014-03-19 | 南京国电南自电网自动化有限公司 | Instation signal based comparison method of remote transmission point tables |
CN109271350A (en) * | 2018-10-24 | 2019-01-25 | 雅砻江流域水电开发有限公司 | A kind of database and information point table automatic comparison and synchronous method based on telemechanical communication |
CN110231957A (en) * | 2019-07-09 | 2019-09-13 | 国家电网有限公司 | A kind of system and method automatically generating telemechanical configuration describing document RCD |
-
2019
- 2019-11-21 CN CN201911150772.2A patent/CN110908645A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN103647353A (en) * | 2013-12-25 | 2014-03-19 | 南京国电南自电网自动化有限公司 | Instation signal based comparison method of remote transmission point tables |
CN109271350A (en) * | 2018-10-24 | 2019-01-25 | 雅砻江流域水电开发有限公司 | A kind of database and information point table automatic comparison and synchronous method based on telemechanical communication |
CN110231957A (en) * | 2019-07-09 | 2019-09-13 | 国家电网有限公司 | A kind of system and method automatically generating telemechanical configuration describing document RCD |
Non-Patent Citations (3)
Title |
---|
彭熹等: "一种通信网关机遥控组态智能比对***的研究与实现", 《湖南电力》 * |
酒瓶里的蚊子: "C# tx文本行数据进行对比并批量操作", 《HTTPS://ZHIDAO.BAIDU.COM/QUESTION/563210843687041044.HTML》 * |
陈挺等: "基于C#语言的点表比对软件设计", 《通信电源技术》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426300B (en) | Standard conformance test system and method for CIM/E model of power system | |
CN107292769B (en) | Substation reconstruction and extension configuration consistency comparison and verification method based on RCD | |
CN105447247A (en) | Method and system for checking regulation and control information | |
CN111585344B (en) | Substation intelligent checking method and device based on total station IED simulation | |
CN111241488B (en) | Distribution network protection fixed value setting system based on full information data flow | |
CN104580245B (en) | A kind of 104 packet parsing system of distribution terminal and its analytic method | |
CN112100992B (en) | Substation site table generation and checking method | |
CN109150854B (en) | Dynamic configurable communication protocol conversion system based on XML file | |
CN103632307A (en) | Method for checking consistency between SCD and virtual loop table of intelligent substation | |
CN105205039A (en) | Customizable SCD (substation configuration description) file verification method | |
CN107908731B (en) | PSD-BPA-based Guangxi power grid area load data batch modification method | |
CN111026451A (en) | Parameter configuration method and configuration tool for transformer substation terminal interval | |
CN106599058A (en) | RCD file model checking method and checking device | |
CN103647279B (en) | A kind of forecast failure set creation method based on plant stand wiring information | |
CN110908645A (en) | Method for comparing forwarding information in object-oriented programming | |
CN111105051A (en) | Intelligent automation system lightweight master station and information checking method thereof | |
CN111812449A (en) | Power distribution network state estimation abnormity identification method | |
CN110674623A (en) | Reading system and method for modeled embedded part positioning information | |
CN107748701A (en) | A kind of analysis method for reliability of electric energy measurement automation system | |
CN114820868A (en) | Method, device and system for intelligently mapping distribution network line | |
CN204925371U (en) | Many analog output's of standard source electric energy quality on -line monitoring device's test system | |
CN107479023A (en) | Simulation and numeral all-in-one calibration power source and standard digital electric energy meter magnitude tracing system | |
CN106383952A (en) | Electromagnetic transient data management system and electromagnetic transient data conversion method thereof | |
CN110048877B (en) | Metering exception simulation processing method based on simulation controller data storage | |
CN113904928A (en) | Telesignaling configuration rapid checking system and method for telemechanical 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200324 |
|
RJ01 | Rejection of invention patent application after publication |