JP2006092161A - Program design device - Google Patents

Program design device Download PDF

Info

Publication number
JP2006092161A
JP2006092161A JP2004275551A JP2004275551A JP2006092161A JP 2006092161 A JP2006092161 A JP 2006092161A JP 2004275551 A JP2004275551 A JP 2004275551A JP 2004275551 A JP2004275551 A JP 2004275551A JP 2006092161 A JP2006092161 A JP 2006092161A
Authority
JP
Japan
Prior art keywords
data
state transition
common part
storage device
application position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004275551A
Other languages
Japanese (ja)
Inventor
Yasuhiro Nishikawa
泰浩 西川
Hiroyoshi Konaka
裕喜 小中
Takashi Nakagawa
隆志 中川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2004275551A priority Critical patent/JP2006092161A/en
Publication of JP2006092161A publication Critical patent/JP2006092161A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a program design device unifying data of a common part by decomposing and composing data on a state transition diagram, not requiring for trouble of writing the same diagram again and again, and not requiring for necessity to add the same correction to the diagram again and again when correcting a common part. <P>SOLUTION: State transition data of the state transition diagram are stored in a state transition data storage device 3, common part data frequently appearing in the state transition diagram are stored in a common part data storage device 4, and an application position of the common part data to the state transition data is stored in a common part data application position storage device 5 by a decomposition device 12. The state transition data stored in the state transition data storage device 3 and the common part data stored in the common part data storage device 4 are composed by use of the application position of the common part data to the state transition data stored in the common part data application position storage device 5 by the composition device 11, and they are displayed on a state transition display editing device 2 and are edited by a user. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、状態遷移図を用いてプログラムを設計するプログラム設計装置に関するものである。   The present invention relates to a program design apparatus for designing a program using a state transition diagram.

状態遷移図とは、ある事物が、さまざまなイベントによって状態が移り変わる様子を表現した図である。
状態遷移図の記法としては、統一されたモデリングを実行するための言語であるUML(Unified Modeling Language)の定義がある(非特許文献1)。
そして、入力データの再利用によって開発効率の向上を図る手段として、状態遷移図の中で頻繁に使われる状態遷移をデータベースに保存しておき、それを呼び出して状態遷移図に貼り込むという技術がある。(例えば特許文献1)
状態遷移図の表記法として、UMLの表記を用いると、各状態は角丸の矩形で表現され、矩形を結ぶ矢印によって状態の遷移を表現する。また、初期状態の表現として塗りつぶされた小丸印を用い、終了した状態を内側の円を黒く塗りつぶした二重丸で表現する。状態が内部でイベント処理を行うとき、それは矩形を実線で縦に区切り、その下側にイベントとそのアクションを”/”で区切って列挙する。
ある状態が2つ以上の並行状態を持つとき、それは状態を示す矩形を点線で縦に区切って併記される。
遷移の示す矢印には、トリガとなるイベント名、遷移するかどうかの条件判断を示すガード、そしてそのときの処理を表わすアクションが付加されていることがある。イベント名とアクションは、”/”で接続して表記され、ガードは、[と]で条件式を囲んで表記される。ガードの条件式が真であるときに遷移が発生し、偽であるときは遷移は行われない。
A state transition diagram is a diagram that expresses how an object changes its state due to various events.
As a notation of the state transition diagram, there is a definition of UML (Unified Modeling Language) which is a language for executing unified modeling (Non-patent Document 1).
And as a means of improving development efficiency by reusing input data, there is a technology that saves frequently used state transitions in the state transition diagram in a database, calls it, and pastes it in the state transition diagram is there. (For example, Patent Document 1)
If the notation of UML is used as the notation of the state transition diagram, each state is represented by a rounded rectangle, and the state transition is represented by an arrow connecting the rectangles. In addition, a small circle is used as a representation of the initial state, and the completed state is represented by a double circle in which the inner circle is painted black. When a state performs event processing internally, it encloses a rectangle vertically with a solid line and lists events and their actions separated by “/” below them.
When a state has two or more parallel states, it is written along with a rectangle indicating the state vertically separated by a dotted line.
An arrow indicating a transition may have an event name serving as a trigger, a guard indicating whether or not to make a transition determination, and an action indicating processing at that time. The event name and action are expressed by connecting with “/”, and the guard is expressed by enclosing the conditional expression with [and]. A transition occurs when the guard conditional expression is true, and no transition is made when it is false.

特許文献1は、画面遷移図の中で頻繁に使われる画面遷移パターンをデータベースに保存しておき、それを呼び出して再利用するものが示され、ここで、頻繁に使われる画面遷移パターンは、画面遷移図の所定の領域を入力装置により指定されたものがデータベースに登録され、画面遷移パターンの再利用は、画面遷移パターンの部品名を入力して、この部品名をキーとしてデータベースを検索して、該当する画面遷移パターンを抽出して画面遷移図の指定された箇所にコピーすることにより、行われる。
また、UMLの記法では、サブマシンという状態遷移への参照を入れ子にして別レイヤーとして記述することで、頻繁に使われる状態遷移の定義を一カ所に纏め、入力したデータの再利用を促している。
Patent Document 1 shows a screen transition pattern that is frequently used in a screen transition diagram stored in a database, which is called and reused. Here, a frequently used screen transition pattern is: A specified area of the screen transition diagram specified by the input device is registered in the database, and the screen transition pattern is reused by entering the part name of the screen transition pattern and searching the database using this part name as a key. This is done by extracting the relevant screen transition pattern and copying it to the designated location in the screen transition diagram.
In addition, in the UML notation, references to state transitions called submachines are nested and described as separate layers, so that frequently used state transition definitions are gathered in one place and the reuse of input data is promoted. .

UMLリファレンスマニュアル(ISBN4−89471−267−9),ジェームスランボー他,pp61−72UML Reference Manual (ISBN4-89471-267-9), James Lambeau et al., Pp61-72 特開平7−219754号公報(第3〜8頁、図2)JP-A-7-219754 (pages 3-8, FIG. 2)

UMLで定義されている図の形式である状態遷移図を書く際には、同じような状態遷移が何度も図中に現れ、同じものを何度も書かなければならないことがある。このことにより、同じものを何度も書く手間の問題があり、また、図を必要以上に複雑にして可読性を欠いたり、意図する図が2次元上の図面上で簡潔に表現できないという問題があり、修正時に図中の複数部分に同じ修正を加えなければならないという問題がある。
これらにより、ソフトウエアの設計に関するコストが大きいものとなっていた。
特許文献1のものでは、画面遷移図の中で頻繁に使われる画面遷移パターンをデータベースに保存しておき、それを呼び出してコピーして再利用するものが示されているが、データベースへの登録時と、再利用時に入力装置による画面遷移図の領域や画面遷移パターン名の入力が必要であり、とくにコピーされた後の修正は、コピー全てを修正する必要があり、使い難いことは否めなかった。
状態遷移図は、図としての表層的な意味合いだけではなく、図中の要素やそれらの接続・包含関係などが実プログラムを反映した属性やアクション、並行状態遷移などを持っている。そのため、図的な加工だけでは、その意味合いを扱うことができない。
When writing a state transition diagram in the form of a diagram defined in UML, similar state transitions may appear in the diagram many times, and the same thing may have to be written many times. As a result, there are problems of writing the same thing over and over, problems such as making the figure more complex than necessary and lacking readability, and inability to express the intended figure simply on a two-dimensional drawing. There is a problem that the same correction must be made to a plurality of parts in the figure at the time of correction.
As a result, the cost related to software design has become large.
Patent Document 1 shows that a screen transition pattern that is frequently used in a screen transition diagram is stored in a database, and is recalled, copied, and reused. It is necessary to input the screen transition diagram area and screen transition pattern name by the input device at the time of reuse, especially when copying, it is necessary to correct all the copies, and it cannot be denied that it is difficult to use It was.
The state transition diagram has not only the surface meaning as a diagram, but also attributes and actions reflecting the actual program, parallel state transitions, etc., in the elements in the diagram and their connection / inclusion relationships. Therefore, the implications cannot be handled only by graphic processing.

