JPH0471035A - Type check pattern inspection system - Google Patents

Type check pattern inspection system

Info

Publication number
JPH0471035A
JPH0471035A JP2184734A JP18473490A JPH0471035A JP H0471035 A JPH0471035 A JP H0471035A JP 2184734 A JP2184734 A JP 2184734A JP 18473490 A JP18473490 A JP 18473490A JP H0471035 A JPH0471035 A JP H0471035A
Authority
JP
Japan
Prior art keywords
data
type
type check
pattern
check pattern
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
JP2184734A
Other languages
Japanese (ja)
Inventor
Isamu Kobayashi
勇 小林
Chiaki Tsutsumi
千明 堤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2184734A priority Critical patent/JPH0471035A/en
Publication of JPH0471035A publication Critical patent/JPH0471035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To easily change the contents of a type check pattern without changing and forming a program itself by providing the type check pattern inspection system with a type check pattern changing/setting part and a type check pattern output part. CONSTITUTION:In the case of inspecting the validity/invalidity of a type check pattern, a type check pattern to be included in a data string to be inspected is previously set up by the type check pattern changing/setting part 2 and the type check pattern output part 3 successively outputs the set data type string. Then, the data types including respective data in the data string to be inspected which are inputted from a data input part 1 and respective data types in the data type string outputted from the output part 3 and inputted and successively compared to/by a comparing part 4 and the coincidence/discrepancy of the data types including respective inputted data is checked to inspect the normality/ abnormality of the data types.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第9図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例(第2〜8図) 発明の効果 〔概要〕 数字、文字、記号等を表すデータが配列されたデータ列
を順次入力するデータ入力部を有し、数字、文字、記号
等を所定のデータタイプに分類し、データ列として配列
された順に、各データか属する当該データタイプを配列
したタイプチェック・パターンの検査を行うタイプチェ
ック・パターン検査方式に関し、 容易にタイプチェック・パターンの設定及び変更を行う
ことができるタイプチェック・パターン検査方式を提供
することを目的とし、 検査しようとする入力データ列が示すべきタイプチェッ
ク・パターンの変更及び設定を行うタイプチェック・パ
ターン変更設定部と、当該変更設定部により変更または
設定されたタイプチェック・パターンに対応するデータ
タイプ列を順次出力するタイプチェック・パターン出力
部と、データ入力部から入力したデータ列と、前記出力
部から出力されたデータタイプ列とを順次比較する比較
部とを有する構成である。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figure 9) Means for solving the problem to be solved by the invention (Figure 1) Working examples (Second to Figure 8) Effects of the invention [Summary] The present invention has a data input section for sequentially inputting a data string in which data representing numbers, characters, symbols, etc. are arranged, and classifies the numbers, characters, symbols, etc. into predetermined data types. Regarding a type check pattern inspection method that inspects a type check pattern in which the relevant data types to which each data belongs are arranged in the order in which they are arranged as a data string, a type that allows the type check pattern to be easily set and changed. The purpose is to provide a check pattern inspection method, and it includes a type check pattern change setting section that changes and sets the type check pattern that the input data string to be tested should show, and a type check pattern change setting section that changes or sets the type check pattern that should be shown by the input data string to be inspected. a type check pattern output section that sequentially outputs a data type string corresponding to the type check pattern that has been checked, and a comparison that sequentially compares the data string input from the data input section and the data type string output from the output section. It has a configuration having a section.

〔産業上の利用分野〕[Industrial application field]

本発明はタイプチェック・パターン検査方式に係り、特
に、数字、文字、記号等を表すデータが配列されたデー
タ列を順次入力するデータ入力部を有し、数字、文字、
記号等を所定のデータタイプに分類し、データ列として
配列された順に、各データが属する当該データタイプを
配列したタイプチェック・パターンの検査を行うタイプ
チェック・パターン検査方式に関する。
The present invention relates to a type check/pattern inspection method, and particularly includes a data input section for sequentially inputting a data string in which data representing numbers, characters, symbols, etc. are arranged;
The present invention relates to a type check pattern inspection method for classifying symbols and the like into predetermined data types and inspecting a type check pattern in which the data types to which each piece of data belongs are arranged in the order in which they are arranged as a data string.

〔従来の技術〕[Conventional technology]

従来、タイプチェック・パターン検査方式として、第9
図に示すものがあった。
Conventionally, as a type check/pattern inspection method, the 9th
There was something shown in the figure.

