CN110795024B - Protection equipment universal man-machine interaction system and method based on XML - Google Patents

Protection equipment universal man-machine interaction system and method based on XML Download PDF

Info

Publication number
CN110795024B
CN110795024B CN201910967867.7A CN201910967867A CN110795024B CN 110795024 B CN110795024 B CN 110795024B CN 201910967867 A CN201910967867 A CN 201910967867A CN 110795024 B CN110795024 B CN 110795024B
Authority
CN
China
Prior art keywords
view
xml
node
data
logic
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.)
Active
Application number
CN201910967867.7A
Other languages
Chinese (zh)
Other versions
CN110795024A (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.)
Beijing Sifang Project Co ltd
Beijing Sifang Automation Co Ltd
Original Assignee
Beijing Sifang Project Co ltd
Beijing Sifang Automation 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 Beijing Sifang Project Co ltd, Beijing Sifang Automation Co Ltd filed Critical Beijing Sifang Project Co ltd
Priority to CN201910967867.7A priority Critical patent/CN110795024B/en
Publication of CN110795024A publication Critical patent/CN110795024A/en
Application granted granted Critical
Publication of CN110795024B publication Critical patent/CN110795024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a protection equipment universal man-machine interaction system and a method based on XML, wherein the system comprises the following steps: XML configuration file, model analyzer, logic analyzer, event driver, data server and view stack unit; by the system and the method, the invention supports the flexible configuration of the menu structure, the menu name and the menu item parameter transmission by modifying the XML configuration file without modifying the program. The invention abstractly describes the common controls of the interface of the power secondary protection equipment based on the XML technology, realizes flexible configuration of a menu structure, decouples the menu structure from program processing, is mutually independent, can be used by various types of equipment with the same version of software, solves the problem of modifying, only needs to update the program when using the same version of software equipment, does not need other maintenance measures, thereby reducing the program maintenance difficulty and reducing the maintenance quantity.

Description

