Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH061484B2 - State transition diagram display processing method - Google Patents
[go: Go Back, main page]

JPH061484B2 - State transition diagram display processing method - Google Patents

State transition diagram display processing method

Info

Publication number
JPH061484B2
JPH061484B2 JP63115999A JP11599988A JPH061484B2 JP H061484 B2 JPH061484 B2 JP H061484B2 JP 63115999 A JP63115999 A JP 63115999A JP 11599988 A JP11599988 A JP 11599988A JP H061484 B2 JPH061484 B2 JP H061484B2
Authority
JP
Japan
Prior art keywords
state
states
transitions
display position
display
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
Application number
JP63115999A
Other languages
Japanese (ja)
Other versions
JPH01287779A (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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP63115999A priority Critical patent/JPH061484B2/en
Publication of JPH01287779A publication Critical patent/JPH01287779A/en
Publication of JPH061484B2 publication Critical patent/JPH061484B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 状態遷移図表示処理方式に関し、 状態遷移を示す矢印の交わりを少なくして状態遷移を見
易くすることを目的とし、 状態の各々についての遷移数を求める遷移数決定部と、
前記状態の数に応じて円周上の表示位置を決定する表示
位置決定部と、前記状態を前記表示位置に対応させてそ
の配置位置を決定する状態配置決定部とを備え、前記状
態配置決定部が前記遷移数に基づいて配置位置を決定す
るように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] Regarding a state transition diagram display processing method, the number of transitions for each of the states is obtained for the purpose of making it easier to see the state transitions by reducing the intersections of arrows indicating the state transitions. The decision section,
A display position determination unit that determines a display position on the circumference according to the number of the states, and a state arrangement determination unit that determines the arrangement position of the state in correspondence with the display position. The unit is configured to determine the arrangement position based on the number of transitions.

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

本発明は状態遷移図表示処理方式に関する。 The present invention relates to a state transition diagram display processing method.

状態遷移図は、状態遷移関数をグラフ化して各状態間の
関係をわかり易く表示したものであり、プログラムや順
序回路の設計、解析等に広く用いられる。
The state transition diagram is a graph in which the state transition functions are graphed and the relationships between the states are displayed in an easy-to-understand manner, and is widely used in the design and analysis of programs and sequential circuits.

〔従来の技術〕[Conventional technology]

第9図に図示の如き状態遷移関数(状態遷移表)につい
てグラフ化して状態遷移図とする場合、従来は次のよう
にされていた。
Conventionally, when the state transition function (state transition table) as shown in FIG. 9 is made into a state transition diagram by graphing, it is conventionally done as follows.

第10図は従来技術説明図であり、従来の状態遷移図の
一例を示している。
FIG. 10 is an explanatory view of a conventional technique and shows an example of a conventional state transition diagram.

従来は、表示すべき各状態aないしdは、ランダムにあ
るいは表れる順に、直線上(第10図(A))又は円周上
(第10図(B))に配置される。この後、状態遷移表に
従って、各状態の間に状態遷移を示すものとして有向の
矢印及び入力が表示される。例えば、状態aに入力
“0”があると状態bに遷移する時は、「a の如く表示される。
Conventionally, the states a to d to be displayed are arranged on a straight line (FIG. 10 (A)) or on a circumference (FIG. 10 (B)) either randomly or in the order in which they appear. After this, according to the state transition table, directed arrows and inputs are displayed as indicating the state transition between the states. For example, when the state “a” has an input “0”, the state is changed to “a”. Is displayed as.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

前述の従来技術によれば、表示すべき各状態がランダム
に又は表れる順に配置されるため、第10図(A),(B)に
図示の如く、矢印が交わってしまう。そして、状態の数
が増し、状態遷移が複雑になる程、矢印の交わりは多く
なる可能性がある。
According to the above-mentioned conventional technique, since the respective states to be displayed are arranged randomly or in the order in which they appear, the arrows intersect as shown in FIGS. 10 (A) and 10 (B). Then, as the number of states increases and the state transition becomes more complicated, the number of intersections of arrows may increase.

矢印の交わりが多くなると、状態遷移表から状態遷移図
を作成しても、状態遷移が見づらく、理解できにくくな
るという問題を生じる。
If the number of crossed arrows increases, even if a state transition diagram is created from the state transition table, the state transitions are difficult to see and difficult to understand.

本発明は、状態遷移を示す矢印の交わりを少なくして状
態遷移を見易くした状態遷移図表示処理方式を提供する
ことを目的とする。
It is an object of the present invention to provide a state transition diagram display processing method that makes it easier to see the state transition by reducing the intersection of arrows indicating the state transition.

〔課題を解決するための手段〕[Means for Solving the Problems]

第1図は本発明の原理構成図であり、本発明によるデー
タ処理装置を示している。
FIG. 1 is a block diagram of the principle of the present invention, showing a data processing apparatus according to the present invention.

第1図において、1は中央処理装置(CPU)及びメモ
リを含む処理装置、2は遷移数決定部、3は状態配置決
定部、4は表示位置決定部、5は状態数カウント部、6
ないし8はメモリ部、9は表示情報部、10は矢印付加
部、11は表示制御部、12はグラフィックライブラ
リ、13は表示画面を有する表示装置である。
In FIG. 1, 1 is a processing device including a central processing unit (CPU) and a memory, 2 is a transition number determination unit, 3 is a state arrangement determination unit, 4 is a display position determination unit, 5 is a state number counting unit, 6
Reference numerals 8 to 8 are a memory unit, 9 is a display information unit, 10 is an arrow addition unit, 11 is a display control unit, 12 is a graphic library, and 13 is a display device having a display screen.