本方式は同図に示すように、数字、文字、記号等を表す
データが配列されたデータ列を順次入力するデータ入力
部91と、数字、文字、記号等を所定のデータタイプに
分類し、データ列として配列された順に、各データか属
するデータタイプを配列したタイプチェック・パターン
の正常異常の検査をプログラムにより行うタイプチエツ
ク手段92とを有するものであった。
As shown in the figure, this method includes a data input section 91 that sequentially inputs a data string in which data representing numbers, characters, symbols, etc. are arranged, and a data input section 91 that classifies numbers, characters, symbols, etc. into predetermined data types. It has a type check means 92 which uses a program to check for normality or abnormality of a type check pattern in which the data types to which each data belongs are arranged in the order in which they are arranged as a data string.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、従来例に係るタイプチェック・パターン検査
方式にあっては、前述したように、データタイプの配列
されたタイプチェック・パターンの検査(適合チエツク
)はタイプチエツク手段92のプログラム自体が行って
いるため、運用上、タイプチェック・パターンの適合チ
エツクを行いたい場合にはプログラム中にチエツク処理
を作り込まねばならなかった。
By the way, in the conventional type check/pattern inspection method, as described above, the program of the type check means 92 itself performs the inspection (compatibility check) of the type check pattern in which the data types are arranged. Therefore, if it is desired to perform a type check pattern compatibility check for operational reasons, a check process must be built into the program.

また、検査しようとするタイプチェック・パターンを変
更する場合には、やはりプログラム自体を変更する必要
があった。
Furthermore, when changing the type check pattern to be tested, it was necessary to change the program itself.

そのため、タイプチェック・パターンの適合チエツクを
行う、あるいは当該パターンの変更を行おうとするため
には、プログラム作成及び更新の負担増という問題点を
有していた。
Therefore, in order to check the suitability of the type check pattern or to change the pattern, there is a problem in that the burden of program creation and updating increases.

そこで、本発明はデータの入出力を行う者が容易に、タ
イプチェック・パターン(データ形式)の設定及び変更
を行うことができるタイプチェック・パターン検査方式
を提供することを目的としてなされたものである。
Therefore, the present invention has been made with the object of providing a type check pattern inspection method that allows a person who inputs and outputs data to easily set and change a type check pattern (data format). be.

(課題を解決するための手段) 以上の技術的課題を解決するため本発明は第1図に示す
ように、数字、文字、記号等を表すデータが配列された
データ列を順次入力するデータ入力部1を有し、数字、
文字、記号等を所定のデータタイプに分類し、データ列
として配列された順に、各データが属するデータタイプ
を配列したタイプチェック・パターンの検査を行うタイ
プチェック・パターン検査方式において、検査しようと
する入力データ列が示すべきタイプチェック・パターン
の変更及び設定を行うタイプチェック・パターン変更設
定部2と、当該変更設定部2により変更または設定され
たタイプチェック・パターンに対応するデータタイプ列
を順次出力するタイプチェック・パターン出力部3と、
データ入力部1から入力したデータ列と、前記出力部3
から出力されたデータタイプ列とを順次比較する比較部
4とを有するものである。
(Means for Solving the Problems) In order to solve the above-mentioned technical problems, the present invention, as shown in FIG. has part 1, numbers,
In the type check/pattern inspection method, which classifies characters, symbols, etc. into predetermined data types, and inspects the type check pattern in which the data types to which each data belongs is arranged in the order in which they are arranged as a data string, inspection is attempted. A type check pattern change setting section 2 that changes and sets the type check pattern that the input data string should show, and sequentially outputs data type strings corresponding to the type check pattern changed or set by the change setting section 2. a type check/pattern output section 3 for
The data string input from the data input section 1 and the output section 3
The comparison unit 4 sequentially compares the data type string outputted from the data type string.

〔作用〕[Effect]

タイプチェック・パターンの適合否適合の検査を行う場
合には、予め前記タイプチェック・パターン変更設定部
2により、検査しようとするデータ列が持つべきタイプ
チェック・パターンを前記タイプチェック・パターン変
更設定部2により設定し、前記タイプチェック・パター
ン出力部3は設定されたデータタイプ列を順次出力する
ことになる。
When inspecting the conformance/non-conformity of a type check pattern, the type check pattern change setting section 2 sets the type check pattern that the data string to be inspected should have in advance to the type check pattern change setting section 2. 2, and the type check pattern output unit 3 sequentially outputs the set data type string.

ここで、「タイプチェック・パターン」とは検査をしよ
うとする前記データ入力部1が入力したデータ列として
配列された各データが属するデータタイプを当該データ
列順に配列したデータタイプ列をいう。
Here, the term "type check pattern" refers to a data type sequence in which the data types to which each piece of data, arranged as a data sequence input by the data input unit 1 to be inspected, belongs are arranged in the order of the data sequence.

すると、前記データ入力部1から入力した検査対象であ
るデータ列の各データが属するデータタイプと、前記出
力部3から出力されたデータタイプ列の各データタイプ
とが前記比較部4に入力して順次比較され、入力した各
データが属するデータタイプの一致不一致を調べて、デ
ータタイプの正常異常が検査されることになる。
Then, the data type to which each data of the data string to be inspected input from the data input section 1 belongs and each data type of the data type string output from the output section 3 are input to the comparison section 4. The data types are sequentially compared and the data types to which each input data belongs are checked to see if they match or not, and the data types are checked for normality or abnormality.

