CN100426731C - An output analysis method of two dimensional table in man machine command - Google Patents

An output analysis method of two dimensional table in man machine command Download PDF

Info

Publication number
CN100426731C
CN100426731C CNB021454728A CN02145472A CN100426731C CN 100426731 C CN100426731 C CN 100426731C CN B021454728 A CNB021454728 A CN B021454728A CN 02145472 A CN02145472 A CN 02145472A CN 100426731 C CN100426731 C CN 100426731C
Authority
CN
China
Prior art keywords
output
command
character string
field
value
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.)
Expired - Fee Related
Application number
CNB021454728A
Other languages
Chinese (zh)
Other versions
CN1501625A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB021454728A priority Critical patent/CN100426731C/en
Publication of CN1501625A publication Critical patent/CN1501625A/en
Application granted granted Critical
Publication of CN100426731C publication Critical patent/CN100426731C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to an output analysis method for a two-dimensional table in a man machine command, which comprises the following steps that (1) when a definition script is commanded, a two-dimensional table analysis mode script of command output is predefined, and the script is written into a command script; (2) when a command is processed, an original result data set of command output is obtained; (3) a defined output analysis mode in the corresponding command script is taken out; (4) a command execution module can respectively process and combine with each word segment in each record of a two-dimensional table according to a predefined format, and an output character string of each word segment is obtained. The output analysis method for a two-dimensional table in a man machine command only needs to increase and modify command definition script files to the development, the maintenance and the upgrade of different commands, but does not have relation with a man machine command executor and a generator, and the command generation, the maintenance, the upgrade, etc. are largely simplified. The present invention accelerates the development, reduces the routine maintenance and realizes the complete reuse of execution codes of span products.

Description

