CN105022638A - Embedded device business logic visual display method - Google Patents

Embedded device business logic visual display method Download PDF

Info

Publication number
CN105022638A
CN105022638A CN201510477151.0A CN201510477151A CN105022638A CN 105022638 A CN105022638 A CN 105022638A CN 201510477151 A CN201510477151 A CN 201510477151A CN 105022638 A CN105022638 A CN 105022638A
Authority
CN
China
Prior art keywords
script
service logic
control information
visual presentation
presentation method
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
Application number
CN201510477151.0A
Other languages
Chinese (zh)
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.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology 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 State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510477151.0A priority Critical patent/CN105022638A/en
Publication of CN105022638A publication Critical patent/CN105022638A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Abstract

The invention relates to an embedded device business logic visual display method, belonging to the technical field of relay protection in electric power engineering. The method adopts a mode, in which a built-in script engine loads an external business logic script. The script engine performs business logic combined transformation and display according to a control information message receiving a request; when the business combination logic changes, current element control information is refreshed and display positions of all basic elements in currently visible clusters, blocks and groups are adjusted dynamically; and full screen redrawing is enforced to carried out, and if a control information set is not changed, the former state of the element is erased and a new state of the element is drawn. According to the method, under the condition of no modification on a software code, flexible requirements of business modules can be realized through change of the business logic script; and real-time combined transformation of the business logic is controlled by blocking and deblocking of the business control data, and requirements of stability, rapidness, flexibility and universality can be met at the same time.

Description

