CN111080834A - Method for configuring criteria for polling data of test and launch control software by using index - Google Patents
Method for configuring criteria for polling data of test and launch control software by using index Download PDFInfo
- Publication number
- CN111080834A CN111080834A CN201911056683.1A CN201911056683A CN111080834A CN 111080834 A CN111080834 A CN 111080834A CN 201911056683 A CN201911056683 A CN 201911056683A CN 111080834 A CN111080834 A CN 111080834A
- Authority
- CN
- China
- Prior art keywords
- criterion
- field
- index
- routing inspection
- inspection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C3/00—Registering or indicating the condition or the working of machines or other apparatus, other than vehicles
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method for configuring criterions for polling data of test and launch control software by using indexes, which is realized by the following steps: defining a patrol field table and a criterion table in a patrol configuration file of the test, launch and control software, wherein all fields needing to be patrolled are stored in the patrol field table, and each field is provided with a criterion index; the threshold corresponding to each criterion index is stored in the criterion table; according to the requirement of the routing inspection task, determining a corresponding criterion index from the routing inspection field table according to the field needing routing inspection at present, and acquiring a corresponding threshold value from the criterion table according to the criterion index to complete the configuration of routing inspection criteria.
Description
Technical Field
The invention relates to a method for defining criteria in routing inspection by using indexes, which is provided for test, launch and control software.
Background
In order to obtain whether the running state of each device is normal or not at the first time, the software of the test, launch and control system can set a polling function, namely, the running data of each device is circularly acquired from each device in a certain period through a network, a serial port, a 1553B bus or other modes and is interpreted in real time.
Because the patrol inspection function mode is fixed, the software of the test, launch and control system usually defines a configuration file to preset various attributes of patrol inspection, such as station numbers, interpretation fields, criteria and the like.
When the measurement and launch control software is used for real-time interpretation, a criterion needs to be preset in a configuration file related to inspection, the criterion of each field in data to be inspected is usually different, when the configuration file is defined, a criterion is configured in the inspection attribute of each field, namely the data surrounds the upper limit range and the lower limit range of a certain ideal value, and if the data exceeds the range, the data is considered to be wrong at the moment.
However, with the execution of the test flow, the criterion of each field is usually not constant, and needs to be changed at some characteristic time points, in this case, a plurality of criteria need to be preset in the patrol attribute of the field, and one upper and lower limit range cannot contain all value ranges of the data, otherwise, the interpretation effect cannot be achieved. When configuring the criteria for a specific field, a designer usually has no idea how many criteria a field has, and the number of criteria each field has is likely to be different, so that it is difficult to define how many criteria each field has when defining the configuration file.
Disclosure of Invention
The technical problem solved by the invention is as follows: the method overcomes the defects of the prior art and provides a method for polling data configuration criteria of test and launch control software by using indexes.
The technical scheme of the invention is as follows: a method for routing inspection data configuration criteria of test and launch control software by using indexes is realized by the following steps:
defining a patrol field table and a criterion table in a patrol configuration file of the test, launch and control software, wherein all fields needing to be patrolled are stored in the patrol field table, and each field is provided with a criterion index; storing all possible threshold values of the criterion in the criterion table, and setting an index for each threshold value;
according to the requirement of the routing inspection task, determining a corresponding criterion index from the routing inspection field table according to the field needing routing inspection at present, and acquiring a corresponding threshold value from the criterion table according to the criterion index to complete the configuration of routing inspection criteria.
Preferably, the routing inspection field table comprises field indexes, field names and criterion indexes; the criterion table comprises an index, an upper limit and a lower limit;
combing all the possible criteria in the routing inspection process of the test, launch and control software, distributing a unique index to each threshold value, namely an upper limit and a lower limit, and storing the unique index in a criterion table;
each patrol inspection field is configured with a unique field index, and the field indexes, the field names and the criterion indexes of the initial patrol inspection state of all patrol inspection fields are stored in a patrol inspection field table.
Preferably, the index values of the criteria configured in the routing inspection field table can find corresponding index values in the criterion table;
preferably, the same threshold value in the routing inspection field table is allocated with the same criterion index.
Preferably, when there is a need to change the criterion of a certain field in the polling process, the index value of the corresponding criterion in the polling field table is set to a new value, and the new value is consistent with the index value corresponding to the threshold value meeting the requirement in the criterion table.
Preferably, a configurable interpretation flag is set in the patrol inspection field table for each field index, and the interpretation flag is used for explaining whether the field needs to be interpreted in the current patrol inspection process.
Preferably, when the inspection task performs interpretation on the inspection field defined in the inspection configuration file, if the interpretation mark requires the interpretation of the field, the inspection task performs interpretation after configuring the inspection criterion, and if the interpretation mark does not require the interpretation of the field, the inspection task skips the interpretation of the field and performs subsequent interpretation tasks.
Preferably, for the current inspection field needing inspection, the configuration of the inspection criterion is specifically realized by the following modes:
all the possible criterions used by the routing inspection field in the routing inspection process of the combing, measuring and issuing control software are configured in a criterion table in advance, and an index change sequence in the criterion table corresponding to the criterion change in the routing inspection process is determined;
writing the corresponding index values into the criterion indexes of the corresponding fields in the routing inspection field table in sequence according to the index change sequence; in each routing inspection period, searching corresponding indexes from the criterion table according to the criterion indexes to further determine the upper limit and the lower limit to complete criterion configuration.
Compared with the prior art, the invention has the beneficial effects that:
the invention designs a new mode, the polling field and the corresponding criterion are divided into two configuration tables in the polling configuration file, namely a polling field table and a criterion table, when the criterion is configured for each field, the conventional mode is changed, the upper limit range and the lower limit range of the criterion are not directly configured in the field attribute, but a criterion index value is configured in the field attribute, the index value points to the index in the criterion table, only the possible criterion is required to be configured in the criterion table in advance, so that the number of the configurable criterion of each field is theoretically unlimited, and the criterion index value corresponding to the field needing to be read currently in the polling field table can be changed, the dynamic change of the field criterion can be realized, the criteria used by the software of the transmission and control system can be integrally checked through the configuration file, whether the preset criterion completely covers the demand criterion or not, and can conveniently realize the function of adding or deleting the criterion.
The invention provides a method for defining criteria in inspection by using an index aiming at test and launch control software, which can separate an inspection field from the corresponding criteria in an inspection configuration file to form an inspection field table and a criteria table, wherein the two tables are connected by an index value, the limitation of the number of the inspection field criteria in the configuration file is broken through, the requirement of dynamically changing the inspection criteria in the data inspection process can be realized by setting the index value of the criteria in the inspection field table, the setting mode of the criteria is clear, the error is not easy to occur, the usability is enhanced, the reliability of the criteria processing in programming is improved, and the readability of the program is also enhanced.
When there is a need to change the original range of a certain type of criteria, all fields using the criteria need to be found in a configuration file according to the original mode, then the threshold values of the fields are changed one by one according to new requirements, the number of the fields to be changed is possibly very large, and the fields are easy to change; according to a new mode, because the fields using the criteria use the same index value in the index criteria of the routing inspection field table, only the criteria corresponding to the index value in the criteria table need to be changed, and the change only involves one place, so that the problem of missed change is avoided.
Detailed Description
The invention is further illustrated by the following examples.
The invention relates to a method for configuring criteria for polling data of a test, launch and control software by utilizing indexes, which is characterized in that a polling field table and a criterion table are defined in a polling configuration file of the test, launch and control software, all fields needing polling are stored in the polling field table, and each field is provided with a criterion index; the threshold corresponding to each criterion index is stored in the criterion table; according to the requirement of the routing inspection task, determining a corresponding criterion index from the routing inspection field table according to the field needing routing inspection at present, and acquiring a corresponding threshold value from the criterion table according to the criterion index to complete the configuration of routing inspection criteria.
Table 1 gives an example of a patrol field table, containing attributes: field index, field name, criterion index; in the practical application process, whether the field needs to be interpreted or not in the current routing inspection process can be determined by adding an interpretation mark, for example, the interpretation mark can be set to be ON to indicate that interpretation is needed, and OFF does not need interpretation; or 1 in table 1 represents a need for interpretation, 0 does not require interpretation, etc.
As shown in table 2: all possible criteria are listed in the criterion table, an index attribute column is set for each criterion, and a corresponding relation is established between the value in the criterion index attribute column in the table 1 and the value in the index attribute column in the table 2; that is, the 'index of criterion' value in the polling field table points to the criterion corresponding to the same 'index' value in the criterion table; the values of the "criteria index" in the patrol field table must be able to find the corresponding values in the criteria table.
TABLE 1 patrol field table
Field index | Name of field | Interpretation mark | Index of criteria |
1 | Interpretation field 1 | 1 | 1 |
2 | Interpretation field 2 | 1 | 2 |
3 | Interpretation field 3 | 1 | 3 |
… | … | … | … |
TABLE 2 criteria table
According to the modes of tables 1 and 2, when the interpretation field 1 of the schematic data in table 1 needs to be interpreted, the values "1" set in the attribute column of the "criterion index" corresponding to the "interpretation field 1" are searched for the values "10.0" and "-10.0" of the upper limit "and the" lower limit "of the attribute column corresponding to the data with the" index "value of the schematic data in table 2 being" 1 ", and then the current interpretation range of the" interpretation field 1 "is" -10.0 ";
if the criterion of the schematic data "interpretation field 1" in table 1 changes at a certain moment, for example, the criterion changes to "20.0-40.0", only the value of the attribute column of the "criterion index" corresponding to the "interpretation field 1" in table 1 needs to be changed from "1" to "2".
If new criteria are added, new rows can be added in the table shown in the table 2 and data can be configured;
the invention has not been described in detail in part in the common general knowledge of a person skilled in the art.
Claims (8)
1. A method for routing inspection data configuration criteria of test and launch control software by using indexes is characterized by being realized by the following modes:
defining a patrol field table and a criterion table in a patrol configuration file of the test, launch and control software, wherein all fields needing to be patrolled are stored in the patrol field table, and each field is provided with a criterion index; storing all possible threshold values of the criterion in the criterion table, and setting an index for each threshold value;
according to the requirement of the routing inspection task, determining a corresponding criterion index from the routing inspection field table according to the field needing routing inspection at present, and acquiring a corresponding threshold value from the criterion table according to the criterion index to complete the configuration of routing inspection criteria.
2. The method of claim 1, wherein: the routing inspection field table comprises field indexes, field names and criterion indexes; the criterion table comprises an index, an upper limit and a lower limit;
combing all the possible criteria in the routing inspection process of the test, launch and control software, distributing a unique index to each threshold value, namely an upper limit and a lower limit, and storing the unique index in a criterion table;
each patrol inspection field is configured with a unique field index, and the field indexes, the field names and the criterion indexes of the initial patrol inspection state of all patrol inspection fields are stored in a patrol inspection field table.
3. The method of claim 2, wherein: the index values of the criteria configured in the routing inspection field table can find corresponding index values in the criterion table.
4. The method of claim 2, wherein: the routing inspection field table has the same threshold value and is distributed with the same criterion index.
5. The method of claim 2, wherein: when the criterion of a certain field needs to be changed in the polling process, the index value of the corresponding criterion in the polling field table is set to a new value, and the new value is consistent with the index value corresponding to the threshold value which meets the requirement in the criterion table.
6. The method of claim 2, wherein: and a configurable interpretation mark is set for each field index in the routing inspection field table, and the interpretation mark is used for explaining whether the field needs to be interpreted in the current routing inspection process.
7. The method of claim 6, wherein: when the inspection task judges the inspection field defined in the inspection configuration file, if the judging mark requires to judge the field, the inspection task is judged after configuring the inspection criterion, and if the judging mark does not require to judge the field, the field is skipped for judgment, and the subsequent judging task is carried out.
8. The method according to claim 2 or 7, characterized in that: aiming at the current routing inspection field needing to be interpreted, the configuration of the routing inspection criterion is specifically realized by the following modes:
all the possible criterions used by the routing inspection field in the routing inspection process of the combing, measuring and issuing control software are configured in a criterion table in advance, and an index change sequence in the criterion table corresponding to the criterion change in the routing inspection process is determined;
writing the corresponding index values into the criterion indexes of the corresponding fields in the routing inspection field table in sequence according to the index change sequence; in each routing inspection period, searching corresponding indexes from the criterion table according to the criterion indexes to further determine the upper limit and the lower limit to complete criterion configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911056683.1A CN111080834A (en) | 2019-10-31 | 2019-10-31 | Method for configuring criteria for polling data of test and launch control software by using index |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911056683.1A CN111080834A (en) | 2019-10-31 | 2019-10-31 | Method for configuring criteria for polling data of test and launch control software by using index |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111080834A true CN111080834A (en) | 2020-04-28 |
Family
ID=70310645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911056683.1A Pending CN111080834A (en) | 2019-10-31 | 2019-10-31 | Method for configuring criteria for polling data of test and launch control software by using index |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111080834A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043692A (en) * | 2007-04-30 | 2007-09-26 | 华为技术有限公司 | Patrol checking method and patrol checking server |
EP1922613A2 (en) * | 2005-09-05 | 2008-05-21 | Siemens Aktiengesellschaft | Method and device for automatically evaluating a software source code quality |
CN101702152A (en) * | 2009-10-28 | 2010-05-05 | 金蝶软件(中国)有限公司 | Intelligent data processing method, device and system |
CN104680612A (en) * | 2013-11-27 | 2015-06-03 | 贵州电网公司信息通信分公司 | Automatic IT equipment inspection method |
CN106886477A (en) * | 2017-02-20 | 2017-06-23 | 郑州云海信息技术有限公司 | Threshold setting method and device are monitored in a kind of cloud system |
CN106919602A (en) * | 2015-12-25 | 2017-07-04 | 阿里巴巴集团控股有限公司 | A kind of data monitoring management method, data monitoring method and system |
-
2019
- 2019-10-31 CN CN201911056683.1A patent/CN111080834A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1922613A2 (en) * | 2005-09-05 | 2008-05-21 | Siemens Aktiengesellschaft | Method and device for automatically evaluating a software source code quality |
CN101043692A (en) * | 2007-04-30 | 2007-09-26 | 华为技术有限公司 | Patrol checking method and patrol checking server |
CN101702152A (en) * | 2009-10-28 | 2010-05-05 | 金蝶软件(中国)有限公司 | Intelligent data processing method, device and system |
CN104680612A (en) * | 2013-11-27 | 2015-06-03 | 贵州电网公司信息通信分公司 | Automatic IT equipment inspection method |
CN106919602A (en) * | 2015-12-25 | 2017-07-04 | 阿里巴巴集团控股有限公司 | A kind of data monitoring management method, data monitoring method and system |
CN106886477A (en) * | 2017-02-20 | 2017-06-23 | 郑州云海信息技术有限公司 | Threshold setting method and device are monitored in a kind of cloud system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109741060B (en) | Information inquiry system, method, device, electronic equipment and storage medium | |
CN103196574B (en) | The method of measures ambient temperature and device | |
WO2015154438A1 (en) | Positioning method and device | |
CN110209686A (en) | Storage, querying method and the device of data | |
CN111046190B (en) | Semantic graph-based big data label conflict detection method and system, storage medium and computer equipment | |
CN108228657B (en) | Method and device for realizing keyword retrieval | |
CN105745642B (en) | Inquire the treating method and apparatus of data | |
CN110969000B (en) | Data merging processing method and device | |
CN110389890B (en) | Updating and maintaining method and device for public use case library and computer equipment | |
CN105279177A (en) | Data structure conversion method and apparatus | |
CN111061802B (en) | Power data management processing method, device and storage medium | |
CN108268504A (en) | A kind of method and apparatus for the region of search for dividing point of interest | |
CN114237466A (en) | Routing inspection point configuration method and device | |
CN104636368A (en) | Data retrieval method and device and server | |
CN111080834A (en) | Method for configuring criteria for polling data of test and launch control software by using index | |
CN111136655B (en) | Method and device for acquiring inspection point | |
CN108536853A (en) | A kind of automatic routing database inquiry system and method based on query resource and accuracy | |
CN111582798A (en) | Method, apparatus and computer-readable storage medium for tracking logistics | |
CN1979424A (en) | Method for managing priority queue | |
CN102680012A (en) | System and method for automatic output of measuring information | |
CN105094829A (en) | Method for automatically generating satellite measurement and control information flow diagram | |
CN106570193B (en) | Method for loading time sequence big data | |
CN109284328B (en) | Relational data processing method, device, server and medium | |
CN109241098B (en) | Query optimization method for distributed database | |
CN113778996A (en) | Large data stream data processing method and device, electronic 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200428 |
|
RJ01 | Rejection of invention patent application after publication |