JP2006209179A - Model difference detection tool - Google Patents

Model difference detection tool Download PDF

Info

Publication number
JP2006209179A
JP2006209179A JP2005016429A JP2005016429A JP2006209179A JP 2006209179 A JP2006209179 A JP 2006209179A JP 2005016429 A JP2005016429 A JP 2005016429A JP 2005016429 A JP2005016429 A JP 2005016429A JP 2006209179 A JP2006209179 A JP 2006209179A
Authority
JP
Japan
Prior art keywords
difference
model
detection tool
attribute
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2005016429A
Other languages
Japanese (ja)
Inventor
Kenji Hosokawa
健司 細川
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2005016429A priority Critical patent/JP2006209179A/en
Publication of JP2006209179A publication Critical patent/JP2006209179A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a tool for detecting a change concerning contents between models as a difference in a model based development. <P>SOLUTION: The model difference detection tool that compares at least two models of which content is described by text, and detects the difference between them, comprises: a comparison part (12) for comparing two models to be compared text to text and detecting the difference; a storage part (15) for storing an attribute to be ignored; a judgement part (13) for judging whether the difference detected by the comparison part (12) relates to the attribute to be ignored which is stored in the storage part; and a difference display part (14) for showing the difference other than the difference judged as relating to the attribute to be ignored by the judgment part (13). <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、図式によって仕様および機能を記述するモデル間の差分を検出する、モデル差分検出ツールに関する。   The present invention relates to a model difference detection tool for detecting a difference between models describing specifications and functions by a diagram.

システム規模の大型化、設計仕様の複雑化に伴って、システム開発の困難性および開発期間の長期化が問題となっている。このような問題を解決する手法としてモデルベース開発が提唱され、大きな成果を上げている。モデルベース開発は、従来のコードベース開発とは異なり、モデルを中心に開発を行うものであり、図式によって設計仕様および機能が記述される。モデルには、オブジェクト指向設計で用いられるUML(Unified・Modeling・Language)や物理現象を図式で表すものなどが一般に知られている(例えば、特許文献1参照)。   As the system scale increases and the design specifications become complicated, the difficulty of system development and the lengthening of the development period have become problems. Model-based development has been advocated as a method to solve such problems, and has achieved great results. Model-based development differs from conventional code-based development in that development is centered on a model, and design specifications and functions are described by diagrams. Generally known models include UML (Unified / Modeling / Language) used in object-oriented design, and models that represent physical phenomena graphically (see, for example, Patent Document 1).

モデルベース開発を行うに当っても、従来のコードベース開発と同様に、ファイル間のバージョン管理を行って変更履歴を管理し、また、前回作成モデルと今回作成モデルとの差分を比較して変更箇所を特定することが望まれる。このような管理によって、変更規模の見積もりが可能となり、さらに必要な仕様が全て盛り込まれたか否かを確認することができるので、システム開発の生産性が向上する。   Even in model-based development, as with conventional code-based development, version management between files is performed to manage the change history, and the difference between the last created model and this created model is compared and changed. It is desirable to specify the location. Such management makes it possible to estimate the scale of change and to check whether all necessary specifications have been incorporated, thereby improving system development productivity.

ところが現状では、モデルを記述するアプリケーションによっては差分ツールが提供されないものも存在し、差分ツールが提供されていてもモデル図の表示位置を動かしただけで差分と認識するなどの問題が存在する。また、汎用のバージョン管理ツールはコードベースでの利用を想定したものであり、モデル自体の管理はできても相違点があることを検出するのみである。モデルの中にはその内容がテキストで記述されたものもあり、その場合は汎用の差分ツールにより相違点のテキスト比較が可能であるが、比較結果を図式で表すことはできない。モデルベース開発では、比較結果を図式で表示することができないとユーザはそれを有効に利用することができない。   However, at present, there are some applications that do not provide a difference tool depending on the application that describes the model, and even if the difference tool is provided, there is a problem that it is recognized as a difference only by moving the display position of the model diagram. Moreover, the general-purpose version management tool is assumed to be used in a code base, and only detects that there is a difference even though the model itself can be managed. Some models have their contents written in text. In that case, text comparison of differences can be performed using a general-purpose difference tool, but the comparison result cannot be represented graphically. In model-based development, if the comparison result cannot be displayed graphically, the user cannot use it effectively.

特開2003−216428号公報JP 2003-216428 A