A kind of output analytic method to bivariate table in the manmachine command
Technical field
The present invention relates in the communication field application technology based on database, be specifically related to be undertaken by the line manmachine command in the application system manmachine command realization of the oam of database, more particularly, relate to a kind of based on the method for in the manmachine command scheme of script file the output of querying command being resolved.
Background technology
Line manmachine command mode is one of due Operation and Maintenance pattern of the relatively large communication product of switch class.Implementation method commonly used at present is in an executable program each bar manmachine command to be developed corresponding processing module separately, and the specific implementation of order relies on specific operating system and specific programming language.This mode is unfavorable for Application Expansion, and the workload of realization is big, the construction cycle is long, and the maintenance of routine, the upgrading all very difficult.
Summary of the invention
The technical problem to be solved in the present invention is that to overcome in the prior art workload big, the shortcoming that safeguard, upgrading is difficult, solve the low problem of code reuse rate in the prior art, the difference of different manmachine command output all is embodied in the command script, irrelevant with the parsing executive program.
The above-mentioned technical problem of the present invention solves like this, constructs a kind of output analytic method to bivariate table in the manmachine command, may further comprise the steps: 1) with the bivariate table analysis mode order output is carried out predefine also with it write command script; 2) obtain the baseline results data set of order output during command process; 3) from command script, take out corresponding order output analysis mode; 4) after command execution module is handled respectively, made up each field in each bar record of bivariate table according to predefined form, obtain the output string of each field.
According to provided by the invention to manmachine command in the output analytic method of bivariate table, further comprising the steps of: command execution module is carried out form adjustment, composing and conversion combination according to the predefined display mode of each field, display position and display width with all fields of all result data collection, finally converts printable character string output to.
According to provided by the invention to manmachine command in the output analytic method of bivariate table, described order output with the bivariate table analysis mode carried out predefine also with it write command script, comprise following several definition of object: 1) row character string definition: the description of definition output row name, row display width and corresponding to the bit field of analysis mode, only the bit field of field value correspondence is resolved; 2) corresponding relation of row character string and two-dimentional tabular definition: set up the mapping of row character string and bivariate table field, field can corresponding a plurality of row character strings, at this moment some bit fields of each row character string corresponding field; Row character string also can corresponding a plurality of fields; 3) analysis mode of a certain bit field definition in corresponding field or the field: comprise analysis mode, nominal value, analytic value and resolve character string.
According to provided by the invention to manmachine command in the output analytic method of bivariate table, described analysis mode can be 1) do not resolve: the parsing character string of output is exactly a field value; 2) resolve by field value: character string is resolved in output when field value equals nominal value; 3) step-by-step or bit field are resolved: as Zi Duanzhi ﹠amp; Character string is resolved in output during nominal value=analytic value; 4) value from byte arrays:,, convert this byte sequence to character string output according to the byte number of analytic value definition output according to nominal value definition original position; 5) fetch bit from byte arrays: nominal value is defined as byte location, and analytic value is defined as field bit, and when having the definition of corresponding field value position, character string is resolved in output; 6) computing time: with date, the time conversion position character string output of inside by the integer value representation; 7) IP address: byte arrays is converted to the output of IP address character string; 8) MAC Address: byte arrays is converted to the output of MAC Address character string.
According to provided by the invention to manmachine command in the output analytic method of bivariate table, obtain the baseline results data set of order output during described command process, when coming to nothing data set, then directly return.
Implement a kind of output analytic method provided by the invention to bivariate table in the manmachine command, has following beneficial effect: for arbitrary manmachine command, parsing task to order output can all be defined in the text, the output that is to say different command is all resolved automatically by its corresponding the Script section, the exploitation of different command, maintenance and upgrading all are to the increase of command definition script file, modification, and the exploitation of the manmachine command of different product can be used identical manmachine command actuator and maker.The difference of different manmachine command output all is embodied in the command script, and is irrelevant with the parsing executive program.Work such as the generation of order, maintenance, upgrading are all simplified greatly, have accelerated development rate greatly, reduce the regular maintenance amount, and have realized the reusable fully of inter-product run time version.
Description of drawings
Fig. 1 is the module frame chart of manmachine command implementation method of describing the computer command script document of the plain text that the present invention is based on, and the inventive method relates to wherein " command result output " specific implementation partly;
Fig. 2 is a structure chart of describing the inventive method embodiment.
Embodiment
In conjunction with the accompanying drawings 1, the manmachine command implementation method of the computer command script document that the present invention is based on plain text is described.As shown in Figure 1, order maker 101 can produce the script file 102 that comprises command set, begins script file is carried out the Message Processing thread at frame 103, when a plurality of order is arranged, then in command queue 104.In the command process thread 105, in frame 106, obtain order line, in frame 107, carry out syntax check, in frame 108, carry out scope check in conjunction with setting from command set 102, in frame 109, mutual by with database 112, carry out parameter and resolve, this part is the emphasis place of the inventive method.In frame 110, he operates to fit into the Xingqi with other operational processes module, result is delivered to chained list 114 as a result, accompany Database Systems 112 to carry out result's translation in frame 115, form character string 116 as a result, the result who produces with frame 107,108,109,110 is the same, deliver to command result output module 117, finish command string at last and receive and return in frame 118, receive and be meant and deliver to terminal equipment, returning is that the command character of self terminal equipment in the future turns back to Message Processing thread 103.The specific implementation that it is the command result output that the inventive method relates to its center 117.
In conjunction with the accompanying drawings 2, resolve the implementation detail of the inventive method in detail.
1. the bivariate table analysis mode script of predefine order output comprises several parts:
1) row character string definition (frame 201): the description of definition output row name, row display width and corresponding to the bit field (only the bit field of field value correspondence being resolved) of analysis mode;
2) corresponding relation of row character string and two-dimentional tabular definition (frame 202): set up the mapping of row character string and bivariate table field, field can corresponding a plurality of row character strings, at this moment some bit fields of each row character string corresponding field; Row character string also can corresponding a plurality of fields;
3) analysis mode of a certain bit field definition (frame 203) in corresponding field or the field: be divided into analysis mode, nominal value, analytic value and resolve several parts of character string, wherein analysis mode can define flexibly, for example can comprise following several:
● do not resolve: the parsing character string of output is exactly a field value;
● resolve by field value: character string is resolved in output when field value equals nominal value;
● step-by-step or bit field are resolved: as Zi Duanzhi ﹠amp; Character string is resolved in output during nominal value=analytic value;
● value from byte arrays:,, convert this byte sequence to character string output according to the byte number of analytic value definition output according to nominal value definition original position;
● fetch bit from byte arrays: nominal value is defined as byte location, and analytic value is defined as field bit, and when having the definition of corresponding field value position, character string is resolved in output;
● computing time: with date, the time conversion position character string output of inside by the integer value representation;
● IP address: byte arrays is converted to the output of IP address character string;
● MAC Address: byte arrays is converted to the output of MAC Address character string
2. judge to have or not result set (frame 205), if any the baseline results data set (frame 206) that then obtains order output, if come to nothing data set then directly return (frame 208);
3. take out the output analysis mode (frame 204) that defines in the corresponding command script;
4. can obtain the output string (frame 207) of each field after command execution module is handled respectively, made up each field in each bar record of bivariate table according to predefined form;
5. command execution module makes up according to the predefined display mode of each field, display position and display width all fields with all result data collection, finally converts printable character string output (frame 209) to.
As mentioned above, the manmachine command solution based on the computer command script document of plain text that adopts of the present invention is divided into the command definition script, order generates and carry out and resolve three parts.Because the output to order has especially been carried out unified processing for the output of querying command, the output format of arbitrary order and content all can be in command script predefine, command execution module only needs to take out from script can return final execution result after output is resolved the definition of part and carried out respective handling.For the inquiry of a SQL query or any return results collection, Query Result can be thought one or more two-dimensional data table.In order to shield initial data to the user and to export understandable result, utilize method of the present invention, only need to describe each field in the bivariate table, and the output row character string and the corresponding row analysis mode that define each field get final product.Simultaneously, can make exploitation a good basis be arranged by the interface of reservation with client GUI application program based on GUI (graphic user interface) application program of manmachine command.