グラフ化して表示すべき対象である状態遷移表例えば第
9図の如きものが、メモリ部6に保持される。
A state transition table, which is an object to be displayed as a graph, such as that shown in FIG. 9, is stored in the memory unit 6.

遷移数決定部2は、メモリ部6の状態遷移表に基づいて
各状態間の遷移数を求め、第2図図示の如き遷移数の表
を作成し、これをメモリ部7に格納する。ここで、遷移
数とは、状態遷移図を作成した時に、付加される矢印の
本数をいう。例えば、今は第9図の状態遷移表によって
いるから、状態 の2本(遷移数2)である。従って、状態aについての
遷移数の計Siは4とされ、また、状態aと状態a、
b、c及びdとの間の遷移数は、夫々、0,2,2及び
0とされる なお、遷移数の計Siは、実際は、状態配置決定部3が
状態配置の決定を行う際にその前処理として求められ
る。
The number-of-transitions determining unit 2 obtains the number of transitions between states based on the state transition table of the memory unit 6, creates a table of the number of transitions as shown in FIG. 2, and stores this in the memory unit 7. Here, the number of transitions means the number of arrows added when the state transition diagram is created. For example, since the state transition table of Fig. 9 is used now, Are two (the number of transitions is 2). Therefore, the total number Si of transitions regarding the state a is set to 4, and the state a and the state a,
The number of transitions between b, c, and d is 0, 2, 2, and 0, respectively. In addition, the total number Si of transitions is, in fact, when the state arrangement determination unit 3 determines the state arrangement. It is required as a pretreatment.

状態数カウント部5は、メモリ部6の状態遷移表からそ
れに含まれる(表示すべき)状態の数を求める。
The state number counting unit 5 obtains the number of states (to be displayed) included in the state transition table of the memory unit 6 from the state transition table.

表示位置決定部4は、表示画面上において状態を表示す
べき複数(状態数の分だけ)の位置(表示位置)を、そ
の座標を指定して定める。表示位置は、状態数カウント
部5からの状態数と、表示情報部9からの表示画面の大
きさ等とに基づいて決定される。表示位置についての情
報は配置表としてメモリ部8に格納される。
The display position determination unit 4 determines a plurality of positions (display positions) (display positions) where a state should be displayed on the display screen by designating its coordinates. The display position is determined based on the number of states from the state number counting section 5, the size of the display screen from the display information section 9, and the like. Information about the display position is stored in the memory unit 8 as a layout table.

状態配置決定部3は、メモリ部8の表示位置の各々に1
つの表示すべき状態を対応させることによって、各状態
の配置位置を決定する。これは、メモリ部7を参照し
て、遷移数(の大きさ)を利用して行われる。結果とし
て、メモリ部8に、表示位置の座標と状態とを対応させ
た配置表が得られる。
The state arrangement determination unit 3 sets 1 for each display position of the memory unit 8.
The arrangement position of each state is determined by associating the states to be displayed. This is performed by referring to the memory unit 7 and using (the size of) the number of transitions. As a result, a layout table in which the coordinates of the display position and the state are associated with each other is obtained in the memory unit 8.

矢印付加部10は、メモリ部8の配置表及びメモリ部6
の状態遷移表を参照して、各状態間に状態遷移を示す矢
印及び入力を、配置表に付加した情報を作成する。
The arrow addition unit 10 is arranged in the memory unit 8 and the memory unit 6.
With reference to the state transition table of, the information which adds the arrow and the input which shows a state transition between each state to the arrangement table is created.

表示制御部11は、画面作成ツールであるグラフィック
ライブラリ12を参照して、矢印付加部10からの情報
に基づいて画面情報を作成し、表示装置13に送信す
る。なお、グラフィックライブラリ12は各表示装置1
3に対応して設けられる。
The display control unit 11 refers to the graphic library 12 that is a screen creation tool, creates screen information based on the information from the arrow addition unit 10, and transmits the screen information to the display device 13. The graphic library 12 is used for each display device 1.
It is provided corresponding to 3.

〔作用〕[Action]

第3図は本発明の作用説明図である。 FIG. 3 is an explanatory view of the operation of the present invention.

第9図図示の状態遷移表がメモリ部6に格納される。こ
れに基づいて、遷移数決定部2は第2図図示の遷移数の
表を作成し、メモリ部7に格納する。一方、状態数カウ
ント部5は状態数「4」であることを知る。
The state transition table shown in FIG. 9 is stored in the memory unit 6. Based on this, the transition number determination unit 2 creates a transition number table shown in FIG. 2 and stores it in the memory unit 7. On the other hand, the state number counting unit 5 knows that the number of states is “4”.