この発明は、上述のような課題を解決するためになされたものであり、状態遷移図のデータを分解・合成することにより、共通部のデータを一元化し、同じものを何度も書く手間が無く、共通部の修正時に何度も同じ修正を図に加える必要が無いプログラム設計装置を得ることを目的にしている。   The present invention has been made to solve the above-mentioned problems, and by disassembling and synthesizing the data of the state transition diagram, the data of the common part is unified, and the trouble of writing the same thing over and over again. The purpose of the present invention is to obtain a program design apparatus that does not require the same correction to be repeated many times when the common part is corrected.

この発明に係わるプログラム設計装置においては、ユーザに状態遷移図を表示すると共にユーザによる状態遷移図の編集が行われる状態遷移表示編集装置、状態遷移図に頻出する共通部データを格納した共通部データ格納装置、共通部データを除く状態遷移図の状態遷移データを格納した状態遷移データ格納装置、状態遷移データへの共通部データの適用位置情報を格納した共通部データ適用位置格納装置、この共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報を用いて、状態遷移データ格納装置に格納された状態遷移データに共通部データ格納装置に格納された共通部データを合成し、この合成された状態遷移図を状態遷移表示編集装置に表示する合成装置、及び状態遷移表示編集装置により編集された状態遷移図を、共通部データと状態遷移データと状態遷移データへの共通部データの適用位置情報とに分解し、分解された共通部データを共通部データ格納装置に、状態遷移データを状態遷移データ格納装置に、状態遷移データへの共通部データの適用位置情報を共通部データ適用位置格納装置にそれぞれ格納する分解装置を備えたものである。   In the program design apparatus according to the present invention, a state transition display editing apparatus for displaying a state transition diagram to the user and editing the state transition diagram by the user, common part data storing common part data frequently appearing in the state transition diagram Storage device, state transition data storage device storing state transition data of state transition diagram excluding common portion data, common portion data application position storage device storing application position information of common portion data to state transition data, this common portion Common part data stored in the common part data storage device in the state transition data stored in the state transition data storage device using the application position information of the common part data to the state transition data stored in the data application position storage device Are synthesized by a synthesis device that displays the synthesized state transition diagram on a state transition display editing device, and a state transition display editing device. The state transition diagram is decomposed into common part data, state transition data, and application position information of the common part data to the state transition data. The state transition data storage device includes a disassembly device that stores application position information of common part data to state transition data in the common part data application position storage device.

この発明は、以上説明したように、ユーザに状態遷移図を表示すると共にユーザによる状態遷移図の編集が行われる状態遷移表示編集装置、状態遷移図に頻出する共通部データを格納した共通部データ格納装置、共通部データを除く状態遷移図の状態遷移データを格納した状態遷移データ格納装置、状態遷移データへの共通部データの適用位置情報を格納した共通部データ適用位置格納装置、この共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報を用いて、状態遷移データ格納装置に格納された状態遷移データに共通部データ格納装置に格納された共通部データを合成し、この合成された状態遷移図を状態遷移表示編集装置に表示する合成装置、及び状態遷移表示編集装置により編集された状態遷移図を、共通部データと状態遷移データと状態遷移データへの共通部データの適用位置情報とに分解し、分解された共通部データを共通部データ格納装置に、状態遷移データを状態遷移データ格納装置に、状態遷移データへの共通部データの適用位置情報を共通部データ適用位置格納装置にそれぞれ格納する分解装置を備えたので、状態遷移図に頻出する共通部データを一元化することができ、そのため、同じものを何度も書く手間が無くなり、共通部の修正時に何度も同じ修正を図に加える必要が無くなる効果がある。   As described above, the present invention is a state transition display editing apparatus that displays a state transition diagram to a user and edits the state transition diagram by the user, and common portion data that stores common portion data that frequently appears in the state transition diagram. Storage device, state transition data storage device storing state transition data of state transition diagram excluding common portion data, common portion data application position storage device storing application position information of common portion data to state transition data, this common portion Common part data stored in the common part data storage device in the state transition data stored in the state transition data storage device using the application position information of the common part data to the state transition data stored in the data application position storage device , And the state transition edited by the state transition display editing device and the composition device that displays the combined state transition diagram on the state transition display editing device The figure is decomposed into common part data, state transition data, and application position information of common part data to state transition data, and the decomposed common part data is stored in the common part data storage device and the state transition data is stored in the state transition data. Since the apparatus is equipped with a decomposition device that stores application position information of common part data to state transition data in the common part data application position storage device, common part data that frequently appears in the state transition diagram can be unified, This eliminates the need to write the same thing over and over, and eliminates the need to repeatedly apply the same correction to the diagram when the common part is corrected.

実施の形態1.
本発明の実施の形態について説明する。
図1は、この発明の実施の形態1によるプログラム設計装置の構造を示すブロック図である。
図1において、プログラム設計装置は、合成分解装置1と、状態遷移表示編集装置2と、状態遷移データ格納装置3と、共通部データ格納装置4と、共通部データ適用位置格納装置5と、共通部表示選択機構6(共通部表示選択手段)とから構成されている。
合成分解装置1は、状態遷移図を同一のレイヤーで合成することができる合成装置11と、同様に分解できる分解装置12から成る。状態遷移表示編集装置2は、合成装置11によって合成された状態遷移図のデータをユーザに提示すると共に、ユーザの編集操作を分解装置12に伝達する。状態遷移データ格納装置3は、ユーザが編集・閲覧する状態遷移図を表す状態遷移データを保持している。共通部データ格納装置4は、一つの状態遷移図中に頻出し、共通的に利用されている状態遷移のパターンやステート(状態)の属性、アクションなどの共通部データを保持している。共通部データ適用位置格納装置5は、共通部データ格納装置4が保持している共通部データを、状態遷移データ格納装置3が持つ状態遷移データの、どのステートに適用して状態遷移を合成するかの共通部データ適用位置データを保持している。共通部表示選択機構6は、合成装置11が、共通部データの合成をするかしないかを切り替えるものである。
Embodiment 1 FIG.
Embodiments of the present invention will be described.
FIG. 1 is a block diagram showing the structure of a program design apparatus according to Embodiment 1 of the present invention.
In FIG. 1, the program design apparatus includes a synthesis / decomposition apparatus 1, a state transition display editing apparatus 2, a state transition data storage apparatus 3, a common part data storage apparatus 4, and a common part data application position storage apparatus 5. A part display selection mechanism 6 (common part display selection means).
The synthesizing / decomposing apparatus 1 includes a synthesizing apparatus 11 capable of synthesizing state transition diagrams in the same layer, and a decomposing apparatus 12 capable of decomposing similarly. The state transition display editing device 2 presents the data of the state transition diagram synthesized by the synthesizing device 11 to the user and transmits the user's editing operation to the disassembling device 12. The state transition data storage device 3 holds state transition data representing a state transition diagram edited and browsed by the user. The common part data storage device 4 stores common part data such as state transition patterns, state (state) attributes, and actions that are frequently used in one state transition diagram and are commonly used. The common part data application position storage device 5 applies the common part data held by the common part data storage device 4 to which state of the state transition data of the state transition data storage device 3 to synthesize the state transition. The common part data application position data is held. The common part display selection mechanism 6 switches whether the synthesizing device 11 synthesizes common part data.