図1に、仕様および機能を図式で記述したモデルブロック(以下、ブロック)1を含むモデルファイル2と、ブロック1の内容をテキストで記述したテキストファイル3の一例を示す。尚、図1は、以下の図2、図7および図10とともに、IBM社のアプリケーションソフトである“Rose”の画面を引用して示している。図1に示すように、ブロック1の内容がテキストで記述されている場合は、汎用の差分ツールを用いて、変更前後のモデル間で内容の変更箇所を確認すること、即ち差分の検出が可能である。   FIG. 1 shows an example of a model file 2 including a model block (hereinafter referred to as a block) 1 in which specifications and functions are described graphically, and a text file 3 in which the contents of the block 1 are described in text. FIG. 1 shows a screen of “Rose” which is application software of IBM Corporation together with FIGS. 2, 7 and 10 below. As shown in FIG. 1, when the contents of block 1 are described in text, it is possible to check the changed part between the models before and after the change using a general-purpose difference tool, that is, to detect the difference. It is.

例えば、図2に示すように、ブロック4および5を含むモデルファイル6(b.mdl)が存在し、これが変更されてモデルファイル7(c.mdl)が作成された場合を考える。モデルファイル7はブロック4aと5aを含み、ブロック4aはモデルファイル6中のブロック4とは相違しないが、ブロック5aはブロック5とは内容は相違しないがその表示位置が相違しているものとする。   For example, as shown in FIG. 2, a model file 6 (b.mdl) including blocks 4 and 5 exists, and a model file 7 (c.mdl) is created by changing the model file 6 (b.mdl). The model file 7 includes blocks 4a and 5a. Although the block 4a is not different from the block 4 in the model file 6, the block 5a is not different from the block 5 but its display position is different. .

このような2個のファイルの差分をテキスト情報に基づいて比較すると、ブロック4および4a間では相違が無いがブロック5および5a間で相違が検出される。しかしながらその相違点はディスプレイ上の表示位置に関するものであって、実質的な内容の変更を伴わない。したがって、このような相違が検出されると、ユーザはその相違がどのような情報に関するものかについて検討しなければならず、かえって作業が煩雑となる。   When the difference between the two files is compared based on the text information, there is no difference between the blocks 4 and 4a, but a difference is detected between the blocks 5 and 5a. However, the difference relates to the display position on the display and does not involve substantial change of the contents. Therefore, when such a difference is detected, the user must consider what information the difference relates to, and the work becomes rather complicated.

