JP2007079956A - Information processing method and device, recording medium and program - Google Patents

Information processing method and device, recording medium and program Download PDF

Info

Publication number
JP2007079956A
JP2007079956A JP2005267170A JP2005267170A JP2007079956A JP 2007079956 A JP2007079956 A JP 2007079956A JP 2005267170 A JP2005267170 A JP 2005267170A JP 2005267170 A JP2005267170 A JP 2005267170A JP 2007079956 A JP2007079956 A JP 2007079956A
Authority
JP
Japan
Prior art keywords
state
transition
editing
frame
information
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.)
Withdrawn
Application number
JP2005267170A
Other languages
Japanese (ja)
Inventor
Koichi Matsuda
晃一 松田
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2005267170A priority Critical patent/JP2007079956A/en
Publication of JP2007079956A publication Critical patent/JP2007079956A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To draw a transition diagram while recognizing the state of a starting point correctly. <P>SOLUTION: An editing part 12 edits state transition information including action in each state, an event at transition time in each state and information on a transition direction indicating which state is transited to by an event. A transition generation part 44 for editing generates a transition for editing from a state frame representing a starting point on a state transition diagram generated based on state transition information edited by the editing part 12. An accompanying state frame generation part 43 generates a copy frame which is a copy of the state frame of the starting point at a position near a top position of the transition for editing. This invention can be applied to a state machine. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は情報処理方法および装置、記録媒体、並びにプログラムに関し、特に、トランジションを接続する際、起点となるステートを認識しやすくできるようにした情報処理方法および装置、記録媒体、並びにプログラムに関する。   The present invention relates to an information processing method and apparatus, a recording medium, and a program, and more particularly, to an information processing method and apparatus, a recording medium, and a program that make it easy to recognize a starting state when connecting transitions.

アプリケーションソフトウェアプログラムの開発を支援する開発ツールが一般に普及しつつある。例えば、オブジェクト指向型のプログラムの開発を支援するものがある(例えば、特許文献1参照)。   Development tools that support the development of application software programs are becoming increasingly popular. For example, there is one that supports the development of an object-oriented program (for example, see Patent Document 1).

また、UML(Unified Modeling Language)に代表される状態遷移図を用いたアプリケーションソフトウェアプログラムのUI(User Interface)の開発ツールも提案されている。   Also, a UI (User Interface) development tool for an application software program using a state transition diagram represented by UML (Unified Modeling Language) has been proposed.

状態遷移図は、各状態毎に実行されるべき動作が論理的に記述されるとともに、各状態において発生する所定のイベントにより他の状態に遷移する方向が示された図である。上述したアプリケーションソフトウェアプログラムのUIの開発ツールは、プログラムを状態遷移図として表示させると共に、その表示された状態遷移図そのものが操作されると、状態遷移図の操作内容をプログラムに反映させることで、プログラムを編集するものである。   The state transition diagram is a diagram in which an operation to be executed for each state is logically described, and a direction in which a transition is made to another state by a predetermined event occurring in each state is shown. The UI development tool of the application software program described above displays the program as a state transition diagram, and when the displayed state transition diagram itself is operated, the operation content of the state transition diagram is reflected in the program, Edit the program.

特開平6−110767号公報JP-A-6-110767

ところで、上述したような開発ツールにおいては、状態を矩形状の枠(ステート枠)で表現し、第1の状態から第2の状態に遷移することを示すため、第1の状態を示すステート枠と、第2の状態を示すステート枠とを矢印状のトランジションにより結んでいる。トランジションは、矢印の基点となるステート枠の状態から、終点となるステート枠の状態に状態が遷移することを示し、トランジションの脇には、遷移のきっかけの動作であるイベントが表示される。   By the way, in the development tool as described above, the state is expressed by a rectangular frame (state frame), and the state frame indicating the first state is shown to indicate that the state is shifted from the first state to the second state. And a state frame indicating the second state are connected by an arrow-like transition. The transition indicates that the state transitions from the state of the state frame that is the base point of the arrow to the state of the state frame that is the end point, and an event that is an operation that triggers the transition is displayed beside the transition.

上述した開発ツールにおいては、ポインタを用いて、トランジションを状態遷移図に直接書き込む。より具体的には、起点にしたい状態のステート枠上にポインタを移動させ、ドラッグすると矢印の描画が開始され、ドラッグしたまま終点となる状態のステート枠上に移動され、ポインタが開放されると、矢印の描画が終了するものである。   In the development tool described above, the transition is directly written in the state transition diagram using the pointer. More specifically, move the pointer over the state frame you want to start from and drag to start drawing an arrow, move to the state frame that will be the end point while dragging, and release the pointer. This completes the drawing of the arrow.

しかしながら、状態遷移図は、表示画面上に必ずしもその全景が表示されるわけではないので、トランジションの描画を開始したステート枠と、終点のステート枠とが同一画面上に表示されないことがある。このような場合、トランジションを描画する先頭位置が画面からはみ出すような操作をすると、これに対応して、状態遷移図がスクロールする構成となり、ポインタのみがスクロールにより状態遷移図上を移動することになる。   However, in the state transition diagram, since the entire view is not necessarily displayed on the display screen, the state frame where the drawing of the transition is started and the end state frame may not be displayed on the same screen. In such a case, if an operation is performed such that the start position for drawing the transition protrudes from the screen, the state transition diagram scrolls correspondingly, and only the pointer moves on the state transition diagram by scrolling. Become.

この際、スクロールにより起点となるステート枠の状態が、画面から消えるため、操作の途中で起点となるステートを忘れてしまうようなことがあると、トランジションの起点と終点となる状態を誤って結んでしまったりすることがあった。また、操作の途中で起点となるステートを忘れてしまった場合、より正確にトランジションを描画させるには、一度、トランジションの描画を中止し、起点となる状態のステート枠が表示された位置まで状態遷移図をスクロールして再度確認する必要があり、トランジションの描画を面倒なものとしていた。   At this time, since the state of the state frame that is the starting point disappears from the screen by scrolling, if the state that becomes the starting point is forgotten during the operation, the state that becomes the starting point and ending point of the transition is mistakenly connected. There were times when I was lost. In addition, if you forget the starting state in the middle of the operation, in order to draw the transition more accurately, stop drawing the transition once and return to the position where the state frame of the starting state is displayed. It was necessary to scroll the transition diagram and check it again, which made the drawing of transitions cumbersome.

本発明は、このような状況に鑑みてなされたものであり、特に、トランジションを描画する際、起点となる状態を正確に認識しながら描画できるようにするものである。   The present invention has been made in view of such a situation, and in particular, when a transition is drawn, the drawing can be performed while accurately recognizing the starting state.

本発明の一側面の情報処理方法は、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する。   An information processing method according to an aspect of the present invention includes a state transition including an operation in each state, an event at the time of transition in each state, and information on a transition direction indicating which other state is to be transitioned by the event. An editing step for editing information, a display step for displaying a state transition diagram based on the state transition information edited by the processing of the editing step, and an operation for operating the state transition diagram displayed by the processing of the display step An editing transition generation step for generating an editing transition from a state frame indicating a state as a starting point on the state transition diagram according to an operation content in the processing of the operation step, and a head of the editing transition Copy frame generation that generates a copy frame that is a copy of the starting state frame at a position close to the position If the start position of the editing transition is connected to a state frame different from the starting state according to the operation content in the operation step processing, the editing step processing is The state transition information is edited so that a state different from the starting state is a transition destination in the starting state.

前記複写枠生成ステップの処理には、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を生成させるようにすることができる。   In the process of generating the copy frame, a copy frame that is a copy of the starting state frame can be generated at a position near a predetermined position with respect to the start position of the editing transition.

前記複写枠の前記起点の状態枠に対する加工手法を設定する設定ステップをさらに含ませるようにすることができる。   A setting step for setting a processing method for the state frame of the origin of the copy frame may be further included.

前記設定ステップの処理には、前記複写枠の前記起点の状態枠に対する、前記複写枠の透明度、前記編集用トランジションの先頭位置から複写枠の表示位置までの距離、前記複写枠の前記起点の状態枠に対する縮小率、または前記複写枠の表示色を含む加工手法を設定させるようにすることができる。   The processing of the setting step includes the transparency of the copy frame relative to the starting state frame of the copy frame, the distance from the start position of the editing transition to the display position of the copy frame, the state of the starting point of the copy frame A processing method including a reduction ratio with respect to the frame or a display color of the copy frame can be set.

前記複写枠生成ステップには、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を前記設定ステップの処理で設定された加工手法により加工して生成させるようにすることができる。   In the copy frame generation step, a copy frame, which is a copy of the starting state frame, is positioned near a predetermined position with respect to the start position of the editing transition by the processing method set in the setting step processing. It can be generated by processing.

本発明の一側面の情報処理装置は、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集手段と、前記編集手段により編集された状態遷移情報に基づいて、状態遷移図を表示する表示手段と、前記表示手段により表示された状態遷移図を操作する操作手段と、前記操作手段における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成手段と、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成手段とを含み、前記操作手段における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する。   An information processing apparatus according to an aspect of the present invention includes a state transition including information on an operation in each state, an event at the time of transition in each state, and a transition direction indicating which other state is to be transitioned by the event Editing means for editing information; display means for displaying a state transition diagram based on state transition information edited by the editing means; operating means for operating the state transition diagram displayed by the display means; An editing transition generation unit that generates an editing transition from a state frame indicating a state that is a starting point on the state transition diagram according to an operation content in the operation unit, and a proximity to the start position of the editing transition A copy frame generating means for generating a copy frame that is a copy of the starting state frame at the position, and responding to the operation contents of the operation means. When the leading position of the editing transition is connected to a state frame that is different from the state that is the starting point, the processing of the editing step is a state that is different from the state that is the starting point. The state transition information is edited so as to be a transition destination in the state.

本発明の一側面の記録媒体のプログラムは、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、
前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する。
The recording medium program according to one aspect of the present invention includes an operation in each state, an event at the time of transition in each state, and information on a transition direction indicating which other state is to be transitioned by the event An editing step for editing transition information, a display step for displaying a state transition diagram based on the state transition information edited by the processing of the editing step, and a state transition diagram displayed by the processing of the display step An editing step for generating an editing transition from a state frame indicating a state as a starting point on the state transition diagram according to the operation content in the processing of the operating step, and an editing transition generation step A copy frame that is a copy of the starting state frame is generated at a position near the head position. And a frame generation step,
If the start position of the editing transition is connected to a state frame different from the starting state according to the operation content in the operating step processing, the editing step processing is the starting point. The state transition information is edited so that a state different from the state becomes a transition destination in the starting state.

本発明の一側面のプログラムは、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する処理をコンピュータに実行させる。   The program according to one aspect of the present invention includes state transition information including information on an operation in each state, an event at the time of transition in each of the states, and a transition direction indicating which of the other states is to be transitioned by the event. An editing step for editing, a display step for displaying a state transition diagram based on the state transition information edited by the process of the editing step, and an operation step for operating the state transition diagram displayed by the process of the display step; An editing transition generation step for generating an editing transition from a state frame indicating a state as a starting point on the state transition diagram according to an operation content in the processing of the operation step, and at the head position of the editing transition On the other hand, a copy frame generation thread for generating a copy frame which is a copy of the starting state frame at a position in the vicinity. And when the head position of the editing transition is connected to a state frame that is different from the starting state according to the operation content in the operation step processing, the editing step processing Causes the computer to execute a process of editing the state transition information so that a state different from the starting state is set as a transition destination in the starting state.

本発明の一側面の情報処理方法および装置、並びにプログラムにおいては、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報が編集され、前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図が表示され、表示された状態遷移図が操作され、操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションが生成され、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠が生成され、操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報が編集される。   In the information processing method and apparatus, and the program according to one aspect of the present invention, an operation in each state, an event at the time of transition in each of the states, and a transition direction indicating which of the other states is transitioned by the event The state transition information including the information is edited, the state transition diagram is displayed based on the state transition information edited by the processing of the editing step, the displayed state transition diagram is operated, and according to the operation content, An editing transition is generated from the state frame indicating the starting state on the state transition diagram, and a copy frame that is a copy of the starting state frame is located at a position near the start position of the editing transition. Depending on the generated operation, the start position of the editing transition is connected to a state frame that is different from the starting state. If the state different from the state in which the said starting point, the state transition information is edited to a transition destination in a state serving as the start point.

情報処理装置は、独立した装置であっても良いし、情報処理装置の情報処理を行うブロックであっても良い。   The information processing apparatus may be an independent apparatus or a block that performs information processing of the information processing apparatus.

以上のように、本発明の一側面によれば、トランジションを描画する際、起点となる状態を正確に認識しながら描画することが可能となる。   As described above, according to one aspect of the present invention, when a transition is drawn, it is possible to draw while accurately recognizing a starting state.