Claims (5)

1, a kind of output analytic method to bivariate table in the manmachine command is characterized in that, may further comprise the steps: 1) with the bivariate table analysis mode order output is carried out predefine also with it write command script; 2) obtain the baseline results data set of order output during command process; 3) from command script, take out corresponding order output analysis mode; 4) after command execution module is handled respectively, made up each field in each bar record of bivariate table according to predefined form, obtain the output string of each field.
2, according to the described method of claim 1, it is characterized in that, further comprising the steps of: command execution module is carried out form adjustment, composing and conversion combination according to the predefined display mode of each field, display position and display width with all fields of all result data collection, finally converts printable character string output to.
3, according to claim 1 or 2 described methods, it is characterized in that, described order output with the bivariate table analysis mode carried out predefine also with it write command script, comprise following several definition of object: 1) row character string definition: the description of definition output row name, row display width and corresponding to the bit field of analysis mode, only the bit field of field value correspondence is resolved; 2) corresponding relation of row character string and two-dimentional tabular definition: set up the mapping of row character string and bivariate table field, field can corresponding a plurality of row character strings, at this moment some bit fields of each row character string corresponding field; Row character string also can corresponding a plurality of fields; 3) analysis mode of a certain bit field definition in corresponding field or the field: comprise analysis mode, nominal value, analytic value and resolve character string.
According to claim 1 or 2 described methods, it is characterized in that 4, analysis mode can be 1) not resolve: the parsing character string of output is exactly a field value; 2) resolve by field value: character string is resolved in output when field value equals nominal value; 3) step-by-step or bit field are resolved: as Zi Duanzhi ﹠amp; Character string is resolved in output during nominal value=analytic value; 4) value from byte arrays:,, convert this byte sequence to character string output according to the byte number of analytic value definition output according to nominal value definition original position; 5) fetch bit from byte arrays: nominal value is defined as byte location, and analytic value is defined as field bit, and when having the definition of corresponding field value position, character string is resolved in output; 6) computing time: with date, the time conversion position character string output of inside by the integer value representation; 7) IP address: byte arrays is converted to the output of IP address character string; 8) MAC Address: byte arrays is converted to the output of MAC Address character string.
5, according to claim 1 or 2 described methods, it is characterized in that, obtain the baseline results data set of order output during described command process, when coming to nothing data set, then directly return.
CNB021454728A 2002-11-14 2002-11-14 An output analysis method of two dimensional table in man machine command Expired - Fee Related CN100426731C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021454728A CN100426731C (en) 2002-11-14 2002-11-14 An output analysis method of two dimensional table in man machine command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021454728A CN100426731C (en) 2002-11-14 2002-11-14 An output analysis method of two dimensional table in man machine command