実施の形態1は、頻出する状態遷移を、共通部データとして、状態遷移図の状態遷移データとは別に持つことにし、状態遷移図のデータを、状態遷移データと、共通部データと、共通部データを状態遷移データのどこに合成するかを示す共通部データ適用位置データによって表現し、その上で各データを合成してユーザに提示し、ユーザの編集結果は、上記各データに分解して格納することにより、共通部のデータを一元化することができるようにした。このため、同じものを何度も書く手間が無く、共通部の修正時に何度も同じ修正を図に加える必要が無いプログラム設計装置を得ている。
図が複雑になることによる可読性の問題は、共通部データの合成をするかしないかを切り替えるための共通部表示選択機構6を追加することにより解決している。
In the first embodiment, state transitions that occur frequently are used as common part data, separately from the state transition data of the state transition diagram, and the state transition diagram data includes state transition data, common part data, and common part data. Data is expressed by common part data application position data indicating where in the state transition data is to be combined, each data is then combined and presented to the user, and the user's editing result is decomposed and stored into each of the above data By doing so, the data of the common part can be unified. For this reason, there is no need to write the same thing over and over, and a program design apparatus is obtained that does not require the same correction to be repeated over and over when the common part is corrected.
The problem of readability due to the complexity of the figure is solved by adding a common part display selection mechanism 6 for switching whether to synthesize common part data.

図2は、この発明の実施の形態1によるプログラム設計装置における共通的な並行状態の一例を示す状態遷移図である。
図2において、ステート7(状態)の移り変わる様子を、遷移8の矢印により示し、共通的な並行状態の定義201a、201bが示されている。
図2は、状態遷移図の表記法として、UMLの表記を用いたものである。状態遷移図の表記法として、UMLの表記を用いると、各状態(ステート7)は、角丸の矩形で表現され、矩形を結ぶ矢印によって状態の遷移8を表現する。また、初期状態の表現として、図2中201a左側のような塗りつぶされた小丸印を用い、終了した状態を、図2中201a右側のような、内側の円を黒く塗りつぶした二重丸で表現する。状態が内部でイベント処理を行うとき、それは矩形を実線で縦に区切り、その下側にイベントとそのアクションを”/”で区切って列挙する(図3参照)。
ある状態が2つ以上の並行状態を持つとき、図2に示されるように、状態を示す矩形を点線で縦に区切って併記される。
遷移の示す矢印には、トリガとなるイベント名、遷移するかどうかの条件判断を示すガード、そしてそのときの処理を表わすアクションが付加されていることがある。イベント名とアクションは、”/”で接続して表記され、ガードは、[と]で条件式を囲んで表記される(図10の[n<3])。ガードの条件式が真であるときに遷移が発生し、偽であるときは遷移は行われない。
図3は、この発明の実施の形態1によるプログラム設計装置における共通的なイベントとアクションの組の一例を示す状態遷移図である。
図4は、この発明の実施の形態1によるプログラム設計装置における可変部分を持つ共通的なイベントとアクションの一例を示す状態遷移図と共通部の図である。
FIG. 2 is a state transition diagram showing an example of a common parallel state in the program design apparatus according to Embodiment 1 of the present invention.
In FIG. 2, the transition of state 7 (state) is indicated by an arrow of transition 8, and common parallel state definitions 201a and 201b are shown.
FIG. 2 uses UML notation as the notation of the state transition diagram. If the notation of UML is used as the notation of the state transition diagram, each state (state 7) is represented by a rounded rectangle, and the state transition 8 is represented by an arrow connecting the rectangles. In addition, as a representation of the initial state, a filled small circle mark as shown on the left side of 201a in FIG. 2 is used, and the completed state is represented by a double circle obtained by painting the inner circle black as shown on the right side of 201a in FIG. To do. When a state performs event processing internally, it encloses a rectangle vertically with a solid line and enumerates events and their actions separated by “/” below (see FIG. 3).
When a certain state has two or more parallel states, as shown in FIG. 2, rectangles indicating the states are vertically separated by dotted lines.
An arrow indicating a transition may have an event name serving as a trigger, a guard indicating whether or not to make a transition determination, and an action indicating processing at that time. The event name and the action are described by being connected with “/”, and the guard is expressed by enclosing the conditional expression with [and] ([n <3] in FIG. 10). A transition occurs when the guard conditional expression is true, and no transition is made when it is false.
FIG. 3 is a state transition diagram showing an example of a set of common events and actions in the program design apparatus according to Embodiment 1 of the present invention.
FIG. 4 is a state transition diagram and a common part diagram showing an example of common events and actions having variable parts in the program design apparatus according to Embodiment 1 of the present invention.

図5は、この発明の実施の形態1によるプログラム設計装置の合成装置の動作を示すフローチャートである。
図6は、この発明の実施の形態1によるプログラム設計装置の編集操作が加えられた時の分解装置の動作を示すフローチャートである。
FIG. 5 is a flowchart showing the operation of the synthesizing apparatus of the program design apparatus according to Embodiment 1 of the present invention.
FIG. 6 is a flowchart showing the operation of the decomposition apparatus when an editing operation of the program design apparatus according to Embodiment 1 of the present invention is applied.

図7は、この発明の実施の形態1によるプログラム設計装置の状態遷移データ格納装置に格納されている状態遷移図の例を示す図である。
図8は、この発明の実施の形態1によるプログラム設計装置の共通部データ格納装置に格納されている共通部データの例を示す図である。
図9は、この発明の実施の形態1によるプログラム設計装置の、共通部データ適用位置格納装置に格納されている共通部データ適用位置データの例を示す図である。
図10は、この発明の実施の形態1によるプログラム設計装置の合成装置が図7、図8、図9のデータを元に合成した結果の状態遷移図である。
図11は、この発明の実施の形態1によるプログラム設計装置の合成装置が共通データの一部を合成しなかった場合の結果例を示す図である。
図12は、この発明の実施の形態1によるプログラム設計装置の合成装置が共通データの一部を合成せずに状態遷移表示編集装置上でマークを付けて表示する場合を示す状態遷移図である。
FIG. 7 is a diagram showing an example of a state transition diagram stored in the state transition data storage device of the program design device according to Embodiment 1 of the present invention.
FIG. 8 is a diagram showing an example of common part data stored in the common part data storage device of the program design apparatus according to Embodiment 1 of the present invention.
FIG. 9 is a diagram showing an example of common part data application position data stored in the common part data application position storage device of the program design apparatus according to Embodiment 1 of the present invention.
FIG. 10 is a state transition diagram as a result of the synthesis of the program design apparatus according to the first embodiment of the present invention based on the data of FIG. 7, FIG. 8, and FIG.
FIG. 11 is a diagram showing a result example when the synthesizing apparatus of the program designing apparatus according to the first embodiment of the present invention does not synthesize part of the common data.
FIG. 12 is a state transition diagram showing a case where the synthesizing apparatus of the program designing apparatus according to the first embodiment of the present invention displays a mark on the state transition display editing apparatus without synthesizing a part of the common data. .