以下に本発明の実施の形態を説明するが、本発明の構成要件と、発明の詳細な説明に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、発明の詳細な説明に記載されていることを確認するためのものである。従って、発明の詳細な説明中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. Correspondences between the configuration requirements of the present invention and the embodiments described in the detailed description of the present invention are exemplified as follows. This description is to confirm that the embodiments supporting the present invention are described in the detailed description of the invention. Accordingly, although there are embodiments that are described in the detailed description of the invention but are not described here as embodiments corresponding to the constituent elements of the present invention, It does not mean that the embodiment does not correspond to the configuration requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.

本発明の一側面の情報処理方法およびプログラムは、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップ(例えば、図4のステップS2,S4,S6の処理)と、前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップ(例えば、図16のステップS141の処理)と、前記表示ステップの処理により表示された状態遷移図を操作する操作ステップ(例えば、図6のステップS41,S47,S55の処理)と、前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップ(例えば、図6のステップS52の処理)と、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップ(例えば、図6のステップS53の処理)とを含み、前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する(例えば、図6のステップS63の処理)。   An information processing method and program according to an aspect of the present invention includes information on an operation in each state, an event at the time of transition in each state, and information on a transition direction indicating which other state is to be transitioned by the event. An editing step for editing the state transition information (for example, steps S2, S4, and S6 in FIG. 4) and a display step for displaying a state transition diagram based on the state transition information edited by the processing in the editing step ( For example, the processing in step S141 in FIG. 16), the operation step for operating the state transition diagram displayed by the processing in the display step (for example, the processing in steps S41, S47, S55 in FIG. 6), In accordance with the operation content in the process, the editing transition from the state frame indicating the starting state on the state transition diagram. An edit transition generation step (for example, the process of step S52 in FIG. 6) for generating an image and a copy frame that is a copy of the starting state frame at a position near the start position of the edit transition And a copy frame generation step (for example, the process of step S53 in FIG. 6), and the start position of the editing transition is different from the starting state in accordance with the operation content in the operation step process When the state transition information is connected, the processing of the editing step edits the state transition information so that a state different from the starting state is a transition destination in the starting state (for example, FIG. Step 6 of step S63).

前記複写枠生成ステップ(例えば、図6のステップS53の処理)の処理には、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を生成させるようにすることができる。   In the copy frame generation step (for example, the process of step S53 in FIG. 6), a copy frame that is a copy of the starting state frame at a predetermined position relative to the start position of the editing transition. Can be generated.

前記複写枠の前記起点の状態枠に対する加工手法を設定する設定ステップ(例えば、図17のステップS164の処理)をさらに含ませるようにすることができる。   It is possible to further include a setting step (for example, the process of step S164 in FIG. 17) for setting a processing technique for the starting state frame of the copy frame.

前記設定ステップの処理(例えば、図17のステップS164の処理)には、前記複写枠の前記起点の状態枠に対する、前記複写枠の透明度、前記編集用トランジションの先頭位置から複写枠の表示位置までの距離、前記複写枠の前記起点の状態枠に対する縮小率、または前記複写枠の表示色を含む加工手法を設定させるようにすることができる。   The processing of the setting step (for example, the processing of step S164 in FIG. 17) includes the transparency of the copy frame with respect to the starting state frame of the copy frame, from the start position of the editing transition to the display position of the copy frame. The processing method including the distance, the reduction ratio of the copy frame with respect to the state frame of the starting point, or the display color of the copy frame can be set.

前記複写枠生成ステップ(例えば、図9のステップS81,S84の処理)には、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を前記設定ステップの処理で設定された加工手法により加工して生成させるようにすることができる。   In the copy frame generation step (for example, the processing in steps S81 and S84 in FIG. 9), a copy frame that is a copy of the starting state frame at a predetermined position relative to the start position of the editing transition. Can be generated by processing using the processing method set in the processing of the setting step.

本発明の一側面の情報処理装置は、それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集手段(例えば、図1の編集部12)と、前記編集手段により編集された状態遷移情報に基づいて、状態遷移図を表示する表示手段(例えば、図1の表示部18)と、前記表示手段により表示された状態遷移図を操作する操作手段(例えば、図1の操作部11)と、前記操作手段における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成手段(例えば、図1の編集用トランジション生成部44)と、前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成手段(例えば、図1の随伴ステート枠生成部43)とを含み、前記操作手段における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する。   An information processing apparatus according to an aspect of the present invention includes a state transition including information on an operation in each state, an event at the time of transition in each state, and a transition direction indicating which other state is to be transitioned by the event Editing means for editing information (for example, the editing section 12 in FIG. 1) and display means for displaying a state transition diagram based on the state transition information edited by the editing means (for example, the display section 18 in FIG. 1). And an operation means (for example, the operation unit 11 in FIG. 1) that operates the state transition diagram displayed by the display means, and a state that is a starting point on the state transition diagram according to the operation content in the operation means. Editing transition generation means for generating an editing transition from the state frame shown (for example, the editing transition generation unit 44 in FIG. 1), and the editing transition Copy frame generation means (for example, the accompanying state frame generation unit 43 in FIG. 1) that generates a copy frame that is a copy of the starting state frame at a position in the vicinity of the start position; Depending on the contents, when the start position of the editing transition is connected to a state frame that is different from the state that is the starting point, the processing of the editing step has a state that is different from the state that is the starting point. The state transition information is edited so as to be a transition destination in the starting state.

このように、状態遷移図の編集においてトランジションの遷移先まで引く際、トランジションの先頭位置の近傍付近に、トランジションの起点となる状態のステート枠が表示されることにより、起点となる状態を認識しつつ、トランジションを描画することが可能となる。従って、仮に、状態遷移図がスクロールするなどして、実際の起点となる状態のステート枠が見えない状態になっても、正確に起点となる状態を認識しながらトランジションを描画することが可能となる。   In this way, when drawing to the transition transition destination in editing the state transition diagram, the state frame that is the starting point of the transition is displayed near the beginning of the transition, thereby recognizing the starting state. However, it is possible to draw a transition. Therefore, even if the state transition diagram scrolls and the state frame of the actual starting state becomes invisible, it is possible to draw the transition while accurately recognizing the starting state. Become.

図1は、本発明を適用した状態遷移プログラム編集装置1の一実施の形態の構成を示す図である。   FIG. 1 is a diagram showing a configuration of an embodiment of a state transition program editing apparatus 1 to which the present invention is applied.

状態遷移プログラム編集装置1は、アプリケーションソフトウェアプログラムにおけるUIのプログラムの開発を目的とした編集装置であり、各状態における動作、それぞれの状態における遷移時のイベント、および各イベント毎にどの他の状態に遷移するかを示す遷移方向の情報を含む状態遷移情報(ステートデータ)に基づいて、状態遷移図を生成すると共に、生成した状態遷移図を表示する。さらに、状態遷移プログラム編集装置1は、表示した状態遷移図が操作されることにより変更されると、変更された状態遷移図に対応して、状態遷移情報を更新する。   The state transition program editing device 1 is an editing device for the purpose of developing a UI program in an application software program. The operation in each state, the event at the time of transition in each state, and any other state for each event. A state transition diagram is generated based on state transition information (state data) including information on a transition direction indicating whether a transition is made, and the generated state transition diagram is displayed. Furthermore, when the displayed state transition diagram is changed by operating the state transition program editing device 1, the state transition program editing device 1 updates the state transition information corresponding to the changed state transition diagram.

操作部11は、マウスやキーボードなどから構成されており、状態遷移プログラム編集装置1を操作するユーザによる操作に対応する信号を発生して編集部12に供給する。   The operation unit 11 includes a mouse, a keyboard, and the like. The operation unit 11 generates a signal corresponding to an operation by a user who operates the state transition program editing apparatus 1 and supplies the signal to the editing unit 12.

編集部12は、ステート編集部31、トランジション編集部32、およびスクリプト編集部33より構成されており、操作部11より供給されてくる信号に基づいて、状態遷移情報(ステートデータ)を編集する。ステートデータは、各状態(ステート)毎に動作を示す情報(スクリプト情報)およびイベントに応じて遷移する状態の遷移先の情報(トランジション情報)が記述されている。   The editing unit 12 includes a state editing unit 31, a transition editing unit 32, and a script editing unit 33. The editing unit 12 edits state transition information (state data) based on a signal supplied from the operation unit 11. In the state data, information (script information) indicating an operation for each state (state) and information on a transition destination (transition information) of a state that changes according to an event are described.

ステート編集部31は、状態(ステート)の新規生成、および表示位置や大きさなどの情報を編集し、編集結果をステートデータ格納部13に格納させる。トランジション編集部32は、各状態における動作が実行されている間に発生するイベントに応じて、遷移する遷移先となる状態の情報を編集し、ステートデータ格納部13に格納させる。より詳細には、トランジション編集部32は、操作部11の操作内容に応じて、トランジションを矢印として描画しながら編集する。この際、トランジション編集部32は、描画情報を状態遷移図生成部14に供給する。スクリプト編集部33は、各状態における動作内容を編集し、ステートデータ格納部13に格納させる。   The state editing unit 31 edits information such as new generation of a state (state) and display position and size, and stores the edited result in the state data storage unit 13. The transition editing unit 32 edits information on the state that is the transition destination to which the transition occurs in accordance with an event that occurs while the operation in each state is being executed, and stores the information in the state data storage unit 13. More specifically, the transition editing unit 32 performs editing while drawing the transition as an arrow according to the operation content of the operation unit 11. At this time, the transition editing unit 32 supplies the drawing information to the state transition diagram generation unit 14. The script editing unit 33 edits the operation content in each state and stores it in the state data storage unit 13.

ステートデータ格納部13は、各状態(ステート)毎に編集部12によりトランジション情報やスクリプト情報が編集されたステートデータを格納し、必要に応じて状態遷移図生成部14および状態遷移エンジン15に供給する。   The state data storage unit 13 stores state data in which transition information and script information are edited by the editing unit 12 for each state (state), and supplies the state data to the state transition diagram generation unit 14 and the state transition engine 15 as necessary. To do.

状態遷移図生成部14は、ステート枠生成部41、トランジション生成部42、随伴ステート枠生成部43、編集用トランジション生成部44、および随伴ステート枠設定データ設定部45から構成されており、ステートデータ格納部13に格納されているステートデータを読み出し、状態遷移図を生成し、表示制御部17に供給する。ステート枠生成部41は、各状態毎に矩形の枠(ステート枠)を生成すると共に、状態遷移エンジン15より供給される今現在の状態の情報に基づいて、今現在の状態を示すステート枠内の表示色を変化させて表示する。トランジション42は、各状態における動作中に発生するイベント毎に遷移先を示す矢印を生成する。   The state transition diagram generation unit 14 includes a state frame generation unit 41, a transition generation unit 42, an accompanying state frame generation unit 43, an editing transition generation unit 44, and an accompanying state frame setting data setting unit 45. The state data stored in the storage unit 13 is read, a state transition diagram is generated, and supplied to the display control unit 17. The state frame generation unit 41 generates a rectangular frame (state frame) for each state, and based on the current state information supplied from the state transition engine 15, the state frame generation unit 41 displays the current state in the state frame. Change the display color of and display. The transition 42 generates an arrow indicating a transition destination for each event that occurs during operation in each state.

編集用トランジション生成部44は、編集部12より供給される編集中のトランジションの情報に基づいて、起点となる状態のステート枠から引かれている編集用トランジションを生成する。   The editing transition generation unit 44 generates an editing transition drawn from the state frame that is the starting point based on the information about the transition being edited supplied from the editing unit 12.

随伴ステート枠生成部43は、編集用トランジションの先頭位置に対して、近傍の所定位置にトランジションの起点となる状態のステート枠のコピーを生成する。この際、生成されるコピーは、予め随伴ステート枠設定データ設定部45により設定された随伴ステート枠設定データに基づいて生成される。   The accompanying state frame generation unit 43 generates a copy of the state frame in a state that is the starting point of the transition at a predetermined position near the start position of the editing transition. At this time, the generated copy is generated based on the accompanying state frame setting data set by the accompanying state frame setting data setting unit 45 in advance.

状態遷移エンジン15は、ステートデータ格納部13に格納されているステートデータを読み出すと共に、イベント検出部19より供給されるイベントの情報に基づいて、今現在のステートを検索し、検索結果である今現在のステートを示す情報を状態遷移図生成部14および状態動作実行部16に供給する。   The state transition engine 15 reads out the state data stored in the state data storage unit 13 and searches the current state based on the event information supplied from the event detection unit 19 and obtains the current search result. Information indicating the current state is supplied to the state transition diagram generation unit 14 and the state operation execution unit 16.

状態動作実行部16は、状態遷移エンジン15より供給される今現在の状態のステートデータに基づいて、現在の状態の動作を実行し、実行結果を表示制御部17に供給する。   The state operation execution unit 16 executes the operation of the current state based on the state data of the current state supplied from the state transition engine 15 and supplies the execution result to the display control unit 17.