図3は、ブロック5および5aのテキスト情報を一般的な差分ツール(図ではマイクロソフト社のWinDiffを示す)で比較した結果を示す。ブロック5と5aは、内容において相違しないが表示位置が異なっているため、拡大部分8に示すように、表示位置に関する属性 “Location”において相違する値が検出される。その結果、ブロック5aとしては内容に変更が無いにも拘わらず、差分ツールでは差分有りとして表示されることになる。   FIG. 3 shows a result of comparing the text information of blocks 5 and 5a with a general difference tool (the figure shows Microsoft's WinDiff). Since the blocks 5 and 5a are not different in content but have different display positions, different values are detected in the attribute “Location” regarding the display position as shown in the enlarged portion 8. As a result, although the content of the block 5a is not changed, the difference tool displays it as having a difference.

本発明は、従来の技術のかかる点に関してなされたもので、テキストで記述されたモデル同士の比較において、図として意味のある差分のみを検出することが可能な、新規なモデル差分検出ツールを提供することを課題とする。   The present invention has been made with respect to such a point of the prior art, and provides a new model difference detection tool capable of detecting only a meaningful difference as a figure in comparison between models described in text. The task is to do.

本発明はさらに、検出した差分をモデル図上に反映することが可能な、モデル差分検出ツールを提供することを課題とする。   It is another object of the present invention to provide a model difference detection tool that can reflect a detected difference on a model diagram.

上記課題を解決するために、本発明のモデル差分検出ツールは、2個のモデルをテキスト対テキストで比較し差分を検出する比較部と、無視すべき属性を登録し保存する記憶部と、比較部で検出された差分が記憶部に保存された無視すべき属性に関するものであるか否かを判断する判断部と、この判断部で無視すべき属性に関するものであるとされた差分以外の差分を表示する差分表示部を備えている。   In order to solve the above problems, the model difference detection tool of the present invention compares two models in a text-to-text comparison to detect a difference, a storage unit that registers and stores attributes to be ignored, and a comparison A difference that is determined to be related to an attribute to be ignored stored in the storage unit and a difference other than the difference that is determined to be related to the attribute to be ignored by the determination unit The difference display part which displays is provided.

上記本発明の差分検出ツールは、さらに、記憶部への無視属性の追加、削除のための入力部を備えている。   The above-described difference detection tool of the present invention further includes an input unit for adding and deleting an ignore attribute to the storage unit.

また、比較部は差分の検出と共にこの差分のテキストデータファイル構造上の位置情報を同時に取得し、差分表示部は検出された差分と共にこの位置情報を表示する。   The comparison unit simultaneously acquires position information on the text data file structure of the difference together with detection of the difference, and the difference display unit displays this position information together with the detected difference.

この場合、差分表示部は比較すべき2個のモデルの少なくとも一方をコピーしてコピーファイルを作成し、作成されたコピーファイル上に位置情報に基づいた差分情報を反映する。この差分情報の反映は、モデルブロックのハイライト表示、点滅表示あるいは色属性の変更などの強調表示によって行われる。   In this case, the difference display unit creates a copy file by copying at least one of the two models to be compared, and reflects the difference information based on the position information on the created copy file. The difference information is reflected by highlighting the model block, such as highlighting, blinking, or changing color attributes.

また、本発明の上記無視すべき属性は、表示位置情報、表示色情報、フォント情報を含む表示に関する属性とする。   The attributes to be ignored in the present invention are attributes relating to display including display position information, display color information, and font information.

本発明のモデル差分検出ツールによれば、図式の内容に関係しない、例えば、表示位置情報、表示色情報、フォント情報に関する属性が予め無視属性として記憶部に登録されている。したがって、比較すべきモデル間において検出された差分をこの登録情報と比較することによって、無視属性に関係する差分を自動的に排除することができる。その結果、意味のあるモデル間差分検出が容易に実行される。このような差分検出により、システムの生産性測定、モデル設計者のバージョン管理、仕様が全て盛り込まれたか否かのチェックなどが容易となり、システムの開発効率が向上する。   According to the model difference detection tool of the present invention, attributes relating to, for example, display position information, display color information, and font information, which are not related to the contents of the diagram, are registered in advance in the storage unit as ignored attributes. Therefore, by comparing the difference detected between the models to be compared with this registration information, the difference related to the ignore attribute can be automatically excluded. As a result, meaningful inter-model difference detection is easily performed. Such difference detection facilitates system productivity measurement, model designer version management, checking whether all specifications have been incorporated, etc., and improves system development efficiency.

また、入力部を介してユーザによる無視属性の追加、削除を可能とすることで、アプリケーションのバージョンアップなどによる属性名の変更に対処することが可能となり、さらに新たなモデル記述言語にも対応できる。   In addition, by allowing users to add and delete ignored attributes via the input unit, it is possible to deal with changes in attribute names due to application version upgrades, etc., and it can also support new model description languages. .

さらに、差分の表示に当って、差分情報に、その差分情報が存在するファイル上の位置情報を添付することによって、差分の検索が容易となる。   Furthermore, when displaying the difference, the position information on the file in which the difference information exists is attached to the difference information, thereby facilitating the search for the difference.

さらに、モデルをコピーしてコピーファイルを形成し、差分と判断された箇所をコピーファイル上にハイライトなどの手段により強調表示することによって、ユーザは差分箇所を容易に認識することができる。これにより、テキスト情報の比較であるということを意識せず、モデル間の自然な差分表示として差分結果を利用することができる。また、一時的なコピーファイルを使用して差分表示を行うことで、本来変更してはならない元ファイルを安全に保持しながら、差分表示を行うことができる。   Furthermore, by copying the model to form a copy file and highlighting the portion determined to be the difference by means such as highlighting on the copy file, the user can easily recognize the difference portion. Thereby, the difference result can be used as a natural difference display between models without being conscious of the comparison of text information. Also, by displaying the difference using a temporary copy file, the difference display can be performed while safely holding the original file that should not be changed.

図4は、本発明の実施形態1にかかるモデル差分検出ツール10の概略構成を示すブロック図である。モデル差分検出ツール10は、比較すべき2個またはそれ以上のモデル図のテキスト情報を入力するテキスト情報入力部11と、入力されたテキスト情報を比較する比較処理部12と、比較の結果検出された相違が図式相違に相当するか否かを判定しその結果を保持する図判定処理部13と、保持された結果を表示する表示処理部14と、さらにモデルの位置情報、表示色、フォントなどの無視すべき属性を保持する非図式情報保持部15を備える。また、非図式情報保持部15に保持された内容を削除し、変更しあるいは追加することを可能とするための入力手段16を備えていても良い。   FIG. 4 is a block diagram showing a schematic configuration of the model difference detection tool 10 according to the first embodiment of the present invention. The model difference detection tool 10 includes a text information input unit 11 for inputting text information of two or more model diagrams to be compared, a comparison processing unit 12 for comparing the input text information, and a result of comparison. The figure determination processing unit 13 that determines whether or not the difference corresponds to the graphical difference and holds the result, the display processing unit 14 that displays the stored result, and the model position information, display color, font, etc. The non-schematic information holding unit 15 that holds the attribute to be ignored is provided. Further, an input unit 16 may be provided for enabling the contents held in the non-schematic information holding unit 15 to be deleted, changed, or added.

図式をファイル間で比較する場合、モデルの表示位置、表示色、フォントなど表示に関する情報は、図式の意味に関係が無く、したがって無視することが望ましい。非図式情報保持部15では、このような無視することが望ましい属性情報を、モデル記述言語またはアプリケーションに応じて、外部ファイルあるいは外部データベースに予め登録している。図判定処理部13は、検出された差分が無視属性に関するものか否かを、非図式情報保持部15に記憶された内容を参照することによって決定する。   When comparing diagrams between files, display information such as the display position, display color, and font of the model is not related to the meaning of the diagrams, and is therefore preferably ignored. In the non-schematic information holding unit 15, such attribute information that should be ignored is registered in advance in an external file or an external database in accordance with the model description language or application. The figure determination processing unit 13 determines whether or not the detected difference is related to the ignore attribute by referring to the content stored in the non-schematic information holding unit 15.

通常、無視すべき属性は、モデル記述言語あるいはモデル図式エディタを提供するアプリケーションにより異なっている。したがって、有効な比較処理を行うためには、モデル記述言語あるいはアプリケーション毎に無視する属性を設定する必要がある。また、アプリケーションなどのバージョンアップによっても属性名が変更される場合がある。   The attributes that should normally be ignored depend on the application that provides the model description language or model diagram editor. Therefore, in order to perform effective comparison processing, it is necessary to set an attribute to be ignored for each model description language or application. In addition, attribute names may be changed due to version upgrades of applications.

図5に、アプリケーションによる属性名相違の一例を示す。表示の位置情報は、例えばアプリケーションAでは“Position”で示され、アプリケーションBでは“Location”として示される。また、コメントは、アプリケーションAでは“Comment”として記述され、アプリケーションBでは“Description”として示される。したがって、アプリケーションのバージョンアップによって追加されあるいは変更された無視属性を、入力手段16を介してユーザが任意に設定可能とする。あるいは、無視属性を外部ファイルあるいは外部データベースに格納しておき、差分検出実行の度に、「・・・は無視属性とする、しない」を入力手段16を介して切替えるようにしても良い。   FIG. 5 shows an example of attribute name differences between applications. The display position information is indicated, for example, as “Position” in the application A and as “Location” in the application B. In addition, the comment is described as “Comment” in the application A, and is described as “Description” in the application B. Accordingly, the user can arbitrarily set the ignore attribute added or changed by the version upgrade of the application via the input unit 16. Alternatively, the ignore attribute may be stored in an external file or an external database, and “...

図6は、図4に示すモデル差分検出ツール10の動作説明のためのフローチャートである。以下に、図6のフローチャートを参照しながら、図4に示す装置の動作を説明する。   FIG. 6 is a flowchart for explaining the operation of the model difference detection tool 10 shown in FIG. The operation of the apparatus shown in FIG. 4 will be described below with reference to the flowchart of FIG.

まず、ステップS1で、比較すべき2個のモデルについてのテキストファイルからテキスト情報を入力し、文字列を検出する。ステップS2で、検出された文字列をモデル間で比較する。文字列が一致した場合(ステップS2のYES)は、そこに変更が無いため、ステップS1に戻り次の文字列を検出する。ステップS2で比較された文字列が一致しない場合(ステップS2のNO)は、比較すべきモデル間に何らかの差分が存在するので、ステップS3においてその差分が無視属性に関するものであるか否かを判定する。この判定は、図4の非図式情報保持部15に登録された内容を参照することによって行われる。   First, in step S1, text information is input from a text file for two models to be compared, and a character string is detected. In step S2, the detected character strings are compared between models. If the character strings match (YES in step S2), there is no change, so the process returns to step S1 to detect the next character string. If the character strings compared in step S2 do not match (NO in step S2), since there is some difference between the models to be compared, it is determined in step S3 whether the difference is related to the ignore attribute. To do. This determination is made by referring to the contents registered in the non-schematic information holding unit 15 in FIG.

ステップS3で検出された差分が無視属性に関するものであると判定される(ステップS3のYES)と、その差分を無視してステップS1に戻り次の文字列を検出する。ステップS3でNOの場合、その差分は意味のある差分であると考えられるため、これを図式相違として保存(ステップS4)する。ステップS5で全ての文字列の検出が終了したか否かを判定し、全文字列が未検出の場合(ステップS5のNO)、ステップS1に戻って次の文字列について比較処理を行う。ステップS5でYESの場合は、ステップS6で保存された差分の表示を行い、処理を終了する。   If it is determined that the difference detected in step S3 is related to the ignore attribute (YES in step S3), the difference is ignored and the process returns to step S1 to detect the next character string. In the case of NO in step S3, the difference is considered to be a meaningful difference, so this is stored as a graphical difference (step S4). In step S5, it is determined whether or not all character strings have been detected. If all character strings have not been detected (NO in step S5), the process returns to step S1 to perform comparison processing for the next character string. If YES in step S5, the difference stored in step S6 is displayed and the process ends.

なお、図4に示す装置では、比較すべきモデル間の差分が無視属性に関するものであるか否かの判定を図判定処理部13で行っているが、これを比較処理部12で行うことも可能である。比較処理部12として汎用のテキスト比較ツールを使用する場合は、このツールが無視属性に関する判断機能を有していないので、図判定処理部13に無視属性に関する判定機能を追加し、その判断を行う必要がある。一方、比較処理部12として新たなツールを開発する場合は、処理部12に比較機能と共に無視属性に関する判定機能を持たせることができる。即ち、比較処理を汎用のテキスト比較ツールを用いて行うか否かによって、無視属性に関する判定機能を処理部12または処理部13のいずれで行うかを決定することができる。   In the apparatus shown in FIG. 4, the figure determination processing unit 13 determines whether or not the difference between the models to be compared is related to the ignore attribute, but this may be performed by the comparison processing unit 12. Is possible. When a general-purpose text comparison tool is used as the comparison processing unit 12, since this tool does not have a determination function regarding the ignore attribute, a determination function regarding the ignore attribute is added to the figure determination processing unit 13, and the determination is performed. There is a need. On the other hand, when a new tool is developed as the comparison processing unit 12, the processing unit 12 can be provided with a determination function related to the ignore attribute together with the comparison function. That is, it is possible to determine which of the processing unit 12 and the processing unit 13 performs the determination function regarding the ignore attribute depending on whether or not the comparison process is performed using a general-purpose text comparison tool.

図7〜図10は、図4に示す表示処理部14の構成およびその機能を説明するための図である。今、図7(a)、(b)に示すような2個のモデルファイル20(a.mdl)と30(d.mdl)を比較する場合を考える。比較元のファイル20は2個のブロック21(ブロック名test)と22(ブロック名test2)を含み、同様に比較先のファイル30も2個のブロック31(ブロック名test)と33(ブロック名test2)を含む。比較されるブロック22とブロック32では、PropertyBがPropertyCに変更されている。   7-10 is a figure for demonstrating the structure and function of the display process part 14 shown in FIG. Consider a case where two model files 20 (a.mdl) and 30 (d.mdl) as shown in FIGS. 7A and 7B are compared. The comparison source file 20 includes two blocks 21 (block name test) and 22 (block name test 2). Similarly, the comparison target file 30 also includes two blocks 31 (block name test) and 33 (block name test 2). )including. In block 22 and block 32 to be compared, Property B is changed to Property C.

