JP3716091B2 - Requirement specification model / other format model conversion apparatus and method - Google Patents

Requirement specification model / other format model conversion apparatus and method Download PDF

Info

Publication number
JP3716091B2
JP3716091B2 JP03836198A JP3836198A JP3716091B2 JP 3716091 B2 JP3716091 B2 JP 3716091B2 JP 03836198 A JP03836198 A JP 03836198A JP 3836198 A JP3836198 A JP 3836198A JP 3716091 B2 JP3716091 B2 JP 3716091B2
Authority
JP
Japan
Prior art keywords
information
character
scenario
model
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03836198A
Other languages
Japanese (ja)
Other versions
JPH11237979A (en
Inventor
宣郎 森山
直樹 五十嵐
和宏 佐藤
真理 森田
昌宏 橘
克彦 湯浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP03836198A priority Critical patent/JP3716091B2/en
Publication of JPH11237979A publication Critical patent/JPH11237979A/en
Application granted granted Critical
Publication of JP3716091B2 publication Critical patent/JP3716091B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、システム開発対象業務を構成する構成要素に関する構成要素情報と、構成要素内、または、構成要素間の手続の起動連鎖を記録した手続連鎖情報を保持するシナリオとによって定義された要求仕様モデルを他の形式のモデルに変換する要求仕様モデル・他形式モデル変換装置及びその変換方法に関する。
【0002】
【従来の技術】
システム開発における要求仕様定義のための技術として、例えば、特開平9−81611号公報に記載されるように、対象業務を構成する要素であるキャラクターを定義し、キャラクターに持たせるデータや手続きを使って実世界の業務をシーンと呼ばれるシナリオの断片的な具体例として入力していくことで要求仕様を定義していく技術がある。ここでいうキャラクターとは、要求仕様中に出てくる「人」や具体的な「物」、その他概念的な「抽象物」である。キャラクターは、その名称、そのイメージを表現する表示図形情報、保持する内部データ情報と内部手続情報を持っている。キャラクターが保持する内部データ情報を属性といい、キャラクターが保持する内部手続情報をメッセージと言う。また、シナリオとは、要求仕様の断片的な具体例である。シナリオは、シーン及びそのシナリオに登場するキャラクタに関する情報を構成要素として持つ。シーンとは、キャラクター間の内部手続きの起動連鎖のことである。
【0003】
要求仕様定義技術で定義した要求仕様モデルファイルを、他形式のモデルファイルを扱うプログラムで利用できるように変換する技術として、要求仕様モデル・他形式モデル変換技術がある。要求仕様モデル・他形式モデル変換技術とは、上述したような要求仕様定義プログラムにより定義した要求仕様モデルのファイルを、別のプログラムが入力するための他の形式のモデルファイルのデータ形式に合せて変換し、そのプログラムが入力して編集し、表示装置に表示できるようにする技術である。近年、これらの技術を適用したソフトウェア製品が実現されつつある。
【0004】
【発明が解決しようとする課題】
上述したような従来の要求仕様モデル・他形式モデル変換装置では、要求仕様モデルを構成するキャラクター及びシナリオが全て他形式モデルの要素として変換されていた。そのため、要求仕様モデルから他形式モデルへ変換した後、不必要な他の形式モデルの要素を削除しなければならないといった問題があった。
【0005】
本発明の目的は、要求仕様モデルから他形式モデルに変換する時に、必要な他形式モデルの要素のみを生成することのできる要求仕様モデル・他形式モデル変換装置を提供することにある。
【0006】
【課題を解決するための手段】
上記目的を達成するために、本発明による要求仕様モデル・他形式モデル変換装置及び変換方法は、システム開発対象業務を構成する構成要素が保持する名称、データ名称及び手続き名称を記録した構成要素情報と、構成要素間の手続きの起動連鎖を記録した手続き起動連鎖情報、または構成要素内の手続きの起動連鎖を記録した手続き起動連鎖情報を保持するシナリオとによって定義された要求仕様モデルを他の形式のモデルに変換する要求仕様モデル・他形式モデル変換装置及び変換方法において、コンピュータ読み取り可能な記憶装置に格納され、要求仕様モデルからなる要求仕様モデルファイルを要求仕様モデルファイル入力手段から読み込む。要求仕様モデルファイル入力手段が入力した要求仕様モデルファイルから得られる構成要素情報、構成要素が他形式モデルの要素となるか否かの判断材料となる構成要素種別を構成要素情報記憶手段に記憶する。また、要求仕様モデルファイル入力手段が入力した要求仕様モデルファイルから得られるシナリオをシナリオ情報記憶手段に記憶する。構成要素情報解析・生成手段は、構成要素情報記憶手段に格納された構成要素情報を基に、構成要素種別から構成要素が他形式モデルの要素となるか否かを判断し、他形式モデルの要素を生成する。シナリオ情報解析・生成手段は、シナリオ情報記憶手段に格納されたシナリオを基に、他形式モデルの要素を生成する。構成要素情報解析・生成手段、及びシナリオ解析・生成手段により生成された他形式モデルの要素は、他形式モデルファイル出力手段により統合され、コンピュータ書込み可能な記憶装置に格納される。
【0007】
本発明による要求仕様モデル・他形式モデル変換装置は、他の観点によれば、コンピュータ読み取り可能な記憶装置に格納された要求仕様モデルファイルを読み込む要求仕様モデルファイル入力手段と、要求仕様モデルファイル入力手段より受け取ったキャラクター情報である、キャラクターを識別するキャラクター識別子、キャラクターの状態を表す値を格納する属性及びキャラクターの実行可能な動作を表すメッセージなどを記憶し、かつキャラクターが他形式モデルの要素となるか否かの判断材料となるキャラクター種別を記憶するキャラクター情報記憶手段と、要求仕様モデルファイル入力手段より受け取ったシナリオ情報である、シナリオを識別するシナリオ識別子、シナリオに登場するキャラクターを示すキャラクター識別子及びシナリオを構成するシーンなどを記憶するシナリオ情報記憶手段と、キャラクター情報記憶手段より取り出したキャラクター情報を基に、キャラクター種別からキャラクターが他形式モデルの要素となるか否かを判断し、他形式モデルの要素を生成するキャラクター情報解析・生成手段と、シナリオ情報記憶手段より取り出したシナリオ情報を基に、他形式モデルの要素を生成するシナリオ情報解析・生成手段と、キャラクター情報解析・生成手段及びシナリオ情報解析・生成手段より受け取った他形式モデルの要素を統合し、コンピュータ書込み可能な記憶装置に格納する他形式モデルファイル出力手段を備えることを特徴とする。
【0008】
【発明の実施の形態】
図1は、本実施の形態において要求仕様モデル変換処理を行う電子計算機の構成図である。本実施例では、要求仕様モデルを、オブジェクト指向モデル化技法であるUML(Unified Modeling Language)が扱う形式であるUMLモデルに変換する。分析・設計手法である。UMLに関する技術としては、例えば、Terry Quatrani, "Visual Modeling with Rational Rose", ISBN:0-201-31016-3に記載された技術が知られている。
【0009】
UMLは、クラスやクラス間の関係を表現するクラス図、オブジェクト間の手続きであるシーンを時系列的な流れとして表現するシーケンス図、及びシステムの外部インタフェースを表現するユースケース図などの図によりモデルを表現する。UMLモデルの構成要素には、開発対象システムを構成する要素であるオブジェクトやオブジェクトの集合であるクラスの他に、例えば、ユーザや既存システムなどのシステム外部にあり、システムと情報交換を行うアクターや、アクターに対してシステムが何を行うかを示すためのものであるユースケースなどといったものがある。
【0010】
図1において、処理装置102は、パーソナルコンピュータ、あるいはワークステーションなどの計算機である。処理装置102の主記憶装置又は処理装置102に接続される外部記憶装置上には、キャラクター情報を構成する要素であるキャラクターを識別するキャラクター名称、キャラクターの状態を表す値を格納する属性、及びキャラクターの実行可能な動作を表すメッセージを記憶し、かつキャラクターが他形式モデルの要素となるか否かの判断材料となるキャラクター種別を記憶するキャラクター情報記憶部105、シナリオ情報を構成する要素であるシナリオを識別するシナリオ識別子、シナリオに登場するキャラクターを示すキャラクター識別子、及びシナリオを構成するシーンを記憶するシナリオ情報記憶部106、キャラクター情報解析・生成部107が生成したクラス情報を記憶するクラス図情報記憶部109、キャラクター情報解析・生成部107が生成したアクター情報、シナリオ情報解析・生成部108が生成したユースケース情報及び関連情報を記憶するユースケース図情報記憶部110、及びシナリオ情報解析・生成部108が生成したシーケンス図情報を記憶するシーケンス図情報一覧記憶部111の各記憶部が設けられる。
【0011】
処理装置102は、その機能として、コンピュータ読み取り可能な入力記憶装置101に格納された要求仕様モデルファイルを読み込む要求仕様モデルファイル入力部104、キャラクター情報記憶部105より取り出したキャラクター情報を基に、キャラクター種別からキャラクターがUMLモデルの要素であるクラスとなるかアクターとなるかを判断し、UMLモデルのクラス情報又はアクター情報を生成するキャラクター情報解析・生成部107、シナリオ情報記憶部106より取り出したシナリオ情報を基に、UMLモデルのシーケンス図を生成するかまたはユースケース及び関連を生成するかを判断し、シーケンス図情報又はユースケース情報及び関連情報を生成するシナリオ情報解析・生成部108、及びクラス図情報記憶部109、ユースケース図情報記憶部110、及びシーケンス図情報一覧記憶部111より受け取ったUMLモデルの要素を統合し、コンピュータ書込み可能な出力記憶装置103に格納するUMLモデルファイル出力部112の各処理部を有する。これらの処理部は、具体的には、処理装置102の主記憶装置、又は処理装置102に接続される外部記憶装置上に格納され、本実施の形態における要求仕様モデル・他形式モデル変換プログラムを構成するプログラムモジュールであり、処理装置102によって実行されることによりその機能が実現される。
【0012】
図2は、外部プログラムである要求仕様モデル作成プログラム201、処理装置101により実行される要求仕様モデル・他形式モデル変換プログラム202、及び外部プログラムであるUMLモデル入力プログラム203を接続し、要求仕様モデルファイル生成からUMLモデルファイル生成までを行う手順を示した図である。要求仕様モデル作成プログラム201は、要求仕様モデルファイルを生成するためのプログラムである。入力記憶装置101には、要求仕様モデル作成プログラム201が作成した要求仕様モデルファイルが格納される。要求仕様モデル・他形式モデル変換プログラム202は、入力記憶装置101に格納された要求仕様モデルファイルをUMLモデルファイルに変換し、出力記憶装置103に格納する。出力記憶装置103に格納されたUMLモデルファイルは、別の外部プログラムであるUMLモデル入力プログラム202が入力する。
【0013】
図3に、入力記憶装置101に格納された要求仕様モデルファイルの詳細を示す。
【0014】
要求仕様モデルファイル1901は、開発対象業務の構成要素であるキャラクターの情報を保持するキャラクター情報1902及び対象業務の具体例であるシナリオの情報を保持するシナリオ情報から構成される。
【0015】
キャラクター情報1902は、識別子であるキャラクター名称1903、キャラクター種別1904、キャラクターの内部データを表わす属性1905、及びキャラクターの内部手続きであるメッセージ1908を有している。属性1905は、識別子である属性名称1906及びデータ値を表わす属性値1907から構成される。メッセージ1908は、識別子であるメッセージ名称1910から構成される。
【0016】
シナリオ情報1911は、識別子であるシナリオ名称1912、シナリオを構成するキャラクターの一覧を表わすシナリオ内キャラクター情報一覧1913、及びシナリオ内でのキャラクター間の手続きの起動連鎖を表わすシーン情報1916から構成される。シナリオ内キャラクター情報一覧1913は、キャラクター名称1914及びシナリオ上での配置位置を示す座標1915の対のリストである。シーン情報1916は、メッセージ送信により手続きの起動を要求するところのキャラクターを表わすメッセージ送信キャラクター名称1917、メッセージを受け取り手続きの起動を行なうところのキャラクターを表わすメッセージ受信キャラクター名称1918及び起動される手続きを表わすメッセージ名称1919から構成される。
【0017】
図4に、キャラクター情報記憶部105に格納されるキャラクター情報301の詳細を示す。キャラクター情報記憶部105には、キャラクター情報301が格納される。キャラクター情報301は、キャラクターの識別子であるキャラクター名称302、キャラクターが開発対象システム構成要素であるかそうでないかを示すためのキャラクター種別303、0個以上の属性304、及び0個以上のメッセージ307から構成される。属性304は、識別子である属性名称305及び属性値306から構成される。メッセージ307は、識別子であるメッセージ名称308から構成される。属性名称305は、1つのキャラクター情報において一意である。また、メッセージ名称308も、1つのキャラクター情報において一意である。
【0018】
本実施の形態では、キャラクターが開発対象システム構成要素であるか否かの区別は、特別な文字列がキャラクター種別303に格納されているか否で行う。本実施の形態では、文字列“Actor”を特別な文字列として用いることとする。
【0019】
図5に、シナリオ情報記憶部106に格納されるシナリオ情報401の詳細を示す。シナリオ情報401は、シナリオの識別子であるシナリオ名称402、シナリオを構成するキャラクターの一覧を示すシナリオ内キャラクター情報一覧403、及びシナリオを構成するシーンを表す0個以上のシーン情報406から構成される。
【0020】
シナリオ内キャラクター情報一覧403には、キャラクター名称404及び座標405が格納される。キャラクター名称404は、キャラクター情報記憶部106に格納されたキャラクター情報のうち同一名称のものを指し示す。要求仕様モデル作成プログラム201及びシナリオ情報解析・生成部108などにおいてキャラクター名称404が指し示すキャラクター情報を取得する場合は、キャラクター情報記憶部106を逐次参照し、キャラクター名称404とキャラクター名称302が同一であるか否かをチェックしていき、キャラクター情報301を取得する。
【0021】
シーン情報406には、メッセージ送信元のキャラクターを表すメッセージ送信キャラクター名称407、メッセージ受信先を表すメッセージ受信キャラクター名称408、及び送信されたメッセージを表すメッセージ名称409が格納される。メッセージ送信キャラクター名称407及びメッセージ受信キャラクター名称408もまた、キャラクター情報記憶部106に格納されたキャラクター情報のうち同一名称のものを指し示す。メッセージ名称409は、受信キャラクター名称408が指し示すキャラクター情報の中のメッセージのうち同一名称のものを指し示す。
【0022】
なお、シナリオ名称402は、シナリオ情報記憶部106に格納された全てのシナリオ情報401において一意である。
【0023】
図6は、シナリオ情報401とキャラクター情報301の関係を具体例を用いて示した関連図である。
【0024】
販売管理システムのシナリオ情報401には、シナリオ名称402として「販売管理システム」が格納されている。シナリオ内キャラクター情報一覧403には、キャラクター名称404として「業務担当」及び「顧客データベース」が格納されている。キャラクター名称404「業務担当」は、座標(10,20)に、キャラクター名称404「顧客データベース」は、座標(20,20)にそれぞれ位置する。シーン情報406には、メッセージ送信キャラクター名称407として「業務担当」、メッセージ受信キャラクター名称408として「顧客データベース」、及びメッセージ名称409として「顧客検索」が格納されている。
【0025】
キャラクター情報301aには、キャラクター名称302aとして「業務担当」、キャラクター種別303aとして「Actor」、及びメッセージ307aが格納されている。メッセージ307aには、メッセージ名称308aとして「検索結果出力」が格納されている。もう一つのキャラクター情報301bには、キャラクター名称302bとして「顧客データベース」、キャラクター種別303bとして「非アクター」、及びメッセージ307bが格納されている。メッセージ307bには、メッセージ名称308bとして「顧客検索」が格納されている。
【0026】
シナリオ内キャラクター情報一覧403に格納されたキャラクター名称404「業務担当」及びメッセージ送信キャラクター名称407は、キャラクター名称302a「業務担当」を格納するキャラクター情報301aを指し示す。同様に、キャラクター名称404「顧客データベース」及びメッセージ受信キャラクター名称408「顧客データベース」はキャラクター名称30bを指し示す。また、メッセージ名称409「顧客検索」は、メッセージ307bを指し示す。
【0027】
図7は、クラス図情報記憶部109の詳細図である。クラス図情報記憶部109には、キャラクター情報から生成して得られたクラス情報601が格納される。クラス情報601は、クラスを識別するためのクラス名称602、クラスの状態を表すための0個以上の属性603、及び0個以上のメッセージ606から構成される。属性603は、属性名称604及び属性値605から構成される。メッセージ606は、メッセージ名称607から構成される。
【0028】
図8は、ユースケース図情報記憶部110の詳細図である。ユースケース図情報記憶部110には、キャラクター情報から生成して得られたアクター情報701、シナリオ情報から生成して得られたユースケース情報711、及び関連情報708が格納される。
【0029】
アクター情報701は、アクターを識別するためのアクター名称702、アクターの状態を表す0個以上の属性703、及び0個以上のメッセージ706から構成される。属性703は、属性名称704及び属性値705から構成される。メッセージ706は、メッセージ名称707から構成される。
【0030】
ユースケース情報711は、識別子であるユースケース名称712及びユースケースが持つところのシーケンス図を表すシーケンス図情報713から構成される。
【0031】
関連情報708は、アクターとユースケースの関連を表すためのもので、関連するアクター名称709及び関連するユースケース名称710から構成される。
【0032】
図9は、シーケンス図情報一覧記憶部111の詳細図である。シーケンス図情報一覧記憶部111はシナリオ情報解析・生成部108が生成したシーケンス図情報(但しユースケース情報711に含まれるシーケンス図情報は除く)を格納するためのもので、0個以上のシーケンス図情報801が格納される。
【0033】
図10に、図8のシーケンス図情報713及び図9のシーケンス図情報801の詳細を示す。シーケンス図情報記憶部111に格納されるシーケンス図情報801とユースケース情報711に格納されるシーケンス図情報713の構成は同じである。シーケンス図情報713、801は、シーケンス名称901及び0個以上のシーン情報902から構成される。シーン情報902は、メッセージ送信オブジェクト名称903、メッセージ受信オブジェクト名称904、及びメッセージ名称905から構成される。
【0034】
なお、本実施の形態では、ユースケース名称712とシーケンス図情報713に格納されたシーケンス名称とを同じ名称にしている。これは、UMLモデル入力プログラム202においてユースケースとシーケンス図の対応関係がより明確にするためである。
【0035】
図11及び図12は、シーケンス図情報713とアクター情報701、クラス情報601との関係、関連情報708とアクター情報701、ユースケース情報711との関係を具体例を用いて示す図である。
【0036】
図11においてシーケンス図情報713のシーケンス名称901には、「販売管理システム」が格納される。シーン情報902には、メッセージ送信オブジェクト名称903として「業務担当」、メッセージ受信オブジェクト名称904として「顧客データベース」、メッセージ名称905として「顧客検索」が格納される。アクター情報701には、アクター名称702として「業務担当」が格納される。メッセージ706には、メッセージ名称707として「検索結果出力」が格納される。クラス情報601には、クラス名称602として「顧客データベース」が格納され、メッセージ606には、メッセージ名称607として「顧客検索」が格納される。
【0037】
メッセージ送信オブジェクト名称903「業務担当」は、同一名称のアクター情報701を指し示す。メッセージ受信オブジェクト名称904「顧客データベース」は、クラス情報601を指し示す。メッセージ905「顧客検索」は、メッセージ606を指し示す。
【0038】
図12において関連情報708中の関連するアクター名称709「業務担当」は、アクター情報701「業務担当」を指し示す。また、関連するユースケース名称710「販売管理システム」は、ユースケース情報711「販売管理システム」を指し示す。ユースケース情報711のユースケース名称712「販売管理システム」とシーケンス図情報713のシーケンス名称901「販売管理システム」は同一である。
【0039】
以下、本実施の形態における要求仕様モデルファイルからUMLモデルファイルへの変換処理(要求仕様モデル変換処理)について説明する。
【0040】
図13は、処理装置102における要求仕様モデル変換処理の流れを示すフローチャートである。
【0041】
まず、要求仕様モデルファイル入力部104は、入力記憶装置101に格納された要求仕様モデルファイル1901を入力し、要求仕様モデルファイル1901からキャラクター情報1902を抽出し、キャラクター情報記憶部105にキャラクター情報301として格納する。同様に、要求仕様モデルファイル1901から抽出されるシナリオ情報1911は、シナリオ情報記憶部106にシナリオ情報401として格納される(ステップ1201)。
【0042】
次に、キャラクター情報解析・生成部107は、キャラクター情報記憶部105に格納されたキャラクター情報301を参照し、クラス情報601、またはアクター情報701のいずれかを生成する。クラス情報601を生成した場合、キャラクター情報解析・生成部107は、生成したクラス情報601をクラス図情報記憶部109に格納する。一方、アクター情報701を生成した場合、キャラクター情報解析・生成部107は、生成したアクター情報701をユースケース図情報記憶部110に格納する(ステップ1202)。
【0043】
次に、シナリオ情報解析・生成部108は、シナリオ情報記憶部106に格納されたシナリオ情報401を元に、シーケンス図情報801の生成してシーケンス図情報一覧記憶部111への格納するか、あるいは、ユースケース情報711及び関連情報708を生成してユースケース図情報記憶部110へ格納する。このステップでは、シーケンス図情報801とユースケース情報711のいずれか一方が生成される(ステップ1203)。
【0044】
次に、UMLモデルファイル出力部112は、クラス図情報記憶部109に格納されたクラス情報109、ユースケース図情報記憶部110に格納されたアクター情報701、ユースケース情報711、及び関連情報708、並びに、シーケンス図情報一覧記憶部111に格納されたシーケンス図情報801を統合してUMLモデルファイルを生成し、出力記憶装置103に出力する(ステップ1204)。
【0045】
図14は、ステップ1202の詳細なフローチャートである。
【0046】
ステップ1202では、まず、キャラクター情報記憶部105に格納されたキャラクター情報301を逐次取得するため、キャラクター情報取得位置ポインタをキャラクター情報記憶部105の先頭位置に設定する(ステップ1301)。
【0047】
次に、キャラクター情報解析・生成部107は、キャラクター情報取得位置ポインタで示されるキャラクター情報記憶部105の記憶位置にキャラクター情報301があるかどうかを調べる(ステップ1302)。キャラクター情報が無ければ、キャラクター情報解析・生成部107は、ステップ1202の処理を終了する。キャラクター情報がある場合は、キャラクター情報解析・生成部107は、そのキャラクター情報301を取得する(ステップ1303)。
【0048】
次に、キャラクター情報解析・生成部107はキャラクター情報301のキャラクター種別303を参照し、文字列“Actor”の有無を調べる(ステップ1304)。文字列“Actor”がある場合、キャラクター情報解析・生成部107は、キャラクター情報301を元にアクター情報701を生成し、ユースケース図情報記憶部110に格納する。具体的には、キャラクター情報解析・生成部107は、キャラクター情報記憶部105に格納されたキャラクター情報301からキャラクター名称302を取得し、アクター名称702として格納する。キャラクター情報301から属性名称305及び属性値306を取得し、アクター情報701の属性名称704及び属性値705として格納する。また、キャラクター情報301からメッセージ名称308を取得し、アクター情報701のメッセージ名称707として格納する(ステップ1305)。
【0049】
ステップ1304で文字列”Actor”がないと判断した場合、キャラクター情報解析・生成部107は、キャラクター情報301を元にクラス情報601を生成し、クラス図情報記憶部109に格納する。すなわち、キャラクター情報解析・生成部107は、キャラクター情報記憶部105に格納されたキャラクター情報301からキャラクター名称302を取得し、クラス名称602として格納する。キャラクター情報301から属性名称305及び属性値306を取得し、クラス情報601の属性名称604及び属性値605として格納する。キャラクター情報301からメッセージ名称308を取得し、クラス情報601のメッセージ名称607として格納する(ステップ1306)。
【0050】
クラス情報601又はアクター情報701を生成したら、キャラクター情報解析・生成部107は、次のキャラクター情報301を取得するため、キャラクター情報取得位置ポインタをキャラクター情報1個分進める(ステップ1307)。そして、キャラクター情報解析・生成部107は、ステップ1302、ステップ1303、ステップ1304、ステップ1305またはステップ1306、及びステップ1307を、全てのキャラクター情報を取得するまで繰り返す。
【0051】
図15は、ステップ1203の詳細なフローチャートである。
【0052】
ステップ1203でシナリオ情報解析・生成部108は、まず、シナリオ情報記憶部106に格納されたシナリオ情報401を逐次取得するため、シナリオ情報取得位置ポインタにシナリオ情報記憶部106の先頭位置を設定する(ステップ1401)。
【0053】
次に、シナリオ情報解析・生成部108は、シナリオ情報取得位置ポインタで示されるシナリオ情報記憶部106の記憶位置にシナリオ情報401があるかどうかを調べ、シナリオ情報401がなければステップ1203の処理を終了する(ステップ1402)。シナリオ情報401があれば、シナリオ情報解析・生成部108は、そのシナリオ情報401を取得する(ステップ1403)。
【0054】
次に、シナリオ情報解析・生成部108は、シナリオ情報401を元にシーケンス図情報801を生成してシーケンス図情報一覧記憶部111へ格納するか、または、ユースケース情報711を生成してユースケース図情報記憶部110へ格納する(ステップ1404)。
【0055】
続いて、シナリオ情報解析・生成部108は、シナリオ情報取得位置ポインタをシナリオ情報1個分進める(ステップ1405)。その後、シナリオ情報解析・生成部108は、ステップ1402、1403、1404、及び1405の処理を、シナリオ情報記憶部106に格納された全てのシナリオ情報を参照し終えるまで行う。
【0056】
図16は、ステップ1404の詳細なフローチャートである。
【0057】
ステップ1404でシナリオ情報解析・生成部108は、まず、シナリオ情報401中のシナリオ内キャラクター情報一覧403に格納された全てのキャラクター名称を取得するため、キャラクター名称取得位置ポインタに、そのシナリオ情報401内のシナリオ内キャラクター情報一覧403の先頭位置を設定する(ステップ1501)。
【0058】
シナリオ情報解析・生成部108は、キャラクター名称取得位置ポインタで示される位置にキャラクター名称404があるかどうかを調べる(ステップ1502)。キャラクター名称404がある場合、シナリオ情報解析・生成部108は、キャラクター名称404を取得する(ステップ1503)。
【0059】
次に、シナリオ情報解析・生成部108は、キャラクター情報記憶部105を先頭から逐次参照し、キャラクター名称404と同一名称のキャラクター情報301を取得する(ステップ1504)。
【0060】
続いて、シナリオ情報解析・生成部108は、キャラクター情報301中のキャラクター種別303を調べ、文字列“Actor”の有無を調べる(ステップ1505)。
【0061】
文字列“Actor”がある場合、シナリオ情報解析・生成部108は、ユースケース情報711を生成し、ユースケース図情報記憶部110に格納する。この処理において、シナリオ情報解析・生成部108は、シナリオ情報記憶部106に格納されたシナリオ情報401からシナリオ名称を402取得し、ユースケース名称712としてユースケース情報711に格納する。そして、次のようにしてシナリオ情報401からシーケンス図情報713を生成し、ユースケース情報711に格納する。まず、シナリオ情報解析・生成部108は、シナリオ名称402をシーケンス名称901として格納する。シナリオ情報401の各シーン情報406からメッセージ送信キャラクター名称407、メッセージ受信キャラクター名称408、及びメッセージ名称409を取得し、それぞれメッセージ送信オブジェクト名称903、メッセージ受信オブジェクト名称904及びメッセージ名称905として格納してシーン情報902を生成する(ステップ1507)。この後、シナリオ情報解析・生成部108は、関連情報708を生成する(ステップ1508)。
【0062】
ステップ1505で文字列“Actor”がみつからなかった場合、シナリオ情報解析・生成部108は、次のキャラクター名称404を取得するためキャラクター名称取得位置ポインタを進める(ステップ1506)。
【0063】
シナリオ情報解析・生成部108は、ステップ1502以降の処理をシナリオ内キャラクター情報一覧に格納された全てのキャラクター名称404を参照し終えるか、またはキャラクター名称404が指し示すキャラクター情報301のうち、キャラクター種別303に文字列“Actor”を持つものを見つけるまで行う。
【0064】
ステップ1502においてキャラクター名称取得位置ポインタで示される位置にキャラクター名称404がない場合、すなわち、全てのキャラクター名称404について、文字列“Actor”がなかったとき、シナリオ情報解析・生成部108は、シーケンス図情報801を生成し、シーケンス図情報一覧記憶部111に格納する。この処理でシナリオ情報解析・生成部108は、シナリオ名称402をシーケンス名称901として格納する。そして、シナリオ情報401の各シーン情報406からメッセージ送信キャラクター名称407、メッセージ受信キャラクター名称408、及びメッセージ名称409を取得し、それぞれメッセージ送信オブジェクト名称903、メッセージ受信オブジェクト名称904及びメッセージ名称905として格納してシーン情報902を生成する(ステップ1509)。
【0065】
図17は、ステップ1508における関連情報の生成処理の詳細なフローチャートである。
【0066】
シナリオ情報解析・生成部108は、1個のシナリオ情報401中のシナリオ内キャラクター情報一覧403に格納された全てのキャラクター名称404を取得するため、キャラクター名称取得位置ポインタに、シナリオ内キャラクター情報一覧403の先頭位置を設定する(ステップ1601)。
【0067】
次に、シナリオ情報解析・生成部108は、キャラクター取得位置にキャラクター名称があるかどうかを調べ、キャラクター名称がなければこの処理を終了する(ステップ1602)。
【0068】
キャラクター名称があれば、シナリオ情報解析・生成部108は、シナリオ内キャラクター情報一覧403に格納されたキャラクター名称404を取得する(ステップ1603)。そして、シナリオ情報解析・生成部108は、キャラクター情報記憶部105を先頭から逐次参照し、取得したキャラクター名称404と同一名称のキャラクター情報301を取得する(ステップ1603)。
【0069】
次に、シナリオ情報解析・生成部108は、取得したキャラクター情報が持つキャラクター種別303に文字列“Actor”があるかどうかを調べる(ステップ1605)。文字列“Actor”がある場合、シナリオ情報解析・生成部108は、キャラクター名称302を関連するアクター名称709として、シナリオ名称402を関連するユースケース名称710として関連情報708を生成し、ユースケース図情報記憶部110に格納する(ステップ1606)。ステップ1605においてキャラクター種別303に文字列“Actor”がなかった場合、ステップ1606の処理は、スキップされる。
【0070】
次のキャラクター名称をシナリオ内キャラクター情報一覧から取得するため、キャラクター名称取得位置ポインタを進める(ステップ1607)。以後、ステップ1602以降の処理が、シナリオ内キャラクター情報一覧に格納された全てのキャラクター名称を参照し終えるまで繰り返される。
【0071】
図18は、要求仕様作成プログラム201で作成した要求仕様モデルの具体例である。
【0072】
キャラクターの一覧1701は、要求仕様モデルに属する全てのキャラクターを表示するためのものである。この例では、要求仕様モデルには、キャラクター業務担当1702及びキャラクター顧客データベース1703が属している。業務担当1702の詳細な情報は1704に表示される。また、顧客データベース1703の詳細な情報は1705に表示される。
【0073】
シナリオ販売管理システム1706には、キャラクター業務担当1702及びキャラクター1703「顧客データベース」が登場する。1702及び1703は、シナリオ販売管理システム1706を構成するシーンである。シーン1707において、キャラクター1702「業務担当」からキャラクター1703「顧客データベース」に対してメッセージ「顧客検索」が渡される。同様に、シーン1708において、キャラクター1703「顧客データベース」からキャラクター1702「業務担当」に対してメッセージ「検索結果出力」が渡される。
【0074】
図19は、図18に示す要求仕様モデルを、処理装置102により変換して得たUMLモデルである。
【0075】
キャラクター1703「顧客データベース」は、キャラクター種別に“Actor”を持たないためクラス1802に変換される。クラスは、クラス図1801に配置される。
【0076】
キャラクター1702「業務担当」はキャラクター種別に文字列“Actor”を持つため、アクター1804に変換され、ユースケース図1803に配置される。
【0077】
シナリオ販売管理システム1706には、キャラクター種別に“Actor”を持つキャラクター1702である「業務担当」が登場するため、ユースケース1805に変換され、ユースケース図1803に配置される。ユースケース1805はシーケンス図1806を持つ。
【0078】
以上説明した実施の形態によれば、要求仕様モデルを他の形式のモデルに変換する際に、キャラクターやシナリオが他の形式モデル要素の生成対象であるかどうかを判定し、モデル要素の生成をおこなうので、要求仕様モデルから他形式モデルに変換する時に、変換される他の形式モデルにおいて必要のない要素を生成することがなく、必要な他形式モデルの要素のみを生成することのできる。このため、変換処理後に、生成された他の形式モデルにおいて不必要なの要素を削除するといった手間を省くことができる。
【0079】
【発明の効果】
以上説明したように、本発明によれば、要求仕様モデルから他形式モデルへの変換時に、変換後のモデルで必要となる要素のみを生成することが可能となる。
【図面の簡単な説明】
【図1】本発明の実施の形態において要求仕様モデル変換処理を行うためのシステムの概略構成図である。
【図2】要求仕様モデル・他形式モデル変換プログラムと外部プログラムの連携を示す概略図である。
【図3】入力記憶装置に格納された要求仕様モデルファイルの詳細図である。
【図4】キャラクター情報記憶部の詳細図である。
【図5】シナリオ情報記憶部の詳細図である。
【図6】シナリオ情報とキャラクター情報の関係を示す関連図である。
【図7】クラス図情報記憶部の詳細図である。
【図8】ユースケース図情報記憶部の詳細図である。
【図9】シーケンス図情報一覧記憶部の詳細図である。
【図10】シーケンス図情報の詳細図である。
【図11】シーケンス図情報とクラス情報及びアクター情報との関係を示した情報関連図である。
【図12】関連情報と、アクター情報及びユースケース情報との間の関係を示した情報関連図である。
【図13】要求仕様モデル変換処理の概要を示すフローチャートである。
【図14】クラス情報/アクター情報生成処理の詳細なフローチャートである。
【図15】シーケンス図情報、またはユースケース情報及び関連情報生成処理の詳細なフローチャートである。
【図16】シーケンス図情報、またはユースケース情報及び関連情報生成の詳細なフローチャートである。
【図17】関連情報生成処理の詳細なフローチャートである。
【図18】要求仕様モデル作成プログラムで作成した要求仕様モデルの説明図である。
【図19】要求仕様モデル変換処理により変換して得られたUMLモデルの説明図である。
【符号の説明】
101…入力記憶装置
102…処理装置
103…出力記憶装置
104…要求仕様モデルファイル入力部
105…キャラクター情報記憶部
106…シナリオ情報記憶部
107…キャラクター情報解析・生成部
108…シナリオ情報解析・生成部
109…クラス図情報記憶部
110…ユースケース図情報記憶部
111…シーケンス図情報記憶部
112…UMLモデルファイル出力部
[0001]
BACKGROUND OF THE INVENTION
The present invention provides a requirement specification defined by component information relating to components constituting a system development target business, and a scenario holding procedure chain information in which a sequence of procedures in a component or between procedures is recorded. The present invention relates to a required specification model / another format model conversion apparatus and a conversion method thereof for converting a model into a model of another format.
[0002]
[Prior art]
As a technique for defining required specifications in system development, for example, as described in Japanese Patent Laid-Open No. 9-81611, a character that is an element constituting a target business is defined, and data and procedures that the character has are used. There is a technology that defines requirements specifications by inputting real-world operations as fragmented concrete examples of scenarios called scenes. Characters here are "persons", specific "things", and other conceptual "abstract objects" that appear in the required specifications. The character has its name, display graphic information representing the image, internal data information to be held, and internal procedure information. The internal data information held by the character is called an attribute, and the internal procedure information held by the character is called a message. A scenario is a specific example of a requirement specification. A scenario has information about a scene and characters appearing in the scenario as constituent elements. A scene is an activation sequence of internal procedures between characters.
[0003]
As a technology for converting a requirement specification model file defined by a requirement specification definition technology so that it can be used by a program that handles a model file of another format, there is a requirement specification model / other format model conversion technology. Requirement specification model / other format model conversion technology means that a requirement specification model file defined by the requirement specification definition program as described above is matched with the data format of another format model file to be input by another program. This is a technology that allows the program to be converted, input and edited, and displayed on a display device. In recent years, software products to which these technologies are applied are being realized.
[0004]
[Problems to be solved by the invention]
In the conventional requirement specification model / other format model conversion apparatus as described above, the characters and scenarios constituting the requirement specification model are all converted as elements of the other format model. For this reason, there is a problem in that after conversion from the required specification model to another format model, elements of other unnecessary format models must be deleted.
[0005]
An object of the present invention is to provide a required specification model / other format model conversion apparatus capable of generating only necessary other format model elements when converting from a required specification model to another format model.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the required specification model / another format model conversion apparatus and conversion method according to the present invention provide component information in which a name, a data name, and a procedure name held by a component constituting a system development target job are recorded. And other types of requirement specification models defined by the procedure activation chain information that records the procedure activation chain between components, or the scenario that retains the procedure activation chain information that records the procedure activation chain in the component In the required specification model / other format model conversion apparatus and conversion method for converting to the above model, a required specification model file that is stored in a computer-readable storage device and includes the required specification model is read from the required specification model file input means. The component information obtained from the requirement specification model file input by the requirement specification model file input means, and the component type used as a material for determining whether or not the component is an element of another format model are stored in the component information storage means. . The scenario obtained from the requirement specification model file input by the requirement specification model file input means is stored in the scenario information storage means. The component element information analysis / generation unit determines whether the component element is an element of another format model based on the component element type based on the component element information stored in the component element information storage unit. Generate an element. The scenario information analysis / generation unit generates an element of another format model based on the scenario stored in the scenario information storage unit. The elements of the other format model generated by the component information analysis / generation means and the scenario analysis / generation means are integrated by the other format model file output means and stored in a computer-writable storage device.
[0007]
According to another aspect of the requirement specification model / other format model conversion apparatus according to the present invention, a requirement specification model file input means for reading a requirement specification model file stored in a computer-readable storage device, and a requirement specification model file input The character information received from the means is stored as a character identifier for identifying the character, an attribute for storing a value indicating the character state, a message indicating an executable action of the character, etc. Character information storage means for storing the character type as a material for determining whether or not it is, scenario information that is scenario information received from the required specification model file input means, a scenario identifier that identifies the scenario, and a character identifier that indicates the character that appears in the scenario And Based on the scenario information storage means for storing the scenes that make up the scenario and the character information extracted from the character information storage means, it is determined whether the character is an element of the other form model from the character type, and the other form model Information analysis / generation means for generating elements, scenario information analysis / generation means for generating elements of other format models based on scenario information extracted from scenario information storage means, character information analysis / generation means and scenarios Other format model file output means for integrating the elements of other format models received from the information analysis / generation means and storing them in a computer-writable storage device is provided.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a configuration diagram of an electronic computer that performs required specification model conversion processing in the present embodiment. In this embodiment, the requirement specification model is converted into a UML model that is a format handled by UML (Unified Modeling Language), which is an object-oriented modeling technique. This is an analysis and design method. As a technique related to UML, for example, a technique described in Terry Quatrani, “Visual Modeling with Rational Rose”, ISBN: 0-201-31016-3 is known.
[0009]
UML is modeled by diagrams such as class diagrams that represent classes and relationships between classes, sequence diagrams that represent scenes that are procedures between objects as a time-series flow, and use case diagrams that represent external interfaces of the system. Express. The components of the UML model include, for example, an object that is an element constituting the development target system and a class that is a set of objects. , Use cases that are intended to show the actor what the system does.
[0010]
In FIG. 1, a processing device 102 is a personal computer or a computer such as a workstation. On the main storage device of the processing device 102 or an external storage device connected to the processing device 102, a character name for identifying a character that is an element constituting character information, an attribute for storing a value indicating a character state, and a character A character information storage unit 105 that stores a message that represents an action that can be performed and stores a character type that is used as a material for determining whether or not a character is an element of another format model. A scenario that is an element constituting scenario information A scenario identifier for identifying a character, a character identifier indicating a character appearing in the scenario, a scenario information storage unit 106 for storing scenes constituting the scenario, and a class diagram information storage for storing class information generated by the character information analysis / generation unit 107 Part 109, character information solution A use case diagram information storage unit 110 that stores actor information generated by the generation unit 107, use case information generated by the scenario information analysis / generation unit 108, and related information, and a sequence diagram generated by the scenario information analysis / generation unit 108 Each storage unit of the sequence diagram information list storage unit 111 that stores information is provided.
[0011]
Based on the character information extracted from the required specification model file input unit 104 and the character information storage unit 105 for reading the required specification model file stored in the computer-readable input storage device 101, the processing device 102 functions as a character. A scenario extracted from the character information analysis / generation unit 107 and the scenario information storage unit 106 that determines whether the character is a class that is an element of the UML model or an actor from the type, and generates class information or actor information of the UML model Based on the information, it is determined whether to generate a sequence diagram of the UML model or to generate a use case and a relationship, and a scenario information analysis / generation unit 108 and a class for generating the sequence diagram information or the use case information and the related information Figure information storage unit 1 9. Each processing unit of the UML model file output unit 112 that integrates the elements of the UML model received from the use case diagram information storage unit 110 and the sequence diagram information list storage unit 111 and stores them in the computer readable output storage device 103 Have Specifically, these processing units are stored in the main storage device of the processing device 102 or an external storage device connected to the processing device 102, and the required specification model / other format model conversion program in the present embodiment is stored. It is a program module to be configured, and its function is realized by being executed by the processing device 102.
[0012]
FIG. 2 shows a connection between a requirement specification model creation program 201 that is an external program, a requirement specification model / other format model conversion program 202 that is executed by the processing apparatus 101, and a UML model input program 203 that is an external program. It is the figure which showed the procedure which performs from file generation to UML model file generation. The requirement specification model creation program 201 is a program for generating a requirement specification model file. The input storage device 101 stores a requirement specification model file created by the requirement specification model creation program 201. The required specification model / other format model conversion program 202 converts the required specification model file stored in the input storage device 101 into a UML model file and stores it in the output storage device 103. The UML model file stored in the output storage device 103 is input by the UML model input program 202 which is another external program.
[0013]
FIG. 3 shows details of the required specification model file stored in the input storage device 101.
[0014]
The requirement specification model file 1901 includes character information 1902 that holds information on characters that are components of a development target business, and scenario information that holds information on scenarios that are specific examples of the target business.
[0015]
The character information 1902 includes a character name 1903 that is an identifier, a character type 1904, an attribute 1905 that represents internal data of the character, and a message 1908 that is an internal procedure of the character. The attribute 1905 includes an attribute name 1906 that is an identifier and an attribute value 1907 that represents a data value. The message 1908 includes a message name 1910 that is an identifier.
[0016]
The scenario information 1911 includes a scenario name 1912 as an identifier, a scenario character information list 1913 representing a list of characters constituting the scenario, and scene information 1916 representing a sequence of procedures between characters in the scenario. The in-scenario character information list 1913 is a list of a pair of a character name 1914 and coordinates 1915 indicating an arrangement position on the scenario. The scene information 1916 represents a message transmission character name 1917 representing a character that requests activation of a procedure by message transmission, a message reception character name 1918 representing a character that receives a message and activates the procedure, and a procedure to be activated. It consists of a message name 1919.
[0017]
FIG. 4 shows details of the character information 301 stored in the character information storage unit 105. Character information 301 is stored in the character information storage unit 105. Character information 301 includes a character name 302 that is a character identifier, a character type 303 for indicating whether or not the character is a system component to be developed, zero or more attributes 304, and zero or more messages 307. Composed. The attribute 304 includes an attribute name 305 and an attribute value 306 that are identifiers. The message 307 includes a message name 308 that is an identifier. The attribute name 305 is unique in one piece of character information. The message name 308 is also unique in one character information.
[0018]
In the present embodiment, whether or not a character is a development target system component is determined based on whether or not a special character string is stored in the character type 303. In the present embodiment, the character string “Actor” is used as a special character string.
[0019]
FIG. 5 shows details of the scenario information 401 stored in the scenario information storage unit 106. The scenario information 401 includes a scenario name 402 as a scenario identifier, a character information list 403 in a scenario indicating a list of characters constituting the scenario, and zero or more scene information 406 representing scenes constituting the scenario.
[0020]
The character name 404 and the coordinates 405 are stored in the character information list 403 in the scenario. The character name 404 indicates the same name among the character information stored in the character information storage unit 106. When acquiring the character information indicated by the character name 404 in the requirement specification model creation program 201 and the scenario information analysis / generation unit 108, the character name 404 and the character name 302 are the same by sequentially referring to the character information storage unit 106. The character information 301 is acquired.
[0021]
The scene information 406 stores a message transmission character name 407 representing a message transmission source character, a message reception character name 408 representing a message reception destination, and a message name 409 representing a transmitted message. The message transmission character name 407 and the message reception character name 408 also indicate characters having the same name among the character information stored in the character information storage unit 106. The message name 409 indicates a message having the same name among the messages in the character information indicated by the received character name 408.
[0022]
The scenario name 402 is unique among all scenario information 401 stored in the scenario information storage unit 106.
[0023]
FIG. 6 is a related diagram showing the relationship between the scenario information 401 and the character information 301 using a specific example.
[0024]
In the scenario information 401 of the sales management system, “sales management system” is stored as the scenario name 402. In the in-scenario character information list 403, “business charge” and “customer database” are stored as character names 404. The character name 404 “business manager” is located at coordinates (10, 20), and the character name 404 “customer database” is located at coordinates (20, 20). In the scene information 406, “business manager” is stored as the message transmission character name 407, “customer database” is stored as the message reception character name 408, and “customer search” is stored as the message name 409.
[0025]
In the character information 301a, “task charge” as the character name 302a, “Actor” as the character type 303a, and a message 307a are stored. The message 307a stores “search result output” as the message name 308a. The other character information 301b stores “customer database” as the character name 302b, “non-actor” as the character type 303b, and a message 307b. The message 307b stores “customer search” as the message name 308b.
[0026]
The character name 404 “business person in charge” and the message transmission character name 407 stored in the in-scenario character information list 403 indicate the character information 301a in which the character name 302a “business person in charge” is stored. Similarly, the character name 404 “customer database” and the message receiving character name 408 “customer database” are characters. name 30 2 Point to b. The message name 409 “customer search” indicates the message 307b.
[0027]
FIG. 7 is a detailed diagram of the class diagram information storage unit 109. The class diagram information storage unit 109 stores class information 601 obtained from character information. The class information 601 includes a class name 602 for identifying a class, zero or more attributes 603 for representing the state of the class, and zero or more messages 606. The attribute 603 includes an attribute name 604 and an attribute value 605. The message 606 includes a message name 607.
[0028]
FIG. 8 is a detailed diagram of the use case diagram information storage unit 110. The use case diagram information storage unit 110 stores actor information 701 generated from character information, use case information 711 generated from scenario information, and related information 708.
[0029]
The actor information 701 includes an actor name 702 for identifying an actor, zero or more attributes 703 representing the actor state, and zero or more messages 706. The attribute 703 includes an attribute name 704 and an attribute value 705. The message 706 is composed of a message name 707.
[0030]
The use case information 711 includes a use case name 712 that is an identifier and sequence diagram information 713 that represents a sequence diagram that the use case has.
[0031]
The related information 708 represents the relationship between an actor and a use case, and is composed of a related actor name 709 and a related use case name 710.
[0032]
FIG. 9 is a detailed diagram of the sequence diagram information list storage unit 111. The sequence diagram information list storage unit 111 is for storing the sequence diagram information generated by the scenario information analysis / generation unit 108 (excluding the sequence diagram information included in the use case information 711), and includes zero or more sequence diagrams. Information 801 is stored.
[0033]
FIG. 10 shows details of the sequence diagram information 713 in FIG. 8 and the sequence diagram information 801 in FIG. The configuration of the sequence diagram information 801 stored in the sequence diagram information storage unit 111 and the sequence diagram information 713 stored in the use case information 711 are the same. The sequence diagram information 713 and 801 includes a sequence name 901 and zero or more scene information 902. The scene information 902 includes a message transmission object name 903, a message reception object name 904, and a message name 905.
[0034]
In the present embodiment, the use case name 712 and the sequence name stored in the sequence diagram information 713 are the same name. This is to make the correspondence between the use case and the sequence diagram clearer in the UML model input program 202.
[0035]
11 and 12 are diagrams showing the relationship between the sequence diagram information 713 and the actor information 701 and the class information 601 and the relationship between the related information 708 and the actor information 701 and the use case information 711 using specific examples.
[0036]
In FIG. 11, “sales management system” is stored in the sequence name 901 of the sequence diagram information 713. In the scene information 902, “business staff” is stored as the message transmission object name 903, “customer database” is stored as the message reception object name 904, and “customer search” is stored as the message name 905. In the actor information 701, “business charge” is stored as the actor name 702. The message 706 stores “search result output” as the message name 707. The class information 601 stores “customer database” as the class name 602, and the message 606 stores “customer search” as the message name 607.
[0037]
The message transmission object name 903 “business person in charge” indicates the actor information 701 having the same name. The message reception object name 904 “customer database” indicates the class information 601. Message 905 “customer search” points to message 606.
[0038]
In FIG. 12, the related actor name 709 “business person in charge” in the related information 708 indicates the actor information 701 “business person in charge”. Further, the related use case name 710 “sales management system” indicates use case information 711 “sales management system”. The use case name 712 “sales management system” of the use case information 711 and the sequence name 901 “sales management system” of the sequence diagram information 713 are the same.
[0039]
Hereinafter, the conversion process (required specification model conversion process) from the required specification model file to the UML model file in the present embodiment will be described.
[0040]
FIG. 13 is a flowchart showing a flow of required specification model conversion processing in the processing apparatus 102.
[0041]
First, the required specification model file input unit 104 inputs the required specification model file 1901 stored in the input storage device 101, extracts character information 1902 from the required specification model file 1901, and stores character information 301 in the character information storage unit 105. Store as. Similarly, scenario information 1911 extracted from the requirement specification model file 1901 is stored as scenario information 401 in the scenario information storage unit 106 (step 1201).
[0042]
Next, the character information analysis / generation unit 107 refers to the character information 301 stored in the character information storage unit 105 and generates either class information 601 or actor information 701. When the class information 601 is generated, the character information analysis / generation unit 107 stores the generated class information 601 in the class diagram information storage unit 109. On the other hand, when the actor information 701 is generated, the character information analysis / generation unit 107 stores the generated actor information 701 in the use case diagram information storage unit 110 (step 1202).
[0043]
Next, the scenario information analysis / generation unit 108 generates the sequence diagram information 801 based on the scenario information 401 stored in the scenario information storage unit 106 and stores it in the sequence diagram information list storage unit 111, or The use case information 711 and the related information 708 are generated and stored in the use case diagram information storage unit 110. In this step, either the sequence diagram information 801 or the use case information 711 is generated (step 1203).
[0044]
Next, the UML model file output unit 112 includes class information 109 stored in the class diagram information storage unit 109, actor information 701, use case information 711, and related information 708 stored in the use case diagram information storage unit 110. In addition, the sequence diagram information 801 stored in the sequence diagram information list storage unit 111 is integrated to generate a UML model file, which is output to the output storage device 103 (step 1204).
[0045]
FIG. 14 is a detailed flowchart of step 1202.
[0046]
In step 1202, first, in order to sequentially acquire the character information 301 stored in the character information storage unit 105, the character information acquisition position pointer is set to the head position of the character information storage unit 105 (step 1301).
[0047]
Next, the character information analysis / generation unit 107 checks whether the character information 301 exists at the storage position of the character information storage unit 105 indicated by the character information acquisition position pointer (step 1302). If there is no character information, the character information analysis / generation unit 107 ends the process of step 1202. If there is character information, the character information analysis / generation unit 107 acquires the character information 301 (step 1303).
[0048]
Next, the character information analysis / generation unit 107 refers to the character type 303 of the character information 301 and checks whether there is a character string “Actor” (step 1304). When there is a character string “Actor”, the character information analysis / generation unit 107 generates the actor information 701 based on the character information 301 and stores it in the use case diagram information storage unit 110. Specifically, the character information analysis / generation unit 107 acquires the character name 302 from the character information 301 stored in the character information storage unit 105 and stores it as the actor name 702. The attribute name 305 and the attribute value 306 are acquired from the character information 301 and stored as the attribute name 704 and the attribute value 705 of the actor information 701. Also, the message name 308 is acquired from the character information 301 and stored as the message name 707 of the actor information 701 (step 1305).
[0049]
If it is determined in step 1304 that there is no character string “Actor”, the character information analysis / generation unit 107 generates class information 601 based on the character information 301 and stores it in the class diagram information storage unit 109. That is, the character information analysis / generation unit 107 acquires the character name 302 from the character information 301 stored in the character information storage unit 105 and stores it as the class name 602. The attribute name 305 and the attribute value 306 are acquired from the character information 301 and stored as the attribute name 604 and the attribute value 605 of the class information 601. The message name 308 is acquired from the character information 301 and stored as the message name 607 of the class information 601 (step 1306).
[0050]
When the class information 601 or the actor information 701 is generated, the character information analysis / generation unit 107 advances the character information acquisition position pointer by one character information in order to acquire the next character information 301 (step 1307). Then, the character information analysis / generation unit 107 repeats Step 1302, Step 1303, Step 1304, Step 1305 or Step 1306, and Step 1307 until all the character information is acquired.
[0051]
FIG. 15 is a detailed flowchart of step 1203.
[0052]
In step 1203, the scenario information analysis / generation unit 108 first sets the start position of the scenario information storage unit 106 in the scenario information acquisition position pointer in order to sequentially acquire the scenario information 401 stored in the scenario information storage unit 106 ( Step 1401).
[0053]
Next, the scenario information analysis / generation unit 108 checks whether the scenario information 401 exists in the storage position of the scenario information storage unit 106 indicated by the scenario information acquisition position pointer. The process ends (step 1402). If the scenario information 401 exists, the scenario information analysis / generation unit 108 acquires the scenario information 401 (step 1403).
[0054]
Next, the scenario information analysis / generation unit 108 generates the sequence diagram information 801 based on the scenario information 401 and stores it in the sequence diagram information list storage unit 111 or generates the use case information 711 to use the use case. It stores in the figure information storage unit 110 (step 1404).
[0055]
Subsequently, the scenario information analysis / generation unit 108 advances the scenario information acquisition position pointer by one scenario information (step 1405). Thereafter, the scenario information analysis / generation unit 108 performs the processing of steps 1402, 1403, 1404, and 1405 until all the scenario information stored in the scenario information storage unit 106 has been referred to.
[0056]
FIG. 16 is a detailed flowchart of step 1404.
[0057]
In step 1404, the scenario information analysis / generation unit 108 first acquires all the character names stored in the in-scenario character information list 403 in the scenario information 401. The top position of the scenario character information list 403 is set (step 1501).
[0058]
The scenario information analysis / generation unit 108 checks whether or not the character name 404 exists at the position indicated by the character name acquisition position pointer (step 1502). If there is a character name 404, the scenario information analysis / generation unit 108 acquires the character name 404 (step 1503).
[0059]
Next, the scenario information analysis / generation unit 108 sequentially refers to the character information storage unit 105 from the top, and acquires character information 301 having the same name as the character name 404 (step 1504).
[0060]
Subsequently, the scenario information analysis / generation unit 108 checks the character type 303 in the character information 301 and checks whether or not the character string “Actor” exists (step 1505).
[0061]
When there is a character string “Actor”, the scenario information analysis / generation unit 108 generates use case information 711 and stores it in the use case diagram information storage unit 110. In this processing, the scenario information analysis / generation unit 108 acquires the scenario name 402 from the scenario information 401 stored in the scenario information storage unit 106 and stores it in the use case information 711 as the use case name 712. Then, the sequence diagram information 713 is generated from the scenario information 401 as follows and stored in the use case information 711. First, the scenario information analysis / generation unit 108 stores the scenario name 402 as the sequence name 901. A message transmission character name 407, a message reception character name 408, and a message name 409 are acquired from each scene information 406 of the scenario information 401, and stored as a message transmission object name 903, a message reception object name 904, and a message name 905, respectively. Information 902 is generated (step 1507). Thereafter, the scenario information analysis / generation unit 108 generates related information 708 (step 1508).
[0062]
When the character string “Actor” is not found in step 1505, the scenario information analysis / generation unit 108 advances the character name acquisition position pointer to acquire the next character name 404 (step 1506).
[0063]
The scenario information analysis / generation unit 108 finishes referring to all the character names 404 stored in the in-scenario character information list for the processing after step 1502 or character type 303 among the character information 301 indicated by the character name 404. Until the one having the character string “Actor” is found.
[0064]
If there is no character name 404 at the position indicated by the character name acquisition position pointer in step 1502, that is, if there is no character string “Actor” for all the character names 404, the scenario information analysis / generation unit 108 selects the sequence diagram. Information 801 is generated and stored in the sequence diagram information list storage unit 111. In this process, the scenario information analysis / generation unit 108 stores the scenario name 402 as the sequence name 901. Then, a message transmission character name 407, a message reception character name 408, and a message name 409 are acquired from each scene information 406 of the scenario information 401, and stored as a message transmission object name 903, a message reception object name 904, and a message name 905, respectively. To generate scene information 902 (step 1509).
[0065]
FIG. 17 is a detailed flowchart of the related information generation processing in step 1508.
[0066]
The scenario information analysis / generation unit 108 acquires all the character names 404 stored in the in-scenario character information list 403 in one scenario information 401. Therefore, the in-scenario character information list 403 is set in the character name acquisition position pointer. Is set (step 1601).
[0067]
Next, the scenario information analysis / generation unit 108 checks whether or not there is a character name at the character acquisition position. If there is no character name, the process ends (step 1602).
[0068]
If there is a character name, the scenario information analysis / generation unit 108 acquires the character name 404 stored in the in-scenario character information list 403 (step 1603). Then, the scenario information analysis / generation unit 108 sequentially refers to the character information storage unit 105 from the top, and acquires character information 301 having the same name as the acquired character name 404 (step 1603).
[0069]
Next, the scenario information analysis / generation unit 108 checks whether or not there is a character string “Actor” in the character type 303 included in the acquired character information (step 1605). When there is the character string “Actor”, the scenario information analysis / generation unit 108 generates the related information 708 using the character name 302 as the related actor name 709 and the scenario name 402 as the related use case name 710, and the use case diagram The information is stored in the information storage unit 110 (step 1606). If there is no character string “Actor” in the character type 303 in step 1605, the processing in step 1606 is skipped.
[0070]
In order to acquire the next character name from the character information list in the scenario, the character name acquisition position pointer is advanced (step 1607). Thereafter, the processing after Step 1602 is repeated until all the character names stored in the character information list in the scenario are referred to.
[0071]
FIG. 18 is a specific example of a requirement specification model created by the requirement specification creation program 201.
[0072]
The character list 1701 is for displaying all the characters belonging to the required specification model. In this example, the character specification staff 1702 and the character customer database 1703 belong to the required specification model. Detailed information of the business person in charge 1702 is displayed in 1704. Detailed information of the customer database 1703 is displayed in 1705.
[0073]
In the scenario sales management system 1706, a character business charge 1702 and a character 1703 “customer database” appear. Reference numerals 1702 and 1703 denote scenes constituting the scenario sales management system 1706. In the scene 1707, the message “customer search” is passed from the character 1702 “business manager” to the character 1703 “customer database”. Similarly, in the scene 1708, the message “search result output” is passed from the character 1703 “customer database” to the character 1702 “business staff”.
[0074]
FIG. 19 is a UML model obtained by converting the required specification model shown in FIG.
[0075]
Since the character 1703 “customer database” does not have “Actor” as the character type, it is converted into a class 1802. Classes are arranged in a class diagram 1801.
[0076]
Since the character 1702 “business person in charge” has the character string “Actor” as the character type, it is converted into an actor 1804 and arranged in the use case diagram 1803.
[0077]
In the scenario sales management system 1706, “business person in charge”, which is a character 1702 having “Actor” as the character type, appears and is converted into a use case 1805 and arranged in a use case diagram 1803. The use case 1805 has a sequence diagram 1806.
[0078]
According to the embodiment described above, when converting a required specification model to a model of another format, it is determined whether a character or a scenario is a generation target of another format model element, and generation of a model element is performed. Therefore, when converting from the required specification model to the other format model, it is possible to generate only the elements of the necessary other format model without generating unnecessary elements in the other format model to be converted. For this reason, it is possible to save the trouble of deleting unnecessary elements in other generated formal models after the conversion process.
[0079]
【The invention's effect】
As described above, according to the present invention, at the time of conversion from a required specification model to another format model, it is possible to generate only elements necessary for the converted model.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a system for performing required specification model conversion processing in an embodiment of the present invention.
FIG. 2 is a schematic diagram showing cooperation between a required specification model / another format model conversion program and an external program.
FIG. 3 is a detailed view of a requirement specification model file stored in an input storage device.
FIG. 4 is a detailed view of a character information storage unit.
FIG. 5 is a detailed diagram of a scenario information storage unit.
FIG. 6 is a relation diagram showing a relationship between scenario information and character information.
FIG. 7 is a detailed diagram of a class diagram information storage unit;
FIG. 8 is a detailed view of a use case diagram information storage unit;
FIG. 9 is a detailed diagram of a sequence diagram information list storage unit;
FIG. 10 is a detailed diagram of sequence diagram information.
FIG. 11 is an information relation diagram showing a relationship between sequence diagram information, class information, and actor information.
FIG. 12 is an information related diagram showing a relationship between related information and actor information and use case information.
FIG. 13 is a flowchart showing an outline of required specification model conversion processing;
FIG. 14 is a detailed flowchart of class information / actor information generation processing;
FIG. 15 is a detailed flowchart of sequence diagram information or use case information and related information generation processing;
FIG. 16 is a detailed flowchart of generating sequence diagram information or use case information and related information.
FIG. 17 is a detailed flowchart of related information generation processing;
FIG. 18 is an explanatory diagram of a requirement specification model created by a requirement specification model creation program.
FIG. 19 is an explanatory diagram of a UML model obtained by conversion through a required specification model conversion process.
[Explanation of symbols]
101 ... Input storage device
102. Processing device
103 ... Output storage device
104 ... Required specification model file input section
105 ... Character information storage
106 ... scenario information storage unit
107 ... Character information analysis / generation unit
108 ... scenario information analysis / generation unit
109 ... Class diagram information storage unit
110 ... Use case diagram information storage unit
111 ... Sequence diagram information storage unit
112 ... UML model file output part

Claims (2)

システム開発対象業務を構成する構成要素が保持し、前記システム開発対象業務の構成要素であるキャラクターのキャラクター名称、メッセージ名称およびシナリオ名称を記録した構成要素情報と、上記構成要素間の手続きの起動連鎖を記録した手続き起動連鎖情報、または上記構成要素内の手続きの起動連鎖を記録した手続き起動連鎖情報を保持するシナリオとによって定義された要求仕様モデルを他の形式のモデルに変換する要求仕様モデル・他形式モデル変換装置において、
コンピュータ読み取り可能な記憶装置に格納され、上記要求仕様モデルからなる要求仕様モデルファイルを読み込む要求仕様モデルファイル入力手段と、
上記要求仕様モデルファイル入力手段が入力した上記要求仕様モデルファイルから得られる上記構成要素情報を記憶し、かつ構成要素が他形式モデルの要素となるか否かの判断材料となる構成要素種別を記憶する構成要素情報記憶手段と、
上記要求仕様モデルファイル入力手段が入力した上記要求仕様モデルファイルから得られるシナリオを記憶するシナリオ情報記憶手段と、
上記構成要素情報記憶手段に格納された上記構成要素情報を基に、上記構成要素種別から上記構成要素が他形式モデルの要素となるか否かを判断し、他形式モデルの要素を生成する構成要素情報解析・生成手段と、
上記シナリオ情報記憶手段に格納された上記シナリオを基に、他形式モデルの要素を生成するシナリオ情報解析・生成手段と、
上記構成要素情報解析・生成手段及び上記シナリオ解析・生成手段より受け取った上記他形式モデルの要素を統合し、コンピュータ書込み可能な記憶装置に格納する他形式モデルファイル出力手段とを備えることを特徴とする要求仕様モデル・他形式モデル変換装置。
Constituent element information that holds the character name, message name, and scenario name of the character that is a constituent element of the system development target business and is stored in the constituent elements constituting the system development target business, and a procedure start-up chain between the above constituent elements Requirement specification model that converts a requirement specification model defined by a procedure holding sequence information that records the procedure activation chain information that records the procedure activation chain information in the above components into a model of another format In other format model converter,
Requirement specification model file input means for reading a requirement specification model file consisting of the above requirement specification model, stored in a computer-readable storage device,
The component information obtained from the requirement specification model file input by the requirement specification model file input means is stored, and the component type used as a material for determining whether the component is an element of another format model is stored Component information storage means for
Scenario information storage means for storing a scenario obtained from the requirement specification model file input by the requirement specification model file input means;
A configuration for determining whether or not the component element is an element of another format model from the component element type based on the component element information stored in the component element information storage unit, and generating an element of the other format model Element information analysis / generation means,
Based on the scenario stored in the scenario information storage means, scenario information analysis / generation means for generating an element of another format model,
Characterized in that it comprises other format model file output means that integrates the elements of the other format model received from the component element information analysis / generation means and the scenario analysis / generation means and stores them in a computer-writable storage device. Requirement specification model / other format model conversion device.
システム開発対象業務を構成する構成要素が保持し、前記システム開発対象業務の構成要素であるキャラクターのキャラクター名称、メッセージ名称およびシナリオ名称を記録した構成要素情報と、上記構成要素間の手続きの起動連鎖を記録した手続き起動連鎖情報、または上記構成要素内の手続きの起動連鎖を記録した手続き起動連鎖情報を保持するシナリオとによって定義された要求仕様モデルを、他の形式のモデルに変換する要求仕様モデル・他形式モデル変換方法において、
コンピュータ読み取り可能な記憶装置に格納され、上記要求仕様モデルを保持する要求仕様モデルファイルを読み込み、
構成要素種別から構成要素が他形式モデルの要素他形式モデルの要素となるか否かを判断して他形式モデルの要素を生成し、
上記シナリオを構成する構成要素の構成要素種別からシナリオが他形式モデルの要素となるか否かを判断して他形式モデルの要素を生成し、
上記構成要素情報から生成した他形式モデルの要素及び上記シナリオを基に生成した他形式モデルの要素を統合してコンピュータ書込み可能な記憶装置に格納することを特徴とする要求仕様モデル・他形式モデル変換方法。
Constituent element information that holds the character name, message name, and scenario name of the character that is a constituent element of the system development target business and is stored in the constituent elements constituting the system development target business, and a procedure start-up chain between the above constituent elements Requirement specification model that converts the requirement specification model defined by the procedure invocation sequence information that records the procedure or the scenario that retains the procedure invocation sequence information that records the procedure invocation sequence in the above components into another model -In other format model conversion method,
A requirement specification model file that holds the requirement specification model stored in a computer-readable storage device is read,
Determine whether the component is an element of the other format model from the component type and generate an element of the other format model.
Determine whether the scenario is an element of the other format model from the component type of the component that constitutes the above scenario, and generate the element of the other format model,
Requirement specification model / other format model characterized in that elements of other format model generated from the component information and elements of other format model generated based on the scenario are integrated and stored in a computer-writable storage device Conversion method.
JP03836198A 1998-02-20 1998-02-20 Requirement specification model / other format model conversion apparatus and method Expired - Fee Related JP3716091B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03836198A JP3716091B2 (en) 1998-02-20 1998-02-20 Requirement specification model / other format model conversion apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03836198A JP3716091B2 (en) 1998-02-20 1998-02-20 Requirement specification model / other format model conversion apparatus and method

Publications (2)

Publication Number Publication Date
JPH11237979A JPH11237979A (en) 1999-08-31
JP3716091B2 true JP3716091B2 (en) 2005-11-16

Family

ID=12523155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03836198A Expired - Fee Related JP3716091B2 (en) 1998-02-20 1998-02-20 Requirement specification model / other format model conversion apparatus and method

Country Status (1)

Country Link
JP (1) JP3716091B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3555107B2 (en) 1999-11-24 2004-08-18 ソニー株式会社 Legged mobile robot and operation control method for legged mobile robot
DE10015114A1 (en) * 2000-03-28 2001-10-04 Bosch Gmbh Robert Method and device for modeling a mechatronic system in a motor vehicle
JP5544064B2 (en) * 2007-04-20 2014-07-09 株式会社明電舎 Software development support system, development support method and program
KR100940127B1 (en) 2008-04-25 2010-02-03 비티에스테크놀로지스(주) Method of translating requirement model to natural language

Also Published As

Publication number Publication date
JPH11237979A (en) 1999-08-31

Similar Documents

Publication Publication Date Title
CN101946248B (en) Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof
WO2018036342A1 (en) Csar-based template design visualization method and device
JP2001318812A (en) Device and method for generating performance evaluation model
CN110674083A (en) Workflow migration method, device, equipment and computer readable storage medium
Gogolla et al. Towards an integrated graph based semantics for UML
JPH09223007A (en) Input sheet system
JP3716091B2 (en) Requirement specification model / other format model conversion apparatus and method
CN115935493B (en) Method and system for converting two-dimensional CAD drawing into BIM model
CN111949915A (en) Visual customization method and system for production process of remote sensing product
KR101687970B1 (en) Connection and communication apparatus and method of the 3D model viewer for shipbuilding CAD
JPH06149555A (en) Data flow chart preparing method
US20050122336A1 (en) Information processing system, information processor for information registration, information processor for information retrieval, information processing method for information registration, and information processing method for information retrieval, program, and recording medium
JP2003150762A (en) Cooperation method for project information and its system
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN112463141A (en) BPMN-based micro-service workflow deployment method
KR101698422B1 (en) Apparatus and Method for design of process map by the IWOD
JP2000056956A (en) Device and method for converting request specification model into other system model
JP2720768B2 (en) Program customization equipment
JP2001188673A (en) Software reuse assisting device
KR20030008463A (en) A modeling system and method by modeling-object assembling
CN116400912A (en) Data acquisition method, device, storage medium and computer equipment
JP2001154837A (en) Device for supporting object directional development
JP2004021347A (en) Electronic document retrieval system and electronic document retrieval method
CN114358309A (en) Distributed machine learning model training method, device, equipment and storage medium
CN117909358A (en) Data analysis method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050411

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050701

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050823

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050829

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080902

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090902

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090902

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100902

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees