CN113535776A - Parameter validity checking method and system applied to monitoring device - Google Patents

Parameter validity checking method and system applied to monitoring device Download PDF

Info

Publication number
CN113535776A
CN113535776A CN202110592743.2A CN202110592743A CN113535776A CN 113535776 A CN113535776 A CN 113535776A CN 202110592743 A CN202110592743 A CN 202110592743A CN 113535776 A CN113535776 A CN 113535776A
Authority
CN
China
Prior art keywords
parameter
parameter rule
paradigm
rule
database
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
CN202110592743.2A
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.)
Beijing Kedong Electric Power Control System Co Ltd
State Grid Liaoning Electric Power Co Ltd
Original Assignee
Beijing Kedong Electric Power Control System Co Ltd
State Grid Liaoning Electric Power 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 Kedong Electric Power Control System Co Ltd, State Grid Liaoning Electric Power Co Ltd filed Critical Beijing Kedong Electric Power Control System Co Ltd
Priority to CN202110592743.2A priority Critical patent/CN113535776A/en
Publication of CN113535776A publication Critical patent/CN113535776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention discloses a parameter validity checking method and system applied to a monitoring device, comprising the following steps: establishing a parameter rule table in a database, and establishing a parameter rule normal form in the parameter rule table; checking parameters input by the UI through a parameter rule paradigm in a database; compared with the prior art that the condition of the logic is judged in the foreground UI or background program logic, the method has the advantages that the program needs to be modified and recompiled once the validation rule is changed, and is very inconvenient; the parameter rule paradigm is configured in the database by adopting the regular expression, the program does not need to be modified, and the parameter rule paradigm is read for matching when the verification is needed, so that the method is convenient and efficient.

Description

Parameter validity checking method and system applied to monitoring device
Technical Field
The invention belongs to the technical field of production and manufacturing, and particularly relates to a parameter validity checking method and system applied to a monitoring device.
Background
In the process of operating the power system, various parameters are often required to be configured, and in order to avoid parameter configuration errors, the validity of the parameters must be checked during parameter configuration, and the existing parameter validity checking methods applied to the monitoring device are roughly divided into two types: one method is that the UI interface directly judges the legality of the input parameters through logic operation, and the other method is that the UI interface transmits the parameters back to the background and judges the legality of the parameters through logic operation.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a parameter validity checking method applied to a monitoring device, which can maintain a parameter checking rule without modifying a program.
The technical problem to be solved by the invention is realized by the following technical scheme:
in a first aspect, a method for checking validity of a parameter applied to a monitoring device is provided, which includes:
establishing a parameter rule table in a database, and establishing a parameter rule normal form in the parameter rule table;
checking parameters input by the UI through a parameter rule paradigm in a database;
and maintaining the parameter paradigm through a UI interface.
With reference to the first aspect, further, a parameter name field and a length validity field are created in the parameter rule table, and values of the fields correspond to the parameter rule paradigm one to one.
With reference to the first aspect, further, the parameter rule paradigm employs a regular expression.
With reference to the first aspect, further, a display identification field for identifying whether the normal form is displayed is also created in the parameter rule table, where the field value and the parameter rule normal form are in one-to-one correspondence.
In a second aspect, a system for checking validity of parameters is provided, which includes:
the normal form creating module is used for creating a parameter rule table in the database and creating a parameter rule normal form in the parameter rule table;
the parameter checking module is used for checking the parameters input by the UI through a parameter rule normal form in the database;
and the paradigm maintenance module is used for maintaining the parameter paradigm through the UI interface.
In a third aspect, a system for checking validity of parameters is provided, which includes:
comprising a memory and a processor;
the memory is to store instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of the first aspect.
The invention has the beneficial effects that: compared with the prior art that the judgment logic is in the foreground UI or background program logic, the program needs to be modified and recompiled once the validation rule is changed, which is very inconvenient; the parameter rule paradigm is configured in the database by adopting the regular expression, the program does not need to be modified, and the parameter rule paradigm is read for matching when the verification is needed, so that the method is convenient and efficient.
Drawings
FIG. 1 is a schematic structural diagram of the present invention.
Detailed Description
To further describe the technical features and effects of the present invention, the present invention will be further described with reference to the accompanying drawings and detailed description.
The parameter validity checking method applied to the monitoring device provided by the invention is shown in figure 1 and comprises the following steps:
step one, parameter rule paradigm creation
And establishing a parameter rule table in a database, wherein the table comprises a parameter name field, a length validity field, a parameter rule paradigm and a display identification field, and the other three fields are in one-to-one correspondence with the parameter rule paradigm field.
The length legality field is used for setting the legality range of the parameter paradigm, the parameter is considered illegal when the length legality field is too long or too short, the parameter rule paradigm field is used for storing the rule paradigm used for verifying the parameters and is expressed by a regular expression, the display identification field is used for setting the display state of the parameters in the foreground, namely, the display state is displayed or hidden, the display state is displayed and hidden when the display identification field is 1, the display state is displayed and hidden when the display identification field is 0, and the parameters which are not expected to be modified by a user can be hidden in the foreground. The style of the parameter rule table is shown in table 1:
parameter name Length validity Parameter rule paradigm Display sign
Setting SNMP Polling period (seconds) Range 60-3600 \b[6-9]\d\b|\b\d{3}\b|\b[1,2]\d{3}\b|\b3[0-5]\d{2}\b|\b3600\b 1
Step two, parameter checking
When an operator inputs configuration parameters in a UI (user interface) of the foreground, the foreground reads a normal form of parameter rules from the database, verifies the input parameters through the normal form and judges the legality of the input parameters.
Step three, normal form maintenance
In the using process, the configuration rule of the parameter may be changed, and since the conventional parameter rule logic is directly written in the foreground UI program or the background program logic, once the rule is changed, the program code needs to be modified and recompiled, which is very inconvenient. At present, only the parameter rule paradigm needs to be modified through the UI interface of the foreground, and the modified paradigm can be stored in the parameter rule table in the database and called when the parameters are validated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The parameter validity check system provided by the embodiment of the invention can be used for loading and executing the parameter validity check method applied to the monitoring device, and comprises the following steps
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (6)