図7の(c)および(d)は、ブロック21と31におけるMethodA()の内容を示す状態遷移図である。比較元のブロック21では、図(c)に示すように、StateAの値が1であるのに対し、比較先のブロック31ではStateAの値が削除されているものとする。   FIGS. 7C and 7D are state transition diagrams showing the contents of MethodA () in blocks 21 and 31. In the comparison source block 21, the value of State A is 1, whereas in the comparison destination block 31, the value of State A is deleted, as shown in FIG.

図7に示すような2個のファイルを図4に示す本発明にかかる差分検出ツールで比較した場合、比較処理部12において、比較元ファイル20のブロック22におけるPropertyB(属性1)が、比較先ファイル30のブロック32においてPropertyC(属性1)に変更され、比較元ファイル20のブロック21における値1(属性1)が比較先では削除されていることが理解される。この差分を表示処理部14でテキスト表示する場合、図8に示す行単位の相違情報(a)が表示される。なお、属性1が無視属性でないことは図判定処理部13で判定される。   When two files as shown in FIG. 7 are compared with the difference detection tool according to the present invention shown in FIG. 4, PropertyB (attribute 1) in the block 22 of the comparison source file 20 is compared with the comparison destination in the comparison processing unit 12. It is understood that the value is changed to PropertyC (attribute 1) in the block 32 of the file 30 and the value 1 (attribute 1) in the block 21 of the comparison source file 20 is deleted at the comparison destination. When this difference is displayed as text in the display processing unit 14, the line-by-line difference information (a) shown in FIG. 8 is displayed. The figure determination processing unit 13 determines that the attribute 1 is not an ignored attribute.