表示制御部17は、状態遷移図表示制御部51、および状態動作表示制御部52より構成され、表示部18に表示する表示画面を生成して表示させる。   The display control unit 17 includes a state transition diagram display control unit 51 and a state operation display control unit 52, and generates and displays a display screen to be displayed on the display unit 18.

状態遷移図表示制御部51は、状態遷移図生成部14より供給されてくる状態遷移図の情報に基づいて、例えば、図2の状態遷移図表示画面111を生成し、表示を制御する。図2においては、状態A(State A:ステートA)を示すステート枠131、状態B(State B:ステートB)を示すステート枠132、状態C(State C:ステートC)を示すステート枠133、および、状態D(State D:ステートD)を示すステート枠134が示されており、それぞれが、トランジション141乃至148で結ばれている。トランジション141乃至148は、それぞれ状態間を遷移する方向とイベントを示している。   The state transition diagram display control unit 51 generates, for example, the state transition diagram display screen 111 of FIG. 2 based on the information of the state transition diagram supplied from the state transition diagram generation unit 14, and controls the display. In FIG. 2, a state frame 131 indicating a state A (State A), a state frame 132 indicating a state B (State B), a state frame 133 indicating a state C (State C), In addition, a state frame 134 indicating a state D (State D) is shown, and each is connected by transitions 141 to 148. Transitions 141 to 148 indicate the direction and event of transition between states.

より詳細には、トランジション141は、「KeyPress_x」と示され、矢印が状態Aから状態Dに向って表示されており、状態Aの動作が実行されている場合、操作部11の「x」のキーが操作されるというイベントが発生すると、状態Aから状態Bに遷移することを示している。   More specifically, the transition 141 is indicated as “KeyPress_x”, the arrow is displayed from the state A to the state D, and when the operation of the state A is executed, the “x” of the operation unit 11 is displayed. When an event that a key is operated occurs, the state A changes to the state B.

同様に、トランジション142は、「KeyPress_2」と示され、矢印が状態Aから状態Bに向って表示されており、状態Aの動作が実行されている場合、操作部11の「2」のキーが操作されるというイベントが発生すると、状態Aから状態Bに遷移することを示している。   Similarly, the transition 142 is indicated as “KeyPress_2”, the arrow is displayed from the state A to the state B, and when the operation of the state A is executed, the key “2” of the operation unit 11 is displayed. When an event to be operated occurs, the state A transitions to the state B.

また、トランジション143は、「KeyPress_3」と示され、矢印が状態Bから状態Aに向って表示されており、状態Bの動作が実行されている場合、操作部11の「3」のキーが操作されるというイベントが発生すると、状態Bから状態Aに遷移することを示している。   In addition, the transition 143 is indicated as “KeyPress_3”, the arrow is displayed from the state B to the state A, and when the operation of the state B is executed, the “3” key of the operation unit 11 is operated. When an event occurs, the state B transitions to the state A.

さらに、トランジション144は、「KeyPress_b」と示され、矢印が状態Bから状態Cに向って表示されており、状態Bの動作が実行されている場合、操作部11の「b」のキーが操作されるというイベントが発生すると、状態Bから状態Cに遷移することを示している。   Further, the transition 144 is indicated as “KeyPress_b”, the arrow is displayed from the state B to the state C, and when the operation of the state B is executed, the “b” key of the operation unit 11 is operated. When an event occurs, the state B changes to the state C.

また、トランジション145は、「KeyPress_a」と示され、矢印が状態Cから状態Bに向って表示されており、状態Cの動作が実行されている場合、操作部11の「a」のキーが操作されるというイベントが発生すると、状態Cから状態Bに遷移することを示している。   In addition, the transition 145 is indicated as “KeyPress_a”, the arrow is displayed from the state C to the state B, and when the operation of the state C is executed, the “a” key of the operation unit 11 is operated. When an event occurs, the state C changes to the state B.

さらに、トランジション146は、「KeyPress_1」と示され、矢印が状態Cから状態Dに向って表示されており、状態Cの動作が実行されている場合、操作部11の「1」のキーが操作されるというイベントが発生すると、状態Cから状態Dに遷移することを示している。   Further, the transition 146 is indicated as “KeyPress_1”, the arrow is displayed from the state C to the state D, and when the operation of the state C is executed, the key “1” of the operation unit 11 is operated. When an event occurs, the state C changes to the state D.

また、トランジション147は、「KeyPress_0」と示され、矢印が状態Dから状態Cに向って表示されており、状態Dの動作が実行されている場合、操作部11の「0」のキーが操作されるというイベントが発生すると、状態Dから状態Cに遷移することを示している。   The transition 147 is indicated as “KeyPress_0”, the arrow is displayed from the state D to the state C, and when the operation of the state D is executed, the “0” key of the operation unit 11 is operated. When an event occurs, the state D is transitioned to the state C.

さらに、トランジション148は、「KeyPress_z」と示され、矢印が状態Dから状態Aに向って表示されており、状態Dの動作が実行されている場合、操作部11の「z」のキーが操作されるというイベントが発生すると、状態Dから状態Aに遷移することを示している。   Further, the transition 148 is indicated as “KeyPress_z”, the arrow is displayed from the state D to the state A, and when the operation of the state D is executed, the “z” key of the operation unit 11 is operated. When an event occurs, the state D changes to the state A.

図1の説明に戻る。   Returning to the description of FIG.

状態動作表示制御部52は、状態動作実行部16より供給される状態動作の実行結果に基づいて、例えば、図2で示されるような状態動作画面112を生成し、表示を制御する。   The state operation display control unit 52 generates a state operation screen 112 as shown in FIG. 2 based on the execution result of the state operation supplied from the state operation execution unit 16, and controls the display.

表示部18は、CRT(Cathode Ray Tube)またはLCD(Liquid Crystal Display)などから構成され、表示制御部17により生成された画面を表示する。   The display unit 18 includes a CRT (Cathode Ray Tube) or an LCD (Liquid Crystal Display), and displays a screen generated by the display control unit 17.

次に、図3を参照して、ステートデータ格納部13に格納されるステート情報について説明する。   Next, state information stored in the state data storage unit 13 will be described with reference to FIG.

ステート情報は、例えば、図2の状態遷移図表示画面111で示されるような状態遷移図が構成されるような場合、図3で示されるような状態で、状態A乃至D毎にステートデータ格納部13に格納されている。図3においては、左から状態A乃至Dの順にステート情報のデータ構造が示されている。   For example, when the state transition diagram as shown in the state transition diagram display screen 111 of FIG. 2 is configured, the state information is stored in the state data for each of the states A to D in the state as shown in FIG. Stored in the unit 13. In FIG. 3, the data structure of state information is shown in the order of states A to D from the left.

各ステート(状態)には、トランジション情報として、各イベントと対応する遷移先となる状態の情報が記録される領域が確保されている。また、各状態におけるスクリプトが記録される領域が確保されている。   In each state (state), an area in which information of a state that is a transition destination corresponding to each event is recorded as transition information. In addition, an area for recording a script in each state is secured.

すなわち、図3の状態A(State A)においては、トランジション情報として、イベント欄には「KeyPress_2」および「KeyPress_x」が記録され、対応する遷移先として、それぞれ「State B」および「State D」と記録されている。すなわち、このトランジション情報は、図2のトランジション142,141にそれぞれ対応する情報として記録されている。また、状態Aの場合、トランジション情報の下には、スクリプト情報として、「スクリプトA」(状態Aにおいて実行される動作を示す記述)が記録されている。   That is, in the state A (State A) of FIG. 3, “KeyPress_2” and “KeyPress_x” are recorded in the event column as transition information, and “State B” and “State D” are respectively set as the corresponding transition destinations. It is recorded. That is, the transition information is recorded as information corresponding to the transitions 142 and 141 in FIG. In the case of state A, “script A” (a description indicating an operation executed in state A) is recorded as script information under the transition information.

さらに、状態B(State B)においては、トランジション情報として、イベント欄には「KeyPress_3」および「KeyPress_b」が記録され、対応する遷移先として、それぞれ「State A」および「State C」と記録されている。すなわち、このトランジション情報は、図2のトランジション143,144にそれぞれ対応する情報として記録されている。また、状態Bの場合、トランジション情報の下には、スクリプト情報として、「スクリプトB」が記録されている。   Furthermore, in state B (State B), “KeyPress_3” and “KeyPress_b” are recorded in the event column as transition information, and “State A” and “State C” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the transitions 143 and 144 in FIG. In the state B, “script B” is recorded as script information under the transition information.

さらに、状態C(State C)においては、トランジション情報として、イベント欄には「KeyPress_a」および「KeyPress_1」が記録され、対応する遷移先として、それぞれ「State B」および「State D」と記録されている。すなわち、このトランジション情報は、図2のトランジション145,146にそれぞれ対応する情報として記録されている。また、状態Cの場合、トランジション情報の下には、スクリプト情報として、「スクリプトC」が記録されている。   Furthermore, in state C (State C), “KeyPress_a” and “KeyPress_1” are recorded in the event column as transition information, and “State B” and “State D” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the transitions 145 and 146 of FIG. In the state C, “script C” is recorded as script information under the transition information.

さらに、状態D(State D)においては、トランジション情報として、イベント欄には「KeyPress_z」および「KeyPress_0」が記録され、対応する遷移先として、それぞれ「State A」および「State C」と記録されている。すなわち、このトランジション情報は、図2のトランジション148,147にそれぞれ対応する情報として記録されている。また、状態Dの場合、トランジション情報の下には、スクリプト情報として、「スクリプトD」が記録されている。   Furthermore, in state D (State D), “KeyPress_z” and “KeyPress_0” are recorded in the event column as transition information, and “State A” and “State C” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the transitions 148 and 147 in FIG. In the state D, “script D” is recorded as script information under the transition information.

次に、図4のフローチャートを参照して、編集部12による状態遷移プログラム編集処理について説明する。   Next, the state transition program editing process by the editing unit 12 will be described with reference to the flowchart of FIG.

ステップS1において、ステート編集部31は、操作部11より供給されてくる信号に基づいて、ステート編集が指示されたか否かを判定する。ステップS1において、例えば、ステート編集処理が指示されたと判定された場合、ステップS2において、ステート編集部31は、ステート編集処理を実行し、その処理は、元に戻る。尚、ステート編集処理については、図5を参照して後述する。   In step S <b> 1, the state editing unit 31 determines whether or not state editing is instructed based on the signal supplied from the operation unit 11. In step S1, for example, when it is determined that state editing processing has been instructed, in step S2, the state editing unit 31 executes state editing processing, and the processing returns to the original. The state editing process will be described later with reference to FIG.

ステップS1において、例えば、ステート編集処理が指示されていないと判定された場合、ステップS3において、トランジション編集部32は、操作部11より供給されてくる信号に基づいて、トランジション編集が指示されたか否かを判定する。ステップS3において、例えば、トランジション編集処理が指示されたと判定された場合、ステップS4において、トランジション編集部32は、トランジション編集処理を実行し、その処理は、元に戻る。尚、トランジション編集処理については、図6を参照して後述する。   In step S1, for example, when it is determined that the state editing process is not instructed, in step S3, the transition editing unit 32 determines whether transition editing is instructed based on the signal supplied from the operation unit 11. Determine whether. In step S3, for example, when it is determined that the transition editing process has been instructed, in step S4, the transition editing unit 32 executes the transition editing process, and the process returns to the original. The transition editing process will be described later with reference to FIG.

ステップS3において、例えば、トランジション編集処理が指示されていないと判定された場合、ステップS5において、スクリプト編集部33は、操作部11より供給されてくる信号に基づいて、スクリプト編集が指示されたか否かを判定する。ステップS5において、例えば、スクリプト編集処理が指示されたと判定された場合、ステップS6において、スクリプト編集部33は、スクリプト編集処理を実行し、その処理は、元に戻る。尚、スクリプト編集処理については、図7を参照して後述する。   In step S3, for example, when it is determined that the transition editing process is not instructed, in step S5, the script editing unit 33 determines whether script editing has been instructed based on the signal supplied from the operation unit 11. Determine whether. In step S5, for example, when it is determined that the script editing process is instructed, in step S6, the script editing unit 33 executes the script editing process, and the process returns to the original. The script editing process will be described later with reference to FIG.

以上の処理により、ステートデータが更新されることになるので、対応する状態遷移プログラムが更新される。   Since the state data is updated by the above processing, the corresponding state transition program is updated.

次に、図5のフローチャートを参照して、ステート編集処理について説明する。   Next, the state editing process will be described with reference to the flowchart of FIG.