Protection equipment universal man-machine interaction system and method based on XML
Technical Field
The invention belongs to the field of design of electric power secondary equipment, and particularly relates to a universal human-computer interaction system and a universal human-computer interaction method for protection equipment based on XML.
Background
In the design and development of the power secondary equipment, a human-computer interaction process exists. In recent years, with the development of smart power grids, measurement and protection devices with different voltage levels are required to be gradually standardized, and meanwhile, the requirements on information displayed and set by measurement and protection devices are higher and higher. The stable and easy-to-maintain human-computer interaction system has great influence on improving the quality of secondary equipment and the stable operation of the whole power grid.
Human-machine interaction (HMI) processes typically take up around 50% of the code development in a device. The traditional man-machine interaction design is to customize functions according to specific requirements, a window data structure and a window calling relation are defined in a man-machine interaction system, the coupling degree of the man-machine interaction system function and an interface program is high, software does not have universality, and one set of interface program needs to be customized and developed for each designed product. Or a configuration file is adopted, but the system performance is lacked, and the readability and the expansibility are poor. With the increase of product types, the interface maintenance work is more difficult. Finally, the production cost is increased and the production efficiency is low. A universal and flexibly configurable human-computer interaction system is designed, and the design is more and more important in the development of electric power secondary equipment.
Although there is an interface research based on configuration in China, a text mode is mostly adopted, and a uniform format specification does not exist. XML can conveniently and effectively express structured data, is concise in syntax and easy to read, and has a hierarchical data structure which is very suitable for describing the structure and the containment relationship of each component in the HMI. The interface display based on XML configuration is developed on a PC, and the invention combines the characteristics of XML and abstracts a plurality of display control models by classifying the data of the protection and measurement and control device. Model structure, menu and display window logical relations are described by XML. HMI (human machine interface) platformization is realized, for different types of protection devices, device menus and display requirements can be met by modifying xml configuration, and code development and debugging workload is reduced to the great extent.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a protection equipment universal human-computer interaction system and a protection equipment universal human-computer interaction method based on XML, wherein the protection equipment universal human-computer interaction system based on XML comprises the following steps: XML configuration file, model analyzer, logic analyzer, event driver, data server and view stack unit;
the XML configuration file is respectively connected with a model parser and a logic parser, and the logic parser is respectively connected with an event driver, a data server and a view stack unit;
the XML configuration file comprises: defining XML file nodes, XML file node instantiation parameters, XML file node hierarchical relation and view switching logical relation;
the XML file node defines an interface control as a node, and each node comprises a plurality of attributes;
the attributes comprise public attributes and private attributes;
the common attributes include: the system comprises attribute numbers and attribute names, wherein each attribute number is unique in a human-computer interaction system, and one node is marked by the attribute number;
the private attribute is defined according to actual data attributes of different protection devices.
The model parser is used for traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to the XML file node instantiation parameters, and storing the model instances which are successfully instantiated into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
the logic parser loads the logical relationship of view switching in the XML configuration file, receives the signal of the event driver and the current view state in the view stack unit, generates a request signal from the instantiated model according to the hierarchical inclusion relationship of the corresponding control, and sends the generated request signal to the data server;
and the event driver receives a key operation signal on the display screen, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser.
The data server receives the request signal sent by the logic analyzer, acquires the function execution result corresponding to the request signal or stores the data corresponding to the request signal, and sends the data execution result to the logic analyzer;
and the data server establishes a function mapping relation between the request signal and the corresponding execution result.
And the view stacking unit obtains the view switching and calling relation according to the return data returned to the logic analyzer by the data server, completes the view stacking and popping operations according to the view switching and calling relation, and records the view level information.
The push and pop operation is specifically defined as: when the logic analyzer receives the execution result as a view switching signal, the new view is pushed;
the XML file node instantiation parameters comprise: node name, attribute number, node position, node size, current view and attribute name;
the hierarchical relationship of the nodes of the XML file comprises the following steps: a window node;
the window node includes: title child node, view child node and status child node;
the window node and the child nodes thereof define a display interface of the whole view;
the view child node defines a main display area;
the title child node defines a title bar;
the status child node defines display status data;
each window node must define a view child node, and other child nodes are optional;
the instantiation process of the model resolver specifically comprises the following steps: the model parser defines a structural body corresponding to the instantiation parameters of the nodes of the XML file, and the instantiation process is to read the names and all attribute values of the nodes of the XML file and then assign the names and all attribute values to the structural body.
The XML file node has a uniquely specified node name and cannot be renamed.
A general man-machine interaction method for protection equipment based on XML comprises the following steps:
step 1: initializing a general man-machine interaction system of the protection equipment based on XML: in the model parser, traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to XML file node instantiation parameters, and storing successfully instantiated model instances into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
step 2: when the key is triggered, the event driver receives a key operation signal, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser;
and step 3: the logic analyzer is used for loading the logical relationship of view switching in the XML configuration file, receiving the signal of the event driver and the current view state in the view stack unit, generating a request signal from the instantiated model according to the hierarchical inclusion relationship of the corresponding control, and sending the request signal to the data server;
and 4, step 4: the data server receives the request signal sent by the logic analyzer, acquires the execution result of the function corresponding to the request signal or stores the data corresponding to the request signal, and returns the data result to the logic analyzer;
and 5: the logic analyzer receives the data returned by the data server, finds a data display view according to the returned data, displays the data display view on a display screen, and simultaneously, logically analyzes and informs a view stacking unit;
step 6: the view stacking unit is used for obtaining view switching and calling relations according to return data returned to the logic analyzer by the data server, completing view stacking and popping operations according to the view switching and calling relations and recording view level information;
and 7: if the key is a return key, the event driver notifies the view stacking unit, deletes the top view and displays the next top view.
The beneficial effect that this application reached:
the method is characterized in that common controls of the interface of the electric power secondary protection equipment are abstractly described based on XML, the hierarchical relationship and the view skip relationship of XML configuration file nodes are described by using the XML, and the node name definition is supported; the flexible configuration of the menu structure is realized, and the menu structure is decoupled from the program processing and is mutually independent. Multiple types of equipment can use the same version of program, so that the program maintenance difficulty is reduced, and the maintenance quantity is reduced. And one problem is modified, and only the program needs to be updated by using the same software device, and other maintenance measures are not needed.
Drawings
FIG. 1 is a block diagram of a general man-machine interaction system for an XML-based protection device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating the definition of a button file node according to an embodiment of the present invention;
FIG. 3 is a window hierarchy according to an embodiment of the present invention;
FIG. 4 is an example of a dialog box according to an embodiment of the present invention;
FIG. 5 is a view switching logic according to an embodiment of the present invention;
FIG. 6 is a tree menu according to an embodiment of the present invention;
FIG. 7 is a display partition according to an embodiment of the present invention.
Detailed Description
The present application is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present application is not limited thereby.
The invention provides a universal man-machine interaction system and a universal man-machine interaction method for protection equipment based on XML, wherein the universal man-machine interaction system for the protection equipment based on XML is shown in figure 1 and comprises the following components: XML configuration file, model analyzer, logic analyzer, event driver, data server and view stack unit;
the XML configuration file is respectively connected with a model parser and a logic parser, and the logic parser is respectively connected with an event driver, a data server and a view stack unit;
the XML configuration file comprises: defining XML file nodes, XML file node instantiation parameters, XML file node hierarchical relation and view switching logical relation;
the XML file node defines an interface control as a node, and each node comprises a plurality of attributes;
the attributes comprise public attributes and private attributes;
the common attributes include: the system comprises attribute numbers and attribute names, wherein each attribute number is globally unique in a human-computer interaction system, and one node is marked by the attribute number;
as shown in FIG. 2, taking the button file node as an example, how to abstract the display element is one of the key technologies of the method. The invention defines a man-machine interactive control as a node, and each node comprises a plurality of attributes; attributes are classified into public attributes and private attributes according to their properties. The following description will be given taking a common button as an example. As shown in FIG. 2, a status display view is shown, and the view primary element is a button. The button coordinates are (x, y) with the top left corner as the origin. Width with, height light. To distinguish different instances after model instantiation, a unique logo ID is added, along with a name attribute for editing button display names.
The summary is shown in table 1:
table 1: button component Properties
Figure BDA0002231095880000051
Due to different functions of each control, each control needs to define specific attributes, such as row and column attributes defined by the button control, and row and column information of the logo button in the view.
The complete xml file description for the button model is as follows:
the process of "button _ show _ anag" row "0" column "name" analog "x" 20 "y" 20 "width" 100 "height" 20 >
<request receiver="view_anag"request="SHOW_ANAG"/>
</button>
Node name and attribute naming rules
1) The node names, such as button, are model names. The system judges the model type through the node name and generates a model example. Different models are not renameable.
2) Attribute names, such as: id. name, etc. are node attributes. The system generates instance data by attributes. The same node cannot have the same name attribute.
3) The attribute value and the id attribute are globally unique and cannot be repeated. The system tags the unique model instance with an id.
The model parser generates an instance by parsing the XML configuration file, and the instance structure is as follows:
Figure BDA0002231095880000061
the Widget structure defines the general attribute members of the components, and for other special components, the attributes are only required to be added on the basis when needing to be extended.
The private attribute is defined according to actual data attributes of different protection devices.
The model parser is used for traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to the XML file node instantiation parameters, and storing the model instances which are successfully instantiated into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
the logic parser loads the view switching logic relation in the XML configuration file, receives the signal of the event driver and the current view state in the view stack unit, extracts the action instruction from the current view handle, and sends the action instruction to the data server;
and the event driver receives a key operation signal on the display screen, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser, and the logic parser generates a data request signal according to the current view state, wherein the request signal is defined by the data server.
The data server receives the request signal sent by the logic analyzer, acquires the execution result corresponding to the request signal or stores the data corresponding to the request signal, and returns the execution result to the logic analyzer;
and the data server establishes a function mapping relation between the request signal and the corresponding execution result.
And the view stacking unit obtains view switching and calling relations according to the execution result returned to the logic parser by the data server, completes view stacking and popping operations according to the view switching and calling relations, and records view level information. For example: a receiver attribute is defined in the request node, and the receiver value is the ID number of the display view. After the data is returned, the program will call receiver to specify the view display data.
The push and pop operation is specifically defined as: when the logic analyzer receives the execution result as a view switching signal, the new view is pushed;
the XML file node instantiation parameters comprise: node name, attribute number, node position, node size, current view and attribute name;
the hierarchical relationship of the nodes of the XML file, as shown in fig. 3, includes: a window node;
the window node includes: title child node, view child node and status child node;
the window node and the child nodes thereof define a display interface of the whole view;
the view child node defines a main display area;
the title child node defines a title bar;
the status child node defines display status data;
each window node must define a view child node, and other child nodes are optional;
it can be seen from fig. 3 that the XML file format can well express the containing relationship of the individual controls, and is intuitive and easy to understand. The model analyzer analyzes the node structure, and generates the structural relationship of the components after generating the component instances.
The instantiation process of the model resolver specifically comprises the following steps: the model parser defines a structural body corresponding to the instantiation parameters of the nodes of the XML file, and the instantiation process is to read the names and all attribute values of the nodes of the XML file and then assign the names and all attribute values to the structural body.
The XML file node has a uniquely specified name and cannot be renamed.
And the control parameter name definition and the parameter self-resolution are supported, as shown in FIG. 4.
Self-analysis of parameters:
Figure BDA0002231095880000071
Figure BDA0002231095880000081
this example defines a dialog box from which the implementation retrieves a parameter named set _ cpu, defined by the igname ═ set _ cpu ". The parameter input is in the form of a combobox combo box with two selectable items, CPU1 and CPU2, and the logical parser records the index value of the currently selected item by selecting the "up" and "down" keys of the panel. After the value is selected, press "OK". The logic resolver resolves the dialog box, searches the character attribute in the combobox, if found, continues to judge the current option index, and takes out the corresponding id data. And then transmitting the data to a data server for processing.
Taking the view analog menu as an example, when a plurality of CPUs are present, a CPU selection dialog box is added.
Figure BDA0002231095880000082
Description of the drawings:
getargsbyid is the logical parser method and dialog _ select _ cpu is the id attribute value of dialog. And the logic parser parses the request node, searches for a req _ args attribute, and if the request node succeeds, calls a getargsbyid method, obtains a value of set _ cpu, and the parameter is dialog _ select _ cpu.
The description will be given by taking the view of the analog quantity as an example. As shown in the view switching logic of fig. 5, the whole interactive process is completed in 7 steps by triggering through interface keys, viewing data and returning to a key menu.
The process of "button _ show _ anag" row "0" column "name" analog "x" 20 "y" 20 "width" 100 "height" 20 >
<request receiver="view_anag"request="SHOW_ANAG"/>
</button>
This example only configures one menu entry and the XML-based protection device universal human-computer interaction system can be displayed as a tree-like menu, as shown in fig. 6.
A general man-machine interaction method for protection equipment based on XML comprises the following steps:
step 1: initializing a general man-machine interaction system of the protection equipment based on XML: in the model parser, traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to XML file node instantiation parameters, and storing successfully instantiated model instances into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
step 2: when the key is triggered, the event driver receives a key operation signal, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser;
and step 3: the logic parser loads the logical relationship of view switching in the XML configuration file, receives the signal of the event driver and the current view state in the view stack unit, generates a request signal from the instantiated model according to the hierarchical inclusion relationship of the corresponding control, and sends the generated request signal to the data server; the method specifically comprises the following steps: the event driver analyzes a request attribute from a request-to-node according to the widget member node of the structure body, and sends a data request to a data server, wherein the request type is a request attribute value, and the request type is as follows: SHOW _ ANAG.
And 4, step 4: the data server receives the request signal sent by the logic analyzer, acquires the execution result corresponding to the request signal or stores the data corresponding to the request signal, and returns the data to the logic analyzer; the method specifically comprises the following steps: and after receiving the request, the data server finds a corresponding processing function response request according to the SHOW _ ANAG and returns corresponding data.
And 5: the logic analyzer receives the data returned by the data server, finds a data display view according to the returned data, displays the data display view on a display screen, and simultaneously, logically analyzes and informs a view stacking unit; the method specifically comprises the following steps: (3)
after receiving the data returned by the data server, the logic parser finds a data display view, in an example, a request, according to the response SHOW _ ANAG, finds a view attribute value view _ ANAG in the node, and then displays the data on the LCD display screen according to the format, as shown in fig. 7.
Step 6: the view stacking unit is used for obtaining view switching and calling relations according to return data returned to the logic analyzer by the data server, completing view stacking and popping operations according to the view switching and calling relations and recording view level information;
and 7: if the key is a return key, the event driver notifies the view stacking unit, deletes the top view and displays the next top view.
By the above steps, various common interface controls are abstracted, as shown in table 2:
TABLE 2 common controls List
Figure BDA0002231095880000101
Figure BDA0002231095880000111
The present applicant has described and illustrated embodiments of the present invention in detail with reference to the accompanying drawings, but it should be understood by those skilled in the art that the above embodiments are merely preferred embodiments of the present invention, and the detailed description is only for the purpose of helping the reader to better understand the spirit of the present invention, and not for limiting the scope of the present invention, and on the contrary, any improvement or modification made based on the spirit of the present invention should fall within the scope of the present invention.