しかしながら、図8(a)に示す相違情報のみの表示では、ユーザはその相違がファイル中の何処にあるかを検索しなければならず、使い勝手が悪い。したがって、本発明の他の実施形態では、図8(b)に示すように相違情報に位置情報を付加して表示する。これによってユーザは相違がファイル内の何処にあるかを即座に理解することができるので、差分の利用価値が高い。この位置情報は、データの階層情報として示すことが可能である。   However, in the display of only the difference information shown in FIG. 8A, the user has to search where the difference is in the file, which is inconvenient. Therefore, in another embodiment of the present invention, the position information is added to the difference information and displayed as shown in FIG. As a result, the user can immediately understand where the difference is in the file, so that the utility value of the difference is high. This position information can be indicated as data hierarchy information.

図9は、モデルファイル20のテキストファイルにおけるデータ構造を示す。図示するように、ファイル20はデータが階層構造で記述されており、したがって図8の差分情報を表示する場合に、データの保存先の位置情報(b)(図8参照)を、例えば、/test2あるいは/test/state/StateAのようにして追加することにより、差分をより明確に表示することができる。   FIG. 9 shows a data structure in the text file of the model file 20. As shown in the figure, the data of the file 20 is described in a hierarchical structure. Therefore, when the difference information in FIG. 8 is displayed, the location information (b) (see FIG. 8) of the data storage destination is changed to, for example, By adding like test2 or / test / state / StateA, the difference can be displayed more clearly.