図13は、この発明の実施の形態1によるプログラム設計装置の編集操作により状態遷移データに追加が行われた結果を示す図である。
図14は、この発明の実施の形態1によるプログラム設計装置の編集操作により共通部データに編集が行われた結果を示す図である。
図15は、この発明の実施の形態1によるプログラム設計装置の編集操作により共通部データに追加が行われた結果を示す図である。
FIG. 13 is a diagram showing the result of addition to the state transition data by the editing operation of the program design device according to Embodiment 1 of the present invention.
FIG. 14 is a diagram showing a result of editing the common part data by the editing operation of the program design device according to Embodiment 1 of the present invention.
FIG. 15 is a diagram showing a result of addition to the common part data by the editing operation of the program design device according to Embodiment 1 of the present invention.

次に、動作について説明する。
状態遷移データ格納装置3が、ユーザが編集・閲覧する状態遷移図を表すデータを保持している。保持しているのは、状態を表すステートの一覧と、どのようなイベントを受けてどのように遷移するかを示すデータと、どのようなイベントを受けて各ステートがどのようなアクションを起こすかを示すデータと、各遷移が遷移時に起こすアクションおよび遷移をブロックするガード条件である。また、それぞれの要素にはラベルが付けられており、名前付けされている。また、状態遷移表示編集装置2が各要素をどのように表示するかを示す表示位置などのデータも持つ。
Next, the operation will be described.
The state transition data storage device 3 holds data representing a state transition diagram edited and browsed by the user. What we have is a list of states that represent states, data indicating what events are received and how they are transitioned, and what actions each state takes in response to what events are received And the guard condition that blocks the action and transition that each transition causes at the time of transition. Each element is labeled and named. It also has data such as a display position indicating how the state transition display editing device 2 displays each element.

一つの状態遷移図中に共通的に利用されている状態遷移のパターンやステートの属性、アクションなどは、共通部データ格納装置4が保持している。これは、図2の201aと201bのように図的に離れてしまったステートに存在する共通的な並行状態の定義であったり、図3のように、多数のステートが共通的に持っているイベントとアクションの組である。ステートに共通部データを合成するために、共通部データは仮想的な合成対象のステートを持っている。合成後にこれらの共通データをどのように表示するかを示す表示位置(相対位置)のデータや、複数の共通データが一カ所に合成される際の表示の優先順位などのデータも持つ。共通データの中の属性は、可変部分であることを示すタグを含むことができて、この部分は合成装置11によって書き換えられる。これは例えば図4のように、可変部分の名前を{}で括って表現するなどの方法が考えられる。   The common part data storage device 4 holds state transition patterns, state attributes, actions, and the like that are commonly used in one state transition diagram. This is a definition of a common parallel state that exists in states that are separated graphically, such as 201a and 201b in FIG. 2, or many states have in common as shown in FIG. A set of events and actions. In order to synthesize the common part data with the state, the common part data has a virtual synthesis target state. It also has display position (relative position) data indicating how to display these common data after combining, and data such as display priority when combining a plurality of common data in one place. The attribute in the common data can include a tag indicating that it is a variable part, and this part is rewritten by the synthesizer 11. For example, as shown in FIG. 4, a method of expressing the name of the variable part by enclosing it with {} can be considered.

共通部データ適用位置格納装置5は、共通部データ格納装置4が保持している共通部データを、状態遷移データ格納装置3が持つ状態遷移データの、どのステートに適用して状態遷移を合成するかを示す共通部データ適用位置データを保持している。この共通部データ適用位置格納装置5が持っているのは、適用される先のステートと適用する共通部データを指し示すデータである。共通データ中の属性のうち、可変である部分をどのように書き換えるかの情報も、この共通部データ適用位置格納装置5が保持する。   The common part data application position storage device 5 applies the common part data held by the common part data storage device 4 to which state of the state transition data of the state transition data storage device 3 to synthesize the state transition. The common part data application position data indicating this is held. The common part data application position storage device 5 has data indicating the destination state to be applied and common part data to be applied. The common part data application position storage device 5 also holds information on how to rewrite a variable part of the attributes in the common data.

合成装置11は、共通部データ適用位置格納装置5からどの共通部データが状態遷移データのどのステートに適用するかの適用位置を取得し、状態遷移データ格納装置3から取得した状態遷移データに、共通部データ格納装置4から取得した共通部データを優先順位に従った順番で合成する。この合成装置11によって合成されたデータが、状態遷移表示編集装置2に引き渡され、そのデータが閲覧・編集の対象となる。
合成された状態遷移図のデータの各要素には、新たにタグが付加され、状態遷移データ格納装置3より取得されたデータそのままであるか、共通部データの合成によって改変されたものであるか、共通部データの合成によって追加されたものであるかが区別できるようにする。合成によるデータのタグの場合、どの共通部データ適用位置格納装置5内のデータによって合成されたかを示すデータも付加する。この他、共通データ中の属性の可変部分に、共通部データ適用位置格納装置5のデータを適用させる動作も行う。
The synthesizing device 11 acquires the application position of which common part data is applied to which state of the state transition data from the common part data application position storage device 5, and the state transition data acquired from the state transition data storage device 3 The common part data acquired from the common part data storage device 4 is combined in the order according to the priority order. The data synthesized by the synthesizing device 11 is transferred to the state transition display editing device 2, and the data becomes the object of browsing / editing.
Whether each element of the data of the synthesized state transition diagram is newly added with a tag, is the data acquired from the state transition data storage device 3 as it is, or is it modified by the synthesis of the common part data? It is possible to distinguish whether the data is added by the synthesis of the common part data. In the case of a data tag by synthesis, data indicating which common unit data application position storage device 5 has synthesized the data is also added. In addition, the operation of applying the data of the common part data application position storage device 5 to the variable part of the attribute in the common data is also performed.

次に、合成装置の動作について、図5のフローチャートを用いて説明する。
共通部データ格納装置4に未処理の共通部データがあるかどうかを判定し(ステップ21)、ない場合は終了し、ある場合は、未処理の共通部データを一つ取り出す(ステップ22)。次いで、共通部データ適用位置格納装置5に未合成の共通部データ適用位置データがあるかどうかを判定し(ステップ23)、ない場合は、ステップ21に行き、ある場合は、共通部データ適用位置データを一つ取り出し、状態遷移データから検索する(ステップ24)。次いで、共通部データを、ステップ24の検索で得られた場所に合成する(ステップ25)。
Next, the operation of the synthesizing apparatus will be described using the flowchart of FIG.
It is determined whether or not there is unprocessed common part data in the common part data storage device 4 (step 21). If there is no unprocessed common part data, the process ends. If there is, unprocessed common part data is extracted (step 22). Next, it is determined whether or not there is uncombined common part data application position data in the common part data application position storage device 5 (step 23). If there is no common part data application position data, go to step 21; One piece of data is extracted and searched from the state transition data (step 24). Next, the common part data is combined with the place obtained by the search in step 24 (step 25).