1. A parameter validity checking method applied to a monitoring device is characterized by comprising the following steps:
establishing a parameter rule table in a database, and establishing a parameter rule normal form in the parameter rule table;
checking parameters input by the UI through a parameter rule paradigm in a database;
and maintaining the parameter paradigm through a UI interface.
2. The method as claimed in claim 1, wherein a parameter name field and a length validity field are created in the parameter rule table, and the values of the fields correspond to the parameter rule pattern in a one-to-one manner.
3. The method according to claim 1, wherein the parameter rule paradigm employs a regular expression.
4. The method as claimed in claim 1, wherein a display identifier field for identifying whether the normal form is displayed is further created in the parameter rule table, and the field value is in one-to-one correspondence with the parameter rule normal form.
5. A parameter validity verification system applied to a monitoring device is characterized by comprising:
the normal form creating module is used for creating a parameter rule table in the database and creating a parameter rule normal form in the parameter rule table;
the parameter checking module is used for checking the parameters input by the UI through a parameter rule normal form in the database;
and the paradigm maintenance module is used for maintaining the parameter paradigm through the UI interface.
6. A parameter validity verification system applied to a monitoring device is characterized by comprising:
comprising a memory and a processor;
the memory is to store instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 4.
CN202110592743.2A 2021-05-28 2021-05-28 Parameter validity checking method and system applied to monitoring device Pending CN113535776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110592743.2A CN113535776A (en) 2021-05-28 2021-05-28 Parameter validity checking method and system applied to monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110592743.2A CN113535776A (en) 2021-05-28 2021-05-28 Parameter validity checking method and system applied to monitoring device

Publications (1)

Publication Number Publication Date
CN113535776A true CN113535776A (en) 2021-10-22

Family

ID=78094842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110592743.2A Pending CN113535776A (en) 2021-05-28 2021-05-28 Parameter validity checking method and system applied to monitoring device

Country Status (1)