テキストファイルデータ構造の使用により変更点の位置情報が取得されるので、本発明の他の実施形態では、この位置情報を利用して上記変更を比較先のモデルファイル上に反映させる。この場合、元ファイルを変更することはできないので、比較先のモデルファイルをコピーして新たにコピーファイルを作成し、その上に変更情報を反映させる。変更情報の反映は、変更が存在するブロックあるいはその下の階層において何らかの変更があるブロックをハイライト表示し、または点滅表示することによって実施される。   Since the position information of the changed point is acquired by using the text file data structure, in another embodiment of the present invention, the position information is used to reflect the change on the model file to be compared. In this case, since the original file cannot be changed, the comparison destination model file is copied to create a new copy file, and the change information is reflected on the copy file. Reflection of change information is performed by highlighting or blinking a block in which a change exists or a block having some change in a layer below it.

図10は、このようにして変更ブロックがハイライト表示されたコピーファイル300を示す。コピーファイル300は、図7に示す比較先のモデルファイル30をコピーしたものである。図7〜9における説明で明らかなように、比較先のファイル30はブロック31がその下の階層において比較元のファイルから変更されているので、コピーファイル300ではブロック31’をハイライト表示あるいは点滅表示する。さらに、MethodA()の状態遷移図のコピー301において、変更箇所をハイライト表示あるいは点滅表示する。   FIG. 10 shows the copy file 300 in which the changed block is highlighted. The copy file 300 is a copy of the comparison model file 30 shown in FIG. As is clear from the description in FIGS. 7 to 9, since the block 31 of the comparison target file 30 is changed from the comparison source file in the lower layer, the block 31 ′ is highlighted or blinked in the copy file 300. indicate. Further, in the copy 301 of the state transition diagram of Method A (), the changed portion is highlighted or blinked.

ブロック32ではPropertyCが変更元のPropertyBから変更されているので、図10のコピーファイル300ではブロック32’がハイライト表示あるいは点滅表示される。これによって、ユーザはモデル間の差分箇所を容易に視認することが可能となる。   In block 32, since PropertyC has been changed from the original property B, block 32 'is highlighted or blinked in the copy file 300 of FIG. As a result, the user can easily visually recognize the difference between the models.

なお、図10に示す差分の強調処理において、例えば、削除されたブロックの場合(例えばブロック33)は赤で、追加されたブロックなら青で、その下の階層に変更があるブロック31’の場合は緑で表示しするようにしても良い。この場合、削除されたブロックは比較先モデルには存在しないが、差分表示のために色属性を赤としてコピーファイル上に表示する。また、コピーファイルは比較先ファイルに限らず、比較元ファイルをコピーして作成しても良い。   In the difference emphasis processing shown in FIG. 10, for example, in the case of a deleted block (for example, block 33) is red, in the case of an added block, it is blue, and in the case of a block 31 ′ in which the hierarchy below it is changed May be displayed in green. In this case, the deleted block does not exist in the comparison target model, but the color attribute is displayed as red on the copy file for the difference display. The copy file is not limited to the comparison destination file, and may be created by copying the comparison source file.