また、前記タイプチェック・パターンを変更しようとす
る場合には、前記タイプチェック・パターン変更設定部
2により当該タイプチェック・パターンの内容の変更に
よって行われることになる。
Further, when the type check pattern is to be changed, the type check pattern change setting section 2 changes the contents of the type check pattern.

(実施例) 続いて、本発明の実施例について説明する。(Example) Next, examples of the present invention will be described.

第2図に本実施例に係る機器構成ブロック図を示す。FIG. 2 shows a block diagram of the equipment configuration according to this embodiment.

本例に係るタイプチェック・パターン検査方式にあって
は、データの入力操作を行うデータ入力操作部11a及
び変更設定操作部12aに相当するキーボード21と、
表示部22aと、画面定義体が格納されているファイル
121と、前記タイプチェック・パターン定義体が格納
されているファイル13bと、リンクテーブルが格納さ
れているリンクテーブル格納部122と、出力部23と
、表示制御部22b、入圧力制御部11b、比較部14
、タイプチェック・パターン出力制御部13a、及びタ
イプチェック・パターン変更設定制御部12bに相当す
るCPU+プログラムメモリ20とを有するものである
In the type check/pattern inspection method according to this example, a keyboard 21 corresponding to a data input operation section 11a and a change setting operation section 12a for inputting data,
A display section 22a, a file 121 in which a screen definition is stored, a file 13b in which the type check pattern definition is stored, a link table storage section 122 in which a link table is stored, and an output section 23. , display control section 22b, input pressure control section 11b, comparison section 14
, a type check/pattern output control section 13a, and a CPU+program memory 20 corresponding to the type check/pattern change setting control section 12b.

第3図に本実施例に係るタイプチェック・パターン検査
方式に係るブロック図を示すものである。
FIG. 3 shows a block diagram of the type check/pattern inspection method according to this embodiment.

本方式は同図に示すように、数字、文字、記号等を表す
データが配列されたデータ列を順次入力するデータ入力
部11と、検査しようとする入力データが示すべきタイ
プチェック・パターンの変更及び設定を行うタイプチェ
ック・パターン変更設定部12と、当該変更設定部12
により変更または設定されたタイプチェック・パターン
に対応するデータタイプ列を順次出力するタイプチェッ
ク・パターン出力部13と、データ入力部11から入力
したデータ列と、前記出力部13から出力されたデータ
タイプ列とを順次比較する比較部14とを有するもので
ある。
As shown in the figure, this method includes a data input section 11 that sequentially inputs a data string in which data representing numbers, characters, symbols, etc. and a type check/pattern change setting unit 12 that performs settings, and the change setting unit 12
a type check pattern output section 13 that sequentially outputs a data type string corresponding to a type check pattern changed or set by a type check pattern output section 13, a data string input from the data input section 11, and a data type output from the output section 13; The comparison unit 14 sequentially compares the columns.

ここで、前記データ入力操作部11a及び入出力制御部
11bは前記データ入力部11に相当し、前記変更設定
操作部12a、タイプチェック・パターン変更設定制御
部12b、画面定義体121及びリンクテーブル格納部
122は前記タイプチェック・パターン変更設定部12
に相当し、前記タイプチェック・パターン出力制御部1
3a、前記タイプチェック・パターン定義体13b及び
出力部23は前記タイプチェック・パターン出力部13
に相当する。
Here, the data input operation section 11a and the input/output control section 11b correspond to the data input section 11, and the change setting operation section 12a, the type check/pattern change setting control section 12b, the screen definition body 121, and the link table storage. A section 122 is the type check/pattern change setting section 12.
corresponds to the type check/pattern output control section 1.
3a, the type check pattern definition body 13b and the output section 23 are the type check pattern output section 13;
corresponds to

ここで、画面定義体121は、画面上の表現形式を定義
する定義情軽を応用プログラムとは別個に管理するファ
イルであって、リンクテーブル格納部122は当該画面
定義体121と前記タイプチェック・パターン出力部1
3に設けられたタイプチェック・パターン定義体131
,132.・・・どの間を繋ぐためのリンク用テーブル
を格納するファイルである。
Here, the screen definition body 121 is a file that manages definition information that defines the expression format on the screen separately from the application program, and the link table storage unit 122 stores the screen definition body 121 and the type check information. Pattern output section 1
Type check pattern definition body 131 provided in 3.
, 132. ...This is a file that stores a link table for connecting between.

また、「タイプチェック・パターン定義体」とはタイプ
チェック・パターンの表現形式を定義する定義情報を応
用プログラムとは別個に管理する定義体をいい、これに
より端末でのデータ表現形式の変更を行っても応用プロ
グラムへの影響も少なくすることができる。
Furthermore, a "type check pattern definition body" is a definition body that manages definition information that defines the expression format of a type check pattern separately from the application program, and is used to change the data expression format on the terminal. However, the impact on application programs can also be reduced.

