CN111930369B - Design method of system tool based on variable box - Google Patents

Design method of system tool based on variable box Download PDF

Info

Publication number
CN111930369B
CN111930369B CN202010372144.5A CN202010372144A CN111930369B CN 111930369 B CN111930369 B CN 111930369B CN 202010372144 A CN202010372144 A CN 202010372144A CN 111930369 B CN111930369 B CN 111930369B
Authority
CN
China
Prior art keywords
variable box
variable
plug
box
identifier
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
CN202010372144.5A
Other languages
Chinese (zh)
Other versions
CN111930369A (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.)
Xuji Group Co Ltd
State Grid Shandong Electric Power Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
State Grid Shandong Electric Power 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 Xuji Group Co Ltd, State Grid Shandong Electric Power Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN202010372144.5A priority Critical patent/CN111930369B/en
Publication of CN111930369A publication Critical patent/CN111930369A/en
Application granted granted Critical
Publication of CN111930369B publication Critical patent/CN111930369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a design method of a system tool based on a variable box, which comprises the steps of abstracting contents in the system tool into graphic elements and the variable box; setting an operation interface, wherein the operation interface comprises one or more graphic elements; determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box; and binding the response event of the graphic element in the operation interface to the input with the corresponding event action. The data, the business objects and the operations in the system tool are abstracted into variables, unified management is carried out, and each business module interacts through a variable box. On the basis of public basic service, different services can be customized, the development efficiency of the system is improved, the stability of the system is improved, and the coupling degree between modules is reduced.

Description