モデル図とその内容を示すテキストファイルとを示す図。The figure which shows a model diagram and the text file which shows the content. モデルファイルの変更のイメージを示す図。The figure which shows the image of a model file change. 従来の差分検出ツールによる検出結果を示す図。The figure which shows the detection result by the conventional difference detection tool. 本発明の1実施形態にかかるモデル差分検出ツールの概略構成を示すブロック図。The block diagram which shows schematic structure of the model difference detection tool concerning one Embodiment of this invention. アプリケーションによる属性名の違いを示す図。The figure which shows the difference in the attribute name by an application. 図4に示す装置の動作説明のためのフローチャート。5 is a flowchart for explaining the operation of the apparatus shown in FIG. 図4に示す装置の動作説明に供する図。FIG. 5 is a diagram for explaining the operation of the apparatus shown in FIG. 4. 本発明にかかる表示例を示す図。The figure which shows the example of a display concerning this invention. テキストファイルのデータ構造を示す図。The figure which shows the data structure of a text file. 本発明にかかる他の表示例を示す図。The figure which shows the other example of a display concerning this invention.

符号の説明Explanation of symbols

10 モデル差分検出ツール
11 テキスト情報入力部
12 比較処理部
13 図判定処理部
14 表示処理部
15 非図式情報保持部
16 入力手段
20 比較元ファイル
21、22 モデルブロック
30 比較先ファイル
31、32 モデルブロック
300 コピーファイル
DESCRIPTION OF SYMBOLS 10 Model difference detection tool 11 Text information input part 12 Comparison processing part 13 Figure determination processing part 14 Display processing part 15 Non-schematic information holding part 16 Input means 20 Comparison source file 21, 22 Model block 30 Comparison destination file 31, 32 Model block 300 copy files

Claims (6)

内容がテキストで記述された少なくとも2個のモデルを比較して両者の差分を検出するモデル差分検出ツールであって、
前記2個のモデルをテキスト対テキストで比較し差分を検出する比較部と、
無視すべき属性を保存する記憶部と、
前記比較部で検出された差分が前記記憶部に保存された無視すべき属性に関するものであるか否かを判断する判断部と、
前記判断部で無視すべき属性に関するものであるとされた差分以外の前記検出された差分を表示する差分表示部、を備えることを特徴とする、モデル差分検出ツール。
A model difference detection tool that compares at least two models whose contents are described in text and detects the difference between the two models,
A comparison unit that compares the two models in text-to-text and detects a difference;
A storage for storing attributes to be ignored;
A determination unit that determines whether the difference detected by the comparison unit is related to an attribute to be ignored stored in the storage unit;
A model difference detection tool, comprising: a difference display unit that displays the detected difference other than the difference that is related to an attribute that should be ignored by the determination unit.
請求項1に記載のモデル差分検出ツールにおいて、さらに、前記記憶部への無視属性の追加、削除のための入力部を設けたことを特徴とする、モデル差分検出ツール。   The model difference detection tool according to claim 1, further comprising an input unit for adding or deleting an ignore attribute to / from the storage unit. 請求項1に記載のモデル差分検出ツールにおいて、前記比較部は前記差分の検出と共に該差分のテキストデータファイル構造上の位置情報を同時に取得し、前記差分表示部は前記差分と共に前記位置情報を表示することを特徴とする、モデル差分検出ツール。   The model difference detection tool according to claim 1, wherein the comparison unit simultaneously acquires position information on the text data file structure of the difference together with the detection of the difference, and the difference display unit displays the position information together with the difference. A model difference detection tool characterized by 請求項1に記載のモデル差分検出ツールにおいて、前記比較部は前記差分の検出と共に該差分のテキストデータファイル構造上の位置情報を同時に取得し、前記差分表示部は前記比較すべき2個のモデルの少なくとも一方をコピーしてコピーファイルを作成し、前記作成されたコピーファイル上に前記位置情報に基づいた差分情報を反映することを特徴とする、モデル差分検出ツール。   The model difference detection tool according to claim 1, wherein the comparison unit simultaneously acquires position information of the difference on the text data file structure together with the detection of the difference, and the difference display unit displays the two models to be compared. A model difference detection tool, wherein a copy file is created by copying at least one of the above, and difference information based on the position information is reflected on the created copy file. 請求項4に記載のモデル差分検出ツールにおいて、前記コピーファイル上への前記差分情報の反映は、強調表示によって行われることを特徴とする、モデル差分検出ツール。   The model difference detection tool according to claim 4, wherein the difference information is reflected on the copy file by highlighting. 請求項1乃至5の何れか1項に記載のモデル差分検出ツールにおいて、前記無視すべき属性は、表示位置情報、表示色情報、フォント情報を含む表示に関する属性であることを特徴とする、モデル差分検出ツール。   6. The model difference detection tool according to claim 1, wherein the attribute to be ignored is a display-related attribute including display position information, display color information, and font information. Difference detection tool.
JP2005016429A 2005-01-25 2005-01-25 Model difference detection tool Withdrawn JP2006209179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005016429A JP2006209179A (en) 2005-01-25 2005-01-25 Model difference detection tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005016429A JP2006209179A (en) 2005-01-25 2005-01-25 Model difference detection tool