ステップS21において、ステート編集部31は、操作部11からの信号に基づいて、新規のステート(状態)を生成する処理であるか否かを判定する。例えば、図2の表示画面101上の図示せぬボタンが操作され、新規のステートを生成する処理が指示された場合、ステップS22において、ステート編集部31は、新規のステートを生成する。すなわち、ステート編集部31は、新たな状態に対応するステート情報をステートデータ格納部13に記録する。   In step S <b> 21, the state editing unit 31 determines whether the process is a process of generating a new state (state) based on the signal from the operation unit 11. For example, when a button (not shown) on the display screen 101 in FIG. 2 is operated and a process for generating a new state is instructed, in step S22, the state editing unit 31 generates a new state. That is, the state editing unit 31 records state information corresponding to the new state in the state data storage unit 13.

ステップS23において、ステート編集部31は、新規に生成されたステートを編集対象ステートに設定する。   In step S23, the state editing unit 31 sets the newly generated state as the editing target state.

ステップS24において、ステート編集部31は、編集対象ステートのステート情報に更新があるか否かを判定する。ここで更新の有無が判定されるのは、ステート情報のうちステート名や対応するステート枠の表示位置などの情報である。すなわち、ステート編集部31が編集するのは、ステート情報のうち、ステート名およびステート枠の表示位置の情報である。   In step S24, the state editing unit 31 determines whether there is an update in the state information of the editing target state. Here, whether or not there is an update is determined in the state information such as the state name and the display position of the corresponding state frame. That is, the state editing unit 31 edits the state name and the state frame display position information among the state information.

ステップS24において、ステート情報のうち、ステート名およびステート枠の表示位置の情報に更新があると判定された場合、ステップS25において、ステート編集部31は、更新された、ステート名およびステート枠の表示位置の情報を編集対象ステートのステート情報に反映させて更新する。   In step S24, when it is determined that the state name and the display position information of the state frame are updated in the state information, in step S25, the state editing unit 31 displays the updated state name and state frame. The position information is updated by reflecting it in the state information of the edit target state.

一方、ステップS24において、更新がないと判定された場合、ステップS25の処理は、スキップされる。   On the other hand, if it is determined in step S24 that there is no update, the process of step S25 is skipped.

ステップS26において、ステート編集処理の終了が指示されたか否かを判定し、終了が指示されない場合、その処理は、ステップS24に戻り、終了が指示されたと判定された場合、ステート編集処理は終了する。   In step S26, it is determined whether or not the end of the state editing process is instructed. If the end is not instructed, the process returns to step S24, and if it is determined that the end is instructed, the state editing process ends. .

また、ステップS21において、新規のステートの生成ではないと判定された場合、ステップS27において、既存のステートが選択されたか否かが判定される。すなわち、図16を参照して後述する表示処理により表示される、例えば、図2で示されるような状態遷移図表示画面111上に表示された既存のステート枠131乃至134のいずれかが図示せぬポインタが操作部11により操作されて選択されたか否かにより、対応するステートA乃至Dのステートデータ格納部13により格納されているステート情報のいずれかが選択されたか否かが判定される。例えば、既存のステートのステート情報が選択された場合、ステップS28において、ステート編集部31は、選択されたステートを編集対象ステートに設定し、その処理は、ステップS24に進む。   If it is determined in step S21 that a new state is not generated, it is determined in step S27 whether an existing state is selected. That is, any of the existing state frames 131 to 134 displayed on the state transition diagram display screen 111 as shown in FIG. 2, for example, which is displayed by a display process described later with reference to FIG. Whether or not any of the state information stored in the state data storage unit 13 of the corresponding state A to D is selected is determined based on whether or not the pointer is selected by operating the operation unit 11. For example, when state information of an existing state is selected, in step S28, the state editing unit 31 sets the selected state as an editing target state, and the process proceeds to step S24.

一方、ステップS27において、既存のステートが選択されたと判定されなかった場合、その処理は、ステップS21に戻り、それ以降の処理が繰り返される。   On the other hand, if it is not determined in step S27 that an existing state has been selected, the process returns to step S21, and the subsequent processes are repeated.

すなわち、以上の処理により、新規のステート、または、既存のステートの何れかのステート情報について、ステート名およびステート枠の表示位置が、新たに設定されるか、または、更新されることになる。   That is, by the above processing, the state name and the display position of the state frame are newly set or updated for state information of a new state or an existing state.

次に、図6のフローチャートを参照して、トランジション編集処理について説明する。   Next, the transition editing process will be described with reference to the flowchart of FIG.

ステップS41において、トランジション編集部32は、操作部11の操作ボタンが押下されただけの状態であるか否かを判定する。より具体的には、操作部11は、例えば、マウスであるような場合、マウスの操作ボタンが押下されたか否かを判定する。例えば、ステップS41において、操作部11の操作ボタンが押下されたと判定された場合、その処理は、ステップS142に進む。   In step S41, the transition editing unit 32 determines whether or not the operation button of the operation unit 11 has been pressed. More specifically, when the operation unit 11 is a mouse, for example, the operation unit 11 determines whether or not a mouse operation button has been pressed. For example, when it is determined in step S41 that the operation button of the operation unit 11 has been pressed, the process proceeds to step S142.

ステップS42において、トランジション編集部32は、ドラッグモードをオフに設定し、編集対象ステート(編集対象にする状態)の情報を初期化する。すなわち、現時点では、ドラッグモードがなされておらず、編集対象ステートも設定されていない状態となる。尚、ドラッグモードとは、操作部11の操作ボタンが押下されることにより、編集対象の何れかをポインタ(マウスポインタ)に固定させ、ポインタと同期して移動可能なモードを示し、ドラッグモードではない場合、いずれの編集対象もポインタと同期して移動する設定がなされていないモードを示す。   In step S42, the transition editing unit 32 sets the drag mode to OFF, and initializes information on the edit target state (state to be edited). That is, at present, the drag mode is not performed and the edit target state is not set. The drag mode refers to a mode in which any of the editing objects is fixed to a pointer (mouse pointer) when the operation button of the operation unit 11 is pressed, and can be moved in synchronization with the pointer. If there is no, no editing target is set to move in synchronization with the pointer.

ステップS43において、トランジション編集部32は、操作部11からの信号に基づいて、ポインタの位置(Xc,Yc)を取得する。   In step S43, the transition editing unit 32 acquires the position (Xc, Yc) of the pointer based on the signal from the operation unit 11.

ステップS44において、トランジション編集部32は、ステートデータ格納部13にアクセスし、ポインタの位置(Xc,Yc)が何れかのステート枠内の位置であるか否かを判定する。例えば、図7で示されるようにポインタ171が、ステート枠131の状態Aのステート枠内に存在するような場合、ポインタの位置(Xc,Yc)がステート枠131内に存在するので、ポインタの位置(Xc,Yc)を編集用トランジションの開始位置(Xs,Ys)に設定し、その処理は、ステップS45に進む。   In step S44, the transition editing unit 32 accesses the state data storage unit 13 and determines whether or not the position (Xc, Yc) of the pointer is in any state frame. For example, as shown in FIG. 7, when the pointer 171 exists in the state frame of the state A of the state frame 131, the pointer position (Xc, Yc) exists in the state frame 131. The position (Xc, Yc) is set to the start position (Xs, Ys) of the editing transition, and the process proceeds to step S45.

ステップS45において、トランジション編集部32は、ステート枠131の状態Aを編集対象ステートに設定し、その処理は、ステップS46に進む。   In step S45, the transition editing unit 32 sets the state A of the state frame 131 to the editing target state, and the process proceeds to step S46.

ステップS46において、トランジション編集部32は、操作部11が操作されて、トランジションの編集の終了が指示されたか否かを判定し、終了が指示された場合、その処理は、終了する。一方、ステップS46において、編集終了が指示されていないと判定された場合、その処理は、ステップS41に戻る。   In step S46, the transition editing unit 32 determines whether or not the operation unit 11 has been operated to instruct the end of the transition editing. When the end is instructed, the process ends. On the other hand, if it is determined in step S46 that the end of editing has not been instructed, the process returns to step S41.

さらに、ステップS44において、ポインタの位置(Xc,Yc)が何れかのステート枠内の位置ではない場合、ステップS45の処理がスキップされ、いずれのステートも編集対象ステートではない状態が維持されたままとなる。   Furthermore, if the pointer position (Xc, Yc) is not in any state frame in step S44, the process in step S45 is skipped, and none of the states is maintained as an editing target state. It becomes.

ステップS41において、操作部11の操作ボタンが押下されただけの状態ではないと判定された場合、ステップS47において、トランジション編集部32は、操作部11の操作ボタンが押下され、かつ、移動されているか否かを判定する。ステップS47において、操作部11の操作ボタンが押下され、かつ、移動されていると判定された場合、ステップS48において、編集対象ステートが存在するか否かを判定する。   When it is determined in step S41 that the operation button of the operation unit 11 is not just pressed, the transition editing unit 32 is pressed and moved in step S47. It is determined whether or not. If it is determined in step S47 that the operation button of the operation unit 11 has been pressed and moved, it is determined in step S48 whether or not an edit target state exists.

例えば、図7で示される状態から操作部11が操作されて、ポインタ171が押下され、かつ、いずれかの方向に移動した場合、編集対象ステートが、ステート枠131で示される状態Aに設定されているので、編集対象ステートがあると判定され、その処理は、ステップS49に進む。   For example, when the operation unit 11 is operated from the state shown in FIG. 7 and the pointer 171 is pressed and moved in any direction, the edit target state is set to the state A indicated by the state frame 131. Therefore, it is determined that there is an editing target state, and the process proceeds to step S49.

ステップS49において、トランジション編集部32は、ポインタの位置(Xc,Yc)を取得する。   In step S49, the transition editing unit 32 acquires the position (Xc, Yc) of the pointer.

ステップS50において、トランジション編集部32は、ドラッグモードであるか否かを判定する。今の場合、ドラッグモードが設定されていないので、処理は、ステップS51に進む。   In step S50, the transition editing unit 32 determines whether or not the drag mode is set. In this case, since the drag mode is not set, the process proceeds to step S51.

ステップS51において、トランジション編集部32は、状態遷移図生成部14を制御して、これまでに描画してきた編集用トランジションと、後述する随伴ステート枠を消去させる。このとき、状態遷移図生成部14の随伴ステート枠生成部43および編集用トランジション生成部44は、これまでの処理で編集用に生成した(後述する表示処理により表示されていた)編集用トランジションと、随伴ステート枠とをいずれも削除する。   In step S51, the transition editing unit 32 controls the state transition diagram generating unit 14 to delete the editing transition drawn so far and the accompanying state frame described later. At this time, the accompanying state frame generation unit 43 and the editing transition generation unit 44 of the state transition diagram generation unit 14 generate the editing transition (displayed by the display processing described later) generated for editing in the processing so far. , All the accompanying state frames are deleted.

ステップS52において、トランジション編集部32は、状態遷移図生成部14を制御して、編集対象ステートからポインタの位置(Xc,Yc)までの編集用トランジションを描画させる。このとき、状態遷移図生成部14の編集用トランジション生成部44は、例えば、図8で示されるような、編集対象ステートである状態Aのステート枠131からポインタ171までの編集用トランジション181を生成し、表示制御部17に供給する(生成された編集用トランジションは、後述する表示制御部17による表示処理により表示される)。   In step S52, the transition editing unit 32 controls the state transition diagram generating unit 14 to draw an editing transition from the edit target state to the pointer position (Xc, Yc). At this time, for example, the edit transition generation unit 44 of the state transition diagram generation unit 14 generates an edit transition 181 from the state frame 131 of the state A that is the edit target state to the pointer 171 as shown in FIG. Then, it is supplied to the display control unit 17 (the generated editing transition is displayed by display processing by the display control unit 17 described later).

ステップS53において、トランジション編集部32は、ポインタの位置(Xc,Yc)および開始位置(Xs,Ys)の情報を状態遷移図生成部14に供給し、随伴ステート枠生成処理を実行させ、例えば、図8で示されるような随伴ステート枠182を生成させる。   In step S53, the transition editing unit 32 supplies the information of the pointer position (Xc, Yc) and the start position (Xs, Ys) to the state transition diagram generation unit 14 to execute the accompanying state frame generation process, for example, An adjoint state frame 182 as shown in FIG. 8 is generated.

ここで、図9のフローチャートを参照して、随伴ステート枠生成処理について説明する。   Here, the accompanying state frame generation processing will be described with reference to the flowchart of FIG.

ステップS81において、随伴ステート枠生成部43は、図17を参照して後述する随伴ステート枠設定データ設定処理により設定される随伴ステート枠設定データを随伴ステート枠設定データ設定部45より読み出す。随伴ステート枠設定データには、随伴ステート枠を表示するときの透明度、距離L、編集対象ステート枠に対する縮小率、および前景色の情報が含まれている。尚、随伴ステート枠設定データについては、詳細を後述する。   In step S81, the accompanying state frame generation unit 43 reads the accompanying state frame setting data set by the accompanying state frame setting data setting process described later with reference to FIG. The accompanying state frame setting data includes information on transparency when displaying the accompanying state frame, distance L, reduction ratio with respect to the editing target state frame, and foreground color. Details of the accompanying state frame setting data will be described later.