Claims (10)

1. An XML-based protection device universal human-computer interaction system, comprising: XML configuration file, model analyzer, logic analyzer, event driver, data server and view stack unit; the method is characterized in that:
the XML configuration file is respectively connected with a model parser and a logic parser, and the logic parser is respectively connected with an event driver, a data server and a view stack unit;
the XML configuration file comprises: defining XML file nodes, XML file node instantiation parameters, XML file node hierarchical relation and view switching logical relation;
the model parser is used for traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to the XML file node instantiation parameters, and storing the model instances which are successfully instantiated into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
the event driver receives a key operation signal on the display screen, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser;
the logic parser loads the view switching logic relationship in the XML configuration file, receives the signal of the event driver and the current view state in the view stack unit, generates a data request signal from the instantiated model according to the hierarchical inclusion relationship of the corresponding control, and sends the request signal to the data server; the logic analyzer receives the data returned by the data server, finds a data display view according to the returned data, displays the data display view on a display screen, and simultaneously, logically analyzes and informs a view stacking unit;
the data server receives the request signal sent by the logic analyzer, acquires the execution result corresponding to the request signal or stores the data corresponding to the request signal, and returns the data to the logic analyzer;
and the view stacking unit obtains the view switching and calling relation according to the return data returned to the logic analyzer by the data server, completes the view stacking and popping operations according to the view switching and calling relation, and records the view level information.
2. The universal human-computer interaction system for XML-based protection devices of claim 1, wherein:
and the XML file node defines one interface control as one node, and each node comprises a plurality of attributes.
3. The universal human-computer interaction system for XML-based protection devices of claim 2, wherein:
the attributes comprise public attributes and private attributes;
the common attributes include: the system comprises attribute numbers and attribute names, wherein each attribute number is unique in a human-computer interaction system, and one node is marked by the attribute number;
the private attribute is defined according to actual data attributes of different protection devices.
4. An XML-based protection device universal human-computer interaction system according to claim 1 or claim 2, wherein:
and the data server establishes a function mapping relation between the request signal sent by the logic analyzer and the corresponding execution result of the request signal.
5. The universal human-computer interaction system for XML-based protection devices of claim 2, wherein:
the push and pop operation is specifically defined as: and when the logic parser receives the execution result as a view switching signal, the new view is pushed.
6. The universal human-computer interaction system for XML-based protection devices of claim 1, wherein:
the XML file node instantiation parameters comprise: node name, attribute number, node position, node size, current view, and attribute name.
7. The universal human-computer interaction system for XML-based protection devices of claim 1, wherein:
the hierarchical relationship of the nodes of the XML file comprises the following steps: a window node;
the window node includes: the system comprises a title child node, a view child node and a status child node, wherein each window node must define the view child node;
the window node and the child nodes thereof define a display interface of the whole view;
the view child node defines a main display area;
the title child node defines a title bar;
the status child node defines display status data.
8. The universal human-computer interaction system for XML-based protection devices of claim 2, wherein:
the instantiation process of the model resolver specifically comprises the following steps: the model parser defines a structural body corresponding to the instantiation parameters of the nodes of the XML file, and the instantiation process is to read the names and all attribute values of the nodes of the XML file and then assign the names and all attribute values to the structural body.
9. The universal human-computer interaction system for XML-based protection devices of claim 7, wherein:
the XML file node has a uniquely specified node name.
10. A protection equipment universal man-machine interaction method based on XML is characterized by comprising the following steps:
step 1: initializing a general man-machine interaction system of the protection equipment based on XML: in the model parser, traversing all XML file nodes of the XML configuration file, instantiating the XML file nodes as objects according to XML file node instantiation parameters, and storing successfully instantiated model instances into a list; generating a corresponding control hierarchical inclusion relation according to the hierarchical relation of the nodes of the XML file;
step 2: when the key is triggered, the event driver receives a key operation signal, converts the key operation signal into a signal which can be identified by the logic parser, and sends the signal to the logic parser;
and step 3: the logic analyzer is used for loading the logical relationship of view switching in the XML configuration file, receiving the signal of the event driver and the current view state in the view stack unit, generating a request signal from the instantiated model according to the hierarchical inclusion relationship of the corresponding control, and sending the request signal to the data server;
and 4, step 4: the data server receives the request signal sent by the logic analyzer, acquires the execution result of the function corresponding to the request signal or stores the data corresponding to the request signal, and returns the data result to the logic analyzer;
and 5: the logic analyzer receives the data returned by the data server, finds a data display view according to the returned data, displays the data display view on a display screen, and simultaneously, logically analyzes and informs a view stacking unit;
step 6: the view stacking unit is used for obtaining view switching and calling relations according to return data returned to the logic analyzer by the data server, completing view stacking and popping operations according to the view switching and calling relations and recording view level information;
and 7: if the key is a return key, the event driver notifies the view stacking unit, deletes the top view and displays the next top view.
CN201910967867.7A 2019-10-12 2019-10-12 Protection equipment universal man-machine interaction system and method based on XML Active CN110795024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910967867.7A CN110795024B (en) 2019-10-12 2019-10-12 Protection equipment universal man-machine interaction system and method based on XML

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910967867.7A CN110795024B (en) 2019-10-12 2019-10-12 Protection equipment universal man-machine interaction system and method based on XML

