JPH0319086A - State transition table converter - Google Patents
State transition table converterInfo
- Publication number
- JPH0319086A JPH0319086A JP1153970A JP15397089A JPH0319086A JP H0319086 A JPH0319086 A JP H0319086A JP 1153970 A JP1153970 A JP 1153970A JP 15397089 A JP15397089 A JP 15397089A JP H0319086 A JPH0319086 A JP H0319086A
- Authority
- JP
- Japan
- Prior art keywords
- state
- transition
- transition table
- state transition
- states
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000007704 transition Effects 0.000 title claims abstract description 131
- 238000000354 decomposition reaction Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 241000282412 Homo Species 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 108090001005 Interleukin-6 Proteins 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、状態遷移表に基づいて制御を行うシステムの
、状態遷移表を作成する装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an apparatus for creating a state transition table for a system that performs control based on the state transition table.
(従来の技術)
システムの動作は一般に、ある状態と、それに対して入
力があったときに遷移する状態という形式で記述するこ
とができ、これを表形式で記述したものが状態遷移表で
ある。第4図に状態遷移表の例を示す。第4図には、遷
移前状態、入力、出力、遷移後状態とを示している。シ
ステムの動作記述に状態遷移表を用いる方法に関しては
、例えば情報処理学会第38回(平成元年前期)全国大
会IL−6に述べられている。(Prior art) The operation of a system can generally be described in the form of a certain state and the state to which it transitions when an input is received, and a state transition table is a table that describes this state. . FIG. 4 shows an example of a state transition table. FIG. 4 shows a pre-transition state, input, output, and post-transition state. A method of using a state transition table to describe the behavior of a system is described, for example, at the Information Processing Society of Japan's 38th (early 1989) national conference IL-6.
このような方式を用いる場合には、あらかじめ各状態に
対応して遷移先状態を記述した状態遷移表を人間が作成
しておく必要がある。When using such a method, it is necessary for a human to create in advance a state transition table that describes the transition destination state corresponding to each state.
(発明が解決しようとする課題)
しかしながら、このような状態遷移表を人間がすべて記
憶することは非常に手間がかかる。例えば、第4図に示
す状態遷移表において、遷移前状態S2、S3、S4は
、それらの状態に対する入力、出力、遷移後状態がすべ
て同じであるにもかかわらず、それらを別々に記述しな
ければならないので人間にとっては非常にわずられしい
。本発明は、このように、入力、出力、遷移後状態がす
べて同じであるような遷移前状態を1つのグループとし
て記述できるようにすることにより、状態遷移表作成に
おける人間の手間を軽減しようとするものである。(Problem to be Solved by the Invention) However, it is very time-consuming for humans to memorize all such state transition tables. For example, in the state transition table shown in Figure 4, pre-transition states S2, S3, and S4 must be described separately even though the inputs, outputs, and post-transition states for these states are all the same. This is extremely troublesome for humans. In this way, the present invention aims to reduce human effort in creating a state transition table by making it possible to describe pre-transition states in which the input, output, and post-transition state are all the same as one group. It is something to do.
(課題を解決するための手段)
共通の性質を持つ複数の状態をグループ化して状態遷移
を記述した簡易状態遷移表から該複数の状態を構成する
個々の状態に対する状態遷移を記述した状態遷移表を作
成する状態遷移表変換装置であって、前記簡易状態遷移
表を記憶する簡易状態遷移表記憶手段と、該簡易状態遷
移表記憶手段を参照して前記簡易状態遷移表に記載され
た各遷移の遷移前状態数を計数する遷移前状態数計飲手
段と、該遷移前状態数計飲手段から出力された遷移前状
態数が2以上であるときに前記簡易状態遷移表記憶手段
を参照し、前記複数の遷移前状態を前記個々の状態に分
解して前記個々の状態に対する状態遷移表を作成する遷
移前状態分解手段とから成ることを特徴とする。(Means for solving the problem) From a simple state transition table that describes state transitions by grouping multiple states with common properties, to a state transition table that describes state transitions for individual states that make up the multiple states. A state transition table conversion device that creates a simple state transition table, comprising: a simple state transition table storage means for storing the simple state transition table; a pre-transition state counting means for counting the number of pre-transition states; and when the number of pre-transition states outputted from the pre-transition state counting means is 2 or more, the simple state transition table storage means is referred to. , pre-transition state decomposition means for decomposing the plurality of pre-transition states into the individual states and creating a state transition table for each of the individual states.
(作用) 本発明の動作を、第3図と第4図を例として説明する。(effect) The operation of the present invention will be explained using FIGS. 3 and 4 as examples.
第3図は、第4図の状態遷移表の各遷移前状態に対して
、入力、出力、遷移後状態が同じであるものを1つのグ
ループとして、遷移前状態の欄に記入した簡易状態遷移
表である。Figure 3 shows a simplified state transition in which the input, output, and post-transition state are the same for each pre-transition state in the state transition table in Figure 4, and are entered in the pre-transition state column as one group. It is a table.
第3図に示すような簡易状態遷移表がある場合、本発明
の状態遷移表変換装置は、まず遷移前状態の最初の項目
である状態S1を読み取り、その状態数を計数する。こ
の場合は状態が81だけであり、状態数は1である。遷
移前状態数が1である場合は、簡易状態遷移表のその行
を新しい状態遷移表の最上行にそのままコピーする。次
に、遷移前状態の次の項目であるS2、S3、S4を読
み取り、その状態数を計数する。この場合は3である。When there is a simple state transition table as shown in FIG. 3, the state transition table conversion device of the present invention first reads the state S1, which is the first item of the pre-transition state, and counts the number of states. In this case, there are only 81 states, and the number of states is 1. If the number of pre-transition states is 1, that row of the simple state transition table is copied as is to the top row of the new state transition table. Next, the next items of the pre-transition state, S2, S3, and S4, are read and the number of states is counted. In this case it is 3.
状態数が2以上である場合は、その状態を個々の状態に
分解し、それぞれの状態別々の行として新しい状態遷移
表にコピーする。この例では、状態S2、S3、S4の
それぞれに対して新しい行を作成し、それらの状態に対
する入力、出力、遷移後状態としては、すべて同じに2
.02、S5をコピーする。このようにして、第3図の
簡易状態遷移表は第4図の状態遷移表に変換される。If the number of states is two or more, the state is broken down into individual states and each state is copied as a separate row to a new state transition table. In this example, a new row is created for each of states S2, S3, and S4, and the input, output, and post-transition state for those states are all the same.
.. 02, copy S5. In this way, the simple state transition table of FIG. 3 is converted to the state transition table of FIG. 4.
また、第4図の状態遷移表は、第3図の簡易状態遷移表
の2行目を書き変えることによって作成してもよい。こ
の場合は、新しい状態遷移表にコピーするのではなく、
遷移前状態が2以上の場合のみ、それぞれの状態を別々
の行として書き変える。Further, the state transition table shown in FIG. 4 may be created by rewriting the second line of the simple state transition table shown in FIG. In this case, rather than copying to a new state transition table,
Only when there are two or more pre-transition states, each state is rewritten as a separate line.
(実施例) 第1図は、本発明の1実施例を示すブロック図である。(Example) FIG. 1 is a block diagram showing one embodiment of the present invention.
101は、簡易状態遷移表記憶手段であり、半導体メモ
リ、ディスクなどを利用できる。102は遷移前状態数
計飲手段、103は遷移前状態分解手段であり、102
と103はともにマイクロプロセッサなどを利用できる
。104は状態遷移表記憶手段であり、半導体メモリ、
ディスクなどを利用できる。Reference numeral 101 denotes a simple state transition table storage means, which can utilize a semiconductor memory, a disk, or the like. 102 is a pre-transition state counting means; 103 is a pre-transition state decomposition means;
and 103 can both use a microprocessor or the like. 104 is a state transition table storage means, which includes a semiconductor memory,
You can use discs, etc.
本発明の状態遷移表変換装置を用いて簡易状態遷移表を
状態遷移表に変換する際の動作を、第1図のブロック図
と第2図のフローチャートを用いて説明する。まず、遷
移前状態数計飲手段102が、簡易状態遷移表記憶手段
101に記憶された簡易状態遷移表の最上行にポインタ
を設定して(201)その行の遷移前状態数を計数する
(202)。次に、処理202で計数した遷移前状態数
が2以上であれば(203)、遷移前状態分解手段10
3がそれらの遷移前状態を分解して各状態ごとに状態遷
移表の別々の行にコピーする(204)。この際、状態
遷移表の入力、出力、遷移後状態の欄はすべで簡易状態
遷移表のポインタ行と同じになる。処理203において
、遷移前状態数が1であれば、遷移前状態分解手段10
3は何もせずにポインタ行をそのまま状態遷移表にコピ
ーして(20?)、ポインタ行が状態遷移表の最下行で
あれば終了する(206)。最下行でなければ、ポイン
タを1つ下の行に進めて、202の処理に戻る。The operation of converting a simple state transition table into a state transition table using the state transition table conversion device of the present invention will be explained using the block diagram of FIG. 1 and the flowchart of FIG. 2. First, the pre-transition state number counting means 102 sets a pointer to the top row of the simple state transition table stored in the simple state transition table storage means 101 (201) and counts the number of pre-transition states in that row ( 202). Next, if the number of pre-transition states counted in the process 202 is 2 or more (203), the pre-transition state decomposition means 10
3 decomposes those pre-transition states and copies each state to a separate row of the state transition table (204). At this time, the input, output, and post-transition state columns of the state transition table are all the same as the pointer row of the simple state transition table. In process 203, if the number of pre-transition states is 1, the pre-transition state decomposition means 10
Step 3 copies the pointer row as is to the state transition table without doing anything (20?), and ends if the pointer row is the bottom row of the state transition table (206). If it is not the bottom line, the pointer is advanced one line below and the process returns to step 202.
以上の実施例では変換された状態遷移表は簡易状態遷移
表記憶手段101とは別の記憶手段に記憶されるが、も
との簡易状態遷移表記憶手段101の記憶内容を書き変
える形式にも適用できる。この場合は、処理204では
、遷移前状態分解手段103が複数の遷移前状態を分解
して各状態ごとに簡易状態遷移表の別の行にコピーし、
元の遷移前状態を複数個含む行を削除する。また、20
7のポインタ行を新しい状態遷移表にコピーするステッ
プは省略する。In the above embodiment, the converted state transition table is stored in a storage means separate from the simple state transition table storage means 101, but it is also possible to rewrite the stored contents of the original simple state transition table storage means 101. Applicable. In this case, in step 204, the pre-transition state decomposition unit 103 decomposes the plurality of pre-transition states and copies each state to a separate row of the simple state transition table,
Delete rows that contain multiple original pre-transition states. Also, 20
The step of copying pointer row 7 to the new state transition table is omitted.
(発明の効果)
本発明の装置を用いることにより、入力、出力、遷移後
状態がすべて同じであるような遷移前状態を状態遷移表
の中で別々に記入する必要がなく、それらをまとめて1
つのグループとして状態遷移表に記入することができる
ので、状態遷移表作成の手間が軽減される。(Effects of the Invention) By using the device of the present invention, there is no need to separately enter pre-transition states in which the input, output, and post-transition state are all the same in the state transition table; 1
Since data can be entered into the state transition table as one group, the effort required to create the state transition table is reduced.
第1図は本発明の1実施例を示すブロック図、第2図は
簡易状態遷移表から状態遷移表を作成する方法のフロー
チャート、第3図は簡易状態遷移表、第4図は本発明の
装置を用いて第3図の簡易状態遷移表から作成される状
態遷移表である。
図において、101・・・簡易状態遷移表記憶手段、1
02・・・遷移前状態数計数学段、103・・・遷移前
状態数が複数であるときに状態遷移表を分解する遷移前
状態分解手段、104・・・完全な形式の状態遷移表を
記憶する状態遷移表記憶手段である。Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 is a flowchart of a method for creating a state transition table from a simple state transition table, Fig. 3 is a simple state transition table, and Fig. 4 is a flow chart of a method of creating a state transition table from a simple state transition table. This is a state transition table created from the simple state transition table of FIG. 3 using a device. In the figure, 101: simple state transition table storage means, 1
02... Pre-transition state number counting stage, 103... Pre-transition state decomposition means for disassembling the state transition table when the number of pre-transition states is plural, 104... State transition table in complete format This is a state transition table storage means for storing.
Claims (1)
を記述した簡易状態遷移表から該複数の状態を構成する
個々の状態に対する状態遷移を記述した状態遷移表を作
成する状態遷移表変換装置であって、前記簡易状態遷移
表を記憶する簡易状態遷移表記憶手段と、該簡易状態遷
移表記憶手段を参照して前記簡易状態遷移表に記載され
た各遷移の遷移前状態数を計数する遷移前状態数計数手
段と、該遷移前状態数計数手段から出力された遷移前状
態数が2以上であるときに前記簡易状態遷移表記記憶手
段を参照し、前記複数の遷移前状態を前記個々の状態に
分解して前記個々の状態に対する状態遷移表を作成する
遷移前状態分解手段とから成ることを特徴とする状態遷
移表変換装置。A state transition table conversion device that creates a state transition table that describes state transitions for individual states constituting the plurality of states from a simple state transition table that groups a plurality of states with common characteristics and describes state transitions. a simple state transition table storage means for storing the simple state transition table; and a transition for counting the number of pre-transition states of each transition described in the simple state transition table by referring to the simple state transition table storage means. When the number of pre-transition states output from the pre-transition state number counting means is 2 or more, the simple state transition notation storage means is referred to, and the plurality of pre-transition states are stored in the respective pre-transition states. A state transition table conversion device comprising: pre-transition state decomposition means for decomposing states into states and creating a state transition table for each state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1153970A JPH0319086A (en) | 1989-06-16 | 1989-06-16 | State transition table converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1153970A JPH0319086A (en) | 1989-06-16 | 1989-06-16 | State transition table converter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0319086A true JPH0319086A (en) | 1991-01-28 |
Family
ID=15574058
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1153970A Pending JPH0319086A (en) | 1989-06-16 | 1989-06-16 | State transition table converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0319086A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011059957A (en) * | 2009-09-09 | 2011-03-24 | Hitachi Information & Control Solutions Ltd | State transition table display method, state transition table preparation device, and state transition table display device |
-
1989
- 1989-06-16 JP JP1153970A patent/JPH0319086A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011059957A (en) * | 2009-09-09 | 2011-03-24 | Hitachi Information & Control Solutions Ltd | State transition table display method, state transition table preparation device, and state transition table display device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0319086A (en) | State transition table converter | |
| JPS62285129A (en) | knowledge acquisition processing device | |
| JPH04178735A (en) | State transition table converter | |
| JPH01251230A (en) | Program converting system | |
| JP2906869B2 (en) | Data sorting device | |
| JPS63158664A (en) | Document processing system for tree structure type document management | |
| JP2723528B2 (en) | Message editing processor | |
| JP3146772B2 (en) | Digital signal processing circuit | |
| JPH0215374A (en) | Image information retrieving device | |
| JP2891128B2 (en) | Display and editing method of fuzzy rules and construction device thereof | |
| JPH05143676A (en) | Device and method for hierarchical design in logical design | |
| JP3047400B2 (en) | Data processing device | |
| JPH0567159A (en) | Table form data processing device | |
| JPH03216730A (en) | Electronic computer | |
| JPS62107349A (en) | File converting system | |
| JPH06161841A (en) | Record converting device | |
| JPH01233614A (en) | Document printing system | |
| JPH04218858A (en) | Operating rule table converter | |
| JPS641073A (en) | Parallel processing system for image data | |
| JPS6336386A (en) | Storing system for graph data | |
| JPS6385818A (en) | Program data area forming system | |
| JPH0199125A (en) | Link classifying system | |
| JPS62217339A (en) | Data storing system for data base management system | |
| JPS62278635A (en) | File search device | |
| JPS61128387A (en) | Signal input device |