A kind of embedded equipment service logic visual presentation method
Technical field
The present invention relates to a kind of embedded equipment service logic visual presentation method, belong to power engineering technical field of relay protection.
Background technology
Embedded system particularly relates to the embedded equipment of the relay protection automatic field belonging to power engineering, all very high to the requirement of the stability of system, rapidity and dirigibility; And service logic and business closely related, the visualization technique of general customization mostly bind with core business module, the very difficult demand simultaneously meeting stability, rapidity and dirigibility and versatility; Along with user requires more and more higher to business nucleus module, generally did the core business module of the experiment that networks, just frozen nucleus module check code, and customer service logic shows that requirement has diversity, otherness.Under shared service nucleus module application conditions, using the part of script engine as business nucleus module, configuration script is separated with business nucleus module, the individual demand that just can realize service logic and show is described by means of only amendment script, and core business module remains unchanged, thus add the versatility of business nucleus module, stability and dirigibility.
Summary of the invention
The object of this invention is to provide embedded equipment service logic visual presentation method, with solve current method for visualizing adopt customization mode cause stability, rapidity, dirigibility and versatility to be difficult to the problem simultaneously met.
The present invention provides a kind of embedded equipment service logic visual presentation method for solving the problems of the technologies described above, and this visual presentation method adopts built-in script engine to add external service logic script mode, comprises the following steps:
1) build service logic script that the group, block, the group level elements that are composited by figure primary element and primary element form and download it in embedded equipment, script engine loads;
2) script engine is by command message request dynamic information;
3) script engine carries out combined transformation and the displaying of service logic according to the control information receiving request, when combinations of services logic changes, refresh all primary elements in the group of current elements control information and dynamic conditioning current visible, block, group display position, force full frame redrawing, if control information collection is unchanged, erased element oldState also draws new state.
Described step 1) in the building process of service logic script as follows:
A. service logic script formulation tool design service logic figure is used;
B. press the classification and ordination sets of elements binary script file of script definition format generation based on index, this script comprises specific identifier, script page and the control information of classification position of components.
Described step 2) in request dynamic information comprise control information and magnitude information, described control information with the input of key-strings mark controlled quentity controlled variable with exit, the on off state of controlled quentity controlled variable control element and the display of group's block group level elements with hide; Magnitude information identifies with string format.
Described step 3) carrying out the combined transformation of service logic and also needing renewal amount value information in showing.
Described step 3) in group, block, group level elements collection can hide, show and mobile combined transformation, ensure that the flexible displaying of service logic and switch in real time.
Described step 3) adopt the mode of the local of element state first being wiped to rear drafting, to ensure the rapidity that script engine is drawn.
When script engine receives user interactions input, judge whether it is to receive focus element, only remote control element can accept user focus input.
Described user receives in focus input state process, forbids that script engine carries out the combined transformation of service logic, ensures that mutual input does not refresh interference by engine.
The acquisition of described multidate information by means of only command message pattern, to ensure the robustness of script engine and business module, independence and stability.
The invention has the beneficial effects as follows: the present invention adopts built-in script engine to load external service logic script mode, script engine carries out combined transformation and the displaying of service logic according to the control information message receiving request, when combinations of services logic changes, refresh all primary elements in the group of current elements control information and dynamic conditioning current visible, block, group display position, force full frame redrawing, if control information collection is unchanged, erased element oldState also draws new state.The present invention is not when revising software code, the dirigibility demand of business module can be realized by conversion service logic script, move back the combined in real time conversion between service control logic by the throwing of Service control data, the requirement of stability, rapidity, dirigibility and versatility can be met simultaneously.
In the present invention, service logic script adopts based on the classification and ordination sets of elements binary script file layout of index, can realize script engine rapid loading and resolve and the searching of display object.Due to do not change embedded can performance objective program itself, can effectively ensure principle embedded can the stability run of performance objective program.
Accompanying drawing explanation
Fig. 1 is the principle schematic of embedded equipment service logic visual presentation method of the present invention;
Fig. 2 is the process flow diagram of embedded equipment service logic visual presentation method of the present invention;
Fig. 3 is embedded equipment service logic visual presentation method application design example figure of the present invention (the virtual split screen display of 240x320 liquid crystal);
Fig. 4 is embedded equipment service logic visual presentation method of the present invention display exemplary plot (split screen shows, and maximizes);
Fig. 5 is embedded equipment service logic visual presentation method control information of the present invention conversion instance graph (split screen shows, and exits center section).
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further.
The present invention adopts built-in script engine to load external service logic script mode, when not revising software code, the dirigibility demand of business module can be realized by conversion service logic script, move back the combined in real time conversion between service control logic by the throwing of Service control data, as shown in Figure 1, in embedded equipment, script engine loads resolves service logic script, by command message form to business platform requested service multidate information, after script engine receives the control information message of request, upgrade engine and output to liquid crystal display, and the mutual input information of receiving liquid crystal display.As shown in Figure 2, specific implementation process is as follows for the flow process of the method:
1. build script
Script is by primary elements such as point, line, circle, rectangles, and the group be composited by primary element, block, group level elements are formed.The building process of script is as follows: first adopt service logic script formulation tool design service logic figure, then press the classification and ordination sets of elements binary script file of script definition format generation based on index, this script includes specific identifier, script page and the control information of classification position of components etc.Script identifies the legitimacy being used for identifying script; Script page supports virtual logical paging and physical paging pattern; Whether primary element and group, block, group level elements control information marker elements group control by business module.
Script constructed by the present invention adopts the classification and ordination sets of elements binary format based on index, can ensure the rapid loading of script and the fast finding location of original paper, ensures the rapid loading that embedded system powers on and run fast from algorithm.
2. the download of script and loading
Download in embedded equipment by download tool by script, after system electrification, script engine pin is at script and carry out initialization display.When using script, when powering on, after the automatic loading scripts of system, system enters script engine initialization, if script does not exist when powering on, then system enters without script environment; Change different scripts can change the service logic that system supports and show, effectively ensure the dirigibility of embedded equipment business module exploitation.
3. obtain dynamic script information
Script engine by command message to business platform request dynamic information, here multidate information comprises control information and magnitude information, control information with the input of key-strings mark controlled quentity controlled variable with exit, the display of the on off state of controlled quentity controlled variable control element and group, block, group level elements with hide; Magnitude information identifies with string format.
The acquisition of Dynamic control information and dynamic quantity information, by means of only command message pattern, effectively ensures the robustness of script engine and business module, independence and stability.
" control information message " and " multidate information message " are not identical concepts, control information message be used to control group, block, group level elements display with hide (comprise multistage primary element and composite component inside level elements and all can follow level elements simultaneous display with hiding), and multidate information message is the status information of primary element or composite component.
4. the combined transformation of service logic and displaying
After script engine receives the control information message of business platform transmission, formation control information set, control information collection " be the control information set about group, block, the senior composite component of group obtained from " control information message "; because " control information collection " comprises primary element or composite component below the group of control, block, the senior composite component of group; the state of element upgrades along with multidate information message; if multidate information message has renewal, even if then control information collection is unchanged also will repaint element new state.Script engine receives composition control information set after control information message, catch up with secondary control information set to compare, just can know whether combinations of services logic changes, if change, just with the control information set of new control information set more the old and new, and layout draw display again.
Namely first, if combinations of services logic changes, also control information collection changes, then the display position of all primary elements in the group of dynamic conditioning current visible, block, group, and forces full frame redrawing; If control information collection does not change, just according to the multidate information message content of current elements, when state changes, first erased element oldState also draws new state.Secondly, renewal amount value information, adopts the method for the local of element state first being wiped to rear drafting, ensures the rapidity of drawing.Level elements collection has hiding, display and the function of mobile combined transformation, ensure that the flexible displaying of service logic and switches in real time; Adopt and rear drafting is first wiped to the local of element state, ensure the rapidity that script engine is drawn.Apply said method in the present embodiment and carry out the result of visual presentation as in Figure 3-5.
5. user interactions input
Focus element " refer in user interactions input process; and can receive the series of elements of user's input control; such as remote-control circuit breaker, disconnecting link etc.; may have multiple such element; user interactions input first determines it is which element, and this element determined is " focus element ", " focus element " can alternately glimmer by the real empty frame line of timing; represent that this element receives input focus, namely carry out straighforward operation.
Script engine receives user interactions key-press input, judge whether it is to receive focus element, only remote control element can accept user focus input, and user receives in focus input state process, forbid that script engine carries out the combined transformation of service logic, ensure that mutual input does not refresh interference by engine.Script engine can support that user key-press inputs, and the element receiving user's input forbids that in reciprocal process script engine refreshes, and avoiding engine to refresh affects user's input.