また、前記リンクテーブルは各画面定義体により表現形
式が定義された各項目に前記タイプチェック・パターン
定義体のアドレスを対応させたテーブルである。
The link table is a table in which each item whose expression format is defined by each screen definition is associated with the address of the type check pattern definition.

同図に示すように、当該定義体131゜132、・・・
は管理部、データタイプ情報部及び状態遷移情幸は部の
3部からなっている。
As shown in the figure, the definition bodies 131, 132, . . .
It consists of three parts: a management part, a data type information part, and a state transition information part.

管理部には第4図(a)に示すように、データタイプ数
“′m″゛及び状態数jJs#lが保持されている。
As shown in FIG. 4(a), the management section holds the number of data types "'m"' and the number of states jJs#l.

ここで、「データタイプ」とは検査の対象となる数字、
文字、記号等のデータを所定の基準で分類した群であっ
て、例えば、数字と記号、または、ある基準数よりも大
きい数、基準数と小さい数等のように分類した各群をい
う。
Here, "data type" is the number to be inspected,
A group in which data such as characters and symbols are classified according to predetermined criteria, such as numbers and symbols, numbers larger than a certain reference number, numbers smaller than a certain reference number, etc.

また、「データタイプ数」とは分類された当該群の数を
いう。
Furthermore, the "number of data types" refers to the number of classified groups.

「状態数」とは、当該データタイプの判断かなされるべ
きデータの数をいい、正常なタイプチェック・パターン
をもつ場合には、当該数分ずつデータタイプの配列が繰
り返されることになり請求項2に記載した配列数に相当
するものである。
"Number of states" refers to the number of data to be judged for the data type, and if there is a normal type check pattern, the arrangement of data types is repeated for the number of minutes, and the claim This corresponds to the number of sequences described in 2.

前記データタイプ情報部には第4図(b)に示すように
、各データタイプを識別するデータタイプ番号(1〜m
)に対して、該当する先頭データ及び最終データを対応
させている。
As shown in FIG. 4(b), the data type information section contains data type numbers (1 to m) for identifying each data type.
), the corresponding first data and last data are made to correspond to each other.

ここで、「先頭データ」とは当該データタイプに属する
データがコードテーブル上連続している場合の最小のコ
ード値を持つデータ(例:当該データタイプに属するデ
ータか数字である場合に、当該数字の最小数)てあって
、「最終データ」とは当該データタイプに属するデータ
がコートテーブル上連続している場合の最大のコード値
を持つデータ(例:当該データタイプに属するデータが
数字の場合には、数字の最大数)をいう。当該データタ
イプに属するデータの数が単数のときは「先頭データ」
と「最終データ」に同じデータを指定する。例えは、“
/パの記号単独の場合には、前記「先頭データ」は“/
°°であり、前記「最終データ」は/″である。
Here, "first data" is the data that has the smallest code value when the data belonging to the data type is consecutive on the code table (e.g., if the data belonging to the data type is numeric, then the digit (minimum number of data), and "final data" is the data with the largest code value when the data belonging to the data type is consecutive on the court table (e.g., if the data belonging to the data type is numeric) is the maximum number of digits). If the number of data belonging to the data type is singular, "first data"
Specify the same data as "Final data". For example, “
In the case of the /pa symbol alone, the “starting data” is “/”.
°°, and the "final data" is /''.

または、前記データタイプ情報部のデータ範囲について
、前述したように「先頭データ、最終データ」というよ
うに表さず、当該データタイプに属する文字、数字、記
号等にデータを羅列するようにテーブルの形式を変えて
も良い。
Alternatively, regarding the data range of the data type information section, instead of expressing it as "first data, last data" as described above, the table should be arranged so that the data is listed in characters, numbers, symbols, etc. that belong to the data type. You can change the format.

尚、当該データタイプ情報部はデータタイプの種類及び
内容を示すものである。
Note that the data type information section indicates the type and content of the data type.

前記状態遷移情報部を第4図(C)に示すように、5行
(m+1)列の遷移マトリクスを示すものであって、i
行j列に示す値Xは、現在の状態数(入力するデータの
順番)がi IIであってそのデータタイプ番号がj″
であった場合に、当該データタイプ番号が正しい場合に
は次の状態数IIxIIを示し、データタイプ番号が1
jjuてなく、誤りが検出された場合には、例えば、負
の数が示されるようにすれば良い。当該状態遷移情報部
は前記データタイプの配列順を示すものである。
As shown in FIG. 4(C), the state transition information section shows a transition matrix of 5 rows and (m+1) columns, where i
The value X shown in row j column has the current state number (order of input data) iII and its data type number j''
If the data type number is correct, the next state number II x II is indicated, and the data type number is 1.
If an error is detected, for example, a negative number may be displayed. The state transition information section indicates the arrangement order of the data types.

続いて、より具体的な例を示す。Next, a more specific example will be shown.