Design method of system tool based on variable box
Technical Field
The invention belongs to the technical field of intelligent substation automation of power systems, and particularly relates to a design method of a system tool based on a variable box.
Background
With the gradual progress of smart grid construction, a comprehensive monitoring system based on a transformer substation is continuously perfected, subsystems and tools required to be developed are gradually increased, a traditional development mode is that a unified frame is not available, multiple and multiple frames are caused, redesign is required in a development stage, basic service performance is required to be retested and perfected, and large workload is brought to development and testing staff. And the diversity and high coupling of the frames causes the workload of post maintenance upgrades to become greater. How to develop effectively and rapidly, shorten development period, improve reusability of framework, reduce coupling between modules, and keep stable operation of system or tool is a urgent problem to be solved.
Disclosure of Invention
The invention aims to provide a design method of a system tool based on a variable box, which is used for uniformly managing all required graphic elements and business objects in the variable box in the form of variables, and a business module is used for completing the initialization of global variables in the extraction process in the registration process, and is provided with UILayout service for connecting graphic events and graphic actions and carrying out the interaction of data among the modules. Basic services such as basic computing service, message bus, real-time library, alarm service, resource center and the like are shared by all systems or tools, and only specific business modules are required to be developed according to different businesses. The development period is shortened, the reusability of the framework is improved, the coupling between modules is reduced, and the guarantee is provided for effective and rapid development and stable operation of the system tool.
In order to solve the above problems, the present invention provides a method for designing a system tool based on a variable box, including: the content in the system tools is abstracted into graphical elements and boxes of variables. An operation interface is set, wherein the operation interface comprises one or more graphic elements.
And determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box.
And binding the response event of the graphic element in the operation interface to the input with the corresponding event action.
Further, determining the correspondence between the graphic element and the variable box, and registering information related to the graphic element in the variable box includes:
the variable box comprises one or more plug-in modules, the plug-in modules register with the variable box invention in the initialization process, and the call and management of the variable box are received.
And the variable box loads plug-in modules corresponding to the variable box in sequence according to the configuration file.
Further, the plug-in module is registered with the variable box invention in the initializing process, and comprises the following steps:
the plug-in module registers the generated global variable into the variable box in the process of completing self initialization.
According to one embodiment of the invention, the plug-in module comprises graphic elements, operations, business objects, data derived from databases, configuration files, external interactions.
According to one embodiment of the invention, the plug-in module is provided with a unique identifier, which is the first identifier.
And determining the corresponding relation between the graphic elements and the variable box, wherein the method comprises the steps of uniformly coding each interface graphic element, determining a second identifier and determining the corresponding relation between the first identifier and the second identifier.
According to one embodiment of the invention, the graphical elements include buttons, drop-down boxes, custom graphical objects.
According to one embodiment of the present invention, the variable box is loaded in sequence according to a configuration file, including: and matching the second identifier with the corresponding graphical interface information in the configuration file, organizing the structure according to the hierarchical structure configured in the configuration file, and replacing the graphical elements in the operation interface.
According to one embodiment of the invention, the response events of the graphic elements on the operation interface to the input and the corresponding event actions are bound together in the form of a signal-slot according to the configuration file.
The invention discloses a design method of a system tool based on a variable box, which abstracts the content in the system tool into graphic elements and the variable box; setting an operation interface, wherein the operation interface comprises one or more graphic elements; determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box; and binding the response event of the graphic element in the operation interface to the input with the corresponding event action. The data, the business objects and the operations in the system tool are abstracted into variables, unified management is carried out, and each business module interacts through a variable box. On the basis of public basic service, different services can be customized, the development efficiency of the system is improved, the stability of the system is improved, and the coupling degree between modules is reduced.
Drawings
FIG. 1 is a schematic diagram of a system tool design in accordance with an embodiment of the present disclosure;
FIG. 2 is a system tool data flow diagram of an embodiment of the present disclosure;
FIG. 3 is a diagram of a system tool operation interface disclosed in an embodiment of the present invention;
FIG. 4 is a flow chart of a method of designing a variable box based system tool according to an embodiment of the present invention.
Detailed Description
The objects, technical solutions and advantages of the present invention will become more apparent by the following detailed description of the present invention with reference to the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the invention. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention.
The invention will be further described with reference to the accompanying drawings.
As shown in fig. 1, a system tool design scheme based on a variable box is implemented according to the following steps:
1) Setting an operation interface, taking the operation interface as canvas, preparing for layout of interface graphic elements (buttons, drop-down frames, custom graphic objects and the like), and registering the operation interface in a variable box.
2) And carrying out region division on the plug-in modules, wherein region configuration exists in the form of configuration files, and the plug-in containers sequentially load service module plug-ins according to the configuration files. The module plugin is registered with the plugin container invention in the initializing process, and receives the call and management of the plugin container.
3) The variable box is a variable container, and the plug-in module registers itself in the variable box at the time of registration. And the global variable generated in the process of completing the self initialization of the plug-in module is also registered in the variable box.
4) The UILayout service fetches the operation from the box of variables according to the layout configuration file, fixes the required graphic elements to the corresponding positions, and then redraws the operation interface. The Connectslot service process binds the response event of the graphic element on the operation interface to the user input with the corresponding event action in the form of a signal-slot according to the configuration file.
The content in the tool is abstracted into graphic elements, operations, business objects and data. The data originates from a database, a configuration file, external interactions, etc. The dataflow diagram is shown in fig. 3.
The operation interface in step 1) exists in the form of a single instance. The operator interface may be a blank interface without any graphical elements or may have an initial layout, as shown in fig. 2. The menu bar, status bar and central work area dock component on the operation interface all have unique representation ID, and the existing graphic elements also have unique ID identifiers which are consistent with the corresponding graphic element IDs in the UI configuration file. The UILayout service loads the UI configuration file, takes out the graphic element corresponding to the ID from the variable box, and sets the interface layout according to the layout style in the UI configuration file.
The region division in the step 2) refers to that according to the functional independence and the interdependence of the plug-in modules, the loading priority of the plug-in modules is divided, and the plug-in modules with the same level are divided into the same region, namely under the same catalog. The configuration file specifies the order in which plug-ins are loaded by the plug-in containers according to the region division. The plug-in container is a plug-in module management module, and the call and the management of the plug-in module are realized through a unified interface. The plug-in container maintains a plug-in list, registers the plug-ins which have been loaded into the plug-in list, and then calls an initialization function according to an initialization sequence to initialize the plug-ins. The plug-in module must have a unique identification.
The plug-in container requires that the service module must support three interfaces, the interface functions are: 1) Finishing self-initialization and initializing global variables in the module; 2) Completing the connection between the plug-ins; 3) To begin providing services or functions.
The variable box in step 3) is a container class that provides interfaces for adding, deleting and looking up variables. The variable box maintains an instance copy of the variable held in the container and adds a variable call lock to secure the thread during a read operation of the variable. A list of < kdy, value > key value pairs is maintained in the variable box, the key is a unique identification name of the variable, the value is a value corresponding to the variable, the type of the value can be various types such as a pointer, a character string, an integer, an object and the like, and global variables used in the tool are stored, and the method comprises the following steps: profile names, profile formulation directories, database connection information, interface layout information, business objects, etc.
In the step 4), the UILayout service is mainly responsible for constructing the structure and layout of the function menu bar in the tool, and uniformly codes all interface elements in the operation interface to determine the unique identifier. Matching the identifier with the corresponding graphical interface in the configuration file, organizing the structure according to the hierarchical structure configured in the configuration file, and replacing the specific position in the operation interface. And simultaneously, the Connectslot service binds the corresponding event of the graphic element and the corresponding event action according to the connection configuration file. The tool is reached to make corresponding logic operation for the input operation of the user.
After the framework is built through the step 4, when the tool is started, the basic service automatically operates to provide service, and a user can interact with the system or the tool through an operation interface, wherein the operation interface is shown in fig. 3.
Through the scheme, the development of all subsystems and tools thereof in the intelligent management and control platform of the transformer substation can be same as that of adopting the design scheme, and different tools in the operation period and the configuration period can adopt the same framework, and only different plug-in modules are required to be developed according to different services. The basic service modules such as the real-time library module, the communication module and the like can all adopt the same framework. Therefore, the tool development period can be shortened, only one set of basic service module is required to be maintained, the maintenance cost is reduced, and unified management is facilitated.
In another aspect, an embodiment of the present invention provides a method for designing a system tool based on a variable box, as shown in fig. 4, including: s1: the content in the system tools is abstracted into graphical elements and boxes of variables. The interface graphic elements include buttons, drop-down boxes, and custom graphic objects. The variable box includes one or more plug-in modules. The variable box comprises one or more plug-in modules, wherein the plug-in modules apply for registration to the variable box in the initialization process and accept the call and management of the variable box. And the variable box loads plug-in modules corresponding to the variable box in sequence according to the configuration file. The plug-in module registers the generated global variable into the variable box in the process of completing self initialization.
The plug-in module comprises graphic elements, operations, business objects and data, wherein the data is derived from a database, a configuration file and external interaction.
The plug-in module is provided with a unique identifier, and the identifier is a first identifier.
S2: an operation interface is set, wherein the operation interface comprises one or more graphic elements.
S3: and determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box.
And determining the corresponding relation between the graphic elements and the variable box, wherein the method comprises the steps of uniformly coding each interface graphic element, determining a second identifier and determining the corresponding relation between the first identifier and the second identifier.
And matching the second identifier with the corresponding graphical interface information in the configuration file, organizing the structure according to the hierarchical structure configured in the configuration file, and replacing the specific position in the operation interface.
S4: and binding the response event of the graphic element in the operation interface to the input with the corresponding event action.
And binding the response event of the graphic element on the operation interface to the input and the corresponding event action in a signal-slot mode according to the configuration file.
The invention discloses a design method of a system tool based on a variable box, which abstracts the content in the system tool into graphic elements and the variable box; setting an operation interface, wherein the operation interface comprises one or more graphic elements; determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box; and binding the response event of the graphic element in the operation interface to the input with the corresponding event action. The data, the business objects and the operations in the system tool are abstracted into variables, unified management is carried out, and each business module interacts through a variable box. On the basis of public basic service, different services can be customized, the development efficiency of the system is improved, the stability of the system is improved, and the coupling degree between modules is reduced.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explanation of the principles of the present invention and are in no way limiting of the invention. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.