Claims (9)

1. an embedded equipment service logic visual presentation method, is characterized in that, this visual presentation method adopts built-in script engine to add external service logic script mode, comprises the following steps:
1) build service logic script that the group, block, the group level elements that are composited by figure primary element and primary element form and download it in embedded equipment, script engine loads;
2) script engine is by command message request dynamic information;
3) script engine carries out combined transformation and the displaying of service logic according to the control information receiving request, when combinations of services logic changes, refresh all primary elements in the group of current elements control information and dynamic conditioning current visible, block, group display position, force full frame redrawing, if control information collection is unchanged, erased element oldState also draws new state.
2. embedded equipment service logic visual presentation method according to claim 1, is characterized in that, described step 1) in the building process of service logic script as follows:
A. service logic script formulation tool design service logic figure is used;
B. press the classification and ordination sets of elements binary script file of script definition format generation based on index, this script comprises specific identifier, script page and the control information of classification position of components.
3. embedded equipment service logic visual presentation method according to claim 2, it is characterized in that, described step 2) in request dynamic information comprise control information and magnitude information, described control information is with the input of key-strings mark controlled quentity controlled variable and exit, and the on off state of controlled quentity controlled variable control element and the display of group's block group level elements are with hiding; Magnitude information identifies with string format.
4. embedded equipment service logic visual presentation method according to claim 3, is characterized in that, described step 3) carrying out the combined transformation of service logic and also needing renewal amount value information in showing.
5. embedded equipment service logic visual presentation method according to claim 4, it is characterized in that, described step 3) in group, block, group level elements collection can hide, show and mobile combined transformation, ensure that the flexible displaying of service logic and switch in real time.
6. embedded equipment service logic visual presentation method according to claim 5, is characterized in that, described step 3) adopt the mode of the local of element state first being wiped to rear drafting, to ensure the rapidity that script engine is drawn.
7. embedded equipment service logic visual presentation method according to claim 6, is characterized in that, when script engine receives user interactions input, judge whether it is to receive focus element, only remote control element can accept user focus input.
8. embedded equipment service logic visual presentation method according to claim 7, it is characterized in that, described user receives in focus input state process, forbids that script engine carries out the combined transformation of service logic, ensures that mutual input does not refresh interference by engine.
9. the embedded equipment service logic visual presentation method according to any one of claim 1-8, it is characterized in that, the acquisition of described multidate information by means of only command message pattern, to ensure the robustness of script engine and business module, independence and stability.
CN201510477151.0A 2015-08-06 2015-08-06 Embedded device business logic visual display method Pending CN105022638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510477151.0A CN105022638A (en) 2015-08-06 2015-08-06 Embedded device business logic visual display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510477151.0A CN105022638A (en) 2015-08-06 2015-08-06 Embedded device business logic visual display method

Publications (1)

Publication Number Publication Date
CN105022638A true CN105022638A (en) 2015-11-04

Family