分解装置12は、状態遷移表示編集装置2で、ユーザにより状態遷移図が編集された時、その編集された部分が、状態遷移データ格納装置3からのデータで、合成されていない場合、対応する状態遷移データ格納装置3内部のデータを更新する。
編集された部分が、共通部データの合成によって追加された部分であれば、対応する共通部データ格納装置4内部のデータを更新する。
編集された部分が、合成によって改変されたものである場合、それはすなわち、編集された部分がその内部に、合成によって追加された要素を持つと言うことである。そこで、内部要素を走査し、それぞれについて状態遷移データ格納装置3を更新するか、共通部データを更新するかを判断し、データを更新する。
共通データの可変部分以外では、合成装置11は、状態遷移データの追加しか行わないため、合成されたデータを細分化すると、必ずどちらかの格納装置を起源にすると判断可能である。
共通データの可変部分が変更されていた場合は、対応する共通データ適用位置格納装置5の該当データを更新する。
When the state transition diagram is edited by the user in the state transition display editing device 2 and the edited part is the data from the state transition data storage device 3 and is not combined, the disassembly device 12 corresponds. Data in the state transition data storage device 3 is updated.
If the edited part is a part added by the synthesis of the common part data, the data in the corresponding common part data storage device 4 is updated.
If the edited part has been modified by synthesis, it means that the edited part has elements added by synthesis within it. Therefore, the internal elements are scanned, and it is determined whether to update the state transition data storage device 3 or common part data for each, and update the data.
Except for the variable part of the common data, the synthesizer 11 only adds state transition data. Therefore, when the synthesized data is subdivided, it can be determined that one of the storage devices originates.
If the variable part of the common data has been changed, the corresponding data in the corresponding common data application position storage device 5 is updated.

分解装置12に対して、状態遷移表示編集装置2から共通部分の合成の削除が伝達された場合、分解装置12は、共通部データ適用位置格納装置5から該当データを消去する。
分解装置12に対して、状態遷移表示編集装置2から共通部分の合成位置の追加が行われた場合、分解装置12は、共通部データ適用位置格納装置5に対して新しいデータを追加する。追加後、適用するべき共通部データの指定と共通部データの可変部分の内容を状態遷移表示編集装置2から受け取り、データを完成させる。
分解装置12に対して、状態遷移表示編集装置2から、ステートや遷移などの要素の追加が行われた場合は、それが状態遷移データに属するデータであるのか、または、どの共通部データに属するデータであるのかを状態遷移表示編集装置2から取得して、対応する格納装置を峻別し、処理を行う。
When the deletion of the common part is transmitted from the state transition display editing device 2 to the disassembly device 12, the disassembly device 12 deletes the corresponding data from the common portion data application position storage device 5.
When the common part combining position is added from the state transition display editing device 2 to the disassembly device 12, the disassembly device 12 adds new data to the common part data application position storage device 5. After the addition, the designation of the common part data to be applied and the contents of the variable part of the common part data are received from the state transition display editing device 2 to complete the data.
When an element such as a state or transition is added from the state transition display editing device 2 to the disassembling device 12, it is data belonging to the state transition data or to which common part data belongs Whether the data is data is acquired from the state transition display editing device 2, and the corresponding storage device is distinguished, and processing is performed.

次に、分解装置12の動作について、図6のフローチャートを用いて説明する。
状態遷移表示編集装置上で要素が編集された後に、その操作が共通部データ適用位置の追加削除処理であるかどうかを判定し(ステップ31)、yesの場合には、共通部データの追加削除処理を行い(ステップ32)、終了する。noの場合には、共通部データ適用位置の可変要素の値の変更であるかどうかを判定し(ステップ33)、yesの場合には、可変要素の更新処理を行い(ステップ34)、終了する。noの場合には、要素のタグが状態遷移データ格納装置のものになっているかどうかを判定し(ステップ35)、yesの場合には、状態遷移データ格納装置のデータを更新する(ステップ36)。noの場合には、共通部データ格納装置の該当データを更新する(ステップ37)。
Next, operation | movement of the decomposition | disassembly apparatus 12 is demonstrated using the flowchart of FIG.
After the element is edited on the state transition display editing device, it is determined whether or not the operation is an addition / deletion process of the common part data application position (step 31). Processing is performed (step 32), and the process ends. If no, it is determined whether or not the value of the variable element at the common part data application position is changed (step 33). If yes, the variable element is updated (step 34), and the process ends. . If no, it is determined whether the tag of the element is that of the state transition data storage device (step 35). If yes, the data of the state transition data storage device is updated (step 36). . If no, the corresponding data in the common unit data storage device is updated (step 37).

状態遷移表示編集装置2は、合成装置11によって合成された状態遷移図のデータをユーザに提示すると共に、ユーザの編集操作を分解装置12に伝達する。
状態遷移表示編集装置2は、ユーザからの操作を受けて、ステートや遷移などの追加・削除・アクションやラベルの変更、共通部データを合成する箇所の追加、共通部データを合成する位置の削除、共通部データの新規作成、共通部データの削除、そして共通部データの可変箇所の設定変更を行う。ステートや遷移などの追加・削除・変更に関しては、合成装置11から取得した状態遷移図のデータから、該当部位が状態遷移データ格納装置3のデータによるものか、共通部データ格納装置4のデータによるものかが判断できるので、編集結果を分解装置12に伝える際には、編集された要素がどこのデータによるものかを区別して伝えることができる。
The state transition display editing device 2 presents the data of the state transition diagram synthesized by the synthesizing device 11 to the user and transmits the user's editing operation to the disassembling device 12.
Upon receiving an operation from the user, the state transition display editing device 2 adds / deletes / changes actions / labels such as states and transitions, adds a portion where the common portion data is combined, and deletes a position where the common portion data is combined. New creation of common part data, deletion of common part data, and setting change of variable part of common part data. Regarding addition / deletion / change of states, transitions, etc., from the data of the state transition diagram acquired from the synthesizing device 11, whether the corresponding part is from the data of the state transition data storage device 3, or from the data of the common part data storage device 4 Since it is possible to determine whether the edited element is transmitted, when the edited result is transmitted to the disassembling apparatus 12, the edited element can be distinguished and transmitted.

状態遷移表示編集装置2による、ユーザへの状態遷移図の表示の仕方は、一般の計算機と同様に、CRTや液晶モニタによる表示、またはプリンタによって印刷を行うなどの方法とする。ユーザからの入力手段としては、マウスやキーボードが考えられる。
合成された状態遷移図を表示する際には、ステートや遷移に対して表示位置を決定しなければならないが、状態遷移データ格納装置3に格納されるデータに関しては、表示位置のデータは、ユーザがステートや遷移を作成する際に指定した位置を利用するものとする。
または、共通部データが付加された場合には、状態遷移表示編集装置2が自動で適切に移動することもあり得る。状態遷移表示編集装置2が自動で移動を行う場合、その方法としては、ある一定の距離以内に配置されたステート同士に斥力を持たせて、安定するまで各ステートを移動させる方法などがある。遷移については、入りと出のステート間の距離に比例させて形状を大小させる方法などがある。
The state transition display editing apparatus 2 displays the state transition diagram to the user in the same manner as a general computer, such as display on a CRT or liquid crystal monitor, or printing by a printer. As an input means from the user, a mouse or a keyboard can be considered.
When displaying the synthesized state transition diagram, the display position must be determined for the state and transition. Regarding the data stored in the state transition data storage device 3, the display position data is Uses the position specified when creating a state or transition.
Alternatively, when the common part data is added, the state transition display editing device 2 may automatically move appropriately. When the state transition display editing device 2 automatically moves, there is a method of moving each state until the state is stabilized by giving repulsion between the states arranged within a certain distance. As for the transition, there is a method of increasing or decreasing the shape in proportion to the distance between the incoming and outgoing states.

