电力系统自动化
電力繫統自動化
전력계통자동화
AUTOMATION OF ELECTRIC POWER SYSTEMS
2012年
11期
86-91
,共6页
张逸%杨洪耕%林瑞星%王巍%谢康
張逸%楊洪耕%林瑞星%王巍%謝康
장일%양홍경%림서성%왕외%사강
电能质量%电能质量数据交换格式(PQDIF)%通用解析方案%可扩展标记语言(XML)%哈希表
電能質量%電能質量數據交換格式(PQDIF)%通用解析方案%可擴展標記語言(XML)%哈希錶
전능질량%전능질량수거교환격식(PQDIF)%통용해석방안%가확전표기어언(XML)%합희표
power quality%power quality data interchange format%general parsing scheme%extensible markup language%Hash table
针对国内电能质量领域各厂家以及各省规范对电能质量数据交换格式(PQDIF)文件定义差异所造成的解析程序兼容性问题,提出并实现了一种PQDIF文件通用解析方案。通过总结已知PQDIF文件标签组合及其对应测量指标类型,进而构造可扩展标记语言(XML)格式存储的通道序列定义表;利用哈希表将待解析文件的标签组合在表中快速匹配对应的测量指标类型,并对未知标签组合进行差异匹配得到最相近组合。在无需修改解析程序源代码的前提下,不但可以实现对已知不同定义结构PQDIF文件的正确快速解析,而且只需用户进行简单配置,即可顺利解析包含未知标签组合的PQDIF文件。在某省电能质量一体化数据平台中的成功应用证明了此方案的可靠性和实用性。
針對國內電能質量領域各廠傢以及各省規範對電能質量數據交換格式(PQDIF)文件定義差異所造成的解析程序兼容性問題,提齣併實現瞭一種PQDIF文件通用解析方案。通過總結已知PQDIF文件標籤組閤及其對應測量指標類型,進而構造可擴展標記語言(XML)格式存儲的通道序列定義錶;利用哈希錶將待解析文件的標籤組閤在錶中快速匹配對應的測量指標類型,併對未知標籤組閤進行差異匹配得到最相近組閤。在無需脩改解析程序源代碼的前提下,不但可以實現對已知不同定義結構PQDIF文件的正確快速解析,而且隻需用戶進行簡單配置,即可順利解析包含未知標籤組閤的PQDIF文件。在某省電能質量一體化數據平檯中的成功應用證明瞭此方案的可靠性和實用性。
침대국내전능질량영역각엄가이급각성규범대전능질량수거교환격식(PQDIF)문건정의차이소조성적해석정서겸용성문제,제출병실현료일충PQDIF문건통용해석방안。통과총결이지PQDIF문건표첨조합급기대응측량지표류형,진이구조가확전표기어언(XML)격식존저적통도서렬정의표;이용합희표장대해석문건적표첨조합재표중쾌속필배대응적측량지표류형,병대미지표첨조합진행차이필배득도최상근조합。재무수수개해석정서원대마적전제하,불단가이실현대이지불동정의결구PQDIF문건적정학쾌속해석,이차지수용호진행간단배치,즉가순리해석포함미지표첨조합적PQDIF문건。재모성전능질량일체화수거평태중적성공응용증명료차방안적가고성화실용성。
To solve the parsing program's compatibility issues caused by the different definitions of power quality data interchange format (PQDIF) between the manufacturers and provincial standards in the field of domestic power quality, a general parsing scheme for PQDIF files is proposed and implemented. By summarizing tag groups of the known PQDIF files and their corresponding power quality measurement types, the scheme structures a channel series definition table stored in the extensible markup language (XML) format. When parsing a PQDIF file, the Hash table is applied to quickly match the tag, groups with the known groups and corresponding measurement types in the channel series definition table, and at the same time differently match the unknown tag groups with the most similar groups. Without modifying the source code of the parsing program, not only the known PQDIF files which have different definition structures could be parsed quickly and correctly, but also the PQDIF files with unknown tag groups could be parsed through simple configurations made by users. The reliability and practicality of the parsing scheme are proved through applications in Sichuan power quality integrated data platform.