JP2007041638A - Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon - Google Patents
Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon Download PDFInfo
- Publication number
- JP2007041638A JP2007041638A JP2005221746A JP2005221746A JP2007041638A JP 2007041638 A JP2007041638 A JP 2007041638A JP 2005221746 A JP2005221746 A JP 2005221746A JP 2005221746 A JP2005221746 A JP 2005221746A JP 2007041638 A JP2007041638 A JP 2007041638A
- Authority
- JP
- Japan
- Prior art keywords
- information
- event
- sequence diagram
- events
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、複数のプロセスの、各プロセス間における遷移の関係を時系列的に表すシーケンス図を作成するシーケンス図作成装置、シーケンス図作成プログラムおよびシーケンス図作成プログラムを記録したコンピュータ読取り可能な記録媒体に関する。 The present invention relates to a sequence diagram creating apparatus for creating a sequence diagram representing a time series of transition relationships between processes of a plurality of processes, a sequence diagram creating program, and a computer-readable recording medium recording the sequence diagram creating program About.
通信用のソフトウェア、および電子機器などに組み込まれるマイコンに記憶される組み込みソフトウェアなどの性能の評価を行なうために、ソフトウェアの複数の処理の間のやり取りを評価者が理解しやすい形態で表すメッセージシーケンス図を作成する。メッセージシーケンス図は、ソフトウェアの複数の処理を、処理のまとまり毎に複数のプロセスに分解し、このプロセス間のメッセージのやり取りを時系列順に表す図である。 In order to evaluate the performance of communication software and embedded software stored in microcomputers embedded in electronic devices, etc., a message sequence that expresses the interaction between multiple software processes in a form that is easy for the evaluator to understand Create a diagram. The message sequence diagram is a diagram in which a plurality of processes of software are broken down into a plurality of processes for each group of processes, and message exchange between the processes is expressed in time series.
図16は、従来の技術のメッセージシーケンスチャート描画装置によって作成されたメッセージシーケンス図を表示させた図である。メッセージシーケンス図は、ソフトウェアの複数のプロセスを表すプロセスシンボルA〜Tと、各プロセスシンボルA〜Tに関連付けられる生存線1と、プロセス間のメッセージのやり取りを表す矢印と、プロセス間でやり取りされるメッセージを表すメッセージシンボルとによって構成される。プロセスシンボルA〜Tは、予め定める第1の方向に等間隔に配置される。以後予め定める第1の方向を、横方向と記載する場合がある。生存線1は、プロセスシンボルA〜Tが配置される横方向に垂直な予め定める第2の方向の一方に、各プロセスシンボルA〜Tからそれぞれ延びる。以後予め定める第2の方向を、縦方向と記載する場合がある。各生存線1は、自身が接続される各プロセスシンボルA〜Tのプロセスに関係付けられる。また生存線1が延びる縦方向の一方は、時間を表す。矢印は、複数の生存線1のうちの1つの生存線1から他の生存線1へと横方向に延びる。矢印は、ソフトウェアの処理が、矢印の始点に接続される生存線1に関係付けられるプロセスから、矢印の終点に接続される生存線1に関係付けられるプロセスへと遷移することを表す。また、矢印に付されるメッセージシンボルは、矢印が表す遷移が起こるときにやり取りされるメッセージを表す。また、生存線1の延びる方向は、時間を表すので、よりプロセスシンボルA〜T寄りの矢印が表す遷移の方が、プロセスシンボルA〜Tから離間した矢印が表す遷移より、より早く起こる。
FIG. 16 is a diagram showing a message sequence diagram created by a conventional message sequence chart drawing apparatus. In the message sequence diagram, process symbols A to T representing a plurality of processes of software, a
図16では、まずソフトウェアの処理が、プロセスAからプロセスEに遷移するとともに、メッセージ1が与えられ、次にプロセスEからプロセスJに遷移するとともにメッセージ2が与えられ、次にプロセスJからプロセスEに遷移するとともにメッセージ3が与えられるというような処理を順次表す。図16では、メッセージnを表すメッセージシンボルを、「msg−n」と表示している。ここで、「n」は自然数を表す(たとえば特許文献1参照)。
In FIG. 16, first, the process of the software transitions from process A to process E, and
以上述べたように、メッセージシーケンス図を作成することによって、プロセス間のメッセージのやり取りを視覚化し、プログラムを直接解読するよりも、プロセス間のメッセージのやり取りをより容易に把握することができる。これによって、ソフトウェアの評価を容易に行なうことができる。 As described above, by creating a message sequence diagram, it is possible to visualize message exchange between processes and more easily grasp message exchange between processes than directly decoding a program. As a result, software can be easily evaluated.
評価すべきソフトウェアの規模が大きく、このソフトウェアに含まれるプロセスが膨大であり、プロセス間で複雑にメッセージをやり取りする場合、従来の技術のメッセージシーケンスチャート描画装置によってメッセージシーケンス図を作成すると、ソフトウェアに含まれるプロセス全てのソフトウェアシンボルが横方向に並び、メッセージのやり取りを表す矢印が、横方向に長く延びることある。メッセージのやり取りを表す矢印が横方向に長く延びる場合、このメッセージが表すメッセージ間のやり取りを読取り難くなり、メッセージ間のやり取りを容易に理解することができず、ソフトウェアの評価をし難いという問題が生じる。 When the scale of software to be evaluated is large and the process included in this software is enormous, and messages are exchanged in a complex manner between processes, creating a message sequence diagram using a conventional message sequence chart drawing device creates Software symbols of all the included processes are arranged in the horizontal direction, and arrows indicating message exchange may extend in the horizontal direction. When the arrows indicating message exchange extend in the horizontal direction, it becomes difficult to read the message exchange represented by this message, and it is difficult to understand the message exchange, making it difficult to evaluate the software. Arise.
したがって本発明の目的は、利用者にとって理解しやすいシーケンス図を作成するシーケンス図作成装置、シーケンス図作成プログラムおよびシーケンス図作成プログラムを記録したコンピュータ読取り可能な記録媒体を提供することである。 Accordingly, an object of the present invention is to provide a sequence diagram creating apparatus, a sequence diagram creating program, and a computer readable recording medium on which the sequence diagram creating program is recorded, which creates a sequence diagram that is easy for a user to understand.
本発明は、複数のプロセスの、各プロセス間における遷移の関係をそれぞれ表す複数のイベントを、このイベントの時系列を表す情報とともに記憶する記憶手段と、
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段と、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段と、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段とを含むことを特徴とするシーケンス図作成装置である。
The present invention comprises a storage means for storing a plurality of events, each representing a transition relationship between each process, together with information representing a time series of the events,
Designation means for designating two events from among a plurality of events stored in the storage means;
Event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other event from the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit And a sequence diagram creation device including creation means for creating a sequence diagram expressed in time series.
本発明に従えば、記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントと、前記イベント抽出手段によって抽出されるイベントとが抽出され、この抽出されたイベントが表す遷移の関係を時系列的に表すシーケンス図が作成される。これによって、シーケンス図作成装置の利用者が着目する遷移の関係を時系列的に表すシーケンス図が作成される。 According to the present invention, two events specified by the specifying means and an event extracted by the event extracting means are extracted from a plurality of events stored in the storage means, and the extracted events are extracted. A sequence diagram that represents the relationship of the transition to be expressed in time series is created. As a result, a sequence diagram that represents the relationship of transitions focused on by the user of the sequence diagram creation device in time series is created.
また本発明は、前記イベントは、遷移の関係において始点となるプロセスを表す第1プロセス情報と、遷移の関係において終点となるプロセスを表す第2プロセス情報と、プロセス間を遷移するときに遷移する前のプロセスから遷移した後のプロセスに与えられ、各イベントについて固有の伝達情報とを含み、
前記指定手段が指定する2つのイベントに、ペア識別情報を付与する識別手段と、
前記イベント抽出手段によって抽出されるイベントと、指定手段によって指定される2つのイベントとに含まれる第1および第2プロセス情報が表す複数のプロセスを表す情報を抽出するプロセス抽出手段とをさらに含み、
前記イベント抽出手段は、ペア識別情報に基づいてイベントを抽出し、
前記作成手段は、ペア情報毎にプロセス抽出手段によって抽出されるプロセスを表す情報を用いてシーケンス図を作成することを特徴とする。
Further, according to the present invention, the event transitions when transitioning between processes, first process information representing a process that is a start point in a transition relationship, second process information representing a process that is an end point in a transition relationship, and the process. Given to the process after the transition from the previous process, including the unique communication information for each event,
Identification means for assigning pair identification information to two events designated by the designation means;
Process extraction means for extracting information representing a plurality of processes represented by the first and second process information included in the event extracted by the event extraction means and the two events designated by the designation means;
The event extraction means extracts an event based on pair identification information,
The creation means creates a sequence diagram using information representing a process extracted by the process extraction means for each pair information.
本発明に従えば、イベントは、遷移の関係において始点となるプロセスを表す第1プロセス情報と、遷移の関係において終点となるプロセスを表す第2プロセス情報と、プロセス間を遷移するときに遷移する前のプロセスから遷移した後のプロセスに与えられ、各イベントについて固有の伝達情報とを含むので、第1プロセス情報と第2プロセス情報とがそれぞれ同じであっても、伝達情報によって、2つの異なる遷移の関係を表すことができる。また、識別手段が、指定手段が指定する2つのイベントにペア識別情報を付与するので、イベント抽出手段は、このペア情報に基づいてイベントを抽出することができる。 According to the present invention, an event transitions when transitioning between processes, first process information representing a process that is a start point in a transition relationship, second process information representing a process that is an end point in a transition relationship, and the process. Since it is given to the process after the transition from the previous process and includes unique transmission information for each event, even if the first process information and the second process information are the same, there are two differences depending on the transmission information. Transition relationships can be expressed. Further, since the identification unit gives pair identification information to the two events designated by the designation unit, the event extraction unit can extract the event based on the pair information.
また、複数のイベントのうちから、抽出すべきイベントの範囲が複数ある場合、つまり指定手段によって指定される2つのイベントの対が複数ある場合、作成手段は、指定手段によって指定される2つのイベントの対の数だけシーケンス図を作成する。作成手段は、ペア情報毎にシーケンス図を作成するので、指定手段によって指定される2つのイベントの対が複数ある場合であっても、各シーケンス図がそれぞれどのペア情報に対応するシーケンス図であるかを認識することができる。 In addition, when there are a plurality of event ranges to be extracted from a plurality of events, that is, when there are a plurality of pairs of two events specified by the specifying unit, the creating unit selects two events specified by the specifying unit. Create as many sequence diagrams as there are pairs. Since the creation means creates a sequence diagram for each pair information, each sequence diagram is a sequence diagram corresponding to which pair information, even if there are a plurality of pairs of two events designated by the designation means. Can be recognized.
また本発明は、前記記憶手段に記憶された全てのイベントが表す複数の遷移の関係を時系列的に表し、かつ前記作成手段によって作成されるシーケンス図が表す複数の遷移の関係が表す範囲を、前記シーケンス図に関連付けて表す第2のシーケンス図を作成する第2作成手段をさらに含むことを特徴とする。 In the present invention, the range represented by the relationship between a plurality of transitions represented by all the events stored in the storage unit in a time series and the relationship represented by the plurality of transitions represented by the sequence diagram created by the creation unit is represented. And a second creation means for creating a second sequence diagram expressed in association with the sequence diagram.
本発明に従えば、第2作成手段によって作成される第2のシーケンス図は、前記記憶手段に記憶された全てのイベントが表す複数の遷移の関係を時系列的に表し、かつ作成手段が作成したシーケンス図との対応関係をも表す。これによって、シーケンス図作成装置の利用者は、全てのイベントが表す複数の遷移の関係と、利用者が着目する遷移の関係との対応関係がわかる。 According to the present invention, the second sequence diagram created by the second creation means represents the relationship between a plurality of transitions represented by all the events stored in the storage means in time series, and the creation means creates It also shows the correspondence with the sequence diagram. As a result, the user of the sequence diagram creation apparatus can know the correspondence between the relationship of the plurality of transitions represented by all the events and the relationship of the transition focused on by the user.
また本発明は、コンピュータを複数のプロセスの、各プロセス間における遷移の関係をそれぞれ表す複数のイベントを、このイベントの時系列を表す情報とともに記憶する記憶手段、
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段として機能させることを特徴とするシーケンス図作成プログラムである。
Further, the present invention provides a storage means for storing a plurality of events each representing a transition relationship between processes of a plurality of processes together with information representing a time series of the events,
Designation means for designating two events from a plurality of events stored in the storage means;
An event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other of the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit And a sequence diagram creation program that functions as creation means for creating a sequence diagram represented in time series.
本発明に従えば、シーケンス図作成プログラムは、コンピュータによって実行される。これによってコンピュータは、前述したシーケンス図作成装置として機能する。さらに汎用的なコンピュータにシーケンス図作成プログラムを実行させることによって、汎用的なコンピュータが、前述したシーケンス図作成装置として機能する。 According to the present invention, the sequence diagram creation program is executed by a computer. As a result, the computer functions as the sequence diagram creation device described above. Further, by causing the general-purpose computer to execute the sequence diagram creation program, the general-purpose computer functions as the above-described sequence diagram creation device.
また本発明は、コンピュータを複数のプロセスの、各プロセス間における遷移の関係をそれぞれ表す複数のイベントを、このイベントの時系列を表す情報とともに記憶する記憶手段、
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段として機能させることを特徴とするシーケンス図作成プログラムを記録したコンピュータ読取り可能な記録媒体である。
Further, the present invention provides a storage means for storing a plurality of events each representing a transition relationship between processes of a plurality of processes together with information representing a time series of the events,
Designation means for designating two events from among a plurality of events stored in the storage means;
An event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other of the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit A computer-readable recording medium having recorded thereon a sequence diagram creating program characterized by functioning as a creating means for creating a sequence diagram represented in time series.
本発明に従えば、記録媒体は、コンピュータが実行すべきシーケンス図作成プログラムを記録しており、このシーケンス図作成プログラムをコンピュータに読取らせることができる。シーケンス図作成プログラムをコンピュータが実行することによって、コンピュータは、前述したシーケンス図作成装置として機能する。さらに汎用的なコンピュータにシーケンス図作成プログラムを読取らせて実行させることによって、汎用的なコンピュータが、前述したシーケンス図作成装置として機能する。 According to the present invention, the recording medium records a sequence diagram creation program to be executed by a computer, and the computer can read the sequence diagram creation program. When the computer executes the sequence diagram creation program, the computer functions as the above-described sequence diagram creation device. Further, by causing a general-purpose computer to read and execute the sequence diagram creation program, the general-purpose computer functions as the above-described sequence diagram creation device.
本発明によれば、シーケンス図作成装置の利用者が着目する遷移の関係を時系列的に表すシーケンス図が作成される。したがって、たとえば利用者が、記憶手段に記憶されたイベントが表す遷移の関係の一部に着目した場合には、記憶手段に記憶された全てのイベントが表す遷移の関係を時系列的に表すシーケンス図ではなく、利用者が着目する一部の遷移の関係を時系列的に表すシーケンス図が作成される。記憶手段に記憶された全てのイベントが表す遷移の関係を時系列的に作成した複雑なシーケンス図と比較すると、記憶手段に記憶されたイベントの一部が表すイベントの関係を時系列的に表すシーケンス図の方が、複雑とならず、利用者はプロセス間の遷移の関係を容易に把握することができる。これによって、たとえば利用者がこのシーケンス図をソフトウェアの評価に用いると、プロセス間の遷移の関係を容易に把握することができ、ソフトウェアの評価を容易に行なうことができる。 According to the present invention, a sequence diagram that represents a transition relationship focused on by a user of a sequence diagram creation device in a time series is created. Therefore, for example, when the user pays attention to a part of the transition relation represented by the event stored in the storage means, the sequence representing the transition relation represented by all the events stored in the storage means in time series Instead of a diagram, a sequence diagram is created that represents the relationship of some transitions focused on by the user in time series. Comparing the transition relationships represented by all the events stored in the storage means with the complex sequence diagram created in time series, the event relationships represented by some of the events stored in the storage means are represented in time series The sequence diagram is not complicated, and the user can easily grasp the transition relationship between processes. Thus, for example, when the user uses this sequence diagram for software evaluation, the relationship between transitions between processes can be easily grasped, and the software can be easily evaluated.
また本発明によれば、イベントは、遷移の関係において始点となるプロセスを表す第1プロセス情報と、遷移の関係において終点となるプロセスを表す第2プロセス情報と、プロセス間を遷移するときに遷移する前のプロセスから遷移した後のプロセスに与えられ、各イベントについて固有の伝達情報とを含むので、第1プロセス情報と第2プロセス情報とがそれぞれ同じであっても、伝達情報によって、2つの異なる遷移の関係を表すことができる。また、識別手段が、指定手段が指定する2つのイベントにペア識別情報を付与するので、イベント抽出手段は、このペア情報に基づいてイベントを抽出することができる。 Further, according to the present invention, an event transitions when transitioning between processes, first process information representing a process that is a start point in a transition relationship, second process information representing a process that is an end point in a transition relationship, and Is given to the process after the transition from the previous process and includes unique transmission information for each event, so even if the first process information and the second process information are the same, Different transition relationships can be represented. Further, since the identification unit gives pair identification information to the two events designated by the designation unit, the event extraction unit can extract the event based on the pair information.
また本発明によれば、指定手段によって指定される2つのイベントの対が複数あり、シーケンス図がこの対の数だけ作成されたとしても、作成手段は、ペア情報毎にシーケンス図を作成するので、作成した複数のシーケンス図と、利用者が着目する遷移の関係との対応関係がわかる。 Further, according to the present invention, even if there are a plurality of pairs of two events designated by the designation means, and the number of sequence diagrams is created by the number of pairs, the creation means creates a sequence diagram for each pair information. The correspondence relationship between the created sequence diagrams and the transition relationship focused by the user can be understood.
また本発明によれば、第2作成手段によって作成される第2のシーケンス図は、前記記憶手段に記憶された全てのイベントが表す複数の遷移の関係を時系列的に表し、かつ作成手段が作成したシーケンス図との対応関係をも表すので、シーケンス図作成装置の利用者は、全てのイベントが表す複数の遷移の関係と、利用者が着目する遷移の関係との対応関係がわかる。これによって、全体の遷移の関係のなかでの、利用者が着目する遷移の関係の占める位置がわかる。 Further, according to the present invention, the second sequence diagram created by the second creation means represents a relationship between a plurality of transitions represented by all the events stored in the storage means in time series, and the creation means Since the correspondence relationship with the created sequence diagram is also expressed, the user of the sequence diagram creation device can know the correspondence relationship between the relationship between a plurality of transitions represented by all events and the relationship between transitions focused on by the user. As a result, the position occupied by the transition relation focused by the user in the whole transition relation can be known.
また本発明によれば、シーケンス図作成プログラムは、コンピュータによって実行される。シーケンス図作成プログラムを実行したコンピュータは、前述したシーケンス図作成装置として機能するので、前述した効果を達成することができる。 According to the invention, the sequence diagram creation program is executed by a computer. Since the computer that has executed the sequence diagram creation program functions as the sequence diagram creation device described above, the above-described effects can be achieved.
また本発明によれば、コンピュータに、シーケンス図作成プログラムを記録した記録媒体からシーケンス図作成プログラムを読取らせて実行させることによって、コンピュータは、前述したシーケンス図作成装置として機能する。これによって前述した効果を達成することができる。さらに汎用的なコンピュータにシーケンス図作成プログラムを読取らせて実行させることによって、汎用的なコンピュータが、前述したシーケンス図作成装置として機能する。これによってシーケンス図作成プログラムによって実現される機能の頒布が容易になる。 According to the present invention, the computer functions as the above-described sequence diagram creation device by causing the computer to read and execute the sequence diagram creation program from the recording medium on which the sequence diagram creation program is recorded. As a result, the effects described above can be achieved. Further, by causing a general-purpose computer to read and execute the sequence diagram creation program, the general-purpose computer functions as the above-described sequence diagram creation device. This facilitates the distribution of functions realized by the sequence diagram creation program.
図1は、本発明の実施の形態のシーケンス図作成装置11の構成を示すブロック図である。シーケンス図作成装置11は、データ処理手段12、記憶手段13、入力手段14および出力手段15を含んで構成される。シーケンス図作成装置11は、ソフトウェアの複数の処理の間の遷移の関係を評価者が理解しやすい形態で表すメッセージシーケンス図を作成する。メッセージシーケンス図は、ソフトウェアの複数の処理を、処理のまとまり毎に複数のプロセスに分解し、このプロセス間の遷移の関係を時系列順に表す図である。本実施の形態のシーケンス図作成装置11は、ソフトウェアの全てのプロセス間の遷移の関係のうちの、利用者が着目する一部を抽出し、この抽出した遷移の関係を時系列順に表すメッセージシーケンス図を作成する。シーケンス図作成装置11は、コンピュータ読取り可能な記録媒体に記録されたシーケンス図作成プログラムを、汎用的なコンピュータが読取って実行することによって実現される。記録媒体は、CD(Compact Disk)、DVD(
Digital Versatile Disk)、フレキシブルディスク、メモリカード、および、USB(
Universal Serial Bus)メモリなどによって実現される。
FIG. 1 is a block diagram showing a configuration of a sequence
Digital Versatile Disk), flexible disk, memory card, and USB (
(Universal Serial Bus) memory.
図16は、前述した従来の技術のメッセージシーケンスチャート描画装置によって作成されたメッセージシーケンス図を表示させた図である。図16に示すメッセージシーケンス図は、ソフトウェアの全てのプロセス間の遷移の関係を時系列順に示す図である。前述したように、図16に示すメッセージシーケンス図は、ソフトウェアの複数のプロセスを表すプロセスシンボルA〜Tと、各プロセスシンボルA〜Tに関連付けられる生存線1と、プロセス間のメッセージのやり取りを表す矢印と、プロセス間でやり取りされるメッセージを表すメッセージシンボルとによって構成される。プロセスシンボルA〜Tは、予め定める第1の方向に等間隔を開けて配置される。以後予め定める第1の方向を、横方向と記載する場合がある。生存線1は、プロセスシンボルA〜Tが配置される横方向に垂直な予め定める第2の方向の一方に、各プロセスシンボルA〜Tからそれぞれ延びる。以後予め定める第2の方向を、縦方向と記載する場合がある。各生存線1は、自身が接続される各プロセスシンボルA〜Tのプロセスに関連付けられる。また生存線1が延びる縦方向の一方は、時間を表す。矢印は、複数の生存線1のうちの1つの生存線1から他の生存線1へと横方向に延びる。矢印は、ソフトウェアの処理が、矢印の始点に接続される生存線1に関連付けられるプロセスから、矢印の終点に接続される生存線1に関連付けられるプロセスへと遷移することを表す。また、矢印に付されるメッセージシンボルは、矢印が表す遷移が起こるときにやり取りされるメッセージを表す。つまり、矢印およびメッセージシンボルは、遷移の関係を表す。また、生存線1の延びる方向は、時間を表すので、よりプロセスシンボルA〜T寄りの矢印が表す遷移の方が、プロセスシンボルA〜Tから離間した矢印が表す遷移より、より早く起こる。
FIG. 16 is a diagram displaying a message sequence diagram created by the above-described conventional message sequence chart drawing apparatus. The message sequence diagram shown in FIG. 16 is a diagram showing the transition relationship between all processes of the software in chronological order. As described above, the message sequence diagram shown in FIG. 16 represents the process symbols A to T representing a plurality of processes of software, the
図2および図3は、シーケンス図作成装置11によって作成されたメッセージシーケンス図を表示させた図である。図2は、図16に示すメッセージシーケンス図が表す全ての遷移の関係のうちから、プロセスシンボルA〜T寄りの5本の矢印によって表されるプロセス間の遷移の関係を抽出し、抽出したプロセス間の遷移の関係を表すメッセージシーケンス図である。図3は、図16に示すメッセージシーケンス図が表す全ての遷移の関係のうちから、プロセスシンボルA〜T寄りの5本の矢印を除く8本の矢印によって表されるプロセス間の遷移の関係を抽出し、抽出したプロセス間の遷移の関係を表すメッセージシーケンス図である。以下、シーケンス図作成装置11が、図2および図3に示すようなソフトウェアの全てのプロセス間の遷移の関係のうちから、利用者が着目する一部を抽出し、この抽出した遷移の関係を時系列順に表すメッセージシーケンス図を作成する手順を説明する。
2 and 3 are diagrams showing message sequence diagrams created by the sequence
入力手段14は、マウスおよびキーボードなどを含んで実現される。作業者が入力手段14を操作することによって、入力手段14は、操作に対応する情報をデータ処理手段12に与える。作業者が入力手段14を操作することによって、遷移の関係を表すイベントであるイベント情報16および利用者が着目する遷移の関係を指定するペア情報17が入力され、データ処理手段12に与えられる。指定手段は、入力手段14によって実現される。
The input means 14 is realized including a mouse and a keyboard. When the operator operates the
図4は、イベント情報16のデータ構造を模式的に示す図である。イベント情報16は、遷移の関係を表す情報である。具体的には、イベント情報16は、ソフトウェアの処理が、複数のプロセスのうちの1つのプロセスから他のプロセスへと特定の情報を与えて遷移する処理を表す。イベント情報16のデータ構造は、メッセージ部21、送信プロセス部22、受信プロセス部23およびペア識別部24を含んで構成される。メッセージ部21は、ソフトウェアの処理が、複数のプロセスのうちの1つのプロセスから他のプロセスへと遷移するときに、他のプロセスに与えられる特定の情報を表す伝達情報であるメッセージ情報を格納する。送信プロセス部22は、他のプロセスへとメッセージ情報を与えるプロセスを表す第1プロセス情報である送信プロセス情報を格納する。受信プロセス部23は、送信プロセス情報が表すプロセスから与えられるメッセージ情報を受け取るプロセスを表す第2プロセス情報である受信プロセス情報を格納する。ペア識別部24は、後述するように、複数のイベント情報16のうちから特定のイベント情報16を抽出するときに利用する情報であるペアID(Identification)を格納する。ペアIDは、複数のイベント情報16のうちから所定のイベント情報16を抽出するときに利用されるイベント情報16のペア識別部24にのみ格納され、イベント情報16を抽出するときに利用されないイベント情報16のペア識別部24には、格納されない。したがって、イベント情報16を抽出するときに利用されないイベント情報16のペア識別部24のペアIDは、省略される。
FIG. 4 is a diagram schematically showing the data structure of the
図5は、イベント情報16とメッセージシーケンス図との対応関係を表す図である。前述したように、メッセージシーケンス図の矢印および矢印に付加されるメッセージシンボルは、遷移の関係を表す。したがってイベント情報16と、メッセージシーケンス図の矢印および矢印に付加されるメッセージシンボルとは、1対1に対応する。具体的には、図5において、メッセージシンボル「Messageα」が付与される矢印の始点が接続される生存線1に関係付けられるプロセスシンボル「ProcessA」は、イベント情報16の送信プロセス部22に格納される送信プロセス情報「ProcessA」に対応し、矢印の終点に接続される生存線1に関係付けられるプロセスシンボル「ProcessB」は、イベント情報16の受信プロセス部23に格納される受信プロセス情報「ProcessB」に対応し、メッセージシンボル「Messageα」は、イベント情報16のメッセージ部21に格納されるメッセージ情報「Messageα」に対応する。
FIG. 5 is a diagram showing the correspondence between the
また、送信プロセス情報および受信プロセス情報がそれぞれ同じでメッセージ情報がそれぞれ異なる2つのイベント情報16は、2つの異なる遷移の関係を表す。たとえば「ProcessA」から「ProcessB」に「Messageα」を与えて遷移する処理と、「ProcessA」から「ProcessB」に「Messageβ」を与えて遷移する処理とを、2つの異なるイベント情報によってそれぞれ表すことができる。
Also, two
イベント情報16は、イベント情報16が表す遷移が起こる順に、入力手段14から入力される。
The
図6は、ペア情報17のデータ構造とメッセージシーケンス図との対応関係を表す図である。ペア情報17は、入力手段14から入力される全てのイベント情報16のうちから、利用者が着目する遷移の関係を表すイベント情報16を指定する情報である。ペア情報17は、開始イベント情報25と終了イベント情報26とを含む。開始イベント情報25は、利用者が着目する遷移の関係を表すイベント情報16のうち、最初に起こる遷移を表すイベント情報16を指定する情報である。終了イベント情報26は、利用者が着目する遷移の関係を表すイベント情報16のうち、最後に起こる遷移を表すイベント情報16を指定する情報である。開始イベント情報25および終了イベント情報26のデータ構造は、メッセージ部21、送信プロセス部22および受信プロセス部23を含んで構成される。開始イベント情報25は、具体的には、利用者が着目する遷移の関係を表すイベント情報16のうち、最初に起こる遷移を表すイベント情報16から、ペア識別部24を除いた情報である。また終了イベント情報26は、具体的には、利用者が着目する遷移の関係を表すイベント情報16のうち、最後に起こる遷移を表すイベント情報16から、ペア識別部24を除いた情報である。図6に示すメッセージシーケンス図が表す複数の遷移の関係から、たとえばメッセージ1を与えて遷移し、メッセージ5を与えて遷移するまでの遷移の関係に着目して抽出する場合、開始イベント情報25は、メッセージシンボル「msg−1」が付与された矢印に対応するイベント情報16からペア識別部24を除いた情報であり、終了イベント情報26は、メッセージシンボル「msg−5」が付与された矢印に対応するイベント情報からペア識別部24を除いた情報である。
FIG. 6 is a diagram showing the correspondence between the data structure of the pair information 17 and the message sequence diagram. The pair information 17 is information for designating
ペア情報17は、開始イベント情報25、終了イベント情報26の順に入力される。また利用者が着目して抽出すべきイベント情報16のまとまりが複数存在する場合には、複数のペア情報17が入力される。
The pair information 17 is input in the order of start event information 25 and end event information 26. In addition, when there are a plurality of pieces of
データ処理手段12は、記憶制御部27、識別手段であるイベント識別部28、イベント抽出手段であるイベント抽出部31、プロセス抽出手段であるプロセス抽出部32、およびシーケンス描画部33を含んで構成される。記憶手段13は、ペア情報記憶部34、イベント情報記憶部35およびプロセス情報記憶部36を含んで構成される。
The
入力手段14から入力される複数のイベント情報16およびペア情報17は、記憶制御部27に与えられる。記憶制御部27は、入力手段14から入力されるイベント情報16に、入力された順番に対応する情報を付与するとともに、入力された順番に対応する情報を付与したイベント情報16をイベント情報記憶部35に記憶させる。入力手段14から入力され、イベント情報16に記憶されるイベント情報16の集合を、シーケンス情報37と記載する。シーケンス情報37は、ソフトウェアの処理間の全ての遷移の関係を表す。
A plurality of
図7は、イベント情報記憶部35に記憶されるシーケンス情報37のデータ構造を模式的に示す図である。シーケンス情報37は、イベント情報16が入力された順番を表す情報が付与されたイベント情報16の集合なので、各遷移が起こる順番を表す情報も含む。図7では、シーケンス情報37を構成する複数のイベント情報16を、イベント情報16が入力された順に並べて表示し、イベント情報16が表す遷移の起こる順番を模式的に表す。以後便宜的に、イベント情報16は、イベント情報16が入力された順に並んでイベント情報記憶部35に記憶されているとする。
FIG. 7 is a diagram schematically showing the data structure of the sequence information 37 stored in the event
記憶制御部27は、入力手段14から入力されるペア情報17を、入力された順番に対応する情報を付与してペア情報記憶部34に記憶させる。具体的には、記憶制御部27は、第m番目に入力されたペア情報17に、「第m組」目であることを表す情報を付与してペア情報記憶部34に記憶させる。ただし「m」は、自然数を表す。入力手段14から入力され、ペア情報記憶部34に記憶されるペア情報17の集合を、着目シーケンス情報38と記載する。
The
図8は、イベント情報記憶部35に記憶される着目シーケンス情報38のデータ構造を模式的に示す図である。図8では、着目シーケンス情報37を構成する複数のペア情報17を、ペア情報17が入力された順番に並べて表示する。以後便宜的に、ペア情報17は、ペア情報17が入力された順番に並んでイベント情報記憶部35に記憶されているとする。
FIG. 8 is a diagram schematically illustrating the data structure of the target sequence information 38 stored in the event
イベント識別部28は、シーケンス情報37から、ペア情報17が指定するイベント情報16を抽出し、抽出したイベント情報16のペア識別部24にペアIDを格納する。
The
図9は、イベント識別部28がシーケンス情報37からイベント情報16を抽出するときに、シーケンス情報37の着目すべき部分を表す図である。イベント識別部28は、シーケンス情報37に含まれる複数のイベント情報16から、ペア情報記憶部34に記憶された着目シーケンス情報38に含まれる開始イベント情報25が指定するイベント情報16を抽出する。具体的には、イベント識別部28は、開始イベント情報25と、シーケンス情報37に含まれる複数のイベント情報16のうちの、一番最初に入力されたイベント情報16とを比較する。より具体的には、イベント識別部28は、開始イベント情報25のメッセージ部21、送信プロセス部22および受信プロセス部23にそれぞれ格納されるメッセージ情報、送信プロセス情報および受信プロセス情報と、イベント情報16のメッセージ部21、送信プロセス部22および受信プロセス部23にそれぞれ格納されるメッセージ情報、送信プロセス情報および受信プロセス情報とがそれぞれ完全に一致するか否かを判断し、1つでも一致しない情報があれば、順次、次のイベント情報16と開始イベント情報25とを比較する。開始イベント情報25とイベント情報16とが一致するイベント情報16が見つかれば、このイベント情報16のペア識別部24に一意に定まるペアID「n」を格納する。ただし、「n」は自然数である。
FIG. 9 is a diagram illustrating a portion to be noted of the sequence information 37 when the
またイベント識別部28は、開始イベント情報25と一致するイベント情報16の次のイベント情報16と、前記開始イベント情報とペアを成す終了イベント情報26とを比較する。具体的には、イベント識別部28は、終了イベント情報26のメッセージ部21、送信プロセス部22および受信プロセス部23にそれぞれ格納されるメッセージ情報、送信プロセス情報および受信プロセス情報と、イベント情報16のメッセージ部21、送信プロセス部22および受信プロセス部23にそれぞれ格納されるメッセージ情報、送信プロセス情報および受信プロセス情報とがそれぞれ完全に一致するか否かを判断し、1つでも一致しない情報があれば、順次、次のイベント情報16と終了イベント情報26とを比較する。イベント識別部28は、終了イベント情報26とイベント情報16とが一致するイベント情報16が見つかれば、このイベント情報16のペア識別部24に前述したペアID「n」と同一のペアID「n」を格納して、イベント情報記憶部35に記憶させる。
The
さらにイベント識別部28は、終了イベント情報26と一致するイベント情報16以降のイベント情報16と、前記開始イベント情報25とが一致するイベント情報16を探し、発見したイベント情報16のペア識別部24に前述したペアID「n」と異なる一意に定まるペアIDを格納する。また、同様にしてイベント識別部28は、発見したイベント情報16以降のイベント情報16と、終了イベント情報26とが一致するイベント情報16を探し、発見したイベント情報16のペア識別部24に前述したペアID「n」と異なる一意に定まる前記ペアIDと同じペアIDを格納する。イベント識別部28は、上述した処理を、最後に入力されたイベント情報16と開始イベント情報25とを比較するまで繰返す。
Further, the
イベント抽出部31は、ペア情報17に基づいて、イベント情報記憶部35に記憶されたシーケンス情報37から、利用者が着目して抽出すべきイベント情報16を抽出する。イベント抽出部31が抽出したイベント情報16の集まりを抽出シーケンス情報41と記載する。
Based on the pair information 17, the
図10は、シーケンス情報37と抽出シーケンス情報41との関係を模式的に示す図である。図11は、イベント情報記憶部35に記憶される複数の抽出シーケンス情報41のデータ構造を模式的に示す図である。イベント抽出部31は、シーケンス情報37から、イベント情報16のペア識別部24にペアID「n」が格納された2つのイベント情報16の間のイベント情報16と、イベント情報16のペア識別部24ペアID「n」が格納された2つのイベント情報16とを抽出し、抽出した複数のイベント情報16の集合に前記ペアID「n」と同じペアID「n」を付与し、イベント情報記憶部35に抽出シーケンス情報41として記憶させる。イベント情報16のペア識別部24にペアID「n」が格納された2つのイベント情報16の間のイベント情報16がない場合、すなわち開始イベント情報25が表す遷移のすぐ後に終了イベント情報26が表す遷移が起こる場合には、イベント抽出部31は、イベント情報16のペア識別部24ペアID「n」が格納された2つのイベント情報16を抽出し、この2つのイベント情報16に前記ペアID「n」と同じペアID「n」を付与し、イベント情報記憶部35に抽出シーケンス情報41として記憶させる。図10では、イベント抽出部31は、ペア識別部24にペアID「1」が格納された2つのイベント情報16に挟まれる3つのイベント情報16と、ペア識別部24にペアID「1」が格納された2つのイベント情報16とをシーケンス情報37から抽出し、抽出した5つのイベント情報16の集合にペアID「1」を付与して抽出シーケンス情報41としてイベント情報記憶部35に記憶させる。また図10ではイベント抽出部31は、ペア識別部24にペアID「2」が格納された2つのイベント情報16に挟まれる4つのイベント情報16と、ペア識別部24にペアID「2」が格納された2つのイベント情報16とをシーケンス情報37から抽出し、抽出した6つのイベント情報16の集合にペアID「2」を付与して抽出シーケンス情報41としてイベント情報記憶部35に記憶させる。
FIG. 10 is a diagram schematically showing the relationship between the sequence information 37 and the extracted sequence information 41. FIG. 11 is a diagram schematically showing the data structure of a plurality of extraction sequence information 41 stored in the event
プロセス抽出部32は、各抽出シーケンス情報41に含まれる複数のイベント情報16の送信プロセス部22および受信プロセス部23にそれぞれ格納される送信プロセス情報および受信プロセス情報が表すプロセスを、全て抽出し、抽出したプロセスの集合に、抽出シーケンス情報41にそれぞれ付与されたペアIDと同一のペアIDをそれぞれ付与してプロセス情報記憶部36に記憶させる。プロセス抽出部32によって抽出されるプロセスの集合を抽出プロセス情報42と記載する。
The
図12は、抽出プロセス情報42のデータ構造を模式的に示す図である。具体的には、プロセス抽出部32は、抽出シーケンス情報41に含まれる複数のイベント情報16の送信プロセス部22および受信プロセス部23にそれぞれ格納される送信プロセス情報および受信プロセス情報が表すプロセスを、重複無く抽出する。重複無く抽出するとは、抽出シーケンス情報41に含まれる複数のイベント情報16の送信プロセス部22および受信プロセス部23にそれぞれ格納される送信プロセス情報および受信プロセス情報が表すプロセスに、同一のプロセスが複数存在しても、その1つのプロセスを抽出する。たとえば、抽出シーケンス情報41に含まれる1つのイベント情報16の送信プロセス情報が表すプロセスが「プロセスA」であり、他のイベント情報16の受信プロセス情報が表すプロセスが「プロセスA」であったとしても、プロセスとしては、1つのプロセス「プロセスA」を抽出する。
FIG. 12 is a diagram schematically showing the data structure of the extraction process information 42. Specifically, the
シーケンス描画部33は、同一のペアIDが付与された抽出シーケンス情報41および抽出プロセス情報42に基づいて、メッセージシーケンス図を作成する。具体的には、シーケンス描画部33は、まず抽出プロセス情報42に含まれる全てのプロセスにそれぞれ対応するプロセスシンボルを横方向に等間隔に配置して描画する。次にシーケンス描画部33は、各プロセスシンボルから縦方向の一方にそれぞれ平行に延びる生存線1を描画する。各生存線1は、自身が接続される各プロセスシンボルが表すプロセスに関連付けられる。次にシーケンス描画部33は、抽出シーケンス情報41に含まれる複数のイベント情報16に基づいて、イベント情報16に対応する横方向に延びる矢印を描画する。この矢印の始点は、送信プロセス情報が表すプロセスに関連付けられる生存線1に接続され、矢印の終点は、受信プロセス情報が表すプロセスに関連付けられる生存線1に接続される。次にシーケンス描画部33は、この矢印の近傍に、メッセージ情報が表すメッセージシンボルを描画する。矢印は、イベント情報16が入力された順番に、縦方向のプロセスシンボルから離間する方向に等間隔に順次描画される。また、プロセスシンボルの縦方向他方側には、抽出シーケンス情報41および抽出プロセス情報42に付与されたペアIDが描画される。シーケンス描画部33は、同一のペアIDがそれぞれ付与された抽出シーケンス情報41および抽出プロセス情報42の対が複数存在する場合には、各抽出シーケンス情報41および抽出プロセス情報42に基づいて、それぞれメッセージシーケンス図を作成する。
The
プロセスシンボルの縦方向他方側の近傍には、抽出シーケンス情報41および抽出プロセス情報42に付与されたペアIDが描画されるので、同一のペアIDがそれぞれ付与された抽出シーケンス情報41および抽出プロセス情報42の対が複数存在する場合、すなわち利用者が着目する遷移の関係が複数ある場合であっても、各メッセージシーケンス図が、どの遷移の関係に対応する図であるかを利用者が把握することができる。 Since the pair ID assigned to the extraction sequence information 41 and the extraction process information 42 is drawn near the other side in the vertical direction of the process symbol, the extraction sequence information 41 and the extraction process information assigned the same pair ID, respectively. Even when there are a plurality of pairs of 42, that is, when there are a plurality of transition relationships of interest to the user, the user grasps which transition relationship each message sequence diagram corresponds to. be able to.
またシーケンス描画部33は、イベント情報16に記憶されたシーケンス情報37に基づいて、全体の遷移の関係を表すとともに、利用者が着目する遷移の関係を表す範囲を、前記ペアIDに対応させて表す第2のシーケンス図であるメッセージシーケンス図を作成する。作成手段および第2作成手段は、シーケンス描画部33によって実現される。
In addition, the
シーケンス描画部33が作成したメッセージシーケンス図は、出力手段15に与えられる。出力手段15は、液晶表示パネルやプリンタなどを含んで実現される。出力手段15は、シーケンス描画部33から与えられるメッセージシーケンス図を出力して可視表示する。具体的には、メッセージシーケンス図を液晶表示パネルに表示させる、または紙にメッセージシーケンス図を印字する。
The message sequence diagram created by the
図13および図14は、シーケンス図作成装置11がメッセージシーケンス図を作成する処理を表すフローチャートである。シーケンス図作成装置11がメッセージシーケンス図を作成する処理を開始すると、ステップs0からステップs1に移る。
FIG. 13 and FIG. 14 are flowcharts showing a process in which the sequence
ステップs1では、イベント識別部28は、ソフトウェアの処理間の全ての遷移の関係を表すシーケンス情報37を、イベント情報記憶部35から読込み、ステップs2に移る。
In step s1, the
ステップs2では、利用者が着目する遷移の関係を指定するペア情報17を、ペア情報記憶部34から読込み、ステップs3に移る。
In step s2, the pair information 17 designating the transition relationship that the user pays attention to is read from the pair
ステップs3では、イベント識別部28は、ペア情報17の組数をカウントするためのカウンタのカウント値「n」とペアIDとを「0(零)」に初期化し、ステップs4に移る。
In step s3, the
ステップs4では、イベント識別部28は、カウンタのカウント値「n」に、現在のカウンタのカウント値「n」に1を加算した値を代入し、ステップs5に移る。
In step s4, the
ステップs5では、イベント識別部28は、カウンタのカウント値「n」に基づいて、第n組目のペア情報17、すなわち第「n」番目に入力手段14から入力されたペア情報17を取得する。
In
ステップs6では、イベント識別部28は、第n組目のペア情報17が存在するか否かを判断し、第n組目のペア情報17が存在すると判断した場合には、ステップs7に移る。
In step s6, the
ステップs7では、イベント識別部28は、シーケンス情報37に含まれる複数のイベント情報16のうちの、ペア識別部24にペアIDが格納されていないイベント情報16から、ペア情報17の開始イベント情報25と終了イベント情報26とにそれぞれ一致するイベント情報16を探しステップs8に移る。ステップs8では、ステップs7においてイベント情報16を見つけた場合にはステップs9に移る。
In step s7, the
ステップs9では、イベント識別部28は、ペアIDに、現在のペアIDに1を加算した値を代入し、ステップs10に移る。ステップs10では、ステップs7において見つけた2つのイベント情報16のペア識別部24に同一のペアIDをそれぞれ格納し、ステップs7に移り、ステップs7を繰返す。
In step s9, the
ステップs8では、ステップs7においてイベント識別部28がイベント情報16を見つけなかった場合には、ステップs4に移る。ステップs4からステップs10の処理を繰返すことによって、ペア識別部24は、所定のイベント情報16のペア識別部24にペアIDを格納する。
In step s8, if the
ステップs6において、イベント識別部28は、第n組目のペア情報17が存在するか否かを判断し、存在しないと判断した場合には、ステップs11に移る。ステップs11では、ペアIDをカウントするためのカウンタのカウント値「i」を「1」に初期化し、ステップs12に移る。
In step s6, the
ステップs12では、イベント抽出部31は、イベント情報16のペア識別部24にペア識別情報としてペアID「i」が格納されている2つのイベント情報16に挟まれるイベント情報16と、ペア識別部24にペア識別情報としてペアID「i」が格納されている2つのイベント情報16とを抽出し、抽出したイベント情報16の集合にペアID「i」を付与して抽出シーケンス情報41としてイベント情報記憶部35に記憶し、ステップs13に移る。イベント情報記憶部35に記憶された抽出シーケンス情報41を、図11に模式的に示す。
In step s12, the
ステップs13では、イベント抽出部31は、カウンタのカウント値「i」に、現在のカウンタのカウント値「i」に1を加算した値を代入し、ステップs14に移る。ステップs14では、イベント抽出部31は、カウンタのカウント値「i」がペアIDの最大値「ペアIDMAX」よりも大きいか否かを判断し、ペアIDの最大値「ペアIDMAX」以下であると判断した場合には、ステップs12に移り、カウンタのカウント値「i」がペアIDの最大値「ペアIDMAX」よりも大きいと判断した場合には、ステップs15に移る。
In step s13, the
ステップs15では、プロセス抽出部32は、ペアIDをカウントするためのカウンタのカウント値「j」を「1」に初期化し、ステップs16に移る。
In step s15, the
ステップs16では、プロセス抽出部32は、ペアID「j」が付与された抽出シーケンス情報41から、重複無くプロセスを抽出し、抽出したプロセスの集合にペアID「j」を付与して抽出プロセス情報42としてプロセス情報記憶部36に記憶し、ステップs17に移る。プロセス情報記憶部36に記憶された抽出プロセス情報42を、図12に模式的に示す。
In step s16, the
ステップs17では、プロセス抽出部32は、カウンタのカウント値「j」に、現在のカウンタのカウント値「j」に1を加算した値を代入してステップs18に移る。ステップs18では、プロセス抽出部32は、カウンタのカウント値「j」がペアIDの最大値「ペアIDMAX」よりも大きいか否かを判断し、ペアIDの最大値「ペアIDMAX」以下であると判断した場合にはステップs16に移り、ステップs16およびステップs17を繰返す。ステップs18において、プロセス抽出部32が、カウンタのカウント値「j」がペアIDの最大値「ペアIDMAX」よりも大きいと判断した場合には、ステップs19に移る。
In step s17, the
ステップs19では、シーケンス描画部33は、ペアIDをカウントするためのカウンタのカウント値「k」を「1」に初期化し、ステップs20に移る。ステップs20では、シーケンス描画部33は、ペアID「k」が付与された抽出シーケンス情報41と抽出プロセス情報42とに基づいて、メッセージシーケンス図を作成し、ステップs21に移る。
In step s19, the
ステップs21では、シーケンス描画部33は、カウンタのカウント値「k」に、現在のカウンタのカウント値「k」に1を加算した値を代入しステップs22に移る。ステップs22では、シーケンス描画部33は、カウンタのカウント値「k」がペアIDの最大値「ペアIDMAX」よりも大きいか否かを判断し、ペアIDの最大値「ペアIDMAX」以下であると判断した場合には、ステップs20に移り、ステップs20およびステップs21を繰返す。ステップs22においてシーケンス描画部33が、カウンタのカウント値「k」がペアIDの最大値「ペアIDMAX」よりも大きいと判断した場合には、ステップs23に移る。
In step s21, the
ステップs23では、シーケンス描画部33は、イベント情報記憶部35に記憶した全てのイベント情報16の集合であるシーケンス情報37に基づいて、ステップs20において作成した各メッセージシーケンス図が表す遷移の関係との関係を表す全体のメッセージシーケンス図を作成し、ステップs24に移る。ステップs24では、シーケンス図作成装置11がメッセージシーケンス図を作成する処理を終了する。
In step s23, the
図15は、ステップs20およびステップs23において作成されたメッセージシーケンス図を表示させた図である。ステップs20およびステップs23において作成されたメッセージシーケンス図は、液晶表示パネルに表示される。図15には、ソフトウェアの全プロセス間の遷移の関係を表す全体のメッセージシーケンス図と、利用者が着目する遷移の関係を表すメッセージシーケンス図とが表されている。利用者が着目する遷移の関係を表すメッセージシーケンス図には、それぞれ付与されたペアIDを表す情報が表示される。具体的には、ペアIDとして「1」が付与されたメッセージシーケンス図には、文字「ID:[1]」が表示される。また、全体のメッセージシーケンス図には、全体のメッセージシーケンス図における利用者が着目する遷移の関係を表す位置が表示される。具体的には、利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を、枠で囲んで表すとともに、この範囲に対応するペアIDを表す文字が表示される。また、全体のメッセージシーケンス図の、横方向の一端には、利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を表す矢印と、この範囲に対応するペアIDを表す文字とが表示される。 FIG. 15 is a diagram in which the message sequence diagrams created in steps s20 and s23 are displayed. The message sequence diagrams created in steps s20 and s23 are displayed on the liquid crystal display panel. FIG. 15 shows an overall message sequence diagram representing the transition relationship between all processes of the software and a message sequence diagram representing the transition relationship noted by the user. In the message sequence diagram that represents the relationship of the transitions that the user focuses on, information that represents the assigned pair IDs is displayed. Specifically, the character “ID: [1]” is displayed in the message sequence diagram to which “1” is assigned as the pair ID. In addition, in the entire message sequence diagram, a position representing a transition relationship focused by the user in the entire message sequence diagram is displayed. Specifically, the range corresponding to the message sequence diagram representing the transition relationship focused by the user is surrounded by a frame, and characters representing the pair ID corresponding to this range are displayed. Also, at one end in the horizontal direction of the entire message sequence diagram, there is an arrow representing a range corresponding to the message sequence diagram representing the relationship of transitions focused on by the user, and a character representing a pair ID corresponding to this range. Is displayed.
以上述べたように、シーケンス図作成装置11は、ソフトウェアのプロセス間の全ての遷移の関係を表すシーケンス情報から、利用者が着目する遷移の関係のみを抽出し、利用者が着目する遷移の関係に限定したメッセージシーケンス図を作成する。つまり、作成されたメッセージシーケンス図には、利用者が着目していない余分な遷移の関係に関する情報が除かれる。これによって、利用者が着目する遷移の関係を容易に把握することができ、ソフトウェアの評価を容易に行なうことができる。
As described above, the sequence
また作成されたメッセージシーケンス図には、利用者が着目していない余分な遷移の関係に関する情報が除かれるので、全ての遷移の関係を表すメッセージシーケンス図に比べて、プロセスシンボルの数が少なくなり、遷移の関係を表す矢印の長さが短くなる。これによって、利用者が着目する遷移の関係を容易に把握することができ、ソフトウェアの評価を容易に行なうことができる。 In addition, the created message sequence diagram excludes information related to extra transition relationships that the user is not paying attention to, so the number of process symbols is reduced compared to the message sequence diagram representing all transition relationships. , The length of the arrow representing the transition relationship is shortened. As a result, it is possible to easily grasp the transition relationship focused on by the user and to easily evaluate the software.
またシーケンス図作成装置11は、利用者が着目する遷移の関係を表すメッセージシーケンス図との対応関係を表す全体の遷移の関係を表すメッセージシーケンス図も作成する。このメッセージシーケンス図によって、利用者が着目する遷移の関係の、全体の遷移の関係のなかでの位置付けを把握することができる。これによって利用者は、ソフトウェアの評価を容易に行なうことができる。
The sequence
またシーケンス図作成装置11は、コンピュータ読取り可能な記録媒体に記録されたシーケンス図作成プログラムを、汎用的なコンピュータが読取って実行することによって実現される。シーケンス図作成プログラムを実行したコンピュータは、前述した効果を達成することができる。さらに汎用的なコンピュータをシーケンス図作成装置11として機能させることができるので、シーケンス図作成プログラムによって実現される機能の頒布が容易になる。
The sequence
本実施の形態では、全体のメッセージシーケンス図における、利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を、矢印および枠で表示するとしたけれども、利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を表示する方法であれば、どのような方法を用いて対応する範囲を表示するようにしてもよい。たとえば、矢印および枠のいずれか1つを用いて利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を表してもよい。また、枠内を色分けを用いて利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する範囲を表してもよい。また、たとえば全体のメッセージシーケンス図に、利用者が着目する遷移の関係を表すメッセージシーケンス図に対応する情報を付与することによって、利用者が着目する遷移の関係を表すメッセージシーケンス図へリンクを張り、利用者が入力手段14を構成するマウスを操作することによって、利用者が着目する遷移の関係を表すメッセージシーケンス図を表示するような構成にしてもよい。 In the present embodiment, the range corresponding to the message sequence diagram representing the relationship of the transition noticed by the user in the overall message sequence diagram is displayed with an arrow and a frame. Any method may be used to display the corresponding range as long as the range corresponding to the message sequence diagram to be displayed is displayed. For example, a range corresponding to a message sequence diagram representing a transition relationship focused by the user may be expressed using any one of an arrow and a frame. In addition, a range corresponding to a message sequence diagram representing a transition relationship focused by the user may be represented using color coding in the frame. In addition, for example, by adding information corresponding to the message sequence diagram representing the transition relationship focused by the user to the entire message sequence diagram, a link is established to the message sequence diagram representing the transition relationship focused by the user. The message sequence diagram representing the relationship of the transitions that the user focuses on may be displayed by operating the mouse that constitutes the input means 14 by the user.
11 シーケンス図作成装置
12 データ処理手段
13 記憶手段
14 入力手段
15 出力手段
16 イベント情報
17 ペア情報
21 メッセージ部
22 送信プロセス部
23 受信プロセス部
24 ペア識別部
25 開始イベント情報
26 終了イベント情報
27 記憶制御部
28 イベント識別部
31 イベント抽出部
32 プロセス抽出部
33 シーケンス描画部
34 ペア情報記憶部
35 イベント情報記憶部
36 プロセス情報記憶部
37 シーケンス情報
38 着目シーケンス情報
41 抽出シーケンス情報
42 抽出プロセス情報
DESCRIPTION OF
Claims (5)
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段と、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段と、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段とを含むことを特徴とするシーケンス図作成装置。 Storage means for storing a plurality of events, each representing a transition relationship between the processes, together with information representing a time series of the events;
Designation means for designating two events from among a plurality of events stored in the storage means;
Event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other event from the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit And a sequence diagram creation device, comprising: a creation means for creating a sequence diagram that is expressed in time series.
前記指定手段が指定する2つのイベントに、ペア識別情報を付与する識別手段と、
前記イベント抽出手段によって抽出されるイベントと、指定手段によって指定される2つのイベントとに含まれる第1および第2プロセス情報が表す複数のプロセスを表す情報を抽出するプロセス抽出手段とをさらに含み、
前記イベント抽出手段は、ペア識別情報に基づいてイベントを抽出し、
前記作成手段は、ペア情報毎にプロセス抽出手段によって抽出されるプロセスを表す情報を用いてシーケンス図を作成することを特徴とする請求項1記載のシーケンス図作成装置。 The event transitions from first process information representing a process that is a start point in a transition relationship, second process information representing a process that is an end point in a transition relationship, and a process before transition when transitioning between processes. And includes specific communication information for each event,
Identification means for assigning pair identification information to two events designated by the designation means;
Process extraction means for extracting information representing a plurality of processes represented by the first and second process information included in the event extracted by the event extraction means and the two events designated by the designation means;
The event extraction means extracts an event based on pair identification information,
2. The sequence diagram creation apparatus according to claim 1, wherein the creation unit creates a sequence diagram using information representing a process extracted by the process extraction unit for each pair information.
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段として機能させることを特徴とするシーケンス図作成プログラム。 Storage means for storing a plurality of events each representing a transition relationship between processes of a plurality of processes together with information representing a time series of the events;
Designation means for designating two events from a plurality of events stored in the storage means;
An event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other of the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit And a sequence diagram creation program which functions as a creation means for creating a sequence diagram represented in time series.
記憶手段に記憶された複数のイベントのうちから2つのイベントを指定する指定手段、
記憶手段に記憶された複数のイベントのうちから、指定手段によって指定される2つのイベントのうちの一方のイベントと、他方のイベントとの時系列間のイベントを抽出するイベント抽出手段、
指定手段によって指定される2つのイベント、または前記2つのイベントと前記イベント抽出手段によって抽出されるイベントとが表す複数の遷移の関係を、少なくとも各遷移の関係において始点となるプロセスおよび終点となるプロセスとともに時系列的に表すシーケンス図を作成する作成手段として機能させることを特徴とするシーケンス図作成プログラムを記録したコンピュータ読取り可能な記録媒体。 Storage means for storing a plurality of events each representing a transition relationship between processes of a plurality of processes together with information representing a time series of the events;
Designation means for designating two events from a plurality of events stored in the storage means;
An event extracting means for extracting an event between time series of one of the two events specified by the specifying means and the other of the plurality of events stored in the storage means;
Processes that are the starting point and the ending point of at least two transitions represented by two events specified by the specifying unit or a plurality of transitions represented by the two events and the event extracted by the event extracting unit A computer-readable recording medium on which a sequence diagram creation program is recorded, which functions as creation means for creating a sequence diagram that is expressed in time series.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005221746A JP2007041638A (en) | 2005-07-29 | 2005-07-29 | Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005221746A JP2007041638A (en) | 2005-07-29 | 2005-07-29 | Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007041638A true JP2007041638A (en) | 2007-02-15 |
Family
ID=37799593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005221746A Pending JP2007041638A (en) | 2005-07-29 | 2005-07-29 | Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007041638A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009110307A1 (en) * | 2008-03-05 | 2009-09-11 | 日本電気株式会社 | Sequence diagram reconfiguration system, sequence diagram reconfiguration method, and recording medium |
JP2009295021A (en) * | 2008-06-06 | 2009-12-17 | Internatl Business Mach Corp <Ibm> | Sequence diagram creation device, sequence diagram creation method, and computer program |
JP2010231275A (en) * | 2009-03-25 | 2010-10-14 | Nec Commun Syst Ltd | Device, method and program for preparing sequence diagram |
WO2011070695A1 (en) * | 2009-12-07 | 2011-06-16 | 三菱電機株式会社 | Sequence conversion device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000020354A (en) * | 1998-07-07 | 2000-01-21 | Hitachi Ltd | Editor for number of execution steps |
JP2001229051A (en) * | 2000-02-16 | 2001-08-24 | Hitachi Ltd | Sequence chart display system |
JP2004005198A (en) * | 2002-05-31 | 2004-01-08 | Nec Corp | Computerized analysis display method and measurement analysis display device |
-
2005
- 2005-07-29 JP JP2005221746A patent/JP2007041638A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000020354A (en) * | 1998-07-07 | 2000-01-21 | Hitachi Ltd | Editor for number of execution steps |
JP2001229051A (en) * | 2000-02-16 | 2001-08-24 | Hitachi Ltd | Sequence chart display system |
JP2004005198A (en) * | 2002-05-31 | 2004-01-08 | Nec Corp | Computerized analysis display method and measurement analysis display device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009110307A1 (en) * | 2008-03-05 | 2009-09-11 | 日本電気株式会社 | Sequence diagram reconfiguration system, sequence diagram reconfiguration method, and recording medium |
JP5158188B2 (en) * | 2008-03-05 | 2013-03-06 | 日本電気株式会社 | Sequence diagram reconstruction system, sequence diagram reconstruction method, and recording medium |
JP2009295021A (en) * | 2008-06-06 | 2009-12-17 | Internatl Business Mach Corp <Ibm> | Sequence diagram creation device, sequence diagram creation method, and computer program |
JP2010231275A (en) * | 2009-03-25 | 2010-10-14 | Nec Commun Syst Ltd | Device, method and program for preparing sequence diagram |
WO2011070695A1 (en) * | 2009-12-07 | 2011-06-16 | 三菱電機株式会社 | Sequence conversion device |
DE112010004702T5 (en) | 2009-12-07 | 2013-01-17 | Mitsubishi Electric Corporation | Sequence conversion device |
JPWO2011070695A1 (en) * | 2009-12-07 | 2013-04-22 | 三菱電機株式会社 | Sequence converter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6803754B2 (en) | Log message grouping device, log message grouping system and log message grouping method | |
JP5936138B2 (en) | Apparatus and method for generating operation procedure manual | |
WO2017104119A1 (en) | Log analysis system, method, and program | |
JP6237168B2 (en) | Information processing apparatus and information processing program | |
JP2009201809A (en) | Operation support server device, operation support method, and computer program | |
CN107341102A (en) | A kind of test case file generation method and device | |
JP2007041638A (en) | Sequence diagram preparing device, sequence diagram preparing program and computer-readable recording medium with sequence diagram preparing program recorded thereon | |
JP2007025497A (en) | Educational assistance program and educational assistant device | |
JP2008003669A (en) | Image display device and display method | |
AU2012202280B2 (en) | Information processing apparatus, information processing method, and information processing program | |
EP3951601A1 (en) | Information processing device and api usage history display program | |
JP2018195133A (en) | Information processing apparatus and information processing program | |
JP2006048695A (en) | Device for and method of processing text data according to script attribute | |
JP2007249826A (en) | Test item generation device | |
KR102418541B1 (en) | Wire bundle production method, and apparatus therefor | |
CN102378005B (en) | Motion picture processing device and motion image processing method | |
JP6738637B2 (en) | Business flow analysis program, business flow analysis method, and business flow analysis device | |
JPWO2017110996A1 (en) | Log analysis system, log analysis method, and recording medium for storing program | |
JP7006272B2 (en) | Log analysis system, method and program | |
US20080306975A1 (en) | Method for Copying and Manipulating Data | |
JP2016212736A (en) | Operation assist device, operation assist program, and operation assist method | |
CN111785098B (en) | Course file generation method and device, electronic equipment and storage medium | |
JP2008123256A (en) | Management method of terminology information and procedure information, and procedure information managing device | |
JP2007018205A (en) | Application program execution device, application development support device, screen transitional history display device, and program | |
JP2007034782A (en) | Document editing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070822 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100921 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101012 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110308 |