Publications (2)

Publication Number Publication Date
CN110795024A CN110795024A (en) 2020-02-14
CN110795024B true CN110795024B (en) 2021-03-26

Family

ID=69440186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910967867.7A Active CN110795024B (en) 2019-10-12 2019-10-12 Protection equipment universal man-machine interaction system and method based on XML

Country Status (1)

Country Link
CN (1) CN110795024B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464033A (en) * 2020-10-19 2021-03-09 北京四方继保工程技术有限公司 Object-oriented power data classification and communication method
CN112764831A (en) * 2021-01-19 2021-05-07 中盈优创资讯科技有限公司 Configuration file analysis method and device based on user-defined extensible markup language
CN114518906B (en) * 2022-01-25 2024-05-14 厦门锐谷通信设备有限公司 Device configuration parameter management system and method based on XML description file

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154106A (en) * 2006-09-29 2008-04-02 洛克威尔自动控制技术股份有限公司 Web-based configuration of distributed automation systems
CN103024351A (en) * 2012-12-05 2013-04-03 深圳供电局有限公司 Multi-view linkage and switching method for power grid operation monitoring image
CN103792857A (en) * 2012-10-31 2014-05-14 洛克威尔自动控制技术股份有限公司 Scalable automation system
CN104111828A (en) * 2013-04-22 2014-10-22 易保网络技术(上海)有限公司 Automatic generation method and system of human-computer interaction interface
CN104981807A (en) * 2013-02-11 2015-10-14 帝斯贝思数字信号处理和控制工程有限公司 Alteration of a signal value for an fpga at runtime
CN106446023A (en) * 2016-08-29 2017-02-22 江苏数加数据科技有限责任公司 Double-publicized production data front-end display system and method based on AngularJS and Bootstrap
CN106527873A (en) * 2016-10-10 2017-03-22 国网新疆电力公司经济技术研究院 xml-based man-machine interactive interface customization method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569659A (en) * 2016-10-21 2017-04-19 北京橙鑫数据科技有限公司 Information display method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154106A (en) * 2006-09-29 2008-04-02 洛克威尔自动控制技术股份有限公司 Web-based configuration of distributed automation systems
CN103792857A (en) * 2012-10-31 2014-05-14 洛克威尔自动控制技术股份有限公司 Scalable automation system
CN103024351A (en) * 2012-12-05 2013-04-03 深圳供电局有限公司 Multi-view linkage and switching method for power grid operation monitoring image
CN104981807A (en) * 2013-02-11 2015-10-14 帝斯贝思数字信号处理和控制工程有限公司 Alteration of a signal value for an fpga at runtime
CN104111828A (en) * 2013-04-22 2014-10-22 易保网络技术(上海)有限公司 Automatic generation method and system of human-computer interaction interface
CN106446023A (en) * 2016-08-29 2017-02-22 江苏数加数据科技有限责任公司 Double-publicized production data front-end display system and method based on AngularJS and Bootstrap
CN106527873A (en) * 2016-10-10 2017-03-22 国网新疆电力公司经济技术研究院 xml-based man-machine interactive interface customization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Web Service技术在智能配变终端中的应用与设计》;孙智涛等;《电力电气》;20141231;第33卷(第21期);全文 *
《一种基于XML技术的通用数据交换系统》;杨春蓉等;《无线互联科技》;20121231(第11期);全文 *

Also Published As

Publication number Publication date
CN110795024A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN110795024B (en) Protection equipment universal man-machine interaction system and method based on XML
JP4503438B2 (en) System and method for informing applications and users of user interface elements
US5335320A (en) Graphical user interface editing system
CN110673848B (en) Enterprise information management system configuration device based on JavaWeb
US7979847B2 (en) Visual debugger for declarative/data-flow applications
US20040017392A1 (en) Web service control for use in a graphical programming environment
WO2000020963A2 (en) Method and system for associating parameters of containers and contained objects
JPH05150931A (en) Method and apparatus for processing scope changing command
Dwelly Functions and dynamic user interfaces
JPH0827765B2 (en) Object-oriented programming system
JP6813634B2 (en) WEB reporting design system for programming event behavior based on graphic interface
CN101246424A (en) Menu automatic generation system and method for based on file
CN109976729B (en) Storage and computing display globally configurable data analysis software architecture design method
CN101470601A (en) Zero-code generation method of application software and generation platform thereof
CN103810292A (en) Method and device for configuring graphical interface
CN114995816A (en) Business process configuration method and device, electronic equipment and readable storage medium
CN113626017A (en) Heterogeneous program analysis method and device, computer equipment and storage medium
JPH03504546A (en) Highlinking method to form hypermedia information management tools
EP0603095A2 (en) Method and apparatus for managing a windowing environment in an object oriented programming system
CN115756430A (en) Low-code rapid research and development configuration platform
US8347219B1 (en) Object-level display building
CN102109999B (en) Realizing method for liquid crystal interface relay protection
CN115203162A (en) WYSIWYG graph data construction method
de Oliveira et al. Active customization of GIS user interfaces
JP2988911B1 (en) Automatic program generator

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