Publications (1)

Publication Number Publication Date
JP2006209179A true JP2006209179A (en) 2006-08-10

Family

ID=36966009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005016429A Withdrawn JP2006209179A (en) 2005-01-25 2005-01-25 Model difference detection tool

Country Status (1)

Country Link
JP (1) JP2006209179A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011070573A (en) * 2009-09-28 2011-04-07 Toshiba Corp Specification management program and specification management device
JP2013037721A (en) * 2007-05-15 2013-02-21 Fisher Rosemount Systems Inc Methods and systems for batch processing and execution in process system
JP2014026389A (en) * 2012-07-25 2014-02-06 Denso Corp Model comparison device, identifier generation device, model creation device, model comparison tool, identifier generation tool, and model creation tool
JP2018173822A (en) * 2017-03-31 2018-11-08 株式会社Screenホールディングス Managing device, model version managing method and managing program
CN111858299A (en) * 2020-06-02 2020-10-30 鹏城实验室 Automatic difference analysis and verification method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013037721A (en) * 2007-05-15 2013-02-21 Fisher Rosemount Systems Inc Methods and systems for batch processing and execution in process system
JP2011070573A (en) * 2009-09-28 2011-04-07 Toshiba Corp Specification management program and specification management device
JP2014026389A (en) * 2012-07-25 2014-02-06 Denso Corp Model comparison device, identifier generation device, model creation device, model comparison tool, identifier generation tool, and model creation tool
JP2018173822A (en) * 2017-03-31 2018-11-08 株式会社Screenホールディングス Managing device, model version managing method and managing program
CN111858299A (en) * 2020-06-02 2020-10-30 鹏城实验室 Automatic difference analysis and verification method
CN111858299B (en) * 2020-06-02 2023-06-16 鹏城实验室 Automatic difference analysis and verification method

Similar Documents

Publication Publication Date Title
US10379847B2 (en) Representation of customizable types in a development environment
US20070214173A1 (en) Program, method, and apparatus for supporting creation of business process model diagram
US7644370B2 (en) Method of componentisation of a graphically defined formula
US8106903B2 (en) System and method for visually representing a project using graphic elements
US8600706B2 (en) Systems and methods for identifying crash sources in a CAD environment
US8386919B2 (en) System for displaying an annotated programming file
WO2016149228A1 (en) Model driven customization framework
JP2016511881A (en) Method for managing and selectively placing multiple documents and sets of pages within a document
US20090271742A1 (en) User interface navigation design system
JP2006209179A (en) Model difference detection tool
US7941456B2 (en) Information management method, information management program and information management apparatus
US20080071593A1 (en) Business process editor, business process editing method, and computer product
JP2011170697A (en) Software structure analyzing device
US11947441B2 (en) Visual testing of implemented product code from a codified user experience design
US11645190B1 (en) Compliance check code generation for implemented product code from a codified user experience design
JP4360942B2 (en) Software development support device
US8856730B2 (en) Diagram layout patterns
JP2006277127A (en) Method for comparing correction program
CN112732643B (en) Method for interconversion of flow chart graphic file data and S1000D standard XML format data
JP2006106893A (en) Specification management device, specification management method, and specification management program
JP2011076561A (en) Parts catalog creation support device, program, and parts catalog creation support method
JP4635987B2 (en) Flow diagram editing apparatus, flow diagram editing method, and program
JP4960188B2 (en) Screen transition diagram display method and system
JPH1153391A (en) Database access method
JP5243908B2 (en) Computer system, method and computer program for verifying model quality

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080111

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090116