次に、表示位置決定部4は、第3図(A)図示の如く、表
示画面130上における状態の表示位置131を決定する。即
ち、まず、表示情報部9から表示画面130の大きさ等に
ついての情報が与えられる。これに基づいて、半径R,
中心Oの円が定められ、この1つの円の円周上に4つの
表示領域131が位置するようにされる。次に、状態数で
円周を等分(この場合は4等分)し、各表示領域131間
の距離を等しくする。(状態数nの時、半径Rの円に内
接するn角形の各頂点が表示位置とされる。)表示位置
についての情報(座標)はメモリ部8に格納される。
Next, the display position determination unit 4 determines the display position 131 of the state on the display screen 130 as shown in FIG. That is, first, the display information section 9 gives information about the size of the display screen 130 and the like. Based on this, the radius R,
A circle having a center O is defined, and four display areas 131 are located on the circumference of this one circle. Next, the circumference is equally divided by the number of states (in this case, equal to 4), and the distances between the display areas 131 are made equal. (When the number of states is n, each vertex of an n-sided polygon inscribed in a circle having a radius R is a display position.) Information (coordinates) about the display position is stored in the memory unit 8.

次に、状態配置決定部3は、第3図(B)ないし(D)に示す
如き配置処理を行う。
Next, the state placement determination unit 3 performs placement processing as shown in FIGS. 3 (B) to (D).

まず、状態配置決定部3はメモリ部7の遷移数の表を参
照し、各状態について遷移数の計Siを求め、これが最
大の状態を1つ選ぶ。なお、この場合は全て「4」であ
るが、状態aを選んだものとする。そして、状態aを4
つの表示位置131の任意(又は所定)の1つに対応づけ
るようにメモリ部8に格納する。これを画面として示せ
ば、第3図(B)の如くなる。
First, the state arrangement determination unit 3 refers to the table of the number of transitions in the memory unit 7, obtains the total number Si of transitions for each state, and selects one state having the maximum number. In this case, all are “4”, but the state a is selected. And state a is 4
The data is stored in the memory unit 8 so as to be associated with any one (or a predetermined) one of the three display positions 131. If this is shown as a screen, it becomes like FIG. 3 (B).

次に、再び前記遷移数の表を参照して、残った状態b,
c及びdの中から、状態aとの間で遷移数が最大の状態
及び次に大きい状態を各々1つ選ぶ。なお、この場合は
状態aとbとの間の遷移数及び状態aとcとの間の遷移
数が共に「2」であるが、状態bを最大の状態、状態c
を次に大きい状態として選んだものとする。そして、状
態b及びcを状態aの時計回り方向及び反時計回り方向
(逆でもよい)の隣接する表示位置131に対応づける。
前述と同様に、この対応関係は、メモリ部8に格納さ
れ、画面としては第3図(C)の如くなる。
Next, referring again to the transition number table, the remaining states b,
From c and d, one state with the maximum number of transitions to the state a and one state with the next largest transition number are selected. In this case, the number of transitions between states a and b and the number of transitions between states a and c are both “2”, but state b is the maximum state, state c
Is selected as the next largest state. Then, the states b and c are associated with the adjacent display positions 131 in the clockwise direction and the counterclockwise direction (or the opposite direction) of the state a.
Similar to the above, this correspondence is stored in the memory unit 8 and the screen is as shown in FIG. 3 (C).

次に、残った状態dと表示位置131とが第3図(D)に示す
如く対応づけられ、状態配置が終了する。
Next, the remaining state d and the display position 131 are associated with each other as shown in FIG. 3 (D), and the state arrangement is completed.