今、前記画面定義体で表現形式の定義された項目3のパ
ターンとしては、例えば電話番号、099(999)9
999  のようなパターン、金額、99゜999.9
99のようなパターン等がある。
Now, as a pattern for item 3 whose expression format is defined in the screen definition body, for example, a telephone number, 099 (999) 9
Patterns like 999, amounts, 99°999.9
There are patterns such as 99.

ここては、例として99/99/99/・・・/99′
とした場合について説明する。当該パターンは数字(0
″〜”9 ” ) 2桁の直後に“/″がくるという並
びが繰り返されるものである。
Here, as an example, 99/99/99/.../99'
The case will be explained below. The pattern is a number (0
"~"9") The sequence in which "/" comes immediately after the two digits is repeated.

すると、前記タイプチェック・パターン変更設定部12
により、第5図に示すように、前記タイプチェック・パ
ターン定義体の前記データタイツ数mとしては数字(“
0°゛〜“Jll)、及び記号“/′”の2種類であっ
て、m=2を、前記状態数Sとしては「数字1桁目」、
「数字2桁目」及び「記号“’/”Jの3種類であり、
s=3を設定する。
Then, the type check/pattern change setting section 12
Therefore, as shown in FIG. 5, the number m of data tights of the type check pattern definition body is a number (“
There are two types: 0°゛ ~ "Jll)" and the symbol "/'", where m = 2 and the state number S is "the first digit of the number",
There are three types: “second digit of number” and “symbol “’/” J.
Set s=3.

また、当該タイプチェック・パターン変更設定部12に
より前記データタイプ情報部として、前記データタイプ
を識別するデータタイプ番号1に相当する群のデータタ
イプは数字とし、コードテーブル上は“°0”から“9
°゛まで並んでいるため、前記データ範囲として先頭デ
ータとして“′0′°を、最終データとして“9゛°を
指定する。
In addition, the type check/pattern change setting unit 12 sets the data type information part as a number for the data type of the group corresponding to data type number 1 that identifies the data type, and the data type on the code table is set from "°0" to " 9
Since the data are lined up to 90 degrees, the data range is specified as ``'0'' as the first data and ``9'' as the last data.

したがって、データタイプ1として数字が属するものと
し、前記データタイプ番号2に相当する群のデータタイ
プには、前記データ範囲として“/゛が属するものとし
、データ範囲は1文字であるため先頭データと最終デー
タには同じ記号゛/゛を指定することになる。
Therefore, numbers belong to data type 1, and “/゛” belongs to the data type of the group corresponding to data type number 2 as the data range, and since the data range is one character, it is assumed that the first data is The same symbol ゛/゛ will be specified for the final data.

さらに、前記状態遷移情報部としては第5図(c)に示
すように、データの状態遷移を定義する。ここでは、状
態値が負となった場合にはエラーと判断するように作る
。尚、ここではエラー値を複数種類用意して原因を区別
できるように作成しである。例えば、データのエラーの
場合には−1゛°で表し、並びのエラーの場合には−2
′′で表されることになる。
Furthermore, the state transition information section defines the state transition of data, as shown in FIG. 5(c). Here, it is created so that if the status value becomes negative, it is determined to be an error. Note that multiple types of error values are prepared here so that the causes can be distinguished. For example, a data error is expressed as -1゛°, and a sequence error is expressed as -2.
It will be expressed as ``.

状態遷移を追うと以下のようになる。初期状態は状態値
=1であり、この状態では数字以外はエラーデータとな
る。数字がきたら、状態値は112+1へ遷移する。状
態値2は2桁目の数字待ち状態であるため、数字以外は
エラーとなる。数字がきたら、状態値は3へ遷移する。
Following the state transition is as follows. In the initial state, the state value is 1, and in this state, anything other than numbers becomes error data. When the number arrives, the state value transitions to 112+1. Since the status value 2 is a wait state for the second digit, anything other than a digit will result in an error. When the number arrives, the state value transitions to 3.

状態値3は記号“/″待ち状態であるため記号11 /
 II以外はエラーとなる。記号“/゛が来たら状態値
は1″へ遷移する。状態値1は初期状態と同じ状態であ
る。以上のチエツクをデータ終了あるいはエラー検出ま
で繰り返す。
Status value 3 is the symbol "/" waiting state, so the symbol 11 /
Anything other than II will result in an error. When the symbol "/" comes, the state value changes to "1". A state value of 1 is the same state as the initial state. The above checks are repeated until the data is completed or an error is detected.

第6図には、実施例に係るリンクテーブルの一例を示す
ものてあり、項目番号3に関連するタイプチェック・パ
ターン定義体のアドレスが30000番から開始するこ
とを示している。
FIG. 6 shows an example of a link table according to the embodiment, and shows that the addresses of the type check pattern definition bodies related to item number 3 start from number 30,000.

続いて、本実施例に係るタイプチェック・パターン検査
方式の動作を説明する。
Next, the operation of the type check/pattern inspection method according to this embodiment will be explained.

第7図にタイプチェック・パターンの流れ図に示すよう
に、本実施例に係るタイプチエツク処理流れ図を示す。
As shown in FIG. 7, a type check pattern flowchart is shown, which is a type check processing flowchart according to this embodiment.

例えば、画面定義体または帳票定義体に定義された項目
に関するデータのタイプチェック・パターンの検査を行
う場合について説明する。
For example, a case will be described in which a type check pattern of data regarding items defined in a screen definition or a form definition is inspected.

予め前記タイプチェック・パターン変更設定部12によ
りタイプチェック・パターンを前記操作部12aにより
操作すると、前記画面定義体121を介して前記リンク
テーブル122の該当する項目aに対応するタイプチエ
ツクパターン定義体のアドレスが検索され、前記タイプ
チェック・パターン出力部13の該当するタイプチェッ
ク・パターン定義体の領域が指定される。
When a type check pattern is operated by the type check pattern change setting unit 12 in advance using the operation unit 12a, the type check pattern definition corresponding to the corresponding item a of the link table 122 is changed via the screen definition body 121. The address is searched, and the area of the corresponding type check pattern definition body of the type check pattern output section 13 is specified.

すると、前記タイプチェック・パターン出力部13はス
テップSJIで状態値として“1゛°がレジスタに保持
されると、ステップSJ2て、前記データ入力部11を
介して当該項目aに鎖編するデータ列の状態値“1パに
相当する第1番目のデータが前記比較部14に入力する
ことになる。
Then, when "1゛°" is held in the register as the state value in step SJI, the type check pattern output section 13 outputs a data string to be chained to the item a through the data input section 11 in step SJ2. The first data corresponding to the state value "1pa" is input to the comparator 14.

比較の結果、入力したデータのデータタイプ番号が例え
ば、第5図(c)の遷移マトリクスに示す値゛1″に一
致した場合には、ステップSJ3で当該マトリクス要素
(1、1)に相当する状態値“2′′に遷移することに
なる。
As a result of the comparison, if the data type number of the input data matches, for example, the value "1" shown in the transition matrix of FIG. It will transition to the state value "2''.

一方、比較の結果、入力したデータのデータタイプ番号
が2”の場合には、入力したデータの配列が異常である
ことになり、状態値として第5図(C)の場合には状態
値パ−2”°に遷移することになる。
On the other hand, as a result of the comparison, if the data type number of the input data is 2'', it means that the arrangement of the input data is abnormal, and if the status value is as shown in Figure 5(C), then the status value is It will transition to -2”°.

ステップSJ4で得られた状態値が負であるか非負であ
るかが前記比較部14で判断され、非負である場合には
、ステップSJ5に進み、データが終了したか否かが判
断され、入力させるべきデータがまだ存在する場合には
、再びステップSJ2に戻り、前記データ入力部11は
次の状態番号゛2”に該当するテ゛−夕を読み込んて前
記比較部14に入力させることになる。
The comparison unit 14 determines whether the status value obtained in step SJ4 is negative or non-negative. If it is non-negative, the process proceeds to step SJ5, where it is determined whether or not the data has been input. If the data to be changed still exists, the process returns to step SJ2 again, and the data input section 11 reads the data corresponding to the next state number "2" and inputs it to the comparison section 14.

一方、全データについて終了した場合には、正常終了す
ることになる。
On the other hand, if all data is completed, the process ends normally.

一方、ステップSJ4で得られた状態値か負であると判
断された場合には、異常終了することになる。
On the other hand, if it is determined that the status value obtained in step SJ4 is negative, the process ends abnormally.

尚、データ自体が定義されていないデータタイプ番号に
相当する場合には、第5図(C)の場合には、“−1′
′という状態値に遷移することになる。
In addition, if the data itself corresponds to an undefined data type number, in the case of FIG. 5(C), "-1'
It will transition to the state value ′.

第8図にはj実施例に係るタイプチェック・パターン定
義体の他の具体例を示すものである。
FIG. 8 shows another specific example of the type check pattern definition body according to the j embodiment.

本例は、前述した例と同様に、データタイツ数、状態数
、各データタイプに属するデータの種類は同様であるが
、前述した例と異なり、前記状態遷移情輯部に相当する
遷移マトリクスの行列要素が異なり、本例では1つの状
態番号に対して、2つのデータタイプ番号、すなわち、
第8図に示す例では、状態番号゛2゛に対しては、ia
i+及び“3゛′が正常値として、取り得る場合を示し
ている。
In this example, the number of data tights, the number of states, and the types of data belonging to each data type are the same as in the previous example, but unlike the previous example, the transition matrix corresponding to the state transition information section is The matrix elements are different, and in this example, there are two data type numbers for one state number, that is,
In the example shown in FIG. 8, for state number "2", ia
The case where i+ and "3'" can be taken as normal values is shown.

尚、本実施例では、データの入力をキーボードて行うよ
うにしたが、その他、回線を介して入力を行ったり、種
々の読取り装置でデータを読み取るようにしても良い。
In this embodiment, data is input using a keyboard, but the data may also be input via a line or read using various reading devices.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明では、前記タイプチェック
・パターン変更設定部及びタイプチェック・パターン出
力部を設けている。
As described above, the present invention includes the type check pattern change setting section and the type check pattern output section.

したがって、検査しようとするデータタイプ及びその配
列を表すタイプチェック・パターンの変更及び設定がプ
ログラム自体の変更及び作成を行うことなく、当該タイ
プチェック・パターンの内容の変更または設定により容
易に行うことができる。
Therefore, changing and setting the type checking pattern that represents the data type and its arrangement to be inspected can be easily done by changing or setting the contents of the type checking pattern without changing or creating the program itself. can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理ブロック図、第2図は実施例に係
る機器構成ブロック図、第3図は実施例に係るブロック
図、第4図は実施例に係るタイプチェック・パターン定
義体の内容例を示す図、第5図は実施例に係るタイプチ
ェック・パターン定義体の具体的内容例を示す図、第6
図は実施例に係るリンクテーブルの内容例を示す図、第
7図は実施例に係るタイプチエツク処理流れ図、第8図
は実施例に係るタイプチェック・パターン定義体の他の
具体的内容例を示す図、及び第9図は従来例に係るブロ
ック図である。 1・・・データ入力部 2.12・・・タイプチェック・パターン変更設定部 3.13・・・タイプチェック・パターン出力部 4.14・・・比較部 特 許 出 願 人 富士通株式会社 代   理   人  弁理士土 橋 皓(C)状、預
1移1報部 (C1状g1移清報部 実施例に係るタイプチエツクパターン定義体の具体的内
容例を示す図第 図 実施例に係るタイプチエツクパターン定義体の内容例を
示す図第 図 第 図 実施例に係るタイプチエ・ンク処理流れ図第 図 (0)管理邪 fcl状91移11ti1部 第 図 従来例に係るブロック図 第 図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of the equipment configuration according to the embodiment, Fig. 3 is a block diagram of the embodiment, and Fig. 4 is a type check pattern definition body according to the embodiment. Figure 5 is a diagram showing a specific example of the content of the type check pattern definition body according to the embodiment; Figure 6 is a diagram showing an example of the content;
The figure shows an example of the contents of the link table according to the embodiment, FIG. 7 is a flowchart of the type check process according to the embodiment, and FIG. 8 shows another example of specific contents of the type check pattern definition body according to the embodiment. 9 and FIG. 9 are block diagrams according to a conventional example. 1...Data input section 2.12...Type check/pattern change setting section 3.13...Type check/pattern output section 4.14...Comparison section Patent applicant: Fujitsu Limited Agent Person Patent Attorney Hao Tsuchihashi (C), Deposit 1 Reporting Department A diagram showing an example of the contents of a pattern definition body. FIG. Flowchart of a type check process according to an embodiment. FIG.

Claims (1)

【特許請求の範囲】 1)数字、文字、記号等を表すデータが配列されたデー
タ列を順次入力するデータ入力部(1)を有し、数字、
文字、記号等を所定のデータタイプに分類し、データ列
として配列された順に、各データが属するデータタイプ
を配列したタイプチェック・パターンの検査を行うタイ
プチェック・パターン検査方式において、 検査しようとする入力データ列が示すべきタイプチェッ
ク・パターンの変更及び設定を行うタイプチェック・パ
ターン変更設定部(2)と、当該変更設定部(2)によ
り変更または設定されたタイプチェック・パターンに対
応するデータタイプ列を順次出力するタイプチェック・
パターン出力部(3)と、 データ入力部(1)から入力したデータ列の各データの
属するデータタイプと、前記出力部(3)から出力され
たデータタイプ列の各 データ・タイプとを順次比較する比較部(4)とを有す
ることを特徴とするタイプチェック・パターン検査方式
。 2)数字、文字、記号等を表すデータが配列されたデー
タ列を順次入力するデータ入力部(1)を有し、数字、
文字、記号等を所定のデータタイプに分類し、データ列
として配列された順に、各データが属するデータタイプ
を配列したタイプチェック・パターンの検査を行うタイ
プチェック・パターン検査方式において、 少なくとも、検査しようとする入力データ列が示すべき
タイプチェック・パターンのもつデータタイプの種類、
内容、配列順及び配列数の変更及び設定を行うタイプチ
ェック・パターン変更設定部と、 当該変更設定部により変更または設定された、少なくと
も、データタイプの種類、内容、配列順及び配列数をも
つタイプチェック・パターンに対応するデータタイプ列
を順次出力するタイプチェック・パターン出力部と、 データ入力部(1)から入力したデータ列の各データの
属するデータタイプと、前記出力部から出力されたデー
タタイプ列の各データ・タイプとを順次比較する比較部
(4)とを有することを特徴とするタイプチェック・パ
ターン検査方式。 3)請求項1、2記載のタイプチェック・パターン出力
部において、 タイプチェック・パターンの表現形式を定義する定義情
報を応用プログラムとは別個に管理するタイプチェック
・パターン定義体を有することを特徴とするタイプチェ
ック・パターン検査方式。
[Claims] 1) A data input section (1) for sequentially inputting a data string in which data representing numbers, characters, symbols, etc. are arranged;
In the type check/pattern inspection method, which classifies characters, symbols, etc. into predetermined data types, and inspects a type check pattern in which the data types to which each data belongs is arranged in the order in which they are arranged as a data string, A type check pattern change setting section (2) that changes and sets the type check pattern that the input data string should show, and a data type corresponding to the type check pattern changed or set by the change setting section (2). Type check that outputs columns sequentially
The pattern output section (3) sequentially compares the data type to which each data in the data string input from the data input section (1) belongs and each data type in the data type string output from the output section (3). A type check/pattern inspection method characterized by comprising a comparing section (4) that performs the following operations. 2) It has a data input section (1) for sequentially inputting a data string in which data representing numbers, characters, symbols, etc. are arranged;
In a type check/pattern inspection method that classifies characters, symbols, etc. into predetermined data types and inspects a type check pattern in which the data types to which each data belongs is arranged in the order in which they are arranged as a data string, at least The type of data type of the type check pattern that the input data string should show,
A type check/pattern change setting section that changes and sets the contents, arrangement order, and number of arrays, and a type that has at least the data type type, contents, arrangement order, and number of arrays changed or set by the change setting section. a type check pattern output section that sequentially outputs a data type string corresponding to a check pattern; a data type to which each data in the data string input from the data input section (1) belongs; and a data type output from the output section. A type check/pattern inspection method comprising a comparing section (4) that sequentially compares each data type of a column. 3) The type check pattern output unit according to claims 1 and 2, further comprising a type check pattern definition body that manages definition information that defines the expression format of the type check pattern separately from the application program. Type check/pattern inspection method.
JP2184734A 1990-07-12 1990-07-12 Type check pattern inspection system Pending JPH0471035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2184734A JPH0471035A (en) 1990-07-12 1990-07-12 Type check pattern inspection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2184734A JPH0471035A (en) 1990-07-12 1990-07-12 Type check pattern inspection system

