JP3037129B2 - Command database creation device - Google Patents
Command database creation deviceInfo
- Publication number
- JP3037129B2 JP3037129B2 JP8031812A JP3181296A JP3037129B2 JP 3037129 B2 JP3037129 B2 JP 3037129B2 JP 8031812 A JP8031812 A JP 8031812A JP 3181296 A JP3181296 A JP 3181296A JP 3037129 B2 JP3037129 B2 JP 3037129B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- keyword
- analysis rule
- analysis
- name
- 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 - Lifetime
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、コマンド解析装置
の用いるコマンドデータベースの作成装置であり、特に
コマンドデータベースにおいてコマンドの解析ルールの
重複存在や、同一のキーワードに対する異なった解析ル
ールの存在を防ぐことができるコマンドデータベースの
作成装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a command database creation device used by a command analysis device, and more particularly to a command database which prevents the presence of duplicate command analysis rules and the presence of different analysis rules for the same keyword. The present invention relates to a device for creating a command database.
【0002】[0002]
【従来の技術】図10は、コマンドの一般形式を示すも
のである。コマンドは、コマンド名とそのコマンド名に
対する複数のパラメータで構成される。2. Description of the Related Art FIG. 10 shows a general format of a command. The command includes a command name and a plurality of parameters corresponding to the command name.
【0003】図11は、図10のパラメータの一般形式
を示すものである。パラメータは、キーワード名とその
キーワードに対するパラメータ値で構成される。FIG. 11 shows a general format of the parameters shown in FIG. The parameter includes a keyword name and a parameter value for the keyword.
【0004】図7は、従来のコマンド解析システムの構
成を示す概念図である(例えば、特開平03−0255
54(コマンド既定値解析方式)、あるいは特開平02
−068615(コマンド解析処理方式)を参照)。FIG. 7 is a conceptual diagram showing a configuration of a conventional command analysis system (for example, Japanese Patent Laid-Open No. 03-0255).
54 (command default value analysis method)
068615 (command analysis processing method)).
【0005】図7において、21は端末装置、22は制
御装置、23は実行装置、24はコマンド解析装置、3
1は解析手段、32は解析結果判定手段、33は解析結
果設定手段、34はエラー情報設定手段、35はコマン
ドデータベースである。In FIG. 7, 21 is a terminal device, 22 is a control device, 23 is an execution device, 24 is a command analysis device, 3
1 is an analysis means, 32 is an analysis result determination means, 33 is an analysis result setting means, 34 is an error information setting means, and 35 is a command database.
【0006】図8は、図7のコマンドデータベース35
の構成を示す概念図である。同図において、41はコマ
ンドデータベース、51はコマンドデータベースのコマ
ンド名テーブル、52はコマンドデータベースのキーワ
ードテーブル、53はコマンドデータベースの解析ルー
ルテーブルである。FIG. 8 shows the command database 35 of FIG.
FIG. 3 is a conceptual diagram showing the configuration of FIG. In the figure, 41 is a command database, 51 is a command name table of the command database, 52 is a keyword table of the command database, and 53 is an analysis rule table of the command database.
【0007】図12は、図8のコマンド名テーブル51
の説明図である。コマンド名テーブルは、コマンド名
と、そのコマンド名に対するキーワード名が格納されて
いるキーワード名テーブル52のテーブル番号が格納さ
れている。FIG. 12 shows the command name table 51 of FIG.
FIG. The command name table stores a command name and a table number of the keyword name table 52 in which a keyword name for the command name is stored.
【0008】図13は、図8のキーワード名テーブル5
2の説明図である。キーワード名テーブルは、パラメー
タのキーワード名と、そのキーワード名に対するパラメ
ータ値の解析ルールを格納した解析ルールテーブル53
のテーブル番号が格納されている。FIG. 13 shows the keyword name table 5 shown in FIG.
FIG. The keyword name table includes an analysis rule table 53 storing the keyword names of the parameters and the analysis rules of the parameter values for the keyword names.
Table number is stored.
【0009】図14は、図8の解析ルールテーブル53
の説明図である。解析ルールテーブルは、パラメータ値
の解析ルールが格納されている。FIG. 14 shows the analysis rule table 53 of FIG.
FIG. The analysis rule table stores analysis rules for parameter values.
【0010】次に、これらの図を用いてコマンド解析装
置の動作を説明する。Next, the operation of the command analyzer will be described with reference to these drawings.
【0011】端末装置21から入力した図10で示すよ
うなコマンドを制御装置22を介してコマンド解析装置
24が受け取る。受け取ったコマンドをコマンド解析装
置24の解析手段31で解析する。図9は、コマンド解
析手段31の動作を示す流れ図である。受け取ったコマ
ンドからコマンド名を取り出し、図12で示すようなコ
マンドデータベースのコマンド名テーブルを検索し(3
01)、コマンドデータベースのコマンド名テーブルに
見つかったかどうかを判定し(302)、コマンドデー
タベースのコマンド名テーブルに見つからなかった場合
にはエラー情報の出力を要求し(309)、処理を終了
する。コマンドデータベースのコマンド名テーブルに見
つかった場合にはコマンドの解析が終了したかどうかを
判定し(303)、コマンドの解析が終了している場合
にはコマンドの実行を要求し(308)、処理を終了す
る。コマンドの解析が終了していない場合には受け取っ
たコマンドから図11で示すようなパラメータのキーワ
ード名を取り出し、図13で示すようなコマンドデータ
ベースのキーワード名テーブルを検索し(304)、キ
ーワード名テーブルにキーワード名が見つかったかどか
を判定し(305)、キーワード名テーブルに見つから
なかった場合にはエラー情報の出力を要求し(30
9)、処理を終了する。キーワード名テーブルに見つか
った場合には受け取ったコマンドからキーワード名に対
するパラメータ値を取り出し、図14で示すような解析
ルールテーブルを参照してパラメータ値のチェックを行
い(306)、パラメータ値が正常かどうかを判定し
(307)、パラメータ値が正常でない場合にはエラー
情報の出力を要求し(309)、処理を終了する。パラ
メータ値が正常の場合にはコマンドの解析が終了したか
どうかの判定(303)以下の処理を繰り返す。解析手
段31での解析結果は正常および異常の2つのタイプが
返却され、解析結果判定手段32で解析結果を判定し、
解析結果が正常の場合は解析結果設定手段33で解析結
果を設定し、制御装置22を介して実行装置23に引き
渡しコマンドを実行し、実行結果を制御装置22を介し
て端末装置21に表示する。解析結果が異常の場合には
エラー情報設定手段34でエラー情報を設定し、制御装
置22を介して端末装置21にエラーメッセージを表示
する。The command analyzer 24 receives a command input from the terminal device 21 as shown in FIG. The received command is analyzed by the analysis means 31 of the command analysis device 24. FIG. 9 is a flowchart showing the operation of the command analysis means 31. The command name is extracted from the received command, and the command name table of the command database as shown in FIG.
01), it is determined whether or not it is found in the command name table of the command database (302). If it is not found in the command name table of the command database, output of error information is requested (309), and the process is terminated. If found in the command name table of the command database, it is determined whether or not the analysis of the command has been completed (303). If the analysis of the command has been completed, execution of the command is requested (308). finish. If the analysis of the command has not been completed, the keyword names of the parameters as shown in FIG. 11 are extracted from the received command, and the keyword name table of the command database as shown in FIG. 13 is searched (304). It is determined whether the keyword name is found in the keyword name table (305). If the keyword name is not found in the keyword name table, output of error information is requested (30).
9), end the processing. If found in the keyword name table, the parameter value for the keyword name is extracted from the received command, and the parameter value is checked with reference to the analysis rule table as shown in FIG. 14 (306), and whether the parameter value is normal or not is determined. Is determined (307). If the parameter value is not normal, an output of error information is requested (309), and the process is terminated. If the parameter value is normal, it is determined whether or not the analysis of the command has been completed (303). The following processing is repeated. The analysis result of the analysis means 31 is returned in two types, normal and abnormal, and the analysis result determination means 32 determines the analysis result,
If the analysis result is normal, the analysis result is set by the analysis result setting means 33, the command is passed to the execution device 23 via the control device 22, and the execution result is displayed on the terminal device 21 via the control device 22. . If the analysis result is abnormal, the error information is set by the error information setting means 34, and an error message is displayed on the terminal device 21 via the control device 22.
【0012】以上述べたコマンド解析装置のコマンドデ
ータベースを作成する場合、机上でコマンドの解析ルー
ルを組み合わせて作成していた。そのため、解析するコ
マンドの数が多くなってくると解析ルールを重複して作
成したり、コマンドのキーワード名が同一であってもパ
ラメータ値の解析ルールが異なったりしていた。When the command database of the command analyzer described above is created, it is created by combining command analysis rules on a desk. Therefore, when the number of commands to be analyzed increases, analysis rules are created redundantly, and even if the keyword names of commands are the same, the analysis rules for parameter values are different.
【0013】[0013]
【発明が解決しようとする課題】上述した従来の問題点
は、コマンド解析装置のコマンドデータベースを作成す
る際、コマンドの解析ルールを机上で組み合わせて作成
していたため、解析するコマンドの数が多くなってくる
と解析ルールを重複して作成したり、コマンドのキーワ
ード名が同一であってもパラメータ値の解析ルールが異
なるなどの欠点があった。The above-mentioned conventional problem is that when the command database of the command analyzing apparatus is created, the rules for analyzing the commands are combined on a desk to create a large number of commands to be analyzed. In such a case, there are drawbacks such as creating duplicate analysis rules and different analysis rules for parameter values even when the keyword names of commands are the same.
【0014】本発明の目的は、コマンド解析装置のコマ
ンドデータベースにおける解析ルールの重複や同一キー
ワード名のパラメータ値に対する異なった解析ルールの
存在を防ぐことができるコマンドデータベース作成装置
を提供することにある。An object of the present invention is to provide a command database creating apparatus which can prevent the analysis rules from being duplicated in the command database of the command analyzing apparatus and the existence of different analysis rules for parameter values having the same keyword name.
【0015】[0015]
【課題を解決するための手段】本第1の発明は、コマン
ドデータベースに格納されたコマンドを使用する装置の
ために前記コマンドデータベースを作成するコマンドデ
ータベース作成装置において、予めコマンドを構成する
キーワードと該キーワードのキーワード値の正常性を解
析する解析ルールを予め備えた記憶手段に登録する解析
ルール格納装置を具備し、端末装置から登録するコマン
ドと前記コマンドのキーワードの入力を受けると、前記
解析ルール格納装置を介して入力された前記キーワード
に対応する前記解析ルールを取得する解析ルール組み合
わせ装置と、前記入力されたコマンドと該コマンドのキ
ーワードと取得された該キーワードの解析ルールとを前
記コマンドデータベースに登録するコマンドデータベー
ス出力装置を備えたことを特徴とする。According to a first aspect of the present invention, there is provided a command database creating apparatus for creating a command database for an apparatus using a command stored in a command database. An analysis rule storage device for registering in a storage means having analysis rules for analyzing the normality of the keyword value of the keyword in advance is provided. When a command to be registered and a keyword of the command are input from a terminal device, the analysis rule storage is performed. An analysis rule combination device that obtains the analysis rule corresponding to the keyword input through the device, and registers the input command, the keyword of the command, and the obtained analysis rule of the keyword in the command database. Command database output device It is characterized in.
【0016】また、第2の発明は、第1の発明における
前記解析ルール格納装置は前記端末装置から入力された
前記コマンドの前記キーワードと該キーワードのキーワ
ード値を解析する解析ルールの登録指示を受けて、受け
取った該キーワードと該解析ルールがともに前記記憶手
段に登録されていない場合のみ受け取った該キーワード
と該解析ルールを該記憶手段に登録することを特徴とす
る。According to a second aspect of the present invention, in the first aspect, the analysis rule storage device receives an instruction to register the keyword of the command input from the terminal device and an analysis rule for analyzing the keyword value of the keyword. Then, the received keyword and the analysis rule are registered in the storage unit only when both the received keyword and the analysis rule are not registered in the storage unit.
【0017】また、第3の発明は、第2の発明における
前記解析ルール格納装置は前記端末装置から入力された
前記コマンドの前記キーワードと該キーワードのキーワ
ード値を解析する解析ルールの登録指示を受けて、受け
取った該キーワードおよび該解析ルールのどちらかが前
記記憶手段に既に存在する場合は、前記端末装置に「キ
ーワード名の変更要求」をメッセージとして出力するこ
とを特徴とする。According to a third aspect, in the second aspect, the analysis rule storage device receives an instruction to register the keyword of the command input from the terminal device and an analysis rule for analyzing the keyword value of the keyword. If either the received keyword or the analysis rule already exists in the storage unit, a "keyword name change request" is output to the terminal device as a message.
【0018】また、第4の発明は、第3の発明における
前記解析ルール格納装置は前記端末装置から入力された
前記コマンドの前記キーワードと該キーワードのキーワ
ード値を解析する解析ルールの登録指示を受けて、受け
取った該キーワードおよび該解析ルールの両方ともが前
記記憶手段に既に存在する場合は、前記端末装置に「既
に登録済み」をメッセージとして出力することを特徴と
する。In a fourth aspect of the present invention, in the third aspect, the analysis rule storage device receives an instruction to register the keyword of the command input from the terminal device and an analysis rule for analyzing the keyword value of the keyword. If both the received keyword and the analysis rule are already present in the storage means, "already registered" is output to the terminal device as a message.
【0019】さらに、第5の発明は、第1の発明におけ
る前記コマンドを使用する装置がコマンド解析装置であ
ることを特徴とする。Furthermore, a fifth invention is characterized in that the device using the command in the first invention is a command analysis device.
【0020】[0020]
【発明の実施の形態】次に、本発明について図面を参照
して説明する。Next, the present invention will be described with reference to the drawings.
【0021】図1は、本発明の一実施例を示す構成図、
図2および図3は解析ルール格納装置5の流れ図、図4
は解析ルール組み合わせ装置4の流れ図、図5は図1の
コマンドデータベース作成装置で作成されるキーワード
名テーブルの説明図、図6は本発明のコマンドデータベ
ース作成装置で作成される解析ルールテーブルの説明図
である。FIG. 1 is a block diagram showing one embodiment of the present invention.
2 and 3 are flowcharts of the analysis rule storage device 5, and FIG.
Is a flowchart of the analysis rule combination device 4, FIG. 5 is an explanatory diagram of a keyword name table created by the command database creating device of FIG. 1, and FIG. 6 is an explanatory diagram of an analysis rule table created by the command database creating device of the present invention. It is.
【0022】図1において1は端末装置、2は制御装
置、3は解析ルール登録装置、4は解析ール組み合わせ
装置、5は解析ルール格納装置、6はコマンド解析装置
のコマンドデータベース出力装置、7はコマンドデータ
ベースである。In FIG. 1, 1 is a terminal device, 2 is a control device, 3 is an analysis rule registration device, 4 is an analysis rule combination device, 5 is an analysis rule storage device, 6 is a command database output device of a command analysis device, 7 Is a command database.
【0023】また、図5において、キーワード名テーブ
ルは、パラメータのキーワード名と、そのキーワード名
に対するパラメータ値の解析ルールを格納した解析ルー
ルテーブルのテーブル番号が格納される。In FIG. 5, the keyword name table stores a keyword name of a parameter and a table number of an analysis rule table storing analysis rules of parameter values for the keyword name.
【0024】また、図6において、解析ルールテーブル
は、パラメータのパラメータ値の解析ルールが格納され
る。In FIG. 6, the analysis rule table stores analysis rules for parameter values of parameters.
【0025】端末装置1から入力されたキーワード名お
よびそのキーワード名に対するパラメータ値の解析ルー
ルを制御装置2を介して解析ルール登録装置3に引き渡
す。解析ルール登録装置3は制御装置2から受け取った
情報に登録指示を付加して解析ルール格納装置5へ引き
渡す。また、解析ルール登録装置5から登録指示に対す
る結果を受け取り、制御装置2を介して端末装置1で表
示する。解析ルール格納装置5は、登録指示の場合は解
析ルール登録装置3から受け取った情報と既に登録され
ている解析ルールとを比較し結果を解析ルール登録装置
3に返却する。返却結果としては、キーワード名および
解析ルールが共に異なる場合は登録し、「登録終了」の
結果を返却する。キーワード名が同じで解析ルールが異
なる場合またはキーワード名が異なり解析ルールが同じ
場合は、「キーワード名の変更要求」の結果を返却す
る。キーワード名および解析ルールが共に同じ場合は
「既に登録済み」の結果を返却する。The keyword input from the terminal device 1 and the analysis rule of the parameter value corresponding to the keyword name are transferred to the analysis rule registration device 3 via the control device 2. The analysis rule registration device 3 adds a registration instruction to the information received from the control device 2 and transfers the information to the analysis rule storage device 5. Further, the result of the registration instruction is received from the analysis rule registration device 5 and displayed on the terminal device 1 via the control device 2. In the case of a registration instruction, the analysis rule storage device 5 compares the information received from the analysis rule registration device 3 with the already registered analysis rule and returns the result to the analysis rule registration device 3. As the return result, if the keyword name and the analysis rule are both different, register them and return the result of "registration end". If the keyword names are the same and the analysis rules are different, or if the keyword names are different and the analysis rules are the same, the result of the "keyword name change request" is returned. If both the keyword name and the analysis rule are the same, the result of "already registered" is returned.
【0026】キーワード名および解析ルールの登録が完
了すれば、コマンド解析装置のコマンドデータベース7
のコマンド名テーブルに登録するコマンドのコマンド名
と、同装置のコマンドデータベースのキーワード名テー
ブルに登録するキーワード名を端末装置1から入力す
る。入力したコマンド名とキーワード名は制御装置2を
介して解析ルール組み合わせ装置4に引き渡される。解
析ルール組み合わせ装置4は制御装置2から受け取った
情報に解析ルールの返却指示を付加して解析ルール格納
装置5へ引き渡す。また、解析ルール登録装置5から返
却指示に対する結果を受け取り、異常の場合は制御装置
2を介して端末装置1で表示する。解析ルール格納装置
5は返却指示の場合は解析ルール組み合わせ装置4から
受け取った情報を基に結果を解析ルール組み合わせ装置
4へ返却する。返却結果としては、キーワード名が存在
しない場合は「不正キーワード」の結果を返却し、キー
ワード名が存在する場合は解析ルールを返却する。解析
ルール組み合わせ装置4は解析ルール格納装置5から返
却された解析ルールを組み合わせてコマンド解析装置の
コマンドデータベース出力装置6へ引き渡す。コマンド
解析装置のコマンドデータベース出力装置6は解析ルー
ル組み合わせ装置4から受け取った解析ルールの組み合
わせをコマンド解析装置のコマンドデータベース7とし
て出力する。When the registration of the keyword name and the analysis rule is completed, the command database 7 of the command analysis device
The command name of the command registered in the command name table and the keyword name registered in the keyword name table of the command database of the same device are input from the terminal device 1. The input command name and keyword name are transferred to the analysis rule combination device 4 via the control device 2. The analysis rule combination device 4 adds an analysis rule return instruction to the information received from the control device 2 and transfers the information to the analysis rule storage device 5. Further, a result corresponding to the return instruction is received from the analysis rule registration device 5, and in the case of an abnormality, the result is displayed on the terminal device 1 via the control device 2. In the case of a return instruction, the analysis rule storage device 5 returns the result to the analysis rule combination device 4 based on the information received from the analysis rule combination device 4. As a return result, if the keyword name does not exist, the result of "invalid keyword" is returned, and if the keyword name exists, the analysis rule is returned. The analysis rule combination device 4 combines the analysis rules returned from the analysis rule storage device 5 and delivers them to the command database output device 6 of the command analysis device. The command database output device 6 of the command analyzer outputs the combination of the analysis rules received from the analysis rule combination device 4 as the command database 7 of the command analyzer.
【0027】図2および図3は解析ルール格納装置5の
流れ図であり、これについて以下に説明する。FIGS. 2 and 3 are flowcharts of the analysis rule storage device 5, which will be described below.
【0028】解析ルール登録装置3からのコマンド名お
よび解析ルールの登録指示か、または解析ルール組み合
わせ装置4からの解析ルールの返却指示かどうかを判定
し(101)、解析ルール登録装置3からのコマンド名
および解析ルールの登録指示の場合は、図5で示すよう
なキーワード名テーブルを検索し(102)、図6で示
す解析ルールテーブルを検索し(103)、検索した結
果がキーワード名テーブルに存在しないでかつ解析ルー
ルテーブルに存在しないかを判定し(104)、キーワ
ード名テーブルに存在しないでかつ解析ルールテーブル
に存在しない場合、キーワード名テーブルにキーワード
名を登録するとともに(105)、解析ルールテーブル
に解析ルールを登録し(106)、かつ登録指示に対す
る結果として「登録終了」を設定し(107)、処理を
終了する。キーワード名テーブルに存在するかまたは解
析ルールテーブルに存在する場合、検索した結果がキー
ワード名テーブルに存在しかつ解析ルールテーブルに存
在するかを判定し(108)、キーワード名テーブルに
存在しかつ解析ルールテーブルに存在する場合は、登録
指示に対する結果として「既に登録済み」を設定し(1
09)、処理を終了する。キーワード名テーブルに存在
しかつ解析ルールテーブルに存在しない場合、またはキ
ーワード名テーブルに存在しないでかつ解析ルールテー
ブルに存在する場合は、登録指示に対する結果として
「キーワード名の変更要求」を設定し(110)、処理
を終了する。It is determined whether the command is a command for registering the command name and the analysis rule from the analysis rule registration device 3 or a command for returning the analysis rule from the analysis rule combination device 4 (101). In the case of the registration instruction of the name and the analysis rule, the keyword name table as shown in FIG. 5 is searched (102), the analysis rule table as shown in FIG. 6 is searched (103), and the search result is present in the keyword name table. It is determined whether or not the keyword does not exist in the analysis rule table (104). If the keyword does not exist in the keyword name table and does not exist in the analysis rule table, the keyword name is registered in the keyword name table (105). The analysis rule is registered in (106), and "registration" is Set the end "(107), the processing is terminated. If it exists in the keyword name table or in the analysis rule table, it is determined whether the search result exists in the keyword name table and exists in the analysis rule table (108). If it exists in the table, “already registered” is set as the result of the registration instruction (1
09), the process ends. If it exists in the keyword name table and does not exist in the analysis rule table, or if it does not exist in the keyword name table and exists in the analysis rule table, a “keyword name change request” is set as a result of the registration instruction (110). ), And terminate the process.
【0029】解析ルール組み合わせ装置4からの解析ル
ールの返却指示の場合は、図5で示すようなキーワード
名テーブルを検索し(111)、検索した結果がキーワ
ード名テーブルに存在するかどうかを判定し(11
2)、キーワード名テーブルに存在する場合は解析ルー
ルを返却し(113)、処理を終了する。キーワード名
テーブルに存在しない場合は「不正キーワード」の結果
を返却する。In the case of an analysis rule return instruction from the analysis rule combination device 4, a keyword name table as shown in FIG. 5 is searched (111), and it is determined whether or not the search result exists in the keyword name table. (11
2) If it exists in the keyword name table, the analysis rule is returned (113), and the process ends. If it does not exist in the keyword name table, the result of "invalid keyword" is returned.
【0030】図4は解析ルール組み合わせ装置4の流れ
図であり、これについて説明する。FIG. 4 is a flowchart of the analysis rule combination device 4, which will be described.
【0031】端末装置1から入力されたコマンド名およ
びキーワード名は制御装置2を介して解析ルール組み合
わせ装置4が受け取る。受け取ったコマンド名を図12
で示すコマンドデータベースのコマンド名テーブルへ登
録する(201)。登録が終了したら、受け取ったキー
ワード名に解析ルールの返却指示を付加して解析ルール
格納装置5に解析ルールの返却を要求する(202)。
解析ルール格納装置5からの返却結果を判定し(20
3)、返却結果として解析ルールが返却された場合は図
13で示すコマンドデータベースのキーワード名テーブ
ルへキーワード名を登録し(204)、図12のコマン
ド名テーブルへキーワード名テーブル番号を格納し(2
05)、図14の解析ルールテーブルへ解析ルールを登
録し(206)、キーワード名テーブルへ解析ルールテ
ーブル番号を格納し(207)、入力されたキーワード
名が終了しているかどうかを判定し(209)、キーワ
ード名が終了していない場合は、キーワード名に解析ル
ールの返却指示を付加して解析ルール格納装置5に解析
ルールの返却の要求(202)以下の処理を繰り返す。
キーワード名が終了している場合は、入力されたコマン
ド名が終了しているかどうかを判定し(209)、コマ
ンド名が終了していない場合は、コマンド名を図12で
示すコマンド名テーブルへの登録(201)以下の処理
を繰り返す。コマンド名が終了している場合は処理を終
了する。解析ルール格納装置5からの返却結果として
「不正キーワード」が返却された場合は処理を終了す
る。The command name and the keyword name input from the terminal device 1 are received by the analysis rule combination device 4 via the control device 2. Figure 12 shows the received command name.
Is registered in the command name table of the command database (201). When the registration is completed, an analysis rule return instruction is added to the received keyword name, and a request is made to the analysis rule storage device 5 to return the analysis rule (202).
The return result from the analysis rule storage device 5 is determined (20
3) If the analysis rule is returned as a return result, the keyword name is registered in the keyword name table of the command database shown in FIG. 13 (204), and the keyword name table number is stored in the command name table of FIG. 12 (2).
05), the analysis rule is registered in the analysis rule table of FIG. 14 (206), the analysis rule table number is stored in the keyword name table (207), and it is determined whether the input keyword name is completed (209). If the keyword name has not been completed, an analysis rule return instruction is added to the keyword name, and the analysis rule storage device 5 repeats the processing following the analysis rule return request (202).
If the keyword name has ended, it is determined whether the input command name has ended (209). If the command name has not ended, the command name is stored in the command name table shown in FIG. The process following registration (201) is repeated. If the command name has ended, the processing ends. If “invalid keyword” is returned as a result of the return from the analysis rule storage device 5, the process is terminated.
【0032】[0032]
【発明の効果】以上説明したように、本発明は、コマン
ド解析装置のコマンドデータベースにおいて、コマンド
の数が多くなっても解析ルールの重複や、コマンドの同
一キーワード名に対する異なった解析ルールの存在を防
ぐことができるようになる効果がある。As described above, according to the present invention, in the command database of the command analysis device, even if the number of commands is large, the analysis rules are duplicated and the existence of different analysis rules for the same keyword name of the command. There is an effect that can be prevented.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
【図2】図1の解析ルール格納装置5の流れ図である。FIG. 2 is a flowchart of the analysis rule storage device 5 of FIG.
【図3】図1の解析ルール格納装置5の残りの流れ図で
ある。FIG. 3 is a remaining flowchart of the analysis rule storage device 5 of FIG. 1;
【図4】図1の解析ルール組み合わせ装置4の流れ図で
ある。FIG. 4 is a flowchart of the analysis rule combination device 4 of FIG. 1;
【図5】図1のコマンドデータベース作成装置で作成さ
れるキーワード名テーブルの説明図である。FIG. 5 is an explanatory diagram of a keyword name table created by the command database creating device of FIG. 1;
【図6】本発明のコマンドデータベース作成装置で作成
される解析ルールテーブルの説明図である。FIG. 6 is an explanatory diagram of an analysis rule table created by the command database creation device of the present invention.
【図7】従来のコマンド解析システムの構成を示す概念
図である。FIG. 7 is a conceptual diagram showing a configuration of a conventional command analysis system.
【図8】図7のコマンドデータベース35の構成を示す
概念図である。8 is a conceptual diagram showing a configuration of a command database 35 of FIG.
【図9】コマンド解析手段31の動作を示す流れ図であ
る。FIG. 9 is a flowchart showing the operation of the command analysis means 31.
【図10】コマンドの一般形式を示す図である。FIG. 10 is a diagram showing a general format of a command.
【図11】図10のパラメータの一般形式を示す図であ
る。FIG. 11 is a diagram showing a general format of the parameters in FIG. 10;
【図12】図8のコマンド名テーブル51の説明図であ
る。12 is an explanatory diagram of the command name table 51 of FIG.
【図13】図8のキーワード名テーブル52の説明図で
ある。FIG. 13 is an explanatory diagram of the keyword name table 52 of FIG.
【図14】図8の解析ルールテーブル53の説明図であ
る。FIG. 14 is an explanatory diagram of an analysis rule table 53 of FIG. 8;
【符号の説明】 1 端末装置 2 制御装置 3 解析ルール登録装置 4 解析ルール組み合わせ装置 5 解析ルール格納装置 6 コマンドデータベース出力装置 7 コマンドデータベース 21 端末装置 22 制御装置 23 実行装置 24 コマンド解析装置 31 解析装置 32 解析結果判定手段 33 解析結果設定手段 34 エラー情報設定手段 35,41 コマンドデータベース 51 コマンド名テーブル 52 キーワード名テーブル 53 解析ルールテーブル[Description of Signs] 1 Terminal device 2 Control device 3 Analysis rule registration device 4 Analysis rule combination device 5 Analysis rule storage device 6 Command database output device 7 Command database 21 Terminal device 22 Control device 23 Execution device 24 Command analysis device 31 Analysis device 32 Analysis result determination means 33 Analysis result setting means 34 Error information setting means 35, 41 Command database 51 Command name table 52 Keyword name table 53 Analysis rule table
フロントページの続き (56)参考文献 特開 平2−40758(JP,A) 特開 平4−344527(JP,A) 特開 平3−25554(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 15/00 310 (56) References JP-A-2-40758 (JP, A) JP-A-4-344527 (JP, A) JP-A-3-25554 (JP, A) (58) Fields investigated (Int) .Cl. 7 , DB name) G06F 15/00 310
Claims (5)
ンドを使用する装置のために前記コマンドデータベース
を作成するコマンドデータベース作成装置において、予
めコマンドを構成するキーワードと該キーワードのキー
ワード値の正常性を解析する解析ルールを予め備えた記
憶手段に登録する解析ルール格納装置を具備し、端末装
置から登録するコマンドと前記コマンドのキーワードの
入力を受けると、前記解析ルール格納装置を介して入力
された前記キーワードに対応する前記解析ルールを取得
する解析ルール組み合わせ装置と、前記入力されたコマ
ンドと該コマンドのキーワードと取得された該キーワー
ドの解析ルールとを前記コマンドデータベースに登録す
るコマンドデータベース出力装置を備えたことを特徴と
するコマンドデータベース作成装置。1. A command database creating apparatus for creating a command database for an apparatus using a command stored in a command database, wherein a command constituting a command and a normality of a keyword value of the keyword are analyzed in advance. An analysis rule storage device for registering in a storage means having rules in advance is provided, and when a command to be registered and a keyword of the command are received from a terminal device, the keyword corresponding to the keyword input via the analysis rule storage device is corresponded. And a command database output device for registering the input command, the keyword of the command, and the obtained analysis rule of the keyword in the command database. Command data Base creation device.
から入力された前記コマンドの前記キーワードと該キー
ワードのキーワード値を解析する解析ルールの登録指示
を受けて、受け取った該キーワードと該解析ルールがと
もに前記記憶手段に登録されていない場合のみ受け取っ
た該キーワードと該解析ルールを該記憶手段に登録する
ことを特徴とする請求項1記載のコマンドデータベース
作成装置。2. The analysis rule storage device receives the keyword of the command input from the terminal device and an instruction to register an analysis rule for analyzing the keyword value of the keyword, and receives the keyword and the analysis rule. 2. The command database creating apparatus according to claim 1, wherein the keyword and the analysis rule received only when both are not registered in the storage unit are registered in the storage unit.
から入力された前記コマンドの前記キーワードと該キー
ワードのキーワード値を解析する解析ルールの登録指示
を受けて、受け取った該キーワードおよび該解析ルール
のどちらかが前記記憶手段に既に存在する場合は、前記
端末装置に「キーワード名の変更要求」をメッセージと
して出力することを特徴とする請求項2記載のコマンド
データベース作成装置。3. The analysis rule storage device receives an instruction to register the keyword of the command input from the terminal device and an analysis rule for analyzing the keyword value of the keyword, and receives the keyword and the analysis rule of the analysis rule. 3. The command database creating apparatus according to claim 2, wherein when either one of them already exists in the storage unit, a "keyword name change request" is output to the terminal device as a message.
から入力された前記コマンドの前記キーワードと該キー
ワードのキーワード値を解析する解析ルールの登録指示
を受けて、受け取った該キーワードおよび該解析ルール
の両方ともが前記記憶手段に既に存在する場合は、前記
端末装置に「既に登録済み」をメッセージとして出力す
ることを特徴とする請求項3記載のコマンドデータベー
ス作成装置。4. The analysis rule storage device receives the keyword of the command input from the terminal device and an analysis rule registration instruction for analyzing the keyword value of the keyword, and receives the keyword and the analysis rule of the analysis rule. 4. The command database creating device according to claim 3, wherein when both are already present in the storage unit, "already registered" is output as a message to the terminal device.
解析装置であることを特徴とする請求項1記載のコマン
ドデータベース作成装置。5. The command database creation device according to claim 1, wherein the device using the command is a command analysis device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8031812A JP3037129B2 (en) | 1996-02-20 | 1996-02-20 | Command database creation device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8031812A JP3037129B2 (en) | 1996-02-20 | 1996-02-20 | Command database creation device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09223110A JPH09223110A (en) | 1997-08-26 |
| JP3037129B2 true JP3037129B2 (en) | 2000-04-24 |
Family
ID=12341512
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8031812A Expired - Lifetime JP3037129B2 (en) | 1996-02-20 | 1996-02-20 | Command database creation device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3037129B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4758284B2 (en) * | 2006-05-31 | 2011-08-24 | 株式会社ドワンゴ | Web page display system, web page display method, and web page display program |
-
1996
- 1996-02-20 JP JP8031812A patent/JP3037129B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH09223110A (en) | 1997-08-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6279006B1 (en) | Structured data management system and computer-readable recording medium storing structured data management program | |
| US5557774A (en) | Method for making test environmental programs | |
| JPH0588907A (en) | Compilation method under distributed environment | |
| JPH0540616A (en) | Program specification generation method | |
| JP3037129B2 (en) | Command database creation device | |
| JPH07271569A (en) | Program specification preparation system | |
| JPH07182369A (en) | Document file management device, document integration device, and document management system | |
| JP2843768B2 (en) | Database access control method | |
| JPH04107741A (en) | Draw-out system for service procedure in rpc | |
| JPH1031603A (en) | Information processing system, client-server system and database access method | |
| JP2871931B2 (en) | Form output control method | |
| JP3034527B2 (en) | Editor device | |
| JP2631778B2 (en) | Computer program test equipment | |
| JPH07160536A (en) | Program test support device for interactive system | |
| JP2781691B2 (en) | Failure information reference method | |
| JP2932987B2 (en) | Automatic test equipment for computer systems | |
| JP3021697B2 (en) | Exception handling in programming languages | |
| JPH0511989A (en) | Parameter analyzing device | |
| JPH08221264A (en) | Supporting system for preparing program | |
| JPH06168074A (en) | Common ionput/output device | |
| JPH0228839A (en) | Load module generating system for routine single test processing system | |
| JPH07168711A (en) | Program managing method | |
| JPH04117747A (en) | Node computer to be managed in network system | |
| JPH0392935A (en) | System for forming verification program to parts | |
| JPH07200271A (en) | Program resource management device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20000208 |