なお、状態数が多い場合は、次のように処理が続行され
る。即ち、まず、状態bとの間の遷移数が最大の状態
(状態b′とする)が1つ選ばれ、これが状態bの隣接
の表示位置に対応させられる。この選択において、すで
に1度選ばれた状態a及びcは対象から除かれる(以下
同じ)。次に、同様にして、状態cの隣接の表示位置に
状態c′が対応させられる。この後、状態b′側、状態
c′側の順で同様の配置処理を行い、状態が無くなるま
でくり返す。
If the number of states is large, the process is continued as follows. That is, first, one state having the maximum number of transitions to the state b (referred to as state b ') is selected, and this is made to correspond to the adjacent display position of the state b. In this selection, the states a and c that have already been selected once are excluded from the target (the same applies hereinafter). Next, similarly, the state c ′ is made to correspond to the display position adjacent to the state c. After that, the same arrangement processing is performed in the order of the state b ′ side and the state c ′ side, and the process is repeated until the state disappears.

この後、矢印付加部10がメモリ部6の状態遷移表を参
照して矢印及び入力を付加する。そして、これを画面に
表示すると第3図(E)の如くなる。
After that, the arrow adding unit 10 refers to the state transition table of the memory unit 6 and adds an arrow and an input. Then, when this is displayed on the screen, it becomes as shown in FIG.

以上の処理によれば、各状態間で遷移数の大きい(矢印
が多い)ものが隣接するようにされる。これにより、第
3図(E)と第10図との比較から理解されるように、状
態遷移を示す矢印の交わりを少なくして状態遷移を見易
くできる。特に、状態数が少ない場合は、矢印の交わり
ほ無くすことができる。また、これらのための状態の配
置の決定を自動的に行うことができ、利用者の負担が無
い。
According to the above processing, the ones having a large number of transitions (there are many arrows) are made to be adjacent to each other. As a result, as can be understood from the comparison between FIG. 3 (E) and FIG. 10, the intersections of the arrows indicating the state transitions can be reduced to make the state transitions easier to see. In particular, when the number of states is small, it is possible to eliminate the intersection of the arrows. Further, the arrangement of the states for these can be automatically determined, and the user is not burdened.

なお、第3図中の点線、半径Rを示す矢印、文字R及び
Oは表示画面130上には表示されない。
The dotted line in FIG. 3, the arrow indicating the radius R, the letters R and O are not displayed on the display screen 130.

〔実施例〕〔Example〕

本発明の実施例として第1図図示のデータ処理装置につ
いて詳細に説明する。
As an embodiment of the present invention, the data processing device shown in FIG. 1 will be described in detail.

まず、遷移数の決定について、第4図及び第5図を用い
て説明する。
First, determination of the number of transitions will be described with reference to FIGS. 4 and 5.

第4図は実施例説明図であり、メモリ部6、遷移数決定
部2及びメモリ部7の構成を示している。第4図におい
て、14及び16はアドレス制御部、15及び17は読
出し制御部、18は書込み制御部、19は加算器、20
ないし28はレジスタである。
FIG. 4 is an explanatory diagram of the embodiment, and shows the configurations of the memory unit 6, the transition number determination unit 2, and the memory unit 7. In FIG. 4, 14 and 16 are address control units, 15 and 17 are read control units, 18 is a write control unit, 19 is an adder, and 20.
Numerals 28 to 28 are registers.

第5図はメモリ部説明図であり、特に、第5図(A)はメ
モリ部6に格納された状態遷移表の一例を示し、第5図
(B)はメモリ部7に格納された遷移数の表の一例を示し
ている。なお、状態遷移表は、第5図(A)図示の如く、
1ないしn(n個)の状態数とa1ないしak(k個)の入
力(入力アルファベット)とからなるものとする。遷移
数決定部2は、メモリ部6の状態遷移表から状態数n、
入力数kを知り、これをレジスタ20及び21に格納す
る。
FIG. 5 is an explanatory view of the memory section, and in particular, FIG. 5 (A) shows an example of the state transition table stored in the memory section 6, and FIG.
(B) shows an example of a table of the number of transitions stored in the memory unit 7. The state transition table is as shown in Fig. 5 (A).
The number of states is 1 to n (n) and a 1 to a k (k) are input (input alphabet). The transition number determination unit 2 uses the state transition table of the memory unit 6 to determine the number of states n,
The number of inputs k is known and stored in the registers 20 and 21.

アドレス制御部14は、メモリ部7に遷移数の表とし
て、状態数nに基づいて、状態1ないしnをX及びYア
ドレスとし各アドレスに遷移数(の初期値)として
「0」を書込んだものを作成する。また、アドレス制御
部14は、メモリ部6から状態遷移表の内容を読出すた
めの2次元(X及びY)アドレスを発生する。このアド
レス発生はX及びY方向に順にインクリメントされ、状
態遷移表の全内容を読出すようにされる。
The address control unit 14 writes “0” as the number of transitions (initial value) to each address by setting the states 1 to n as X and Y addresses based on the number of states n as a table of the number of transitions in the memory unit 7. Create a stuff. The address control unit 14 also generates a two-dimensional (X and Y) address for reading the contents of the state transition table from the memory unit 6. This address generation is sequentially incremented in the X and Y directions to read the entire contents of the state transition table.

今、アドレス制御部14がXアドレスとして入力アルフ
ァベットai,Yアドレスとして状態j(以下このような
アドレスを(X,Y)=(ai,j)と記述する)を発生
したとする。アドレスai及びjはレジスタ22及び23
に格納される。読出し制御部15は、レジスタ22及び
23の内容に従ってメモリ部6の状態遷移表をアクセス
して、アドレス(ai,j)の内容を読出す。この内容
は、状態jに入力アルファベットaiかせ入力された時に
次に遷移すべき状態を示すものであり、この場合は状態
mとされている。読出された内容(状態m)はレジスタ
24に格納される。
It is now assumed that the address control unit 14 generates an input alphabet a i as an X address and a state j (hereinafter, such an address is described as (X, Y) = (a i , j)) as an Y address. Addresses a i and j are in registers 22 and 23
Stored in. The read control unit 15 accesses the state transition table of the memory unit 6 according to the contents of the registers 22 and 23 to read the contents of the address (a i , j). This content indicates the state to be transited to next when the input alphabet a i is input to the state j, and in this case, it is the state m. The read content (state m) is stored in the register 24.

次に、アドレス制御部16は、レジスタ23及び24の
内容を用いてメモリ部7をアクセスする。
Next, the address control unit 16 accesses the memory unit 7 using the contents of the registers 23 and 24.

メモリ部6の状態遷移表のアクセスに用いた状態(j)と
読出された状態(m)とが、メモリ部7の2次元アドレス
発生のために用いられる。アドレス制御部16は、2つ
の状態から(X,Y)=(m,j)及び(m,j)の2
つのアドレスを順次発生し、レジスタ25及び26に格
納する。
The state (j) used for accessing the state transition table of the memory unit 6 and the read state (m) are used for generating the two-dimensional address of the memory unit 7. The address control unit 16 selects (X, Y) = (m, j) and (m, j) from the two states.
One address is sequentially generated and stored in the registers 25 and 26.

即ち、まず、レジスタ25及び26に、Xアドレスとし
ての状態m及びYアドレスとしての状態jが格納され
る。読出し制御部17は、これに基づいてメモリ部7の
遷移数の表をアクセスして、アドレス(m,j)の内容
を読出す。この内容Sは、状態mとjとの間にお
ける遷移数を示すものであり、この場合は初期値「0」
とされている。読出された内容Sはレジスタ27に格
納される。これを受けて。加算器19はレジスタ27の
内容(S)にレジスタ28の内容「1」を加える。こ
の加算結果(S+1)を受けた書込み制御部18は、
レジスタ25及び26の内容である元のアドレス(m,
j)に加算結果を書込む。
That is, first, the state m as an X address and the state j as a Y address are stored in the registers 25 and 26. Based on this, the read control unit 17 accesses the table of the number of transitions of the memory unit 7 and reads the content S o of the address (m, j). The content S o indicates the number of transitions between the states m and j, and in this case, the initial value “0”.
It is said that. The read content S o is stored in the register 27. In response to this. The adder 19 adds the content “1” of the register 28 to the content (S o ) of the register 27. Upon receiving this addition result (S o +1), the write control unit 18
The original address (m,
Write the addition result in j).

次に、レジスタ25及び26に、Xアドレスとしての状
態j及びYアドレスとしての状態mが格納される。この
後、前述と同様にしてアドレス(j,m)の内容S
(この場合は初期値「0」)が読出され、S+1と
されて同一アドレスに再書込みされる。
Next, the states j as the X address and the state m as the Y address are stored in the registers 25 and 26. After that, the contents S of the address (j, m) are processed in the same manner as described above.
1 (in this case, the initial value "0") is read, set as S 1 +1 and rewritten to the same address.

以上をくり返すことにより、遷移数の表が作成される。A table of the number of transitions is created by repeating the above.

次に、表示位置の決定について、第6図及び第7図を用
いて説明する。
Next, determination of the display position will be described with reference to FIGS. 6 and 7.

第6図は表示位置決定フローを示す。FIG. 6 shows a display position determination flow.

第7図は表示位置説明図であり、特に、第7図(A)は画
面上の表示位置について示し、第7図(B)はメモリ部8
に格納された配置表の一例を示している。
FIG. 7 is a diagram for explaining the display position. Particularly, FIG. 7 (A) shows the display position on the screen, and FIG. 7 (B) shows the memory section 8.
3 shows an example of a layout table stored in the.

主として表示画面130の大きさに基づいて、画面上の
円の中心Oの座標(Cx,Cy)及び半径Rが決定される。こ
の時、X,Y座標は、例えば、第7図(A)図示の如く定
められる。
The coordinates (C x , C y ) of the center O of the circle on the screen and the radius R are determined mainly based on the size of the display screen 130. At this time, the X and Y coordinates are determined, for example, as shown in FIG. 7 (A).

次に、状態数nに応じて円周上に等間隔に状態を表示
するために、Rad=2π/nを求め、i=0とする。
Next, in order to display the states at equal intervals on the circumference according to the number of states n, Rad = 2π / n is obtained, and i = 0.

Rad及びiを用いて、所定の式に従い、S及びCを
求める。
Using Rad and i, S and C are calculated according to a predetermined formula.

円の中心座標(Cx,Cy)、半径R、前記S及びCを用い
て、所定の式に従い、前記円の円周上にある1点の座標
(Xi+1,Yi+1)を求める。
Using the center coordinates (C x , C y ) of the circle, the radius R, and the S and C, the coordinates of one point on the circumference of the circle according to a predetermined formula
Find (X i + 1 , Y i + 1 ).

例えば、i=0の時、s=0,c=1であるから(X1,
Y1)=(Cx,Cy-R)とされる。
For example, when i = 0, s = 0 and c = 1, so (X 1 ,
Y 1 ) = (C x , C y -R).

次に、i=i+1とした後、iがnより小さい間上記
処理及びをくり返し行い、iがn以上となった時に
処理を終了する。これにより、前記円の円周上に等間隔
で配置されたn個の点の座標(X1,Y1)ないし(Xn,Yn)が求
まる。
Next, after i = i + 1, the above processes and are repeated while i is smaller than n. When i becomes n or more, the process is terminated. As a result, the coordinates (X 1 , Y 1 ) to (X n , Y n ) of n points arranged at equal intervals on the circumference of the circle are obtained.

表示位置決定部4は、上記処理を行うと共に、処理で
求めた座標を、順次、メモリ部8に格納する。そして、
各座標に対応する状態を格納するための領域を設け、第
7図(B)図示の配置表を作成する。
The display position determination unit 4 performs the above process and sequentially stores the coordinates obtained by the process in the memory unit 8. And
An area for storing the state corresponding to each coordinate is provided, and the arrangement table shown in FIG. 7 (B) is created.

この実施例において、第7図(A)図示の如く、n個の座
標(X1,Y1)ないし(Xn,Yn)は、その各々を中心とした小円
を描くために用いられる。この小円は、第3図図示の状
態を画面上に示すための領域131とされる。この小円の
大きさは、例えば、表示情報部9により決定される。
In this embodiment, as shown in FIG. 7 (A), n coordinates (X 1 , Y 1 ) to (X n , Y n ) are used to draw a small circle around each of them. . This small circle is an area 131 for displaying the state shown in FIG. 3 on the screen. The size of the small circle is determined by the display information unit 9, for example.

次に、状態配置の決定について、第8図を用いて説明す
る。
Next, determination of the state arrangement will be described with reference to FIG.

第8図は状態配置決定フローを示す 状態配置決定部3は、n個の状態の各々に応じてn個
のフラグ領域を確保し、全フラグを「0」(クリア)と
する。フラグが「0」の時、そのフラグに対応する状態
について未だ配置が決定されていないこと、即ち、メモ
リ部8の配置表に座標と対応されて入力されていないこ
とを示す。
FIG. 8 shows a state arrangement determination flow. The state arrangement determining unit 3 reserves n flag areas according to each of the n states and sets all flags to “0” (clear). When the flag is "0", it indicates that the arrangement has not been determined for the state corresponding to the flag, that is, that the arrangement table of the memory unit 8 has not input the corresponding coordinates.

状態配置決定部3は、メモリ部7の遷移数の表を用い
て、各状態についての遷移数の計Siを求め、適当な記
憶領域に(例えば第2図図示の如くしてメモリ部7内
に)保持する。
The state allocation determining unit 3 obtains the total number Si of transitions for each state using the table of the number of transitions in the memory unit 7, and stores it in an appropriate storage area (for example, in the memory unit 7 as shown in FIG. 2). Hold)