状態遷移表示編集装置2が、ステートや遷移などの追加・削除・アクションやラベルの変更などを行う場合の方法については、一般の状態遷移図エディタの流儀に従うことができる。ただし、追加処理の場合には、それが状態遷移データ格納装置3に格納されるべきデータであるか、共通部データとして扱われるべきデータであるかの区別が必要である。そのため、共通部データとして扱われるべきデータである場合、状態遷移表示編集装置2上にある共通部データをあらかじめ新規データの所属対象として指定しておき、状態遷移表示編集装置2は、新たに作られるデータをその共通部データの一部として処理するようにするなどの細工を必要とする。   The state transition display editing device 2 can follow the manner of a general state transition diagram editor for the method of adding / deleting / changing an action or changing a label or the like of a state or transition. However, in the case of an additional process, it is necessary to distinguish whether it is data to be stored in the state transition data storage device 3 or data to be handled as common part data. Therefore, if the data is to be handled as common part data, the common part data on the state transition display editing device 2 is designated in advance as the affiliation target of the new data, and the state transition display editing device 2 newly creates the data. Need to be crafted to process the data to be processed as part of the common data.

これらの装置が、どのように動作し、操作されるかを以下に例を挙げて説明する。
例えば、図7のようなデータを格納した状態遷移データ格納装置3と、図8のようなデータを格納した共通部データ格納装置4と、図9のようなデータを格納した共通部データ適用位置格納装置5があった場合を考える。
このとき、合成装置11は、まず図9の共通部データ適用位置格納装置5内のデータのIDが1のデータを読み出す。このデータは、並行状態の定義となっている。そして状態遷移データ格納装置3から図7で示されるデータを読み込み、これを全体データとして保持する。共通部データ適用位置の適用先がS2とS3であることから、全体データからS2とS3を検索し、共通データとして指定されているSAをS2とS3に並行状態として合成する。また、この時、SAは可変要素{g}を持っている。共通部データ適用位置のデータ上でこの値はg=4として指定されているため、可変要素を含むSA上の遷移のガード条件[gv<{g}]は、全体データ上で[gv<4]として合成される。
この合成の結果が、図10のS2とS3を包含した並行状態として表されている。
The following describes how these devices operate and operate with examples.
For example, the state transition data storage device 3 storing data as shown in FIG. 7, the common part data storage device 4 storing data as shown in FIG. 8, and the common part data application position storing data as shown in FIG. Consider the case where there is a storage device 5.
At this time, the synthesizing device 11 first reads data whose data ID is 1 in the common part data application position storage device 5 of FIG. This data is a definition of a parallel state. Then, the data shown in FIG. 7 is read from the state transition data storage device 3, and this is held as the whole data. Since the application destinations of the common part data application position are S2 and S3, S2 and S3 are searched from the entire data, and the SA designated as the common data is combined with S2 and S3 in a parallel state. At this time, the SA has a variable element {g}. Since this value is specified as g = 4 on the data of the common part data application position, the guard condition [gv <{g}] of the transition on the SA including the variable element is [gv <4 on the entire data. ] Is synthesized.
The result of this synthesis is represented as a parallel state including S2 and S3 in FIG.

次に、IDが2のデータを読み出し、IDが1のものと同様に処理し、これが図10のS3,S5の並行状態である。また、IDが3のデータも同様である。
次に、IDが4のデータを合成する。これは一つのステートにおけるイベントとそれに対するアクションの定義を共通部としている。このデータの適用位置はS2とS4であるので、全体データ上のS2とS4に対して共通なイベント・アクションの定義を合成する。この結果が図10のS2とS4を示す四角内に表記されたイベントと対応するアクションの記述となる。
図9で示される共通部データ適用位置をすべて処理した結果が図10である。
Next, data with ID 2 is read out and processed in the same way as with ID 1 and this is the parallel state of S3 and S5 in FIG. The same applies to data with an ID of 3.
Next, the data with ID 4 is synthesized. This has in common the definition of events and actions for one state. Since the application positions of this data are S2 and S4, a common event / action definition is synthesized for S2 and S4 on the entire data. This result is a description of the action corresponding to the event described in the squares indicating S2 and S4 in FIG.
FIG. 10 shows the result of processing all the common part data application positions shown in FIG.

図10のままでは可読性が低い。そこでユーザが合成データのSAについて特に興味が無い場合は、共通部表示選択機構6を用いて、共通部データ適用位置格納装置5の中のIDが1と3のデータを合成しないよう、合成装置11に指示を行う。すると図11のようになり、不要な情報が表示されなくなり、可読性を高くすることができる。   The readability is low as it is in FIG. Therefore, if the user is not particularly interested in the SA of the composite data, the compositing device is used so that the data with IDs 1 and 3 in the common part data application position storage device 5 is not composited using the common part display selection mechanism 6. 11 is instructed. Then, as shown in FIG. 11, unnecessary information is not displayed, and readability can be improved.

合成しないよう指示された共通部データ適用位置格納装置5のデータに関しては、その適用位置であるステートにマークを付けることで表示を簡略化することができる。図12では、ID=1の共通部データ適用位置に三角の旗、ID=3の適用位置に四角の旗を立てて表示している。この表示方法を取る場合には、各適用位置に見えていない合成結果が隠れていることを表現できる。どのようなマークを付けるかは、状態遷移表示編集装置2が、自動で割り振ることも可能であり、共通部データ適用位置格納装置5に付加するマークの情報を保存することで、ユーザが指定したマークを表示させることもできる。   With respect to the data in the common part data application position storage device 5 instructed not to be combined, the display can be simplified by marking the state that is the application position. In FIG. 12, a triangular flag is displayed at the common part data application position with ID = 1, and a square flag is displayed at the application position with ID = 3. When this display method is adopted, it can be expressed that the synthesis result that is not visible at each application position is hidden. It is possible for the state transition display editing device 2 to automatically assign what kind of mark is to be added, and it is specified by the user by saving the mark information to be added to the common part data application position storage device 5 Marks can also be displayed.

次に、このデータに編集操作を加えた場合を説明する。
図12を表示している状態遷移表示編集装置2において、新たにS6というステートを作成し、S3からS6、S6からS2の遷移を作成して、図13のようにしたとする。この場合、S6も各遷移も共通部データであることを指示せずにそのまま作成することで、先述の通り、自動的に状態遷移データ格納装置3のデータであることを示すタグが振られ、この追加データが、分解装置12によって状態遷移データ格納装置3の新規データとして追加される。
S1〜S5のステートやそれらの間の遷移の編集・削除の場合も、追加の場合と同様に、編集内容が状態遷移データ格納装置3に関するものと判断されて、状態遷移データ格納装置3のデータが更新される。
Next, a case where an editing operation is added to this data will be described.
Assume that the state transition display editing apparatus 2 displaying FIG. 12 newly creates a state S6 and creates transitions S3 to S6 and S6 to S2 as shown in FIG. In this case, a tag indicating that it is the data of the state transition data storage device 3 is automatically assigned as described above by creating the S6 and each transition without instructing that they are common part data. This additional data is added as new data in the state transition data storage device 3 by the disassembling device 12.
In the case of editing / deleting the states of S1 to S5 and transitions between them, the editing contents are determined to be related to the state transition data storage device 3 as in the case of addition, and the data of the state transition data storage device 3 is determined. Is updated.