Country Link
CN (1) CN113535776A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006789A1 (en) * 2016-07-04 2018-01-11 中兴通讯股份有限公司 Parameter checking method and apparatus, and network management server and computer storage medium
CN108471433A (en) * 2018-01-25 2018-08-31 中国平安人寿保险股份有限公司 A kind of synchronization message verification method of reseptance, system and the storage medium of configurationization
CN108959648A (en) * 2018-08-02 2018-12-07 苏州神州数码捷通科技有限公司 Customs service declares risk checking system
CN109101812A (en) * 2018-08-28 2018-12-28 北京神州绿盟信息安全科技股份有限公司 A kind of parameter verification method, apparatus, computing device and storage medium
CN109597816A (en) * 2018-10-30 2019-04-09 京信通信系统(中国)有限公司 Parameter verification method, apparatus, computer storage medium and embedded device
CN111680068A (en) * 2020-06-02 2020-09-18 深圳乐信软件技术有限公司 Verification method, device, equipment and storage medium
CN112102058A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Management system parameter configuration method and device
WO2020259147A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Field information checking method and apparatus
CN112269706A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Interface parameter checking method and device, electronic equipment and computer readable medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006789A1 (en) * 2016-07-04 2018-01-11 中兴通讯股份有限公司 Parameter checking method and apparatus, and network management server and computer storage medium
CN108471433A (en) * 2018-01-25 2018-08-31 中国平安人寿保险股份有限公司 A kind of synchronization message verification method of reseptance, system and the storage medium of configurationization
CN108959648A (en) * 2018-08-02 2018-12-07 苏州神州数码捷通科技有限公司 Customs service declares risk checking system
CN109101812A (en) * 2018-08-28 2018-12-28 北京神州绿盟信息安全科技股份有限公司 A kind of parameter verification method, apparatus, computing device and storage medium
CN109597816A (en) * 2018-10-30 2019-04-09 京信通信系统(中国)有限公司 Parameter verification method, apparatus, computer storage medium and embedded device
WO2020259147A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Field information checking method and apparatus
CN111680068A (en) * 2020-06-02 2020-09-18 深圳乐信软件技术有限公司 Verification method, device, equipment and storage medium
CN112102058A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Management system parameter configuration method and device
CN112269706A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Interface parameter checking method and device, electronic equipment and computer readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHOUXIANGUANG: "Element Ui使用技巧——Form表单的校验规则rules详细说明", Retrieved from the Internet <URL:https://blog.csdn.net/zhouxianguang/article/details/108693722> *

Similar Documents

Publication Publication Date Title
CN108614770B (en) Automatic test assertion method, device, storage medium and equipment
CN107885656B (en) Automatic product algorithm testing method and application server
WO2021057252A1 (en) Service processing flow configuration method and apparatus, and service request processing method and apparatus
US20200133711A1 (en) Event-Triggered Configuration of Workflow Processes for Computer Software Development Systems
CN112558946A (en) Method, device and equipment for generating code and computer readable storage medium
US20210157929A1 (en) Method for the analysis of source texts
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
CN112464317A (en) Drawing modification method, product management system and computer storage medium
CN104965781A (en) Method and apparatus for generating test case
CN113330419A (en) Equipment application installation method and device
CN111813377A (en) Method and device for automatically generating application program
CN114661423A (en) Cluster configuration detection method and device, computer equipment and storage medium
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN104346183A (en) Method and device for storing air conditioner performance data
TWI479352B (en) Method and apparatus for automated validation of semiconductor process recipes
CN113535776A (en) Parameter validity checking method and system applied to monitoring device
CN107133539B (en) Smart card personalization method and related device and system
CN110908978A (en) Database data structure verification method and device
CN112099879B (en) Configuration information management method and device, computer equipment and storage medium
CN112256978B (en) Data processing method, device and medium based on data model
CN108073411A (en) A kind of kernel loads method and device of patch
CN114153461A (en) Script processing method and device, electronic equipment and storage medium
CN110648219B (en) Method and device for standardizing input area of bank transaction system
CN111625586A (en) Method and system for importing general service data
CN114048125A (en) Test case determination method and device, computing equipment and storage 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