この後、状態配置決定部3は、フラグ及び遷移数の計S
i等を用いてメモリ部7の遷移数の表(第5図(B))を
アクセスし、以下の処理を行う。
After that, the state allocation determining unit 3 determines the total number S of flags and transitions.
The table of the number of transitions in the memory unit 7 (FIG. 5 (B)) is accessed using i or the like, and the following processing is performed.

対応するフラグが「0」の状態(初期であるから全て
の状態)の中から、遷移数の計Siが最大の状態(例え
ば状態aとする)を選択する。
A state in which the total number Si of transitions is the maximum (for example, state a) is selected from the states in which the corresponding flag is “0” (from the initial state to all states).

状態aを初期位置(X1,Y1)に割り当てる。即ち、第7
図(B)の配置表に、座標(X1,Y1)と関連づけられて状態a
が入力される。これに応じて、状態aに対応するフラグ
aが「1」とされる。フラグ「1」の時、対応する状態
の配置が終了したことを示す。
State a is assigned to the initial position (X 1 , Y 1 ). That is, the seventh
In the arrangement table of FIG. (B), the state a is associated with the coordinates (X 1 , Y 1 ).
Is entered. In response to this, the flag a corresponding to the state a is set to "1". When the flag is "1", it indicates that the arrangement of the corresponding state is completed.