図13を表示している状態遷移表示編集装置2において、合成された結果であるS3とS5に合成された並行状態のb3から終了に向かう遷移に[p<10]というガード条件を作成して図14のようにした場合、この遷移は、合成によって作成された結果であるので、合成装置11によってIDが2の共通部データ適用位置を示すタグが割り当てられている。そこで分解装置12は、この遷移の変更が共通部データ格納装置4のSBに関する変更であると判断して、共通部データ格納装置4のデータを編集する。共通部データ格納装置4が更新されると、この共通部データが利用されている他の合成箇所も同時に更新される。   In the state transition display editing apparatus 2 displaying FIG. 13, a guard condition of [p <10] is created for the transition from the combined state S3 and S5 to the end from the combined state S3 and S5. In the case of FIG. 14, since this transition is a result created by composition, a tag indicating the common part data application position with ID 2 is assigned by the composition device 11. Therefore, the disassembling apparatus 12 determines that the change of the transition is a change related to the SB of the common part data storage device 4 and edits the data of the common part data storage device 4. When the common part data storage device 4 is updated, the other combined portions where the common part data is used are also updated at the same time.

図15のように合成された部分に新しいステートと遷移を作成する場合は、それが共通部分として追加されるのかどうかのユーザの意図を、あらかじめ状態遷移表示編集装置2に伝えておくために、特定の操作を行う。特定の操作は、b1やb2などの追加される合成された所を指示した後、メニューから「この共通部データに追加」を選ぶといった手段がある。そのような操作の後に追加された要素には、共通部データ適用位置に関するタグが付加され、これを用いて分解装置12によって共通部データ格納装置4にデータが追加される。
共通部データ適用位置の追加と削除は、適用位置であるステートをユーザが選択してから、どの共通部データを追加・削除するかをユーザに選択させる。この編集操作に従って、分解装置12が共通部データ適用位置格納装置5のデータを更新する。
なお、編集操作が、状態遷移データ格納装置5に関するものか、共通部データ格納装置4に関するものかが不明な場合には、状態遷移表示編集装置2が、ユーザに問い合わせることができるものとする。
When creating a new state and transition in the synthesized part as shown in FIG. 15, in order to inform the state transition display editing apparatus 2 in advance of the user's intention as to whether or not it is added as a common part, Perform a specific operation. The specific operation includes means such as selecting “add to this common part data” from the menu after instructing a place to be added such as b1 or b2. A tag related to the common part data application position is added to the element added after such an operation, and data is added to the common part data storage device 4 by the disassembling device 12 using the tag.
The addition and deletion of the common part data application position allows the user to select which common part data is added / deleted after the user selects the state that is the application position. In accordance with this editing operation, the disassembly device 12 updates the data in the common part data application position storage device 5.
When it is unclear whether the editing operation is related to the state transition data storage device 5 or the common part data storage device 4, the state transition display editing device 2 can make an inquiry to the user.

本実施の形態1では、ステートを合成の適用位置としているが、遷移を合成の適用位置として持ち、共通のガード条件を共通部データとして持たせることも可能である。   In the first embodiment, the state is set as the synthesis application position. However, it is also possible to have the transition as the synthesis application position and have a common guard condition as common part data.

実施の形態1によれば、頻出する状態遷移を共通部データとして状態遷移データとは別に持つことにし、状態遷移図のデータを、状態遷移データと、共通部データと、共通部データを状態遷移データのどこに合成するかを示す共通部データ適用位置のデータによって表現し、その上で各データを合成してユーザに提示し、ユーザの編集結果は、上記各データに分解して格納することにより、共通部のデータを一元化することができ、そのため、同じものを何度も書く手間が無くなり、共通部の修正時に何度も同じ修正を図に加える必要が無くなる効果がある。
また、共通部データの合成をするかしないかを切替可能とすることにより、適切に状態遷移図を省略表示でき、可読性を向上させる効果がある。
According to the first embodiment, state transitions that occur frequently are provided as common part data separately from the state transition data, and state transition diagram data, state transition data, common part data, and common part data are state transitioned. It is expressed by the data of the common part data application position indicating where to synthesize the data, and then the respective data are synthesized and presented to the user, and the editing result of the user is decomposed and stored in each of the above data The data of the common part can be unified, so that there is no need to write the same thing over and over, and there is an effect that it is not necessary to repeatedly apply the same correction to the figure when the common part is corrected.
Further, by making it possible to switch whether or not to synthesize the common part data, the state transition diagram can be appropriately omitted and the readability can be improved.

この発明の実施の形態1によるプログラム設計装置の構造を示すブロック図である。It is a block diagram which shows the structure of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置における共通的な並行状態の一例を示す状態遷移図である。It is a state transition diagram which shows an example of the common parallel state in the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置における共通的なイベントとアクションの組の一例を示す状態遷移図である。It is a state transition diagram which shows an example of the set of a common event and action in the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置における可変部分を持つ共通的なイベントとアクションの一例を示す状態遷移図と共通部の図である。It is the state transition diagram and example of a common part which show an example of the common event and action which have a variable part in the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の合成装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the synthesizing | combining apparatus of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の編集操作が加えられた時の分解装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the decomposition | disassembly apparatus when the editing operation of the program design apparatus by Embodiment 1 of this invention is added. この発明の実施の形態1によるプログラム設計装置の状態遷移データ格納装置に格納されている状態遷移図の例を示す図である。It is a figure which shows the example of the state transition diagram stored in the state transition data storage apparatus of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の共通部データ格納装置に格納されている共通部データの例を示す図である。It is a figure which shows the example of the common part data stored in the common part data storage apparatus of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の、共通部データ適用位置格納装置に格納されている共通部データ適用位置データの例を示す図である。It is a figure which shows the example of the common part data application position data stored in the common part data application position storage apparatus of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の合成装置が図7、図8、図9のデータを元に合成した結果の状態遷移図である。FIG. 10 is a state transition diagram as a result of the synthesis of the program design apparatus according to Embodiment 1 of the present invention based on the data of FIGS. 7, 8, and 9. この発明の実施の形態1によるプログラム設計装置の合成装置が共通データの一部を合成しなかった場合の結果例を示す図である。It is a figure which shows an example of a result when the synthetic | combination apparatus of the program design apparatus by Embodiment 1 of this invention does not synthesize | combine a part of common data. この発明の実施の形態1によるプログラム設計装置の合成装置が共通データの一部を合成せずに状態遷移表示編集装置上でマークを付けて表示する場合を示す状態遷移図である。It is a state transition diagram which shows the case where the synthesizing | combining apparatus of the program design apparatus by Embodiment 1 of this invention attaches a mark and displays on a state transition display editing apparatus, without synthesize | combining a part of common data. この発明の実施の形態1によるプログラム設計装置の編集操作により状態遷移データに追加が行われた結果を示す図である。It is a figure which shows the result by which addition was performed to state transition data by editing operation of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の編集操作により共通部データに編集が行われた結果を示す図である。It is a figure which shows the result by which common part data were edited by edit operation of the program design apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるプログラム設計装置の編集操作により共通部データに追加が行われた結果を示す図である。It is a figure which shows the result added to common part data by the editing operation of the program design apparatus by Embodiment 1 of this invention.

符号の説明Explanation of symbols

