Human machine command output formats checking procedure based on text

A technology of man-machine command and inspection method, applied in the direction of program control device, etc., can solve the problem of illegal display of man-machine command output parameter information, etc., and achieve the effect of reducing difficulty

Inactive Publication Date: 2009-01-07
ZTE CORP
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The problem to be solved by the present invention is to provide a text-based man-machine command output format checking method to solve the p

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Human machine command output formats checking procedure based on text

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The specific implementation of the text-based man-machine command output format checking method of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0047] The text-based man-machine command output format checking method of the present invention mainly focuses on parsing text files and comparing predefined man-machine command scripts based on dictionaries and regular expressions, and judging the consistency of the output parameters of the two. As for enumeration, Techniques such as traversal, dictionary and regular expression are well known in the prior art, and will not be repeated here.

[0048] Generally speaking, the implementation of the inspection method of the present invention probably includes the following steps:

[0049] 1) Add the predefined output parameter types of man-machine commands to the parameter attribute dictionary, and add the man-machine command enumeration to the enumeration attribute dictiona...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an inspection method which is based on textual output format of man-machine command, including the following steps: output parameter type of the man-machine command is added to a parameter attribute dictionary and enumeration of the man-machine command is added to an enumeration attribute dictionary; a script file of the man-machine command is traversed and definitions including output parameters and output partition in the script file are respectively added to an output parameter attribute dictionary and an output partition attribute dictionary; content of the parameter attribute dictionary and the enumeration attribute dictionary and that of the output parameter attribute dictionary and the output partition attribute dictionary are compared and inspected to judge whether the output parameter format is correct or not. As the parameter format inspection method which is based on dictionaries and regular expression is adopted, the inspection of legality of the parameter format is completed by the program, thus solving the problem of illegal display of the output parameter information; problems discovered can be obviously seen and pointedly solved by opening error log, thus reducing difficulty of program development and maintenance.

Description

technical field [0001] The invention relates to the field of computer program development and maintenance methods, in particular to a text-based man-machine command output format checking method. Background technique [0002] With the continuous popularization of computers, programs are not only used for numerical calculations, but are also widely used to process non-numeric data, such as: gender, month, day of the week, color, unit name, education and occupation, etc., are not Numerical data; in other programming languages, a numerical value is generally used to represent a certain state, but this processing method is not intuitive, and the readability is poor. If you can try to use words with corresponding meanings in natural language in the program to Represents a certain state, then the program becomes easy to read and understand; that is, if you consider the possible values ​​​​of a variable in advance, and then try to use clear words in natural language to express each...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 刘洋朱红军
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products