対応するフラグが「0」の状態の中から、状態aとの
間の遷移数が最大及び二番目に大きい状態を選択する。
このために、メモリ部7の遷移数の表を、アドレス
(X,Y)=(Yj,a)(但し、j=1〜n)としてアクセ
スする。即ち、Yアドレスを状態aに固定し、Xアドレ
スを状態1から状態nまで順に変化させてアクセスし、
その内容(即ち状態aと各状態との間の遷移数)を読出
す。そして、最大及び二番目に大きい遷移数に対応する
状態(例えば状態b及び状態cとする)を各々選択す
る。
From the states in which the corresponding flag is “0”, the state in which the number of transitions to and from the state a is the largest and the second largest is selected.
For this purpose, the table of the number of transitions in the memory unit 7 is accessed as an address (X, Y) = (Y j , a) (where j = 1 to n). That is, the Y address is fixed to the state a, the X address is sequentially changed from the state 1 to the state n, and the access is performed.
The content (that is, the number of transitions between state a and each state) is read. Then, the states (for example, state b and state c) corresponding to the maximum and second largest transition numbers are selected, respectively.

状態b及びcを、各々、状態aの時計回り隣の位置(X
2,Y2)及び反時計回り隣の位置(Xn,Yn)に割り当てる。こ
れに応じて、フラグb及びフラグcが「1」とされる。
The states b and c are respectively moved to the position (X
2 and Y 2 ) and the position (X n , Y n ) adjacent to the counterclockwise direction. In response to this, the flags b and c are set to "1".

全フラグが「1」か否かが判断される。全フラグが
「1」の時、全ての状態の割り当てが終了したとして処
理が終了する。
It is determined whether all the flags are "1". When all the flags are "1", the processing is finished assuming that the assignment of all the states is finished.

対応するフラグが「0」の状態の中から、状態bとの
間の遷移数が最大の状態を選択する。このために、前述
と同様に、メモリ部7の遷移数の表を、アドレス(X,
Y)=(Xj,b)(但し、j=1〜n)としてアクセスし、
その内容を読出す。そして、最大の遷移数に対応する状
態(例えば状態b′とする)を選択する。
From the states in which the corresponding flag is “0”, the state in which the number of transitions with the state b is the maximum is selected. For this purpose, the table of the number of transitions in the memory unit 7 is changed to the address (X,
Y) = (X j , b) (where j = 1 to n)
Read its contents. Then, the state corresponding to the maximum number of transitions (for example, state b ′) is selected.

状態bが状態a以外の状態との間に遷移関係を持たな
い場合、遷移数が0である複数の状態の中から任意の1
つが(状態b′として)選ばれることになる。このよう
な場合、状態b′を状態bの隣接位置に割り当てること
は禁止される。メモリ部7の遷移数の表を、アドレス
(X,Y)=(b′,b)としてアクセスし、その内容
(即ち状態bとb′との間の遷移数)を読出す。読出し
た内容が0の時、上記の理由により以下の処理 を省略して状態b′の割り当てを禁止し、処理 も少なくとも1つの状態(b′)が未割り当てで残るから
省略される。
When the state b does not have a transition relation with states other than the state a, an arbitrary 1 is selected from a plurality of states in which the number of transitions is 0.
One will be chosen (as state b '). In such a case, assigning state b'to a position adjacent to state b is prohibited. The table of the number of transitions in the memory unit 7 is accessed as an address (X, Y) = (b ', b), and the content (that is, the number of transitions between states b and b') is read. When the read content is 0, the following processing is omitted for the above reason to prohibit the allocation of the state b ', and the processing is also omitted because at least one state (b') remains unallocated.