ステップS82において、随伴ステート枠生成部43は、トランジション編集部32からのポインタの位置(Xc,Yc)および開始位置(Xs,Ys)に基づいて、ポインタの位置(Xc,Yc)と開始位置(Xs,Ys)との距離(=√((Xc−Xs)2+(Yc−Ys)2))が、予め設定された随伴ステート枠が表示可能な距離Lよりも離れているか否かを判定する。ここで、距離Lとは、図10で示されるように、編集用トランジション181の先頭位置から随伴ステート枠182を表示する中心位置までの距離であり、この距離L以上の長さの編集用トランジション181が存在しなければ随伴ステート枠182が表示できない距離である。また、この距離Lについては、ポインタの位置(Xc,Yc)から近傍の距離であることが望ましい。 In step S82, the accompanying state frame generation unit 43 determines the pointer position (Xc, Yc) and the start position (Xc, Yc) based on the pointer position (Xc, Yc) and the start position (Xs, Ys) from the transition editing unit 32. Xs, Ys) is determined whether or not the distance (= √ ((Xc−Xs) 2 + (Yc−Ys) 2 )) is longer than the distance L that can be displayed in the associated state frame. To do. Here, the distance L is a distance from the start position of the editing transition 181 to the center position for displaying the accompanying state frame 182 as shown in FIG. This is the distance that the accompanying state frame 182 cannot be displayed unless 181 exists. The distance L is preferably a distance in the vicinity from the pointer position (Xc, Yc).

従って、ステップS82において、編集用トランジション182の長さが、この距離L以上の長さのであれば、随伴トランジション182が描画できることになるので、その処理は、ステップS83に進む。   Therefore, if the length of the edit transition 182 is equal to or longer than the distance L in step S82, the accompanying transition 182 can be drawn, and the process proceeds to step S83.

ステップS83において、随伴ステート枠生成部43は、随伴ステート枠182の中心位置を求める。ここでは、中心位置(Xd,Yd)は、図10で示されるように、編集用トランジション181上であって、ポインタ171の位置(Xc,Yc)から距離Lの位置である。尚、随伴ステート枠の中心位置は、図10で示される位置のみならず、ポインタ171の近傍付近に設定されていればよく、例えば、編集用トランジション181上に被らないように、編集用トランジション181の延長上のポインタ171の位置(Xc,Yc)の近傍付近に設定するようにしても良い。   In step S <b> 83, the accompanying state frame generation unit 43 obtains the center position of the accompanying state frame 182. Here, as shown in FIG. 10, the center position (Xd, Yd) is a position on the editing transition 181 and a distance L from the position (Xc, Yc) of the pointer 171. Note that the center position of the accompanying state frame is not limited to the position shown in FIG. 10 but may be set in the vicinity of the pointer 171. For example, the editing transition frame 181 is not covered with the editing transition 181. It may be set in the vicinity of the position (Xc, Yc) of the pointer 171 on the extension of 181.

ステップS84において、随伴ステート枠生成部43は、随伴ステート枠設定データに基づいて、求められた中心位置(Xd,Yd)が中心となるように、編集対象ステート枠のサイズを縮小して生成し、設定された透明度と前景色で生成し、表示制御部17に供給する(生成された随伴ステート枠は、後述する表示制御部17による表示処理により表示される)。   In step S84, the accompanying state frame generation unit 43 generates the state frame to be edited by reducing the size so that the obtained center position (Xd, Yd) is centered based on the accompanying state frame setting data. The generated transparency and foreground color are generated and supplied to the display control unit 17 (the generated accompanying state frame is displayed by display processing by the display control unit 17 described later).

以上の処理により、ポインタ171の位置に追従して、例えば、図8で示されるような、編集対象ステート枠134が縮小された付随ステート枠182が生成される。   With the above processing, the accompanying state frame 182 in which the editing target state frame 134 is reduced as shown in FIG. 8 is generated following the position of the pointer 171.

ここで、図6のフローチャートの説明に戻る。   Now, the description returns to the flowchart of FIG.

ステップS54において、トランジション編集部32は、ドラッグモードをオンにする。この結果、以降において、操作部11の操作ボタンが押下されたままの状態で、ポインタ171が移動されると、ステップS50において、ドラッグモードであると判定されることになるため、ステップS51の処理がスキップされることになり、ステップS41,S47乃至S50,S52乃至S54、並びにS46の処理が繰り返されることにより、図8で示されるポインタ171の動きに追従して、編集対象ステート枠134が縮小された随伴ステート枠182が表示される続けることになる。   In step S54, the transition editing unit 32 turns on the drag mode. As a result, after that, if the pointer 171 is moved while the operation button of the operation unit 11 is kept pressed, it is determined in step S50 that the drag mode is set. Is skipped, and the processing of steps S41, S47 to S50, S52 to S54, and S46 is repeated, so that the edit target state frame 134 is reduced following the movement of the pointer 171 shown in FIG. The associated state frame 182 thus displayed continues to be displayed.

さらに、ステップS47において、マウスが押下され、かつ、移動していないと判定された場合、ステップS55において、トランジション編集部32は、操作部11の操作ボタンが開放されたか否かを判定する。例えば、遷移先のステート枠までポインタが移動したところで、操作部11の操作ボタンが開放されると、操作ボタンが開放されたと判定されることになるので、処理は、ステップS56に進み、トランジション編集部32は、編集対象ステートが存在するか否かを判定する。今の場合、編集対象ステートは、状態Aであるので、編集対象ステートが存在すると判定され、その処理は、ステップS57に進む。   Further, when it is determined in step S47 that the mouse is pressed and not moved, the transition editing unit 32 determines whether or not the operation button of the operation unit 11 is released in step S55. For example, if the operation button of the operation unit 11 is released when the pointer moves to the state frame of the transition destination, it is determined that the operation button has been released. Therefore, the process proceeds to step S56, and the transition editing is performed. The unit 32 determines whether or not the edit target state exists. In this case, since the editing target state is state A, it is determined that there is an editing target state, and the process proceeds to step S57.

ステップS57において、トランジション編集部32は、ドラッグモードであるか否かを判定する。今の場合、ステップS54において、ドラッグモードがオンにされたままの状態であるので、ステップS57においては、ドラッグモードであると判定され、その処理は、ステップS58に進む。   In step S57, the transition editing unit 32 determines whether or not the drag mode is set. In this case, since the drag mode remains on in step S54, it is determined in step S57 that the drag mode is set, and the process proceeds to step S58.

ステップS58において、トランジション編集部32は、操作部11からの信号に基づいて、ポインタの位置(Xc,Yc)を取得する。   In step S58, the transition editing unit 32 acquires the position (Xc, Yc) of the pointer based on the signal from the operation unit 11.

ステップS59において、トランジション編集部32は、ステートデータ格納部13にアクセスし、ポインタの位置(Xc,Yc)が、編集対象ステート枠を除いた何れかのステート枠内の位置であるか否かを判定する。例えば、図11で示されるようにポインタ171が、ステート枠133の状態Cのステート枠内に存在するような場合、ポインタ171の位置(Xc,Yc)がステート枠133内に存在するので、その処理は、ステップS60に進む。   In step S59, the transition editing unit 32 accesses the state data storage unit 13, and determines whether or not the position of the pointer (Xc, Yc) is a position in any state frame excluding the editing target state frame. judge. For example, as shown in FIG. 11, when the pointer 171 exists in the state frame of the state frame 133 in the state C, the position (Xc, Yc) of the pointer 171 exists in the state frame 133. The process proceeds to step S60.

ステップS60においては、トランジション編集部32は、ポインタ171が存在する位置のステート枠のステートを遷移先のステート(状態)に設定する。このとき、トランジション編集部32は、状態遷移図生成部15の編集用トランジション生成部44を制御して編集用トランジションを消去させ、トランジション生成部42を制御して、本来の遷移先を示すトランジション201を描画させる。   In step S60, the transition editing unit 32 sets the state of the state frame at the position where the pointer 171 is present as the transition destination state (state). At this time, the transition editing unit 32 controls the editing transition generating unit 44 of the state transition diagram generating unit 15 to delete the editing transition, and controls the transition generating unit 42 to control the transition 201 indicating the original transition destination. To draw.

ステップS61において、トランジション編集部32は、イベントを指定するように要求する。より具体的には、すなわち、例えば、遷移先を指定する処理として、図11のトランジション201がポインタ171により引かれた場合、トランジション編集部32は、トランジション201の横にイベントを指定する図示せぬ空欄を表示し、入力を促す。   In step S61, the transition editing unit 32 requests to specify an event. More specifically, that is, for example, when the transition 201 in FIG. 11 is pulled by the pointer 171 as a process of specifying the transition destination, the transition editing unit 32 specifies an event beside the transition 201 (not shown). Displays a blank and prompts for input.

ステップS62において、トランジション編集部32は、遷移する際のイベントが指定されたか否かを判定し、指定されたと判定されるまで、その処理を繰り返す。すなわち、トランジション編集部32は、その空欄にイベントを指定する情報が入力されたか否かを判定し、イベントが指定されたか否かを判定する。   In step S62, the transition editing unit 32 determines whether an event for transition is specified, and repeats the process until it is determined that the event has been specified. That is, the transition editing unit 32 determines whether or not information specifying an event is input to the blank, and determines whether or not an event is specified.

ステップS62において、例えば、図11で示されるように、「KeyPress_Q」で示されるように、操作部11の「Q」のキーが入力されるというイベントが指定されると、イベントが指定されたと判定され、その処理は、ステップS63に進む。   In step S62, for example, as shown in FIG. 11, when an event that the key “Q” of the operation unit 11 is input is designated as indicated by “KeyPress_Q”, it is determined that the event is designated. Then, the process proceeds to step S63.

ステップS63において、トランジション編集部32は、ステートデータ格納部13にアクセスし、編集対象ステートのステート情報を読み出し、指定された遷移先とイベントの情報を反映させて更新する。すなわち、例えば、図2のトランジション141の場合、遷移先として「State C」が新たに指定され、イベントとして、「KeyPress_Q」が指定されるので、図12の左部で示されるように、遷移先とイベントに「State C」、および、「KeyPress_Q」を追加して更新する。   In step S63, the transition editing unit 32 accesses the state data storage unit 13, reads the state information of the editing target state, and updates it by reflecting the specified transition destination and event information. That is, for example, in the case of the transition 141 in FIG. 2, “State C” is newly designated as the transition destination and “KeyPress_Q” is designated as the event, so that the transition destination is shown in the left part of FIG. "State C" and "KeyPress_Q" are added to the event and updated.

一方、ステップS48,S56において、編集対象ステートが存在しない場合、その処理は、ステップS46に進む。また、ステップS59において、位置(Xc,Yc)にステート枠がないと判定された場合、ステップS64において、トランジション編集部32は、状態遷移図生成部14の随伴ステート枠生成部43および編集用トランジション生成部44を制御して、これまでに引いてきた編集用トランジションおよび随伴ステート枠を削除させる。   On the other hand, if there is no edit target state in steps S48 and S56, the process proceeds to step S46. If it is determined in step S59 that there is no state frame at the position (Xc, Yc), the transition editing unit 32 and the accompanying state frame generation unit 43 of the state transition diagram generation unit 14 and the editing transition are determined in step S64. The generation unit 44 is controlled to delete the editing transition and the accompanying state frame that have been drawn so far.

以上の処理により、ポインタを操作部11により操作し、編集対象ステートのステート枠から遷移先のステート枠に矢印を引くだけで、トランジションの情報を編集することが可能となる。また、トランジションが編集される際、トランジションの遷移先が確定するまでの間、編集用トランジションが表示され、編集用トランジションの先頭位置に存在するポインタの移動に追従して、ポインタの近傍に、編集対象ステートのステート枠が縮小された状態の随伴ステート枠として表示されることになるので、トランジションを引く際に、状態遷移図表示画面111上で、状態遷移図がスクロールするなどして、編集対象ステートのステート枠がない状態となっても、随伴ステート枠に起点となる編集対象ステートの情報が表示されることになるので、編集対象ステート(トランジションの起点となる状態)を認識することが可能となり、トランジションの作成を容易なものとすることが可能となる。   With the above processing, it is possible to edit transition information simply by operating the pointer with the operation unit 11 and drawing an arrow from the state frame of the editing target state to the state frame of the transition destination. In addition, when a transition is edited, the editing transition is displayed until the transition destination is confirmed, and the editing is performed in the vicinity of the pointer by following the movement of the pointer existing at the head position of the editing transition. Since the state frame of the target state is displayed as an accompanying state frame in a reduced state, when the transition is drawn, the state transition diagram is scrolled on the state transition diagram display screen 111, etc. Even if there is no state frame for the state, information on the edit target state that is the starting point is displayed in the accompanying state frame, so it is possible to recognize the edit target state (the state that is the starting point of the transition) Thus, the transition can be easily created.

