CN105630563A - Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) - Google Patents
Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) Download PDFInfo
- Publication number
- CN105630563A CN105630563A CN201610048547.8A CN201610048547A CN105630563A CN 105630563 A CN105630563 A CN 105630563A CN 201610048547 A CN201610048547 A CN 201610048547A CN 105630563 A CN105630563 A CN 105630563A
- Authority
- CN
- China
- Prior art keywords
- dynamic model
- xml
- application program
- relaying device
- protective relaying
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Abstract
The invention discloses a dynamic model configuration method of a relay protection device specification based on XML (Extensible Markup Language). The dynamic model configuration method is characterized by comprising the following steps of describing a dynamic model of the relay protection device specification through custom elements of the XML, and generating a dynamic model XML file; dynamically loading and analyzing the dynamic model XML file through application program runtime, and realizing decoupling of an application program and the configuration specification. Actually, the dynamic model XML file is the relay protection device specification described by adopting the XML, the configuration method is simple, many tools can be used for configuration, a professional compiling environment is not needed, and the decoupling of the device specification and the application program is realized by the dynamic model, so that the dynamic model is a high-cohesion, low-coupling, extensible and cross-platform development mode. On the basis of the reasons, the research and development efficiency, the engineering debugging efficiency and the technical supporting efficiency can be greatly increased, and the time cost, the learning cost and the labor cost are well reduced.
Description
Technical field
The present invention relates to the dynamic model collocation method of a kind of protective relaying device stipulations based on XML.
Background technology
The resource distribution file of current protective relaying device is generally all be described according to device configuration specification; and the configuration specification of major part protective relaying device is all be solidificated in the middle of configurator; if stipulations change; will result in the code revision of application program; a series of flow processs such as test, issue, checking repeat to implement, and cause substantial amounts of waste of human resource. And threshold for this portion of program code is higher, it is necessary to implemented amendment by experienced research staff, engineering staff, technical support personnel usually cannot accomplish directly amendment to program code. So when the situations such as allocation problem occurs in scene, owing to technical threshold is high, flow process is complicated, it is impossible to accomplish real quick response.
In prior art, due to the poor efficiency of efficiency of research and development, engineering mode efficiency and technical support efficiency, cause that time cost, learning cost and human cost are extremely high. And, it is impossible to realize cross-platform work.
Summary of the invention
For the problems referred to above; the present invention provides the dynamic model collocation method of a kind of protective relaying device stipulations based on XML; reduce the development difficulty of protective relaying device resource file, amendment difficulty and maintenance cost; improve the extensibility of protective relaying device and the responding ability to changes in demand, it is achieved cross-platform work.
For realizing above-mentioned technical purpose, reaching above-mentioned technique effect, the present invention is achieved through the following technical solutions:
Dynamic model collocation method based on the protective relaying device stipulations of XML, it is characterised in that described the dynamic model of protective relaying device stipulations by the self-defined element of XML language, generates dynamic model XML file; Dynamic load, parsing dynamic model XML file when being run by application program, it is achieved the decoupling of application program and configuration specification.
Preferably, described the dynamic model of protective relaying device stipulations by the self-defined element of XML language, specifically include following steps:
Step 101, setting up and enumerate data, simple object and composite object model in protective relaying device stipulations, wherein, enumerating data is the constant structure being made up of one group of character string, shaping, Boolean quantity base data type; Simple object is character string, shaping, Boolean quantity base data type object; Composite object includes the level composite object in protective relaying device and public composite object;
Step 102, set up object hierarchical relationship each other in protective relaying device.
Preferably, dynamic load, parsing dynamic model XML file when being run by application program, specifically include following steps:
When step 201, application program launching, the dynamic model XML file that search has configured, and by parsing module, stipulations content entrained inside dynamic model XML file is loaded in program;
Step 202, application program go to resolve corresponding project file according to the dynamic model stipulations of oneself inside, after successfully resolved, the content of project file are loaded into application program;
The content that step 203, application program control inside project file according to the specific object inside dynamic model is shown in which way.
Dynamic load, parsing dynamic model XML file when the present invention is run by application program, it is achieved application program and configuration specification decoupling, and be no longer that reduction rule is solidificated in the middle of program. Owing to dynamic model XML is another embodiment of stipulations, so project file content format dynamically generates according to dynamic model, dynamic model is equivalent to the template of project file, and project file is then the instantiation of dynamic model. Additionally by the attribute configuration (whether show, whether must fill out) of dynamic model XML, and then determine how program interface shows the particular content of project file.
Achieve cross-platform, as long as support the platform of XML technology, it is possible to use the present invention. Owing to current Mainstream Platform or operating system can well support XML technology, so dynamic model can realize cross-platform, service for more application scenarios.
The invention has the beneficial effects as follows:
Dynamic model XML file is really a kind of protective relaying device stipulations adopting XML language to describe; its collocation method is simple; configuration tool can be used extremely many; without specialty translation and compiling environment; and dynamic model achieves the decoupling of device stipulations and application program, it is a kind of high cohesion, lower coupling, expansible, cross-platform development mode. Based on above reason, the present invention can greatly improve efficiency of research and development, engineering mode efficiency and technical support efficiency, well reduces time cost, learning cost and human cost.
Accompanying drawing explanation
Fig. 1 is the present invention based on the hierarchical structure of the dynamic model of the protective relaying device stipulations of XML and subject architecture schematic diagram;
Fig. 2 is dynamic load of the present invention, the schematic diagram resolving dynamic model XML file;
Fig. 3 is the cross-platform schematic diagram of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing and specific embodiment, technical solution of the present invention being described in further detail, so that those skilled in the art can be better understood from the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Based on the dynamic model collocation method of the protective relaying device stipulations of XML, described the dynamic model of protective relaying device stipulations by the self-defined element of XML language, generate dynamic model XML file; Dynamic load, parsing dynamic model XML file when being run by application program, it is achieved the decoupling of application program and configuration specification. And be no longer that reduction rule is solidificated in the middle of program, it is achieved that cross-platform, as long as support the platform of XML technology, the present invention is all applicable. Realize the configuration of stipulations dynamic, rather than be solidificated in the middle of program; Reducing the difficulty of configuration, it is possible to allow research and development, technical support, engineering staff etc. can Fast Learning use. Accomplish real quick response.
Wherein, protective relaying device stipulations generally comprise multilamellar object hierarchy structure; function as included below in device and plug-in unit, function and comprise again the object of other low-level below plug-in unit respectively, this hierarchical structure and object definition are the modellings of a kind of high abstraction to protective relaying device. And dynamic model XML file is exactly based on XML language and the hierarchical structure of this for protective relaying device high abstraction and object definition is converted to hierarchical structure and the object definition of XML, specifically includes following steps:
Step 101, setting up and enumerate data, simple object and composite object model in protective relaying device stipulations, wherein, enumerating data is the constant structure being made up of base data type such as one group of character string, shaping, Boolean quantities; Simple object is the base data type objects such as character string, shaping, Boolean quantity; Composite object then comprises two kinds: the first is the level composite object in protective relaying device, and the second is public composite object, and wherein, public composite object is not mapped to protective relaying device hierarchical relationship.
Step 102, set up object hierarchical relationship each other in protective relaying device.
Definition Attribute is attributes object, and defines the XML attribute ID unique mark as element place level; Public composite object is comprised by defining Element label; Comprise level composite object by defining SubElement label, set up the hierarchical relationship between level composite object by SubElement. As it is shown in figure 1, the hierarchical relationship between hierarchical object is through what SubElement in layer set up, by the attaching relation that this set is abstract, it is established that the model structure of complete set electromechanical protection device.
When the present invention is run by application program, dynamic load resolves dynamic model XML file, it is achieved application program and configuration specification decoupling, and is no longer that reduction rule is solidificated in the middle of program, as in figure 2 it is shown, specifically include following steps:
When step 201, application program launching, the dynamic model XML file that search has configured, and by parsing module, stipulations content entrained inside dynamic model XML file is loaded in program;
Stipulations in application program are not fixing, but are controlled by dynamic model XML file completely, if dynamic model XML file changes, the stipulations that same program loads also change therewith.
Step 202, application program go to resolve corresponding project file according to the dynamic model stipulations of oneself inside, after successfully resolved, the content of project file are loaded into application program;
The content that step 203, application program control inside project file according to the specific object inside dynamic model is shown in which way. Such as, by defining label<OnlyRead>for representing that whether present apparatus object is read-only; Represent that present apparatus object can the minimax number of times of instantiation by defining label<MinOccurs>and<MaxOccurs>; It is used for representing that present apparatus object is the need of display by defining label<Show>; It is used for representing the content that present apparatus object needs show by defining label<ShowInfo>.
Present invention achieves cross-platform, as long as support the platform of XML technology, it is possible to use the present invention, as shown in Figure 3. The system platform of current main-stream such as Windows, Linux etc. support XML technology, so the present invention can use on these platforms. The programming language of current main-stream, all supports XML technology such as Java, C++, QT, C# etc., the present invention can with these programming languages with the use of.
Owing to dynamic model XML is another embodiment of stipulations, so project file content format dynamically generates according to dynamic model, dynamic model is equivalent to the template of project file, and project file is then the instantiation of dynamic model. Additionally by the attribute configuration (whether show, whether must fill out) of dynamic model XML, and then determine how program interface shows the particular content of project file.
Dynamic model XML file is really a kind of protective relaying device stipulations adopting XML language to describe; its collocation method is simple; configuration tool can be used extremely many; without specialty translation and compiling environment; and dynamic model achieves the decoupling of device stipulations and application program, it is a kind of high cohesion, lower coupling, expansible, cross-platform development mode. Based on above reason, the present invention can greatly improve efficiency of research and development, engineering mode efficiency and technical support efficiency, well reduces time cost, learning cost and human cost.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner includes in the scope of patent protection of the present invention.
Claims (4)
1., based on the dynamic model collocation method of the protective relaying device stipulations of XML, it is characterised in that described the dynamic model of protective relaying device stipulations by the self-defined element of XML language, generate dynamic model XML file; Dynamic load, parsing dynamic model XML file when being run by application program, it is achieved the decoupling of application program and configuration specification.
2. the dynamic model collocation method of the protective relaying device stipulations based on XML according to claim 1, it is characterised in that described the dynamic model of protective relaying device stipulations by the self-defined element of XML language, specifically include following steps:
Step 101, setting up and enumerate data, simple object and composite object model in protective relaying device stipulations, wherein, enumerating data is the constant structure being made up of one group of character string, shaping, Boolean quantity base data type; Simple object is character string, shaping, Boolean quantity base data type object; Composite object includes the level composite object in protective relaying device and public composite object;
Step 102, set up object hierarchical relationship each other in protective relaying device.
3. the dynamic model collocation method of the protective relaying device stipulations based on XML according to claim 2, it is characterised in that in step 102, definition Attribute is attributes object, and define the XML attribute ID unique mark as element place level; Public composite object is comprised by defining Element label; Comprise level composite object by defining SubElement label, set up the hierarchical relationship between level composite object by SubElement.
4. the dynamic model collocation method of the protective relaying device stipulations based on XML according to claim 3, it is characterised in that dynamic load, parsing dynamic model XML file when being run by application program, specifically includes following steps:
When step 201, application program launching, the dynamic model XML file that search has configured, and by parsing module, stipulations content entrained inside dynamic model XML file is loaded in program;
Step 202, application program go to resolve corresponding project file according to the dynamic model stipulations of oneself inside, after successfully resolved, the content of project file are loaded into application program;
The content that step 203, application program control inside project file according to the specific object inside dynamic model is shown in which way.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610048547.8A CN105630563A (en) | 2016-01-25 | 2016-01-25 | Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610048547.8A CN105630563A (en) | 2016-01-25 | 2016-01-25 | Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105630563A true CN105630563A (en) | 2016-06-01 |
Family
ID=56045544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610048547.8A Pending CN105630563A (en) | 2016-01-25 | 2016-01-25 | Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105630563A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293735A (en) * | 2016-08-09 | 2017-01-04 | 南京国电南自电网自动化有限公司 | Protective relaying device object abstract method based on encapsulation technology |
CN106886411A (en) * | 2017-02-17 | 2017-06-23 | 南京国电南自电网自动化有限公司 | A kind of protective relaying device logic figure collocation method based on QT |
CN106897220A (en) * | 2017-02-20 | 2017-06-27 | 南京国电南自电网自动化有限公司 | A kind of method of calibration of the System Object Model based on XML |
CN106909378A (en) * | 2017-02-22 | 2017-06-30 | 南京国电南自电网自动化有限公司 | Protective relaying device visualizes mother matrix collocation method |
CN112445516A (en) * | 2020-10-30 | 2021-03-05 | 许继集团有限公司 | Relay protection system software dynamic data modeling method and device |
CN113515866A (en) * | 2021-07-27 | 2021-10-19 | 南京国电南自电网自动化有限公司 | Modeling method and device of relay protection device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1462949A1 (en) * | 2003-03-22 | 2004-09-29 | Cegumark AB | A system and method relating to access of information |
EP1993255B1 (en) * | 2007-05-18 | 2009-04-15 | Sap Ag | Method and system for protecting a message from an XML attack when being exchanged in a distributed and decentralized network system |
CN101706773A (en) * | 2009-11-19 | 2010-05-12 | 北京四方继保自动化股份有限公司 | Method for realizing fast and automatic modeling of transformer substation IEC 61850 by adopting XML information recombination |
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN104993590A (en) * | 2015-06-30 | 2015-10-21 | 许昌许继软件技术有限公司 | CID model-based relay protection device secondary loop self-monitoring method |
-
2016
- 2016-01-25 CN CN201610048547.8A patent/CN105630563A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1462949A1 (en) * | 2003-03-22 | 2004-09-29 | Cegumark AB | A system and method relating to access of information |
EP1993255B1 (en) * | 2007-05-18 | 2009-04-15 | Sap Ag | Method and system for protecting a message from an XML attack when being exchanged in a distributed and decentralized network system |
CN101706773A (en) * | 2009-11-19 | 2010-05-12 | 北京四方继保自动化股份有限公司 | Method for realizing fast and automatic modeling of transformer substation IEC 61850 by adopting XML information recombination |
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN104993590A (en) * | 2015-06-30 | 2015-10-21 | 许昌许继软件技术有限公司 | CID model-based relay protection device secondary loop self-monitoring method |
Non-Patent Citations (2)
Title |
---|
曹晋彰: "面向智能电网的公共信息模型及其若干关键应用研究", 《中国博士学位论文全文数据库》 * |
邱智勇 等: "基于XML的规约组件设计", 《继电器》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293735A (en) * | 2016-08-09 | 2017-01-04 | 南京国电南自电网自动化有限公司 | Protective relaying device object abstract method based on encapsulation technology |
CN106293735B (en) * | 2016-08-09 | 2019-04-16 | 南京国电南自电网自动化有限公司 | Protective relaying device object abstract method based on encapsulation technology |
CN106886411A (en) * | 2017-02-17 | 2017-06-23 | 南京国电南自电网自动化有限公司 | A kind of protective relaying device logic figure collocation method based on QT |
CN106897220A (en) * | 2017-02-20 | 2017-06-27 | 南京国电南自电网自动化有限公司 | A kind of method of calibration of the System Object Model based on XML |
CN106909378A (en) * | 2017-02-22 | 2017-06-30 | 南京国电南自电网自动化有限公司 | Protective relaying device visualizes mother matrix collocation method |
CN106909378B (en) * | 2017-02-22 | 2020-04-17 | 南京国电南自电网自动化有限公司 | Configuration method for visual mother board of relay protection device |
CN112445516A (en) * | 2020-10-30 | 2021-03-05 | 许继集团有限公司 | Relay protection system software dynamic data modeling method and device |
CN113515866A (en) * | 2021-07-27 | 2021-10-19 | 南京国电南自电网自动化有限公司 | Modeling method and device of relay protection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105630563A (en) | Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language) | |
CA2713247C (en) | Integration environment generator | |
US10606562B2 (en) | Method and system for generating PLC code with a connectivity model | |
CN102541996B (en) | JDBC (java database connectivity) based data access layer building method and device utilizing same | |
CN104932905A (en) | Automatic code generation method from AADL to C language | |
CN103019928A (en) | Automatic testing method and system | |
CN105022630A (en) | Component management system and component management method | |
KR20040046463A (en) | System and method of generating EJB component from reusable business logic in servlet | |
CN104598240A (en) | Platform-spanning simulation model development method and system | |
CN104410667A (en) | Method and system for conversion from XML message to JSON message | |
CN103383681B (en) | A kind of file type identification method and system | |
CN104331530A (en) | An electronic warfare visual simulation platform based on XML description and working method thereof | |
Childs et al. | Calm and cadena: Metamodeling for component-based product-line development | |
CN105653268A (en) | Rule engine debugging method and rule engine debugging system | |
CN109471693A (en) | Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system | |
KR101409528B1 (en) | Method and apparatus of mda-based authoring application for smart cross-platform | |
CN110109684B (en) | Block chain link point management proxy service installation method, electronic device and storage medium | |
CN105630489B (en) | Data processing method and data processing equipment | |
CN103049260A (en) | Method and system for displaying user interface of software at client | |
CN104063219A (en) | Form development method and system for WEB system | |
CN102810065B (en) | For the method and system of loader module | |
CN107818073B (en) | Method and system for automatically converting dynamic form page into HTML5 page | |
CN105930474A (en) | Database technology-based dynamic model construction method | |
CN102541564B (en) | A kind of UI multiplexing method and device | |
CN104102496A (en) | Development method for bank self-service system cross-browser plugin based on WINDOWS platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160601 |
|
RJ01 | Rejection of invention patent application after publication |