読出した内容が0でない時、状態b′を状態bの時計回
り隣の位置(X3,Y3)に割り当てる。フラグb′が「1」
とされる。
When the read content is not zero, assign the status b 'to the position of the clockwise neighboring state b (X 3, Y 3) . Flag b'is "1"
It is said that

処理と同様の処理が行われる。The same processing as the processing is performed.

状態cについて処理と同様の処理を行い、状態cとの
間で最大の遷移数を持つ状態(例えば状態c′とする)
を選択する。
The same process as the process for state c is performed, and the state having the maximum number of transitions with state c (for example, state c ′)
Select.

状態cとc′との関係について処理と同様の処理を同
様の理由で行い、状態cとc′との間の遷移数の値を知
る。
With respect to the relationship between the states c and c ′, the same processing as the processing is performed for the same reason, and the value of the number of transitions between the states c and c ′ is known.

この値が0の時、以下の処理が省略される。When this value is 0, the following processing is omitted.

前記値が0でない時、状態c′を状態cの反時計回り隣
の位置(Xn-1,Yn-1)に割り当てる。フラグc′が「1」
とされる。
When the value is not 0, the state c'is assigned to the position (X n-1 , Y n-1 ) adjacent to the state c counterclockwise. Flag c'is "1"
It is said that

状態b′及びc′について処理ないしをくり返し行
うため、処理対象をb′及びc′とする。
Since the processings b and c'are repeated, the processing targets are b'and c '.

納しておいて再度参照する)。Pay and refer again).

処理及び により読出した遷移数のいずれかが0でない時、状態
b′又はc′のいずれかが割り当てられているから、当
該状態について処理ないし又はないしが行われ
る。
When either the number of transitions read by the process or is not 0, either the state b'or the state c'is assigned, so that the state is processed and / or processed.

処理及び により読出した遷移数が共に0である時、状態b及びc
とは遷移関係のない状態について処理以下がくり返し
行われる。
When the number of transitions read by processing and is 0, states b and c
The following process is repeated for the states that have no transition relation with.

処理と同様の処理を行う。The same process as the process is performed.

フラグ「0」の状態が残っていると、その状態について
処理以下がくり返される。状態b′及びc′も対象と
して残される。
If the state of the flag "0" remains, the process and the following are repeated for that state. States b'and c'are also left as targets.

以上により、状態配置の決定が終了する。With the above, the determination of the state arrangement is completed.

なお、処理から理解されるように、未配置の状態と最
新に配置された2つの状態との間において、何ら遷移関
係が存在しない場合、未配置の状態の中から遷移数の計
Siが最大のものが選択される。そして、この状態は、
残った配置位置の両端又は中央に配置される。この後、
処理以下が行われる。
As can be understood from the processing, when there is no transition relationship between the unallocated state and the two most recently arranged states, the total number Si of transitions is the maximum among the unallocated states. Is selected. And this state is
It is arranged at both ends or the center of the remaining arrangement position. After this,
Processing The following is performed.

矢印付加部10は、各状態間に矢印を付加し、これに入
力を付加して、状態遷移図を完成する。
The arrow addition unit 10 adds an arrow between each state and adds an input to this to complete the state transition diagram.