次に、図13のフローチャートを参照して、スクリプト編集処理について説明する。   Next, script editing processing will be described with reference to the flowchart of FIG.

ステップS101において、スクリプト編集部33は、既存のステートが選択されたか否かを判定し、選択されるまで、その処理を繰り返す。すなわち、図16を参照して後述する表示処理により表示される、例えば、図2で示されるような状態遷移図表示画面111上に表示された既存のステート枠131乃至134のいずれかが、図示せぬポインタが操作部11により操作されて選択されたか否かにより、対応するステートA乃至Dのステートデータ格納部13により格納されているステート情報のいずれかが選択されたか否かが判定される。そして、ステップS101において、例えば、既存のステートのステート情報が選択された場合、ステップS102において、スクリプト編集部33は、選択されたステートを編集対象ステートに設定し、その処理は、ステップS103に進む。   In step S101, the script editing unit 33 determines whether an existing state is selected, and repeats the process until it is selected. That is, any of the existing state frames 131 to 134 displayed on the state transition diagram display screen 111 as shown in FIG. 2, for example, displayed by the display process described later with reference to FIG. Whether or not any of the state information stored in the state data storage unit 13 of the corresponding state A to D is selected is determined based on whether or not a pointer (not shown) is selected by operating the operation unit 11. . In step S101, for example, when state information of an existing state is selected, in step S102, the script editing unit 33 sets the selected state as an editing target state, and the process proceeds to step S103. .

ステップS103において、スクリプト編集部33は、スクリプトが更新されたか否かを判定する。より詳細には、スクリプト編集部33は、スクリプト情報の記述内容が、操作部11により更新されたか否かを判定する。   In step S103, the script editing unit 33 determines whether the script has been updated. More specifically, the script editing unit 33 determines whether or not the description content of the script information has been updated by the operation unit 11.

ステップS103において、例えば、スクリプト情報が更新されたと判定された場合、ステップS104において、スクリプト編集部33は、ステートデータ13にアクセスし、編集対象ステートのステート情報を読み出し、スクリプトを変更して、ステート情報を更新する。   In step S103, for example, if it is determined that the script information has been updated, in step S104, the script editing unit 33 accesses the state data 13, reads the state information of the editing target state, changes the script, Update information.

ステップS105において、スクリプト編集部33は、スクリプト編集処理の終了が指示されたか否かを判定し、終了が指示されていない場合、その処理は、ステップS101に戻る。また、ステート編集処理の終了が指示された場合、その処理は、終了する。   In step S105, the script editing unit 33 determines whether or not the end of the script editing process is instructed. If the end is not instructed, the process returns to step S101. If the end of the state editing process is instructed, the process ends.

以上の処理により、スクリプトが編集される。   The script is edited by the above processing.

次に、図14のフローチャートを参照して、状態遷移プログラム実行処理について説明する。   Next, the state transition program execution process will be described with reference to the flowchart of FIG.

ステップS111において、状態遷移エンジン15は、操作部11より送信されてくる操作信号に基づいて、状態遷移図表示画面111上のいずれかのステートが選択されたか否かを判定し、選択されるまで、その処理を繰り返す。より詳細には、状態遷移エンジン15は、操作部11より供給されてくる信号に基づいて、例えば、図2の状態遷移図表示画面111上のステート枠131乃至134のいずれかが、図示せぬポインタにより選択されたか否かを判定し、いずれかのステートが選択されるまで、その処理を繰り返す。   In step S111, the state transition engine 15 determines whether any state on the state transition diagram display screen 111 is selected based on the operation signal transmitted from the operation unit 11, and until the state is selected. Repeat the process. More specifically, the state transition engine 15 does not show any of the state frames 131 to 134 on the state transition diagram display screen 111 of FIG. 2 based on the signal supplied from the operation unit 11, for example. It is determined whether or not the pointer is selected, and the process is repeated until any state is selected.

ステップS111において、例えば、いずれかのステートが選択された場合、ステップS112において、状態遷移エンジン15は、選択されたステートをカレントステートとして設定する。すなわち、状態遷移エンジン15は、操作部11からの信号に基づいて、例えば、図2の状態遷移図表示画面111上のステート枠131乃至134のうち、図示せぬポインタにより選択されたステート枠に対応するステートをカレントステートに設定する。   In step S111, for example, when any state is selected, in step S112, the state transition engine 15 sets the selected state as the current state. That is, based on the signal from the operation unit 11, for example, the state transition engine 15 sets a state frame selected by a pointer (not shown) among the state frames 131 to 134 on the state transition diagram display screen 111 in FIG. Set the corresponding state to the current state.

ステップS113において、状態遷移エンジン15は、ステートデータ格納部13にアクセスし、カレントステートのステート情報を読み出し、状態動作実行部16に供給する。   In step S <b> 113, the state transition engine 15 accesses the state data storage unit 13, reads state information of the current state, and supplies the state information to the state operation execution unit 16.

ステップS114において、状態動作実行部16は、供給されたカレントステートのステート情報を解釈する。すなわち、状態動作実行部16は、供給されたカレントステートのステート情報のうち、特に、スクリプト情報を読み出して、その状態における動作を認識する。   In step S114, the state operation executing unit 16 interprets the supplied state information of the current state. That is, the state operation execution unit 16 reads script information, in particular, of the supplied current state state information, and recognizes the operation in that state.

ステップS115において、状態動作実行部16は、スクリプト情報に記述されている処理を実行する。   In step S115, the state operation execution unit 16 executes the process described in the script information.

ステップS116において、状態動作実行部16は、状態遷移処理の終了が指示されたか否かを判定する。すなわち、状態動作実行部16は、操作部11からの信号に基づいて、状態遷移処理の終了が指示されたか否かを判定し、終了が指示されていない場合、その処理は、ステップS117に進む。   In step S116, the state operation executing unit 16 determines whether or not the end of the state transition process is instructed. That is, the state operation executing unit 16 determines whether or not the end of the state transition process has been instructed based on the signal from the operation unit 11, and if the end has not been instructed, the process proceeds to step S117. .

ステップS117において、状態遷移エンジン15は、イベントが発生したか否かを判定する。すなわち、状態遷移エンジン15は、イベント検出部19により検出されたイベントの情報が供給されてきたか否かを判定し、イベントがない場合、その処理は、ステップS115に戻り、以降の処理が繰り返される。すなわち、イベントが検出されるまで、ステップS115乃至S117の処理が繰り返される。一方、ステップS117において、イベントがあると判定された場合、その処理は、ステップS118に進む。   In step S117, the state transition engine 15 determines whether an event has occurred. That is, the state transition engine 15 determines whether or not the information of the event detected by the event detection unit 19 has been supplied. If there is no event, the process returns to step S115 and the subsequent processes are repeated. . That is, the processes in steps S115 to S117 are repeated until an event is detected. On the other hand, if it is determined in step S117 that there is an event, the process proceeds to step S118.

ステップS118において、状態遷移エンジン15は、供給されてきたイベントの情報により遷移先が設定されているか否かを判定する。すなわち、ステート情報が、図3で示されるものであって、現在の状態がステートAであった場合、例えば、イベントとして、操作部11のキーボードのうち「A」のキーが操作されるというイベントが発生したとしても、遷移先が設定されていないことになる。このため、このような場合、その処理は、ステップS115に戻る。すなわち、実質的に、イベントの発生がなかったものとして処理される。   In step S118, the state transition engine 15 determines whether or not the transition destination is set based on the supplied event information. That is, when the state information is shown in FIG. 3 and the current state is state A, for example, as an event, an event that the “A” key of the keyboard of the operation unit 11 is operated. Even if this occurs, the transition destination is not set. For this reason, in such a case, the process returns to step S115. That is, it is processed as if the event did not substantially occur.

一方、ステップS118において、遷移先があると判定された場合、すなわち、ステート情報が、図3で示されるものであって、現在の状態がステートAであった場合、例えば、イベントとして、操作部11のキーボードのうち「2」のキーが操作されるというイベントが発生すると、遷移先Bに設定されている。そこで、ステップS102において、状態遷移エンジン15は、遷移先のステートをカレントステートに設定し、その処理は、ステップS113に戻り、それ以降の処理が繰り返される。すなわち、この処理により、新たな遷移先となるステートBをカレントステートに設定し、ステップS113以降の処理が繰り返される。   On the other hand, if it is determined in step S118 that there is a transition destination, that is, if the state information is as shown in FIG. 3 and the current state is state A, for example, as an event, the operation unit When an event occurs in which the “2” key of 11 keyboards is operated, the transition destination B is set. Therefore, in step S102, the state transition engine 15 sets the transition destination state as the current state, the process returns to step S113, and the subsequent processes are repeated. That is, by this process, the state B as a new transition destination is set as the current state, and the processes after step S113 are repeated.

以上の処理により、状態遷移エンジン15が、イベント検出部19より供給されてくるイベントの情報により状態遷移図に従って状態を変化させると共に、対応する状態のステート情報を読み出して、状態動作実行部16に供給することが可能となる。また、状態動作実行部16は、ユーザの操作に基づいて設定されている状態を変化させると共に、状態動作実行部16は、対応する状態においてスクリプトで規定される動作を実行することが可能となる、   With the above processing, the state transition engine 15 changes the state according to the state transition diagram based on the event information supplied from the event detection unit 19, reads out the state information of the corresponding state, and sends it to the state operation execution unit 16. It becomes possible to supply. Further, the state operation executing unit 16 changes the state set based on the user's operation, and the state operation executing unit 16 can execute the operation specified by the script in the corresponding state. ,

次に、図15のフローチャートを参照して、状態遷移図生成処理について説明する。   Next, state transition diagram generation processing will be described with reference to the flowchart of FIG.

ステップS131において、状態遷移図生成部14は、ステートデータ格納部13にアクセスし、格納されている全ステートデータを読み出す。   In step S131, the state transition diagram generation unit 14 accesses the state data storage unit 13 and reads all stored state data.

ステップS132において、ステート枠生成部41は、全てのステート情報毎に状態遷移図上のステート枠を生成すると共に、スクリプト情報に基づいて、全スクリプトの記述内容をステート枠内に記述する。   In step S132, the state frame generation unit 41 generates a state frame on the state transition diagram for every state information, and describes the description contents of all scripts in the state frame based on the script information.

ステップS133において、トランジション生成部42は、ステート情報のうち、イベントと対応する遷移先の情報に基づいて、トランジションを生成する。   In step S133, the transition generation unit 42 generates a transition based on the transition destination information corresponding to the event in the state information.

ステップS134において、状態遷移図生成部14は、ステート枠生成部41により生成されたステート枠、トランジション生成部42により生成されたトランジションに基づいて、状態遷移図を構成する情報を生成し、表示制御部17に供給し、その処理は、ステップS131に戻り、それ以降の処理が繰り返される。   In step S134, the state transition diagram generation unit 14 generates information constituting the state transition diagram based on the state frame generated by the state frame generation unit 41 and the transition generated by the transition generation unit 42, and performs display control. The process is supplied to the unit 17, and the process returns to step S131, and the subsequent processes are repeated.

以上の処理により、ステートデータ格納部13に格納されているステート情報に基づいて、状態遷移図が生成され、表示制御部17に供給することが可能となる。   Through the above processing, a state transition diagram can be generated based on the state information stored in the state data storage unit 13 and supplied to the display control unit 17.

次に、図16のフローチャートを参照して、表示処理について説明する。   Next, display processing will be described with reference to the flowchart of FIG.

ステップS141において、状態遷移図表示制御部51は、状態遷移図生成部14の編集用トランジション生成部44より供給されてくる状態遷移図の情報に基づいて、状態遷移図表示画面111を表示する。   In step S <b> 141, the state transition diagram display control unit 51 displays the state transition diagram display screen 111 based on the state transition diagram information supplied from the editing transition generation unit 44 of the state transition diagram generation unit 14.

ステップS142において、状態遷移図表示制御部51は、状態遷移図生成部14の編集用トランジション生成部44より編集用トランジションが供給されてきているか否かを判定する。例えば、図6のトランジション編集処理におけるステップS52の処理により、編集用トランジションの状態遷移図上における画像情報が供給されてくると編集用トランジションが供給されているものと判定され、ステップS143において、状態遷移図表示画面111に表示する。   In step S142, the state transition diagram display control unit 51 determines whether an editing transition is supplied from the editing transition generation unit 44 of the state transition diagram generation unit 14. For example, when the image information on the state transition diagram of the editing transition is supplied by the process of step S52 in the transition editing process of FIG. 6, it is determined that the editing transition is supplied. It is displayed on the transition diagram display screen 111.

一方、ステップS142において、編集用トランジションが供給されてきていないと判定された場合、ステップS143の処理はスキップされる。   On the other hand, if it is determined in step S142 that the editing transition has not been supplied, the process of step S143 is skipped.