Claims (5)

1. A method of designing a variable box-based system tool, comprising:
abstracting the content in the system tool into graphic elements and a variable box;
setting an operation interface, wherein the operation interface comprises one or more graphic elements;
determining the corresponding relation between the graphic element and the variable box, and registering information related to the graphic element into the variable box;
binding a response event of a graphic element in an operation interface to input with a corresponding event action;
the registering the information related to the graphic element in the variable box comprises the following steps:
the variable box comprises one or more plug-in modules, the plug-in modules register the generated global variable in the variable box in the process of completing self initialization, and the call and management of the variable box are received;
the variable box loads plug-in modules corresponding to the variable box in sequence according to the configuration file;
the plug-in module is provided with a unique identifier, and the identifier is a first identifier;
the determining of the corresponding relation between the graphic elements and the variable box comprises the steps of uniformly coding all interface graphic elements, determining a second identifier and determining the corresponding relation between the first identifier and the second identifier.
2. The method of claim 1, wherein the plug-in module comprises graphical elements, operations, business objects, and data derived from databases, configuration files, and/or external interactions.
3. The method of claim 1, wherein the graphical element comprises a button, a drop down box, and/or a custom graphical object.
4. The method of claim 1, wherein the variable box is loaded in sequence according to a configuration file, comprising:
and matching the second identifier with the corresponding graphical interface information in the configuration file, and organizing the structure according to the hierarchical structure configured in the configuration file to replace the graphical elements in the operation interface.
5. The method of claim 1, wherein the response event of the graphical element on the operator interface to the input is bound to the corresponding event action in the form of a "signal-slot" according to the configuration file.
CN202010372144.5A 2020-05-06 2020-05-06 Design method of system tool based on variable box Active CN111930369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010372144.5A CN111930369B (en) 2020-05-06 2020-05-06 Design method of system tool based on variable box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010372144.5A CN111930369B (en) 2020-05-06 2020-05-06 Design method of system tool based on variable box