なお、ある状態がある入力により自己に戻る矢印を有す
る場合、この矢印による遷移数を遷移数の計Siから求
める時に算入しないようにしてもよい。当該矢印は半径
Rの円の外側に表示される。
When a certain state has an arrow that returns to itself due to an input, the number of transitions by this arrow may not be included in the calculation of the total number Si of transitions. The arrow is displayed outside the circle of radius R.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、状態遷移表(又
は関数)に基づいて各状態間の関係をグラフ化して示す
状態遷移図表示処理方式において、遷移数を求めてこれ
を利用することによって、遷移数の大きい関係にある状
態を隣接させ小さい関係にある状態を隣接させないよう
にして、状態遷移を示す矢印の交わりを少なくして見易
くした状態遷移図を得ることができ、プログラムや順序
回路の設計、解析の効率を向上することができる。
As described above, according to the present invention, the number of transitions is obtained and used in the state transition diagram display processing method that graphically shows the relationship between states based on the state transition table (or function). This makes it possible to obtain a state transition diagram in which the states having a large number of transitions are adjacent to each other and the states having a small number of transitions are not adjacent to each other to reduce the intersection of the arrows indicating the state transitions to make it easier to see. The efficiency of circuit design and analysis can be improved.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の原理構成図、 第2図は遷移数の表を示す図、 第3図は本発明の作用説明図、 第4図は実施例説明図、 第5図はメモリ部説明図、 第6図は表示位置決定フローを示す図、 第7図は表示位置説明図、 第8図は配置位置決定フローを示す図、 第9図は状態遷移表を示す図、 第10図は従来技術説明図、 1は中央処理装置及びメモリを含む処理装置、2は遷移
数決定部、3は状態配置決定部、4は表示位置決定部、
5は状態数カウント部、6ないし8はメモリ部、9は表
示情報部、10は矢印付加部、11は表示制御部、12
はグラフィックライブラリ、13は表示装置。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a diagram showing a table of the number of transitions, FIG. 3 is an operation explanatory diagram of the present invention, FIG. 4 is an explanatory diagram of an embodiment, and FIG. FIG. 6, FIG. 6 is a diagram showing a display position determination flow, FIG. 7 is a display position explanatory diagram, FIG. 8 is a diagram showing an arrangement position determination flow, FIG. 9 is a diagram showing a state transition table, and FIG. 1 is a processing device including a central processing unit and a memory, 2 is a transition number determination unit, 3 is a state arrangement determination unit, 4 is a display position determination unit,
Reference numeral 5 is a state number counting unit, 6 to 8 are memory units, 9 is a display information unit, 10 is an arrow addition unit, 11 is a display control unit, and 12 is a display control unit.
Is a graphic library, and 13 is a display device.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の状態の各々について当該状態と他の
状態との間の相互の遷移数を求めてメモリに格納する遷
移数決定処理部(2)と、 前記状態の数に応じて円周上の表示位置を決定する表示
位置決定処理部(4)と、 前記状態を前記表示位置に対応させてその配置位置を決
定する状態配置決定処理部(3)とを備え、 前記状態配置決定処理部(3)はメモリ上に各状態に対
応して当該状態の配置位置の決定の有無を示すフラグ領
域を確保し、メモリに格納された各領域の前記遷移数の
中で最大の遷移数を有する状態を第1番目に選択して初
期表示位置に割り当てるとともに当該選択された状態の
フラグを決定済状態に変更し、しかる後、フラグが配置
未決定を示している非選択の残りの状態の中で前記決定
済状態と遷移関係を有し、かつ最大およびその次の大き
さの遷移数を有する2つの状態を選択し、先に選択され
た状態の表示位置の両側の隣接する表示位置に当該2つ
の状態をそれぞれ割り当てるとともに当該2つの選択さ
れた状態のフラグを決定済状態に変更し、以降は残りの
表示位置未決定の状態の中で直前に決定された状態と遷
移関係を有し、かつ遷移数の最も大きい状態を選択して
順次、状態表示未決定の表示位置方向に表示位置を決定
するよう処理する ことを特徴とする状態遷移図表示処理方式。
1. A transition number determination processing unit (2) for obtaining the number of mutual transitions between the state and another state for each of a plurality of states and storing the number in a memory, and a circle according to the number of the states. A display position determination processing unit (4) for determining a display position on the circumference, and a state arrangement determination processing unit (3) for determining the arrangement position by associating the state with the display position, the state arrangement determination The processing unit (3) secures a flag area indicating whether or not the arrangement position of the state is determined corresponding to each state on the memory, and the maximum number of transitions among the number of transitions of each area stored in the memory. Is selected first and assigned to the initial display position, and the flag of the selected state is changed to the determined state, and thereafter, the unselected remaining state in which the flag indicates that the placement is undecided Has a transition relation with the determined state in The two states having the maximum and the next largest number of transitions are selected, and the two states are respectively assigned to adjacent display positions on both sides of the display position of the previously selected state, and the two selected states are selected. Change the state flag to the determined state, and thereafter have a transition relationship with the state determined immediately before among the remaining display position undetermined states, and select the state with the largest number of transitions sequentially, State transition diagram display processing method characterized by processing so as to determine the display position in the direction of the display position where the state display has not been determined.
JP63115999A 1988-05-14 1988-05-14 State transition diagram display processing method Expired - Lifetime JPH061484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63115999A JPH061484B2 (en) 1988-05-14 1988-05-14 State transition diagram display processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63115999A JPH061484B2 (en) 1988-05-14 1988-05-14 State transition diagram display processing method

Publications (2)

Publication Number Publication Date
JPH01287779A JPH01287779A (en) 1989-11-20
JPH061484B2 true JPH061484B2 (en) 1994-01-05

Family

ID=14676340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63115999A Expired - Lifetime JPH061484B2 (en) 1988-05-14 1988-05-14 State transition diagram display processing method

Country Status (1)

Country Link
JP (1) JPH061484B2 (en)

Also Published As

Publication number Publication date
JPH01287779A (en) 1989-11-20

Similar Documents

Publication Publication Date Title
EP0365456A2 (en) Simplified CAD parametric macroinstruction capability including variational geometrics feature
JP2541539B2 (en) Graphic processing device
SE461814B (en) QUICK Z-BUFFER WITH DYNAMIC DIRECT MEMORY FOR A COMPUTER DISPLAY SYSTEM
US5692163A (en) Process system which generates sets of output data from sets of predetermined input data with duplicate data
JP4240543B2 (en) Display device
JPH061484B2 (en) State transition diagram display processing method
JPS635795B2 (en)
JP2912132B2 (en) Dimension line entry method
JP3305395B2 (en) Figure division device
JP3298632B2 (en) Screen input method
JP3815316B2 (en) Memory control device
JPH02249006A (en) Programmable controller
WO2026069419A1 (en) Simulation device, control method for simulation device, and program
JPH07325931A (en) Image processing device
JPS6045287A (en) Clipping processor
JP2605609B2 (en) Dot display processing device
JPS6350714B2 (en)
JP3187035B2 (en) Memory access circuit
JP3009152B2 (en) Image processing device
JPS6128152B2 (en)
EP0163872A2 (en) Method of correlating on straight lines in an interactive display system
JPH03251921A (en) Back-up device for software development
JPH02153392A (en) Vector figure display method
JP2002301265A (en) Rotary movement type puzzle game machine
JPH01147678A (en) Mask control circuit for memory

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term