Publications (2)

Publication Number Publication Date
CN1501625A CN1501625A (en) 2004-06-02
CN100426731C true CN100426731C (en) 2008-10-15

Family

ID=34232462

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021454728A Expired - Fee Related CN100426731C (en) 2002-11-14 2002-11-14 An output analysis method of two dimensional table in man machine command

Country Status (1)

Country Link
CN (1) CN100426731C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407138C (en) * 2005-08-04 2008-07-30 腾讯科技(深圳)有限公司 Brew-based dynamic user interface system structure and method for realization
CN112199225B (en) * 2020-09-30 2022-09-30 河北恒源水务科技有限公司 Segment code type liquid crystal screen conversion processing method based on bit field concept
CN115828918B (en) * 2022-12-09 2024-02-02 中国人民解放军国防科技大学 Equipment name entity resolution method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078321A (en) * 1997-09-30 2000-06-20 The United States Of America As Represented By The Secretary Of The Navy Universal client device for interconnecting and operating any two computers
US6314416B1 (en) * 1998-11-17 2001-11-06 Interface & Control Systems, Inc. Reconfigurable expert rule processing system
KR20020078065A (en) * 2001-04-04 2002-10-18 주식회사 하이닉스반도체 Message processing method of intelligent network system using connection table

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078321A (en) * 1997-09-30 2000-06-20 The United States Of America As Represented By The Secretary Of The Navy Universal client device for interconnecting and operating any two computers
US6314416B1 (en) * 1998-11-17 2001-11-06 Interface & Control Systems, Inc. Reconfigurable expert rule processing system
KR20020078065A (en) * 2001-04-04 2002-10-18 주식회사 하이닉스반도체 Message processing method of intelligent network system using connection table

Also Published As

Publication number Publication date
CN1501625A (en) 2004-06-02

Similar Documents

Publication Publication Date Title
EP1456790B1 (en) Xml printer system
US20070130512A1 (en) Systems and methods for report design and generation
CN110597842B (en) Service data query method and system
RU2004108863A (en) SENDING AND RECEIVING MESSAGES THROUGH INDIVIDUALLY CONFIGURABLE DATA EXCHANGE CHANNELS AND PROGRAMMING MODELS
CN102402559A (en) Database upgrade script generating method and device
CN1329818C (en) Implement method of the man machine command based on plain text command script files
CN108694214A (en) Generation method, generating means, readable medium and the electronic equipment of data sheet
CN102306200B (en) Device and method for concurrently applying incremental data manipulation statements
CN104035754A (en) XML (Extensible Markup Language)-based custom code generation method and generator
CN104102511A (en) SQL (structured query language) Server based automatic script upgrading system and method
CN103019874A (en) Method and device for realizing exception handling based on data synchronization
CN112148343B (en) Rule issuing method and device and terminal equipment
CN103279564A (en) HTML-based (hypertext markup language-based) chart data output method and device
Rademacher et al. Deriving microservice code from underspecified domain models using DevOps-enabled modeling languages and model transformations
CN113434133B (en) Application building method, device, equipment and computer readable storage medium
CN100426731C (en) An output analysis method of two dimensional table in man machine command
CN114036183A (en) Data ETL processing method, device, equipment and medium
CN110766375A (en) Work platform task construction system and construction method
CN112328231B (en) Quick conversion method between python dictionary and structure
US20070033178A1 (en) Quality of service feedback for technology-neutral data reporting
CN104731804A (en) General query framework establishing method and device
CN104731597A (en) Method for applying SQL statements to engineering software compiling platform
CN101609463A (en) Set up the method for the relation of data-switching between the Wen Dan and literary composition single between the method for data migtation
CN102486731A (en) Method, device and system for enhancing visualization of software call stack of software
CN114047999A (en) Page configuration method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081015

Termination date: 20191114