Publications (2)

Publication Number Publication Date
CN111930369A CN111930369A (en) 2020-11-13
CN111930369B true CN111930369B (en) 2024-04-16

Family

ID=73317126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010372144.5A Active CN111930369B (en) 2020-05-06 2020-05-06 Design method of system tool based on variable box

Country Status (1)

Country Link
CN (1) CN111930369B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272537B1 (en) * 1997-11-17 2001-08-07 Fujitsu Limited Method for building element manager for a computer network element using a visual element manager builder process
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
CN102662662A (en) * 2012-03-27 2012-09-12 山东电力集团公司 Embedded graphics interface generation system and method
CN108958708A (en) * 2017-05-25 2018-12-07 河南理工大学 A kind of software system architecture component-based and software implementation method
CN109597614A (en) * 2017-09-28 2019-04-09 华为技术有限公司 A kind of business page method for customizing and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8701085B2 (en) * 2008-12-08 2014-04-15 Adobe Systems Incorporated Graphical event and binding editor for software development
US11531947B2 (en) * 2018-10-19 2022-12-20 Oracle International Corporation System and method for software development including column-based process editor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272537B1 (en) * 1997-11-17 2001-08-07 Fujitsu Limited Method for building element manager for a computer network element using a visual element manager builder process
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
CN102662662A (en) * 2012-03-27 2012-09-12 山东电力集团公司 Embedded graphics interface generation system and method
CN108958708A (en) * 2017-05-25 2018-12-07 河南理工大学 A kind of software system architecture component-based and software implementation method
CN109597614A (en) * 2017-09-28 2019-04-09 华为技术有限公司 A kind of business page method for customizing and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Graphical User Interface Reliability Prediction Based on Architecture and Event Handler Interaction;Zhifang Yang et al.;《Proceedings of the 4th International Conference on Computer Engineering and Networks》;第355卷;第1003-1010页 *
工业智能相机图形化编程工具的研究;刘泽桂;《中国优秀硕士学位论文全文数据库信息科技辑》(第2期);第I138-3741页 *

Also Published As

Publication number Publication date
CN111930369A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN108647265B (en) Multi-platform data-based interactive system
CN111061788B (en) Multi-source heterogeneous data conversion integration system based on cloud architecture and implementation method thereof
US7685604B2 (en) Business process execution language (BPEL) application generator for legacy interfaces
US8312414B2 (en) Method and system for executing a data integration application using executable units that operate independently of each other
US20100001834A1 (en) System and method for a message registry and message handling in a service -oriented business framework
CN102073520A (en) Dynamic management system and method for C++ application program version
CN102541996B (en) JDBC (java database connectivity) based data access layer building method and device utilizing same
WO2006026659A2 (en) Services oriented architecture for data integration services
US6658644B1 (en) Services-based architecture for a telecommunications enterprise
CN112256248A (en) Start-up wisdom cloud low code platform
CN112486466A (en) Method for realizing quick universal basic framework based on micro-service architecture
CN101339506B (en) Device for implementing software products resource and version management
US8244869B2 (en) System and method for starting server services
CN111930369B (en) Design method of system tool based on variable box
CN111488144A (en) Data processing method and equipment
JP3712984B2 (en) Work progress control device and method, work progress control program, and recording medium recording the program
CN117311718A (en) Domestic GIS application development method and system
CN111241000A (en) Layered automatic testing method based on cucumber testing tool
CN109933308A (en) The customed general-purpose system of remote sensing satellite data prediction flow path visual based on MPI+CUDA
Tsigkanos et al. On formalizing and identifying patterns in cloud workload specifications
CN113987044A (en) Asset data import processing method and device and electronic equipment
CN1932760B (en) System and method for execution of application program
CN114063982A (en) Method for automatically constructing functional components based on multi-scenario application
CN110442331A (en) It is a kind of to automate the method and system for building code skeleton
CN117312222B (en) SPI-based government purchasing method, system, equipment and medium

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