ID=54412629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510477151.0A Pending CN105022638A (en) 2015-08-06 2015-08-06 Embedded device business logic visual display method

Country Status (1)

Country Link
CN (1) CN105022638A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406791A (en) * 2016-08-31 2017-02-15 许继集团有限公司 Rapid synchronous display method and system and device connected with system
CN106897318A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 The methods of exhibiting and device of five application page on mobile terminal device
CN111158972A (en) * 2019-12-05 2020-05-15 连连银通电子支付有限公司 Method, device, equipment and medium for determining switch state
CN114968219A (en) * 2022-05-09 2022-08-30 中国三峡建工(集团)有限公司 Construction method based on visual dragging type logic analysis script

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1204037A2 (en) * 2000-11-01 2002-05-08 Ncr International Inc. Defining a process by a plurality of pages defined in a mark-up language
CN101510151A (en) * 2009-03-23 2009-08-19 国电南瑞科技股份有限公司 Synthesis monitoring cross-platform configuration human-machine interface system
CN101630255A (en) * 2009-06-01 2010-01-20 杭州电子科技大学 Automatic generation method of data-program separation of monitoring human-computer interface
CN104731584A (en) * 2015-02-26 2015-06-24 武汉爱科唯自动化科技有限公司 Human-machine interface customizable configuration design method for open type numerical control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1204037A2 (en) * 2000-11-01 2002-05-08 Ncr International Inc. Defining a process by a plurality of pages defined in a mark-up language
CN101510151A (en) * 2009-03-23 2009-08-19 国电南瑞科技股份有限公司 Synthesis monitoring cross-platform configuration human-machine interface system
CN101630255A (en) * 2009-06-01 2010-01-20 杭州电子科技大学 Automatic generation method of data-program separation of monitoring human-computer interface
CN104731584A (en) * 2015-02-26 2015-06-24 武汉爱科唯自动化科技有限公司 Human-machine interface customizable configuration design method for open type numerical control system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897318A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 The methods of exhibiting and device of five application page on mobile terminal device
CN106406791A (en) * 2016-08-31 2017-02-15 许继集团有限公司 Rapid synchronous display method and system and device connected with system
CN111158972A (en) * 2019-12-05 2020-05-15 连连银通电子支付有限公司 Method, device, equipment and medium for determining switch state
CN111158972B (en) * 2019-12-05 2020-08-25 连连银通电子支付有限公司 Method, device, equipment and medium for determining switch state
CN114968219A (en) * 2022-05-09 2022-08-30 中国三峡建工(集团)有限公司 Construction method based on visual dragging type logic analysis script

Similar Documents

Publication Publication Date Title
CN105022638A (en) Embedded device business logic visual display method
CN101128048B (en) Communication system and method for managing multimode communication device
CN105677265A (en) Display method and terminal
CN105407138A (en) Configuration file loading method and apparatus, and communication equipment
CN103019746A (en) Software interaction control method and system based on Android platform
CN103559055A (en) Activity starting method and device applied to Android platform
CN105867944B (en) Web front end data operation layer and its implementation
CN103970573A (en) Light application program system for mobile device and program loading system and method thereof
CN104469465A (en) Smart television levitation main scene interaction method based on android system
CN104661080A (en) Multi-equipment projection control method based on Wi-Fi wireless network
CN104272220A (en) System and method for adjusting page transition performance
CN103577048A (en) Desktop icon intelligent arranging system and method
CN103002043A (en) Method and system used for resource management of cloud environment
CN106227513B (en) Method and system based on graphic configuration under mobile platform
CN103440396A (en) Intelligent analysis ticket making method and system of dispatch operation ticket
CN104618890A (en) Information processing method and electronic equipment
CN105635999A (en) Intelligent terminal and management method of multi-card data traffic
CN103677497A (en) Processing method and device for mobile terminal plug-in and mobile terminal plug-in
CN104581902A (en) Method and device for accessing wearable equipment to Internet
CN102087596A (en) Embedded browsing device and multi-page mixed display method thereof
CN104965745A (en) Air conditioner system program updating device and method
CN105159843A (en) Multichannel management method and system based on super block
CN115923512A (en) Method and device for displaying information on instrument screen, electronic equipment and vehicle
CN112987597B (en) FSU control method, device, equipment and computer readable storage medium
CN104125336A (en) Wireless network name repairing method and device

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: 20151104

RJ01 Rejection of invention patent application after publication