さらに、ステップS144において、状態遷移図表示制御部51は、状態遷移図生成部14の随伴ステート枠生成部43より随伴ステート枠が供給されてきているか否かを判定する。例えば、図6のトランジション編集処理におけるステップS53の処理により、随伴ステート枠の状態遷移図上における画像情報が供給されてくると随伴ステート枠が供給されているものと判定され、ステップS145において、状態遷移図表示画面111に表示する。   Further, in step S144, the state transition diagram display control unit 51 determines whether or not the accompanying state frame has been supplied from the accompanying state frame generating unit 43 of the state transition diagram generating unit 14. For example, when the image information on the state transition diagram of the accompanying state frame is supplied by the process of step S53 in the transition editing process of FIG. 6, it is determined that the accompanying state frame is supplied. It is displayed on the transition diagram display screen 111.

一方、ステップS144において、随伴ステート枠が供給されてきていないと判定された場合、ステップS145の処理はスキップされる。   On the other hand, if it is determined in step S144 that the accompanying state frame has not been supplied, the process of step S145 is skipped.

ステップS146において、状態動作表示制御部52は、状態遷移図生成部14より供給される情報に基づいて、カレントステートが指定されているか否かを判定する。ステップS146において、例えば、カレントステートが指定されていると判定された場合、ステップS147において、状態動作表示制御部52は、カレントステートとして設定されている、状態動作実行部16により実行されている動作内容に基づいて状態動作画面112を表示し、その処理はステップS141に戻る。   In step S146, the state operation display control unit 52 determines whether or not the current state is designated based on the information supplied from the state transition diagram generation unit 14. In step S146, for example, when it is determined that the current state is designated, in step S147, the state operation display control unit 52 performs the operation executed by the state operation executing unit 16 set as the current state. The state operation screen 112 is displayed based on the content, and the processing returns to step S141.

ステップS146において、カレントステートが指定されていない場合、ステップS147の処理は、スキップされる。   If the current state is not designated in step S146, the process in step S147 is skipped.

以上の処理により、図2で示されるような、状態遷移図表示画面111、および状態動作画面112からなる表示画面101が表示部18に表示される。   Through the above processing, the display screen 101 including the state transition diagram display screen 111 and the state operation screen 112 as shown in FIG. 2 is displayed on the display unit 18.

以上、図4の状態遷移プログラム編集処理、図5のステート編集処理、図6のトランジション編集処理、図13のスクリプト編集処理、図14の状態遷移プログラム実行処理、図15の状態遷移図生成処理、図16の表示処理により以下のような動作が実現される。   The state transition program editing process of FIG. 4, the state editing process of FIG. 5, the transition editing process of FIG. 6, the script editing process of FIG. 13, the state transition program execution process of FIG. 14, the state transition diagram generation process of FIG. The following operations are realized by the display processing of FIG.

図4の状態遷移プログラム編集処理における図5のステート編集処理、図6のトランジション編集処理、および図13のスクリプト編集処理により遷移状態情報(ステートデータ)が編集され、図14の状態遷移プログラム実行処理により編集された状態遷移情報に基づいて状態遷移処理が実行される。また、図14の状態遷移プログラム実行処理により編集された状態遷移情報に基づいて状態遷移図が生成される。この際、図6のトランジション編集処理が実行されると、編集用トランジションおよび随伴ステート枠が、状態遷移図の情報として表示制御部17に供給される。結果として、図16の表示処理においては、編集された状態遷移情報に基づいた状態遷移図が表示されると共に、トランジションの編集処理が実行されている場合には、さらに、編集用トランジションおよび随伴ステート枠が表示されることになる。   The transition state information (state data) is edited by the state editing process of FIG. 5 in the state transition program editing process of FIG. 4, the transition editing process of FIG. 6, and the script editing process of FIG. 13, and the state transition program execution process of FIG. The state transition process is executed based on the state transition information edited by. Further, a state transition diagram is generated based on the state transition information edited by the state transition program execution process of FIG. At this time, when the transition editing process of FIG. 6 is executed, the editing transition and the accompanying state frame are supplied to the display control unit 17 as information of the state transition diagram. As a result, in the display process of FIG. 16, a state transition diagram based on the edited state transition information is displayed, and when the transition editing process is being executed, the editing transition and the accompanying state are further displayed. A frame will be displayed.

結果として、トランジションが編集される際、トランジションの遷移先が確定するまでの間、トランジションの先頭位置に存在するポインタの移動に追従して、その近傍に、編集対象ステートのステート枠が縮小された状態の随伴ステート枠で表示されることになるので、トランジションを引く際に、仮に状態遷移図表示画面111上に編集対象ステートのステート枠がなくても随伴ステート枠を見るだけで、編集対象ステートを認識することが可能となり、トランジションの作成を容易なものとすることが可能となる。   As a result, when the transition is edited, the state frame of the state to be edited is reduced in the vicinity of the movement of the pointer at the beginning of the transition until the transition destination of the transition is determined. Since it will be displayed in the accompanying state frame of the state, when drawing a transition, even if there is no state frame of the editing target state on the state transition diagram display screen 111, the editing target state Can be recognized, and transitions can be easily created.

次に、図17のフローチャートを参照して、随伴ステート枠設定データ設定処理について説明する。   Next, the accompanying state frame setting data setting process will be described with reference to the flowchart of FIG.

ステップS161において、随伴ステート枠設定データ設定部45は、随伴ステート枠設定データの設定が指示されたか否かを判定し、随伴ステート枠設定データの設定が指示されるまで、その処理を繰り返す。例えば、操作部11が操作され、随伴ステート枠設定データの設定が指示された場合、ステップS162において、随伴ステート枠設定データ設定部45は、設定画面を表示制御部17を介して表示部18に表示させる。   In step S161, the accompanying state frame setting data setting unit 45 determines whether or not setting of the accompanying state frame setting data is instructed, and repeats the process until setting of the accompanying state frame setting data is instructed. For example, when the operation unit 11 is operated and setting of the accompanying state frame setting data is instructed, the accompanying state frame setting data setting unit 45 displays the setting screen on the display unit 18 via the display control unit 17 in step S162. Display.

このとき、随伴ステート枠設定データ設定部45は、例えば、図18で示されるような設定画面251を表示する。図18においては、設定画面251の最上段に「コピーの表示属性」と表示されており、随伴ステート枠が編集対象ステート枠のコピーであり、その表示属性が、随伴ステート枠の設定データであることを示している。   At this time, the accompanying state frame setting data setting unit 45 displays a setting screen 251 as shown in FIG. 18, for example. In FIG. 18, “copy display attribute” is displayed at the top of the setting screen 251, the accompanying state frame is a copy of the editing target state frame, and the display attribute is the setting data of the accompanying state frame. It is shown that.

図18においては、設定画面251の上から「透明度」、「L」、「縮小率」、および「前景色」と表示されており、随伴ステート枠を表示する際の透明度、距離L(図10)、編集対象ステート枠に対する縮小率、および随伴ステート枠の前景色の設定項目が設けられている。透明度は、%表示されており0乃至100の範囲で設定される。透明度は、値が高いほど透明度が高く、例えば、0%の場合は、完全に透明度がなく、100%では、完全に透明な状態となって表示されない状態となる。距離Lは、図10を参照して説明したように、ポインタの位置から表示される随伴ステート枠の中心位置までの距離をピクセル単位で示したものである。縮小率は、編集対象ステート枠に対する縮小率であり、%表示されており、0乃至100の範囲で設定される。さらに、前景色は、随伴ステート枠の前景色を指定する項目であり、左からRGBの光の3原色について、0乃至255の範囲で設定される。図18の場合、R(Red)が、0、G(Green)が255、B(Blue)が0で設定され、前景色が緑で表示されることが示されている。   In FIG. 18, “transparency”, “L”, “reduction ratio”, and “foreground color” are displayed from the top of the setting screen 251, and the transparency and distance L (FIG. 10) when the accompanying state frame is displayed. ), Setting items for the reduction ratio for the editing target state frame and the foreground color of the accompanying state frame. The transparency is displayed in% and is set in the range of 0 to 100. As the value of transparency is higher, the transparency is higher. For example, when the value is 0%, the transparency is not completely transparent. As described with reference to FIG. 10, the distance L indicates the distance from the position of the pointer to the center position of the accompanying state frame displayed in units of pixels. The reduction ratio is a reduction ratio with respect to the edit target state frame, is displayed in%, and is set in a range of 0 to 100. The foreground color is an item for designating the foreground color of the accompanying state frame, and is set in the range of 0 to 255 for the three primary colors of RGB light from the left. In the case of FIG. 18, R (Red) is set to 0, G (Green) is set to 255, B (Blue) is set to 0, and the foreground color is displayed in green.

ステップS163において、随伴ステート枠設定データ設定部45は、随伴ステート枠設定データが設定されたか否かを判定し、設定されたと判定されるまで、その処理を繰り返す。例えば、全ての設定がなされたと判定された場合、ステップS164において、随伴ステート枠設定データ設定部45は、図18で示されるような随伴ステート枠設定データを更新して記憶する。   In step S163, the accompanying state frame setting data setting unit 45 determines whether or not the accompanying state frame setting data has been set, and repeats the process until it is determined that the setting has been made. For example, if it is determined that all settings have been made, in step S164, the accompanying state frame setting data setting unit 45 updates and stores the accompanying state frame setting data as shown in FIG.

以上の処理により、随伴ステート枠を表示するための随伴ステート枠設定データが設定されるため、所望の透明度、位置、大きさ、および色で随伴ステート枠を表示させるようにすることができる。   With the above processing, the accompanying state frame setting data for displaying the accompanying state frame is set, so that the accompanying state frame can be displayed with desired transparency, position, size, and color.

以上によれば、トランジションが編集される際、トランジションの遷移先が確定するまでの間、トランジションの先頭位置に存在するポインタの移動に追従して、その近傍に、編集対象ステート(トランジションの起点となる状態)のステート枠が縮小された状態の随伴ステート枠として表示されることになるので、トランジションを引く際に、仮に状態遷移図表示画面111上に編集対象ステートのステート枠がなくても随伴ステート枠を見るだけで、編集対象ステートを認識することが可能となり、トランジションを描画する際、起点となる状態を正確に認識しながら描画することが可能となる。   According to the above, when the transition is edited, until the transition destination of the transition is determined, the movement of the pointer existing at the start position of the transition is followed and the edit target state (the transition start point and State state) is displayed as an associated state frame in a reduced state. Therefore, when a transition is drawn, even if there is no state frame of the edit target state on the state transition diagram display screen 111, the accompanying state frame is displayed. It is possible to recognize the state to be edited simply by looking at the state frame, and when drawing a transition, it is possible to draw while accurately recognizing the starting state.

上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム記録媒体からインストールされる。   The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a program recording medium in a general-purpose personal computer or the like.

図19は、図1の状態遷移プログラム編集装置1の電気的な内部構成をソフトウェアにより実現する場合のパーソナルコンピュータの一実施の形態の構成を示している。パーソナルコンピュータのCPU501は、パーソナルコンピュータの全体の動作を制御する。また、CPU501は、バス504および入出力インタフェース505を介してユーザからキーボードやマウスなどからなる入力部506から指令が入力されると、それに対応してROM(Read Only Memory)502に格納されているプログラムを実行する。あるいはまた、CPU501は、ドライブ510に接続された磁気ディスク、光ディスク、光磁気ディスク、または半導体メモリを含むリムーバルメディア521から読み出され、記憶部508にインストールされたプログラムを、RAM(Random Access Memory)503にロードして実行する。これにより、上述した図1の状態遷移プログラム編集装置1の機能が、ソフトウェアにより実現されている。さらに、CPU501は、通信部509を制御して、外部と通信し、データの授受を実行する。   FIG. 19 shows a configuration of an embodiment of a personal computer when the electrical internal configuration of the state transition program editing apparatus 1 of FIG. 1 is realized by software. The CPU 501 of the personal computer controls the overall operation of the personal computer. Further, when a command is input from the input unit 506 such as a keyboard or a mouse from the user via the bus 504 and the input / output interface 505, the CPU 501 stores the instruction in a ROM (Read Only Memory) 502 correspondingly. Run the program. Alternatively, the CPU 501 reads a program read from a removable medium 521 including a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory connected to the drive 510 and installed in the storage unit 508 into a RAM (Random Access Memory). Load to 503 and execute. Thereby, the function of the state transition program editing device 1 of FIG. 1 described above is realized by software. Further, the CPU 501 controls the communication unit 509 to communicate with the outside and exchange data.

コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを格納するプログラム記録媒体は、図19に示すように、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスクを含む)、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア521、または、プログラムが一時的もしくは永続的に格納されるROM502や、記憶部508を構成するハードディスクなどにより構成される。プログラム記録媒体へのプログラムの格納は、必要に応じてルータ、モデムなどのインタフェースである通信部509を介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を利用して行われる。   As shown in FIG. 19, a program recording medium that stores a program that is installed in a computer and can be executed by the computer includes a magnetic disk (including a flexible disk), an optical disk (CD-ROM (Compact Disc-Read Only). Memory), DVD (Digital Versatile Disc) (including magneto-optical disk), or removable media 521 which is a package medium made of semiconductor memory or the like, ROM 502 where the program is temporarily or permanently stored, The storage unit 508 is configured by a hard disk or the like. The program is stored in the program recording medium using a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via a communication unit 509 that is an interface such as a router or a modem as necessary. Done.

なお、CPU501として、”Cell誕生”、日経エレクトロニクス、日経BP社、2005年2月28日、89頁乃至117頁に記載されているCellを採用することができる。   As the CPU 501, a cell described in “Birth of Cell”, Nikkei Electronics, Nikkei BP, February 28, 2005, pages 89 to 117 can be employed.

また、本明細書において、プログラム記録媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   Further, in this specification, the step of describing the program stored in the program recording medium is not limited to the processing performed in time series in the described order, but is not necessarily performed in time series. Or the process performed separately is also included.

さらに、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。   Furthermore, the embodiments of the present invention are not limited to the above-described embodiments, and various modifications can be made without departing from the gist of the present invention.

本発明を適用した状態遷移プログラム編集装置の一実施の形態の構成を示す図である。It is a figure which shows the structure of one Embodiment of the state transition program editing apparatus to which this invention is applied. 表示画面の構成例を示す図である。It is a figure which shows the structural example of a display screen. ステートデータ格納部に格納されるステート情報のデータ構造を示す図である。It is a figure which shows the data structure of the state information stored in a state data storage part. 図1の状態遷移プログラム編集装置による状態遷移プログラム編集処理を説明するフローチャートである。It is a flowchart explaining the state transition program edit process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置によるステート編集処理を説明するフローチャートである。It is a flowchart explaining the state edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置によるトランジション編集処理を説明するフローチャートである。It is a flowchart explaining the transition edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置によるトランジション編集処理を説明する図である。It is a figure explaining the transition edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置によるトランジション編集処理を説明する図である。It is a figure explaining the transition edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置による随伴ステート枠生成処理を説明するフローチャートである。It is a flowchart explaining the accompanying state frame production | generation process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置による随伴ステート枠生成処理を説明する図である。It is a figure explaining the accompanying state frame production | generation process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置によるトランジション編集処理を説明する図である。It is a figure explaining the transition edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置によるトランジション編集処理を説明する図である。It is a figure explaining the transition edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置によるスクリプト編集処理を説明するフローチャートである。It is a flowchart explaining the script edit process by the state transition program edit apparatus of FIG. 図1の状態遷移プログラム編集装置による状態遷移プログラム実行処理を説明するフローチャートである。It is a flowchart explaining the state transition program execution process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置による状態遷移図生成処理を説明するフローチャートである。It is a flowchart explaining the state transition diagram production | generation process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置による表示処理を説明するフローチャートである。It is a flowchart explaining the display process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置による随伴ステート枠設定データ設定処理を説明するフローチャートである。It is a flowchart explaining the accompanying state frame setting data setting process by the state transition program editing apparatus of FIG. 図1の状態遷移プログラム編集装置による随伴ステート枠設定データ設定処理を説明する図である。It is a figure explaining the accompanying state frame setting data setting process by the state transition program editing apparatus of FIG. 媒体を説明する図である。It is a figure explaining a medium.

符号の説明Explanation of symbols

11 操作部, 12 編集部, 13 ステートデータ格納部, 14 状態遷移図生成部, 15 状態遷移エンジン, 16 状態動作実行部, 17 表示制御部, 18 表示部, 31 ステート編集部, 32 トランジション編集部, 33 スクリプト編集部, 41 ステート枠生成部, 42 トランジション生成部, 43 随伴ステート枠生成部, 44 編集用トランジション生成部, 45 随伴ステート枠設定データ設定部, 51 状態遷移図表示制御部, 52 状態動作表示制御部   11 operation unit, 12 editing unit, 13 state data storage unit, 14 state transition diagram generation unit, 15 state transition engine, 16 state operation execution unit, 17 display control unit, 18 display unit, 31 state editing unit, 32 transition editing unit , 33 script editing unit, 41 state frame generation unit, 42 transition generation unit, 43 accompanying state frame generation unit, 44 editing transition generation unit, 45 accompanying state frame setting data setting unit, 51 state transition diagram display control unit, 52 state Operation display controller

Claims (8)

それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、
前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、
前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、
前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、
前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する
情報処理方法。
An editing step of editing state transition information including information on an operation in each state, an event at the time of transition in each of the states, and a transition direction indicating which other state is to be transitioned by the event;
A display step for displaying a state transition diagram based on the state transition information edited by the processing of the editing step;
An operation step of operating the state transition diagram displayed by the processing of the display step;
In accordance with the operation content in the processing of the operation step, an edit transition generation step for generating an edit transition from a state frame indicating a state serving as a starting point on the state transition diagram;
A copy frame generation step for generating a copy frame that is a copy of the starting state frame at a position near the start position of the editing transition;
If the start position of the editing transition is connected to a state frame different from the starting state according to the operation content in the operating step processing, the editing step processing is the starting point. An information processing method for editing the state transition information so that a state different from a state is a transition destination in the starting state.
前記複写枠生成ステップの処理は、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を生成する
請求項1に記載の情報処理方法。
2. The information processing method according to claim 1, wherein the processing of the copy frame generation step generates a copy frame that is a copy of the starting state frame at a position near a predetermined position with respect to a start position of the editing transition. .
前記複写枠の前記起点の状態枠に対する加工手法を設定する設定ステップをさらに含む
請求項1に記載の情報処理方法。
The information processing method according to claim 1, further comprising a setting step of setting a processing technique for the starting state frame of the copy frame.
前記設定ステップの処理は、前記複写枠の前記起点の状態枠に対する、前記複写枠の透明度、前記編集用トランジションの先頭位置から複写枠の表示位置までの距離、前記複写枠の前記起点の状態枠に対する縮小率、または前記複写枠の表示色を含む加工手法を設定する
請求項3に記載の情報処理方法。
The processing of the setting step includes: transparency of the copy frame with respect to the starting state frame of the copy frame, a distance from the start position of the editing transition to the display position of the copy frame, and the starting state frame of the copy frame. The information processing method according to claim 3, wherein a processing method including a reduction ratio with respect to the image or a display color of the copy frame is set.
前記複写枠生成ステップの処理は、前記編集用トランジションの先頭位置に対して、所定の近傍の位置に、前記起点の状態枠の複写である複写枠を前記設定ステップの処理で設定された加工手法により加工して生成する
請求項3に記載の情報処理方法。
The processing of the copy frame generation step is a processing method in which a copy frame that is a copy of the starting state frame is set at a position near a predetermined position with respect to the start position of the editing transition by the processing of the setting step The information processing method according to claim 3, wherein the information processing method is generated by processing.
それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集手段と、
前記編集手段により編集された状態遷移情報に基づいて、状態遷移図を表示する表示手段と、
前記表示手段により表示された状態遷移図を操作する操作手段と、
前記操作手段における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成手段と、
前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成手段とを含み、
前記操作手段における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する
情報処理装置。
An editing means for editing state transition information including information on an operation in each state, an event at the time of transition in each state, and information on a transition direction indicating which other state is to be transitioned by the event;
Display means for displaying a state transition diagram based on the state transition information edited by the editing means;
Operating means for operating the state transition diagram displayed by the display means;
In accordance with the operation content in the operation means, an edit transition generation means for generating an edit transition from a state frame indicating a state as a starting point on the state transition diagram;
Copy frame generation means for generating a copy frame that is a copy of the starting state frame at a position near the start position of the editing transition;
When the start position of the editing transition is connected to a state frame that is different from the starting state according to the operation content in the operating means, the editing step processing is performed as the starting point state. An information processing apparatus that edits the state transition information so that different states are set as transition destinations in the starting state.
それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、
前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、
前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、
前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、
前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する
コンピュータが読み取り可能なプログラムが記録されている記録媒体。
An editing step of editing state transition information including information on an operation in each state, an event at the time of transition in each of the states, and a transition direction indicating which other state is to be transitioned by the event;
A display step for displaying a state transition diagram based on the state transition information edited by the processing of the editing step;
An operation step of operating the state transition diagram displayed by the processing of the display step;
In accordance with the operation content in the processing of the operation step, an edit transition generation step for generating an edit transition from a state frame indicating a state serving as a starting point on the state transition diagram;
A copy frame generation step for generating a copy frame that is a copy of the starting state frame at a position near the start position of the editing transition;
If the start position of the editing transition is connected to a state frame different from the starting state according to the operation content in the operating step processing, the editing step processing is the starting point. A recording medium on which a computer-readable program is recorded for editing the state transition information so that a state different from the state is a transition destination in the starting state.
それぞれの状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報を編集する編集ステップと、
前記編集ステップの処理により編集された状態遷移情報に基づいて、状態遷移図を表示する表示ステップと、
前記表示ステップの処理により表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移図上の起点となる状態を示す状態枠からの編集用トランジションを生成する編集用トランジション生成ステップと、
前記編集用トランジションの先頭位置に対して近傍の位置に、前記起点の状態枠の複写である複写枠を生成する複写枠生成ステップとを含み、
前記操作ステップの処理における操作内容に応じて、前記編集用トランジションの先頭位置が、前記起点となる状態とは異なる状態の状態枠と接続される場合、前記編集ステップの処理は、前記起点となる状態とは異なる状態を、前記起点となる状態における遷移先とするように前記状態遷移情報を編集する
処理をコンピュータに実行させるプログラム。
An editing step of editing state transition information including information on an operation in each state, an event at the time of transition in each of the states, and a transition direction indicating which other state is to be transitioned by the event;
A display step for displaying a state transition diagram based on the state transition information edited by the processing of the editing step;
An operation step of operating the state transition diagram displayed by the processing of the display step;
In accordance with the operation content in the processing of the operation step, an edit transition generation step for generating an edit transition from a state frame indicating a state serving as a starting point on the state transition diagram;
A copy frame generation step for generating a copy frame that is a copy of the starting state frame at a position near the start position of the editing transition;
If the start position of the editing transition is connected to a state frame different from the starting state according to the operation content in the operating step processing, the editing step processing is the starting point. A program that causes a computer to execute a process of editing the state transition information so that a state different from a state becomes a transition destination in the starting state.
JP2005267170A 2005-09-14 2005-09-14 Information processing method and device, recording medium and program Withdrawn JP2007079956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005267170A JP2007079956A (en) 2005-09-14 2005-09-14 Information processing method and device, recording medium and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005267170A JP2007079956A (en) 2005-09-14 2005-09-14 Information processing method and device, recording medium and program

Publications (1)

Publication Number Publication Date
JP2007079956A true JP2007079956A (en) 2007-03-29

Family

ID=37940197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005267170A Withdrawn JP2007079956A (en) 2005-09-14 2005-09-14 Information processing method and device, recording medium and program

Country Status (1)

Country Link
JP (1) JP2007079956A (en)

Similar Documents

Publication Publication Date Title
JP5361159B2 (en) Image display control device, control method therefor, program, and recording medium
US7809772B2 (en) Data change device, data generation device, related method, related recording medium, and related computer data signal
US8171400B2 (en) Image transmission apparatus for transmitting image to a plurality of image projection apparatuses and image display control method in image transmission apparatus
JP2004102497A (en) Gui application development supporting device, gui display unit and method and its computer program
KR20100114945A (en) User interface generation device
JP5979168B2 (en) Screen display device, screen display system, screen display method, and computer program
JP2010041663A (en) Image reading apparatus and guidance display for image reading system
JPH11126149A (en) Information processor and method thereof, and memory medium
JP2020123234A (en) Information processor, control method, and program thereof
JP2007079955A (en) Information processing method and device, recording medium and program
JP2007128244A (en) Information processing method and apparatus, recording medium and program
JP2007079956A (en) Information processing method and device, recording medium and program
JP2007133750A (en) Information processing method and apparatus therefor
US11182968B2 (en) Electronic device and control method thereof
JP5173724B2 (en) Music symbol input device and music symbol input program
JP6333279B2 (en) Programmable display, program
JPH08335157A (en) Scroll controller and display device
JP2010139685A (en) Projector, program and information storage medium
JP2024043571A (en) Object measuring method and device, display device, and computer program
JP4802601B2 (en) Information processing method and apparatus, recording medium, and program
EP2887331B1 (en) Content reproduction control device, content reproducing system, content reproducing method, and content reproducing program
JPH113165A (en) Information processor
JP5229000B2 (en) Information processing apparatus and program
JP2015001952A (en) Driver generating apparatus, driver generating method, and driver generating program
JP2011034460A (en) Image processing coordination system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081202