Publications (1)

Publication Number Publication Date
JPH0471035A true JPH0471035A (en) 1992-03-05

Family

ID=16158433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2184734A Pending JPH0471035A (en) 1990-07-12 1990-07-12 Type check pattern inspection system

Country Status (1)

Country Link
JP (1) JPH0471035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6278255B1 (en) * 1999-02-02 2001-08-21 Samsung Electronics Co., Ltd. Apparatus and method for eliminating variable offset values of current detecting signals

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6278255B1 (en) * 1999-02-02 2001-08-21 Samsung Electronics Co., Ltd. Apparatus and method for eliminating variable offset values of current detecting signals

Similar Documents

Publication Publication Date Title
CN112883042A (en) Data updating and displaying method and device, electronic equipment and storage medium
CN112286999A (en) Dynamic form implementation method based on MYSQL and MONGODB
CN111913941B (en) Index type numerical financial time series data intelligent auditing system
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN112579621A (en) Data display method and device, electronic equipment and computer storage medium
CN113268665A (en) Information recommendation method, device and equipment based on random forest and storage medium
CN114968816A (en) Data simulation-based strategy testing method, device, equipment and storage medium
US10678864B2 (en) Analysis model preparing system, programming apparatus, and analysis model preparing method
CN113627160A (en) Text error correction method and device, electronic equipment and storage medium
JPH0471035A (en) Type check pattern inspection system
CN115543265A (en) Method and system for shortening new commodity shelf life
CN114936111A (en) Front-end variable anomaly detection and restoration method, device, equipment and storage medium
CN112596828A (en) Application-based popup window generation method and device, electronic equipment and storage medium
CN101201829A (en) Chinese character library system as well as character code display method thereof
US8451018B2 (en) Bit failure signature identification
JP2020107204A (en) Table comparison device and table comparison method
WO2005015430A1 (en) A method of processing data for a system model
CN113434359B (en) Data traceability system construction method and device, electronic device and readable storage medium
CN111026307B (en) Method and device for quickly associating graphics primitives in graphics configuration tool
KR100656559B1 (en) Program Automatic Generating Tools
CN114492342A (en) Table icon filling method, device, equipment and storage medium
CN114546854A (en) Interface testing method and device, electronic equipment and storage medium
CN113467985A (en) Function checking method and device, electronic equipment and storage medium
CN114924533A (en) Tobacco production data management method and device
JPS60237539A (en) Analytical system for rule structure