1 合成分解装置
2 状態遷移表示編集装置
3 状態遷移データ格納装置
4 共通部データ格納装置
5 共通部データ適用位置格納装置
6 共通部表示選択機構
7 ステート
8 遷移
11 合成装置
12 分解装置
DESCRIPTION OF SYMBOLS 1 Composition decomposition | disassembly apparatus 2 State transition display edit apparatus 3 State transition data storage apparatus 4 Common part data storage apparatus 5 Common part data application position storage apparatus 6 Common part display selection mechanism 7 State 8 Transition 11 Composition apparatus 12 Decomposition apparatus

Claims (5)

ユーザに状態遷移図を表示すると共にユーザによる上記状態遷移図の編集が行われる状態遷移表示編集装置、上記状態遷移図に頻出する共通部データを格納した共通部データ格納装置、上記共通部データを除く上記状態遷移図の状態遷移データを格納した状態遷移データ格納装置、上記状態遷移データへの上記共通部データの適用位置情報を格納した共通部データ適用位置格納装置、この共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報を用いて、上記状態遷移データ格納装置に格納された状態遷移データに上記共通部データ格納装置に格納された共通部データを合成し、この合成された状態遷移図を上記状態遷移表示編集装置に表示する合成装置、及び上記状態遷移表示編集装置により編集された状態遷移図を、共通部データと状態遷移データと状態遷移データへの共通部データの適用位置情報とに分解し、分解された共通部データを上記共通部データ格納装置に、状態遷移データを上記状態遷移データ格納装置に、上記状態遷移データへの共通部データの適用位置情報を上記共通部データ適用位置格納装置にそれぞれ格納する分解装置を備えたことを特徴とするプログラム設計装置。   A state transition display editing device that displays a state transition diagram to the user and that is edited by the user, a common portion data storage device that stores common portion data that frequently appears in the state transition diagram, and the common portion data A state transition data storage device that stores state transition data of the state transition diagram excluding, a common portion data application position storage device that stores application position information of the common portion data to the state transition data, and this common portion data application position storage The common part data stored in the common part data storage device is combined with the state transition data stored in the state transition data storage device using the application position information of the common part data to the state transition data stored in the device. The combined state transition diagram is displayed on the state transition display editing device and edited by the state transition display editing device. The state transition diagram is decomposed into common part data, state transition data, and application position information of the common part data to the state transition data, the decomposed common part data is stored in the common part data storage device, and the state transition data is stored in the state transition data. A program design apparatus comprising: a state transition data storage device including a disassembly device that stores application position information of common part data to the state transition data in the common part data application position storage device. 上記共通部データ格納装置に格納された共通部データは、状態遷移を示すと共に、上記共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報には、複数の適用位置情報が含まれることを特徴とする請求項1記載のプログラム設計装置。   The common part data stored in the common part data storage device indicates a state transition, and the application position information of the common part data to the state transition data stored in the common part data application position storage device includes a plurality of pieces of information. The program design apparatus according to claim 1, wherein application position information is included. 上記合成装置による上記状態遷移データへの上記共通部データの合成を選択する共通部表示選択手段を備えたことを特徴とする請求項1または請求項2記載のプログラム設計装置。 3. The program design apparatus according to claim 1, further comprising common part display selection means for selecting synthesis of the common part data to the state transition data by the synthesizing apparatus. 上記状態遷移表示編集装置は、上記共通部表示選択手段により合成を選択されない共通部データの上記状態遷移図上の適用位置にマークを表示することを特徴とする請求項3記載のプログラム設計装置。   4. The program design apparatus according to claim 3, wherein the state transition display editing apparatus displays a mark at an application position on the state transition diagram of common part data not selected for composition by the common part display selection unit. 上記共通部データ格納装置に格納された共通部データは、可変要素を有すると共に、上記共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報に上記可変要素の値が含まれ、上記合成装置は、上記可変要素を有する共通部データの合成時には、上記共通部データの可変要素に上記共通部データ適用位置格納装置に格納された状態遷移データへの共通部データの適用位置情報に含まれる可変要素の値を挿入することを特徴とする請求項1〜請求項4のいずれかに記載のプログラム設計装置。   The common part data stored in the common part data storage device has a variable element, and the application position information of the common part data to the state transition data stored in the common part data application position storage device includes the variable element. When the common unit data having the variable element is synthesized, the synthesizing device is configured to share the common part data to the state transition data stored in the common part data application position storage device in the variable part of the common part data. The program design device according to claim 1, wherein a value of a variable element included in the applied position information is inserted.
JP2004275551A 2004-09-22 2004-09-22 Program design device Pending JP2006092161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004275551A JP2006092161A (en) 2004-09-22 2004-09-22 Program design device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004275551A JP2006092161A (en) 2004-09-22 2004-09-22 Program design device

Publications (1)

Publication Number Publication Date
JP2006092161A true JP2006092161A (en) 2006-04-06

Family

ID=36233077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004275551A Pending JP2006092161A (en) 2004-09-22 2004-09-22 Program design device

Country Status (1)

Country Link
JP (1) JP2006092161A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013513868A (en) * 2009-12-09 2013-04-22 ザ マスワークス, インク Normalized version of reuse candidates in graphical state transition diagram model
US9424005B1 (en) 2009-12-09 2016-08-23 The Mathworks, Inc. Templatized component
US10365897B1 (en) 2012-05-23 2019-07-30 The Mathworks, Inc. Model ring component

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013513868A (en) * 2009-12-09 2013-04-22 ザ マスワークス, インク Normalized version of reuse candidates in graphical state transition diagram model
US9424005B1 (en) 2009-12-09 2016-08-23 The Mathworks, Inc. Templatized component
US9864588B2 (en) 2009-12-09 2018-01-09 The Mathworks, Inc. Canonicalized versions of reuse candidates in graphical state diagrams
US10365897B1 (en) 2012-05-23 2019-07-30 The Mathworks, Inc. Model ring component

Similar Documents

Publication Publication Date Title
JP2008269554A (en) Source code generating device
JP2010061311A (en) Information processor and computer program
JP5339667B2 (en) Information processing apparatus and method
JP2020123234A (en) Information processor, control method, and program thereof
JP2008140302A (en) Cad apparatus and cad program
JPH07219754A (en) Request definition support device using screen transition diagram
JP5397678B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP3754838B2 (en) COMPOSITE FORM EDITING DEVICE, COMPOSITE FORM EDITING METHOD, AND PROGRAM STORAGE MEDIUM
JP2006092161A (en) Program design device
JP2019079429A (en) Information processing device and program
JP2007011463A (en) Program-design device
JP6724605B2 (en) Image processing apparatus, image processing method, and image processing program
JP3299259B2 (en) Program structure diagram editing processing method
JP2004086426A (en) Document management system, program for the same, and recording medium
JP5346425B2 (en) Geographic information survey support system
JP2005316706A (en) Software development support tool, application software, software and recording medium
JP3674905B2 (en) Document editing device
JP2007034806A (en) Information processor and program
JP2000020208A (en) Device and method for processing information and computer readable recording medium having recorded program thereon for making computer execute the same method
JP2000047658A (en) Scroll display system and recording medium where scroll display program is recorded
JP2005242474A (en) User interface design device and program
CN115756468A (en) Composite plotting icon design software based on QT graphic framework
US20100229087A1 (en) Computer readable medium, information processing device and image processing method
JP2022051276A (en) Computer program, specification output device, and manufacturing method for program
JP2004272409A (en) Temporary object storing device, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090224

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090623