JPH0619700A - Program structure display - Google Patents
Program structure displayInfo
- Publication number
- JPH0619700A JPH0619700A JP4175525A JP17552592A JPH0619700A JP H0619700 A JPH0619700 A JP H0619700A JP 4175525 A JP4175525 A JP 4175525A JP 17552592 A JP17552592 A JP 17552592A JP H0619700 A JPH0619700 A JP H0619700A
- Authority
- JP
- Japan
- Prior art keywords
- program
- data
- usage type
- information
- blocks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
(57)【要約】
【目的】 プログラム内のデータの使われ方に着目した
プログラム構造を視覚的に理解しやすい形で表示するこ
とができ、プログラム開発・テストなどに際して有用な
情報を与えることができるプログラム構造表示装置を提
供すること。
【構成】 ソースコードファイル11から構文解析部1
2を通してプログラムのメトリクス値を計測するメトリ
クス値計測部13と、メトリクス値を格納するメトリク
ス値ファイル14と、メトリクス値のうちプログラムで
使用されるデータの使用型別頻度や使用型別データ数の
情報を検索する情報検索部15と、注意すべきデータの
使用型などのノウハウ情報を格納したノウハウファイル
16と、情報検索部15で検索された情報とノウハウフ
ァイル16からのノウハウ情報に基づいてプログラムの
構造を表示するための表示制御部17および表示部18
と、表示すべき内容を指示するための入力部19を有す
るプログラム構造表示装置。
(57) [Summary] [Purpose] The program structure that focuses on the usage of data in the program can be displayed in a visually easy-to-understand form, and useful information can be provided during program development and testing. To provide a program structure display device capable of displaying. [Structure] Source code file 11 to syntax analysis unit 1
Information about the metric value measurement unit 13 that measures the metric value of the program through 2, the metric value file 14 that stores the metric value, and the frequency by usage type and the number of data by usage type of the data used by the program in the metric value An information retrieval unit 15 for retrieving information, a know-how file 16 storing know-how information such as usage type of data to be noted, and a program based on the information retrieved by the information retrieval unit 15 and the know-how information from the know-how file 16. Display control unit 17 and display unit 18 for displaying the structure
And a program structure display device having an input unit 19 for instructing contents to be displayed.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ソフトウェアの開発や
テストに際してプログラムの品質評価のために利用され
るプログラム構造表示装置に係り、特にプログラムの構
造を視覚的に理解しやすい形で表示するプログラム構造
表示装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program structure display device used for program quality evaluation during software development and testing, and more particularly to a program structure display device for displaying the program structure in a visually easily understandable form. The present invention relates to a structure display device.
【0002】[0002]
【従来の技術】一般に、各種のソフトウェアの開発やテ
ストに際しては、プログラムの構造を捉えるためのメト
リクスと呼ばれる統計情報(例えばステップ数、データ
数、モジュール数、条件分岐の数など)を計測すること
によって、品質を評価する方法がとられている。そのよ
うなメトリクスは従来より多数提案されており、また幾
つかのメトリクスについては自動的に計算できるような
システムも開発されている(例えば特開平3−2082
9等)。2. Description of the Related Art Generally, in developing and testing various software, it is necessary to measure statistical information called a metric for grasping the structure of a program (for example, the number of steps, the number of data, the number of modules, the number of conditional branches, etc.). Has adopted a method of evaluating quality. Many such metrics have been proposed in the past, and a system capable of automatically calculating some metrics has also been developed (for example, JP-A-3-2082).
9).
【0003】しかし、これらのメトリクスを単に数値と
して求めて表示出力したとしても、この表示からソフト
ウェアの開発者が直観的にプログラムの構造を理解する
ことは困難である。このことから、ソフトウェアの開発
・テスト中にメトリクスを効果的に利用できていないと
いうのが実情である。However, even if these metrics are simply obtained as numerical values and displayed and output, it is difficult for the software developer to intuitively understand the structure of the program from this display. For this reason, it is the fact that metrics are not effectively used during software development and testing.
【0004】一方、特開平3−27440には、メトリ
クスに対する複数の品質評価尺度についての評価値を求
め、それらを各評価尺度を軸とした多角形で表示すると
ともに、その多角形の形状や面積を求めて評価を行うよ
うにしたソフトウェア品質評価システムが開示されてい
る。On the other hand, in Japanese Patent Laid-Open No. 3-27440, evaluation values for a plurality of quality evaluation scales for metrics are calculated, and these are displayed as polygons with each evaluation scale as an axis, and the shape and area of the polygons are also displayed. A software quality evaluation system is disclosed in which the evaluation is performed by seeking.
【0005】この評価システムによれば、多角形の形状
や面積からソフトウェアの総合的な品質評価を行うこと
はできるが、プログラムがプログラム内でのデータの使
われ方という面から見て具体的にどのような構造になっ
ているかを視覚的に表示することはできない。According to this evaluation system, it is possible to carry out a comprehensive quality evaluation of software from the shape and area of a polygon, but in terms of how the data is used in the program, It is not possible to visually display what the structure is.
【0006】[0006]
【発明が解決しようとする課題】上述したように、従来
の技術ではプログラムの構造をソフトウェアの開発者が
容易かつ具体的に理解できるような表示方法が確立され
ていない。このような表示を行うことができれば、プロ
グラムの見直しや改良、テスト時に重点的に行うべきテ
スト箇所の発見、テスト項目の設定などに有用な情報を
与えることが可能となると考えられる。As described above, the conventional technique has not established a display method that allows a software developer to easily and concretely understand the structure of a program. If such a display can be made, it will be possible to provide useful information for reviewing and improving programs, finding test points that should be focused on during testing, setting test items, and so on.
【0007】従って、本発明は特にプログラム内のデー
タの使われ方に着目したプログラム構造を視覚的に理解
しやすい形で表示することができ、プログラム開発・テ
ストなどに際して有用な情報を与えることができるプロ
グラム構造表示装置を提供することを目的とする。Therefore, according to the present invention, the program structure focusing on the usage of data in the program can be displayed in a visually easy-to-understand form, and useful information can be provided in the program development / test. An object of the present invention is to provide a program structure display device that can be used.
【0008】[0008]
【課題を解決するための手段】上記の課題を解決するた
め、本発明に係るプログラム構造表示装置は、プログラ
ムのメトリクス値を計測するメトリクス値計測手段と、
このメトリクス値計測手段により計測されたメトリクス
値のうちプログラムで使用されるデータとそれらの各デ
ータの使用型との関係を示す情報を検索する情報検索手
段と、この情報検索手段により検索された情報に基づい
てプログラムの構造を表示する表示手段と、この表示手
段において表示すべき内容を指示するための入力手段と
を備えたことを基本的な特徴とする。In order to solve the above problems, a program structure display device according to the present invention comprises a metric value measuring means for measuring a metric value of a program,
Information retrieval means for retrieving information indicating the relationship between the data used in the program and the usage type of each of the data among the metric values measured by this metric value measurement means, and the information retrieved by this information retrieval means The basic feature is that the display means for displaying the structure of the program based on the above and the input means for instructing the contents to be displayed on the display means are provided.
【0009】また、本発明はプログラムで使用されるデ
ータのうち特に注意すべきデータの使用型の情報を格納
した記憶手段をさらに備え、表示手段において情報検索
手段により検索された情報および記憶手段から読み出さ
れたデータの使用型の情報に基づいてプログラムの構造
を表示することを特徴とする。Further, the present invention further comprises a storage means for storing usage type information of data to be particularly noted among the data used in the program, and the information and storage means retrieved from the information retrieval means on the display means are used. It is characterized in that the structure of the program is displayed based on the usage type information of the read data.
【0010】情報検索手段は、プログラムで使用される
データとそれらの各データの使用型との関係を示す情報
として、具体的にはプログラムで使用されるデータの使
用型別頻度および使用型別データ数の少なくとも一方の
情報を検索する。The information retrieving means, as information indicating the relationship between the data used in the program and the usage type of each of the data, specifically, the usage type frequency and the usage type data of the data used in the program. Search for at least one number of information.
【0011】表示手段は、複数個の同心円で囲まれた領
域を複数のブロックに分割し、これらの各ブロックにプ
ログラムで使用されるデータの使用型を対応させてなる
プログラム構造図を表示する。そして、このプログラム
構造図を利用して、以下の表示を行う。 (a) プログラム構造図の各ブロック上に、該ブロックに
対応する使用型に属するデータの数を表示する。 (b) プログラムで使用されるデータが存在する使用型に
対応するブロックを他のブロックと区別できるように表
示する。 (c) 入力手段により特定の使用型が指定されたとき、そ
の使用型に対応するブロックを他のブロックと区別でき
るように表示する。 (d) 入力手段により特定のデータが指定されたとき、そ
のデータが属する使用型に対応するブロックを他のブロ
ックと区別できるように表示する。 (e) 記憶手段から読み出されたデータ名のデータが属す
る使用型に対応するブロックを他のブロックと区別でき
るように表示する。The display means divides an area surrounded by a plurality of concentric circles into a plurality of blocks and displays a program structure diagram in which each block is associated with a usage type of data used in a program. Then, the following display is performed using this program structure diagram. (a) The number of data belonging to the usage type corresponding to the block is displayed on each block of the program structure diagram. (b) Display the block corresponding to the usage type in which the data used in the program exists so that it can be distinguished from other blocks. (c) When a specific usage type is designated by the input means, the block corresponding to the usage type is displayed so as to be distinguishable from other blocks. (d) When specific data is designated by the input means, the block corresponding to the usage type to which the data belongs is displayed so as to be distinguishable from other blocks. (e) The block corresponding to the usage type to which the data having the data name read from the storage means belongs is displayed so as to be distinguishable from other blocks.
【0012】また、プログラム構造図においては、共通
の使用型を含む使用型全てにそれぞれ対応するブロック
が連続した領域となるように各ブロックに使用型を対応
させることが望ましい。Further, in the program structure diagram, it is desirable that each block is associated with a usage type so that blocks corresponding to all usage types including a common usage type are continuous areas.
【0013】[0013]
【作用】このようにして、本発明ではプログラムで使用
されるデータの使われ方(使用型)の面から捉えたプロ
グラム構造の表示が行われる。従って、このプログラム
構造の表示から、ソフトウェアの開発者等はプログラム
の構造をより具体的にかつ視覚的に容易に理解すること
が可能となり、プログラムの開発、プログラムのテスト
などに際して、プログラムの見直しや改良、テスト項目
の設定に有効な情報が与えられる。As described above, according to the present invention, the program structure is displayed from the viewpoint of the usage (usage type) of the data used in the program. Therefore, from the display of the program structure, it becomes possible for the software developer to easily understand the structure of the program more specifically and visually, and it is possible to review the program when developing the program or testing the program. Effective information is provided for improvement and setting of test items.
【0014】[0014]
【実施例】以下、図面を参照して本発明の実施例を説明
する。図1は、本発明の一実施例に係るプログラム構造
表示装置の構成を示すブロック図である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a program structure display device according to an embodiment of the present invention.
【0015】図1において、ソースコードファイル11
はプログラムのソースコードを格納している。構文解析
部12は、ソースコードファイル11からのソースコー
ドを構文解析して、解析結果をメトリクス値計測部13
へ送る。メトリクス値計測部13は、構文解析結果から
ソースコードのメトリクス値を計測する。計測されるメ
トリクス値は、例えばプログラムのステップ数、総デー
タ数、モジュール数、条件分岐の数、データの使用型別
頻度、使用型別データ数等である。これらのメトリクス
値は、メトリクス値情報ファイル14に格納される。In FIG. 1, the source code file 11
Stores the source code of the program. The syntactic analysis unit 12 syntactically analyzes the source code from the source code file 11 and outputs the analysis result to the metrics value measurement unit 13
Send to. The metric value measuring unit 13 measures the metric value of the source code from the syntax analysis result. The measured metric values are, for example, the number of steps of the program, the total number of data, the number of modules, the number of conditional branches, the frequency of data used by type, the number of data used by type, and the like. These metric values are stored in the metric value information file 14.
【0016】情報検索部15は、入力部19からの指示
に基づいてメトリクス値情報ファイル14を検索して、
プログラム構造表示に必要なメトリクス値の情報、例え
ばデータの使用型別頻度や使用型別データ数の情報等を
取り出す。The information retrieval unit 15 retrieves the metric value information file 14 based on the instruction from the input unit 19,
Information on the metric value necessary for displaying the program structure, for example, information on the frequency by use type of data and the number of data by use type is extracted.
【0017】ノウハウファイル16は、過去のソフトウ
ェア開発において経験的に得られたノウハウの情報を蓄
積したものであり、これらの情報は開発チームやプロジ
ェクトに依存しており、類似したプロジェクト(旧バー
ジョン)や、過去の経験に基づいて、例えばどのような
データに関係した部分が不具合と結び付き易いかを調べ
ることで得られるものである。このようなノウハウ情報
の具体例については、後述する。The know-how file 16 is a collection of know-how information obtained empirically in past software development. This information depends on the development team and project, and similar projects (old version) Alternatively, it can be obtained by examining, for example, what kind of data-related portion is likely to be linked to a defect based on past experience. A specific example of such know-how information will be described later.
【0018】表示制御部17は、情報検索部15で検索
されたメトリクス値をノウハウファイル16からのノウ
ハウ情報をも利用して処理することにより、プログラム
構造の表示に必要な情報を生成して表示部18に送る。The display control unit 17 processes the metric values retrieved by the information retrieval unit 15 using the know-how information from the know-how file 16 as well, thereby generating and displaying the information necessary for displaying the program structure. Send to section 18.
【0019】表示部18は、CRTディスプレイや液晶
ディスプレイなどの2次元ディスプレイであり、表示制
御部17により制御され、プログラム構造表示時には、
まず図2に示すようなメニュー画面を表示し、入力部1
9を介して「構造表示開始」が選択されるとプログラム
構造の表示を開始し、「構造表示終了」が選択されると
その表示を終了する。プログラム構造の表示は、プログ
ラム構造表示図とよぶ図の形で行われる。The display unit 18 is a two-dimensional display such as a CRT display or a liquid crystal display, and is controlled by the display control unit 17, and when the program structure is displayed,
First, the menu screen as shown in FIG. 2 is displayed, and the input unit 1
When "structure display start" is selected via 9, the display of the program structure is started, and when "structure display end" is selected, the display is ended. The program structure is displayed in the form of a program structure display diagram.
【0020】入力部19は、ユーザの指示を入力して情
報検索部15や表示制御部17を制御するものであり、
キーボードや、マウスのようなポインティングデバイス
などにより構成される。The input section 19 inputs a user's instruction to control the information retrieval section 15 and the display control section 17,
It is composed of a keyboard and a pointing device such as a mouse.
【0021】以下、プログラムとしてCOBOLを例に
とり、具体的に説明する。図3〜図4は、COBOLの
ソースコードの一例を示している。このソースコード
は、見出し部(IDENTIFICATION DIVISION )、環境部
(ENVIRONMENT DIVISION)、データ部(DATA DIVISION
)および手続部(PROCEDURE DIVISION)からなる。The program will be specifically described below by taking COBOL as an example. 3 to 4 show an example of source code of COBOL. This source code consists of a header section (IDENTIFICATION DIVISION), an environment section (ENVIRONMENT DIVISION), and a data section (DATA DIVISION).
) And a procedure division (PROCEDURE DIVISION).
【0022】COBOLの場合、プログラムに使用され
るデータの使用型は、次の5種類に分類される。 (1) 「定義・代入」:値が書き換えられる場合。 (2) 「参照」:参照されるのみであり、値は書き換えら
れない。但し、条件判定に用いられている場合は除く。 (3) 「条件付き参照」:条件判定において参照されるデ
ータ。値は書き換えられない。 (4) 「引き数」:他のプログラムを呼ぶ際の引き数とし
て使われる場合。 (5) 上記 (1)−(4) の型以外に使われた場合。In the case of COBOL, the usage types of data used in a program are classified into the following five types. (1) "Definition / Substitution": When the value is rewritten. (2) “Reference”: Refer only, the value is not rewritten. However, it is excluded when it is used for condition judgment. (3) "Conditional reference": Data referred to in the condition judgment. The value cannot be rewritten. (4) "Argument": When used as an argument when calling another program. (5) When used for a type other than the above (1)-(4).
【0023】このような使用型の具体的な使用例を以下
に示す。 <例> IF [データ3] >0 THEN MOVE [データ2] TO [データ1] CALL“プログラム名”USING [データ4] INSPECT [データ5] TALLING …… データ1:「定義・代入」 データ2:「参照」 データ3:「条件付き参照」 データ4:「引き数」 データ5:「その他」Specific examples of usage of such a usage type are shown below. <Example> IF [Data 3]> 0 THEN MOVE [Data 2] TO [Data 1] CALL “Program Name” USING [Data 4] INSPECT [Data 5] TALLING …… Data 1: “Definition / Substitution” Data 2: "Reference" Data 3: "Conditional Reference" Data 4: "Argument" Data 5: "Other"
【0024】図3〜図4のようなソースコードの場合、
メトリクス値計測部13で計測されメトリクス値情報フ
ァイル14に格納されたメトリクス値のうち、データの
使用型別頻度および使用型別データ数は、それぞれ図5
および図6のようになる。In the case of the source code shown in FIGS. 3 to 4,
Of the metric values measured by the metric value measuring unit 13 and stored in the metric value information file 14, the frequency by use type of data and the number of data by use type are shown in FIG.
And it becomes like FIG.
【0025】図5は、各段落名毎に各データがどの使用
型にそれぞれ何回使われているかを“vDwRxCyP
zE”の形で示したものであり、Dは「定義・代入」、
Rは「参照」、Cは「条件付き参照」、Pは「引き
数」、そしてEは「その他」を表し、またv,w,x,
y,zは「定義・代入」、「参照」、「条件付き参
照」、「引き数」、「その他」にそれぞれ使われた回数
を表している。図6は、データの各使用型毎のデータ数
を示している。FIG. 5 shows "vDwRxCyP" indicating how many times each data is used for which usage type for each paragraph name.
zE ”, where D is“ definition / substitution ”,
R is "reference", C is "conditional reference", P is "argument", and E is "other", and v, w, x,
y and z represent the numbers of times used for "definition / assignment", "reference", "conditional reference", "argument", and "other", respectively. FIG. 6 shows the number of data for each usage type of data.
【0026】プログラム構造表示時には、これらデータ
の使用型別頻度および使用型別データ数の情報が入力部
19からの指示に基づき、情報検索部15によりメトリ
クス値情報ファイル14から検索され、表示制御部17
に送られる。これにより表示部18では、図7に示すよ
うな形のプログラム構造表示図が表示される。At the time of displaying the program structure, the information retrieving unit 15 retrieves the information about the frequency by use type and the number of data by use type of these data from the metric value information file 14 based on the instruction from the input unit 19, and the display control unit. 17
Sent to. As a result, the display unit 18 displays a program structure display diagram having a shape as shown in FIG.
【0027】図7に示すプログラム構造表示図におい
て、D,R,C,P,Eの記号は、上述したように「定
義・代入」、「参照」、「条件付き参照」、「引き
数」、「その他」の使用型を表す。これらの記号が単独
で記載されている場合、データがその型で1回以上使わ
れ、しかも他の型では使われていないことを示す。In the program structure display diagram shown in FIG. 7, the symbols D, R, C, P and E are "definition / assignment", "reference", "conditional reference" and "argument" as described above. , Represents the usage type of "other". When these symbols are listed alone, it indicates that the data has been used more than once in that type and not in any other type.
【0028】また、これらの記号が“DR”,“DR
C”,…のように複数個結合されて記載されている場合
は、データがそれらの使用型全てに1回以上使われ、し
かも他の使用型では使われていないことを示す。例えば
DRは「定義・代入」で1回以上使われ、かつ「参照」
でも1回以上使われているが、「条件付き参照」、「引
き数」、「その他」では1回も使われていないことを示
す。Further, these symbols are "DR", "DR".
When a plurality of combinations such as C ″, ... Are described, the data is used once or more for all of these usage types, and is not used for other usage types. For example, DR is Used more than once in "Definition / Substitution" and "Reference"
However, it is used more than once, but "conditional reference", "argument", and "others" indicate that it is not used even once.
【0029】図7の左上に示すプログラム構造図は、こ
の例では5個の同心円からなり、さらに全体は面積の等
しい31個のブロックに分割されている。そして、これ
らの各ブロックに使用型が割り当てられている。データ
の使用型は、円の中心に全ての使用型に使われているこ
とを示す“DRCPE”が配置され、外周へ行くに従っ
てデータ使用型の組み合わせの数が減り、最外周には単
独のデータ使用型D,R,C,P,Eが配置されてい
る。プログラムにおいて使われたデータは、これら31
個のブロックのいずれかに必ず割り当てられることにな
る。The program structure diagram shown in the upper left of FIG. 7 is composed of five concentric circles in this example, and is further divided into 31 blocks having the same area. A usage type is assigned to each of these blocks. As for the usage type of data, "DRCPE" indicating that it is used for all usage types is placed at the center of the circle, the number of combinations of data usage types decreases as going to the outer circumference, and a single data is used in the outermost circumference. Use types D, R, C, P and E are arranged. The data used in the program are 31
It will always be assigned to any of the blocks.
【0030】さらに、図7のプログラム構造表示図に
は、プログラム構造図のほか、ノウハウファイル16を
検索して得られる注意すべきデータ名を表示する注意デ
ータ名表示欄、メトリクス値情報ファイル14からメト
リクス値が検索されたデータ名を表示する検索データ名
表示欄、詳細チェック欄、詳細チェックが選択されたデ
ータ名を表示するデータ名表示欄と、詳細チェックや検
索のモード設定欄が設定されている。Further, in the program structure display diagram of FIG. 7, from the program structure diagram, a caution data name display field for displaying a data name to be obtained obtained by searching the know-how file 16 and the metric value information file 14 are displayed. The search data name display field that displays the data name for which the metric value has been searched, the detailed check field, the data name display field that displays the data name for which detailed check is selected, and the mode setting field for detailed check and search are set. There is.
【0031】次に、本実施例におけるブロック構造表示
の手順を図8に示すフローチャートと、図9〜図12の
表示例を参照して説明する。まず、入力部19において
図2に示したメニューにおける「構造表示開始」を選択
すると、プログラム構造表示図を表示するウインドウが
起動され(S1)、図9に示すプログラム構造表示図が
表示される。この起動時のプログラム構造表示図におい
ては、左上のプログラム構造図の各使用型に対応したブ
ロックに、その使用型に属するデータの数を示す数値が
表示されると共に、データの存在するブロックがデータ
の存在しないブロックと異なる色(この例では、青色)
に塗り分けられる(S2)。Next, the procedure for displaying the block structure in this embodiment will be described with reference to the flow chart shown in FIG. 8 and the display examples shown in FIGS. First, when selecting "start structure display" in the menu shown in FIG. 2 in the input unit 19, a window for displaying the program structure display diagram is activated (S1), and the program structure display diagram shown in FIG. 9 is displayed. In this program structure display diagram at startup, the number of data belonging to each usage type is displayed in the block corresponding to each usage type in the upper left program structure diagram, and the block in which the data exists is the data Color that is different from the block that does not exist (blue in this example)
(S2).
【0032】さらに、図9の起動時のプログラム構造表
示図には、ノウハウファイル16を参照して得られた、
特に注意すべきデータ名が注意データ名表示欄に表示さ
れると共に、プログラム構造図のうちの注意すべきデー
タの存在するブロックが他のブロックと異なる色に塗り
分けられる(S3)。図9の例では、注意すべきデータ
が存在するブロックは、赤色となっている。Further, in the program structure display diagram at the time of activation of FIG. 9, the know-how file 16 is obtained,
The data name to be especially noted is displayed in the caution data name display field, and the block in the program structure diagram where the data to be cautioned is colored differently from other blocks (S3). In the example of FIG. 9, the block in which the data to be noted exists is in red.
【0033】この表示例でのノウハウとは、例えば「D
Rに属するデータが全体のデータのうちの15%を占め
ていた場合は、特に注意すべきデータである」というも
のであり、従ってDRに属するデータに対応するブロッ
クが赤色に表示される。これらのノウハウは、前述した
ようにソフトウェア開発における開発チームやプロジェ
クトに依存し、類似したプロジェクト(旧バージョン)
や、過去の経験に基づいて、どのようなデータに関係し
た部分が不具合と結び付き易いかを調べることで得られ
る。The know-how in this display example is, for example, "D
If the data belonging to R occupies 15% of the whole data, it is the data that should be particularly noted. "Therefore, the block corresponding to the data belonging to DR is displayed in red. These know-how depend on the development team and project in software development as described above, and similar projects (old version)
Alternatively, it can be obtained by investigating what kind of data-related part is likely to be linked to a defect based on past experience.
【0034】次に、特定の使用型についてさらに詳しく
調べたい場合には、詳細チェックモードを設定すると共
に、詳細チェック欄上で調べたいデータ使用型を選択す
る。選択する使用型は、1個でも複数個でもよい。Next, when it is desired to check the specific usage type in more detail, the detailed check mode is set and the data usage type to be checked is selected in the detailed check column. The usage type selected may be one or more.
【0035】詳細チェック欄は、各使用型が単独で使わ
れているか、各使用型が含まれているか(単独で使われ
ているか)を選択して指定できるようになっている。詳
細チェックモードを設定し(S4)、使用型を選択する
と、選択した使用型に対応するブロックの表示色が起動
時とは異なる色、例えば黄色に変化する(S5)。これ
と同時に、選択した使用型に対応するデータ名の一覧が
データ名表示欄に表示される(S6)。なお、データ名
の一覧表示の際、選択された使用型に属するデータの数
をデータ名表示欄に併せて表示してもよい。In the detailed check column, it is possible to select and specify whether each usage type is used alone or whether each usage type is included (is used independently). When the detailed check mode is set (S4) and the usage type is selected, the display color of the block corresponding to the selected usage type changes to a color different from that at the time of startup, for example, yellow (S5). At the same time, a list of data names corresponding to the selected usage type is displayed in the data name display field (S6). When displaying the list of data names, the number of data belonging to the selected usage type may be displayed together with the data name display field.
【0036】図10に、この詳細チェックモードでのプ
ログラム構造表示例を示す。この表示例は、使用型とし
て“R”(単独)と、“C”を含む使用型を選択した場
合である。FIG. 10 shows an example of program structure display in the detailed check mode. This display example is a case where the usage type including "R" (single) and "C" is selected as the usage type.
【0037】一方、検索モードを設定し(S7)、検索
データ名表示欄において検索したいデータ名(検索デー
タ名)を入力すると、その検索データ名で指定されたデ
ータが属する使用型に対応するブロックの表示色が起動
時と異なる色、例えば緑色に変化する(S8)。On the other hand, when the search mode is set (S7) and the data name to be searched (search data name) is entered in the search data name display field, the block corresponding to the usage type to which the data designated by the search data name belongs The display color of is changed to a color different from that at startup, for example, green (S8).
【0038】図11に、この検索モードでのプログラム
構造図の表示例を示す。この表示例は、検索データ名と
して“MOJI−KAZU”を選択した場合であり、こ
のデータを含む使用型である“R”(単独)に対応する
ブロックが緑色に表示されている。FIG. 11 shows a display example of the program structure diagram in this search mode. In this display example, "MOJI-KAZU" is selected as the search data name, and the block corresponding to the usage type "R" (single) including this data is displayed in green.
【0039】このようにデータ名から使用型を検索でき
るので、例えばあるデータに予期せぬ値が入っていた場
合、それがどのデータに、あるいはプログラムの処理の
どこに影響を与えるかなどを調べることが可能となる。
例えば、“DR”という使用型に属するデータに誤った
値が入っていた場合、それが代入された時に誤りが生じ
たり、あるいは参照によって他のデータに誤った値が渡
されている可能性があることを発見することができるの
で、その“DR”に属するデータを調べることで、誤り
の原因や誤りの影響範囲を調べる際の手助けとなる。Since the usage type can be searched from the data name in this way, for example, when an unexpected value is contained in a certain data, it is possible to check which data, or where in the processing of the program it affects. Is possible.
For example, if the data that belongs to the usage type "DR" contains an incorrect value, it is possible that an error will occur when it is assigned, or that an incorrect value is passed to other data by reference. Since it is possible to discover that there is something, examining the data belonging to that "DR" helps in examining the cause of the error and the range of influence of the error.
【0040】以後、詳細チェックチェックモードまたは
検索モードを設定する毎に同様の表示が行われる。最後
に、図2のメニューにおいて「構造表示終了」を選択す
るとプログラム構造の表示は終了する(S9)。Thereafter, the same display is made every time the detailed check check mode or the search mode is set. Finally, selecting "end structure display" in the menu of FIG. 2 ends the display of the program structure (S9).
【0041】ところで、図7に示したプログラム構造表
示図においては、左上のプログラム構造図において各ブ
ロックに割り当てられている使用型は、必ず境界線を共
有する内側のブロックに割り当てられた使用型の一部と
なっていることが大きな特徴となっている。例えば、
“P”と境界線を共有する内側のブロックは、“PE”
と“RP”であり、共に“P”を含んでいる。また、
“PE”と境界線を共有する内側のブロックは“CP
E”であり、やはり“PE”を含んでいる。By the way, in the program structure display diagram shown in FIG. 7, the usage type assigned to each block in the upper left program structure diagram is always the usage type assigned to the inner block sharing the boundary line. The fact that it is a part is a major feature. For example,
The inner block that shares the boundary with "P" is "PE"
And “RP”, and both include “P”. Also,
The inner block that shares the border with "PE" is "CP
E "and also includes" PE ".
【0042】プログラム構造図において各ブロックに対
する使用型の配置をこのように設定すると、詳細チェッ
クモードにおいて例えば「ある使用型を含む使用型全
て」を選択した場合、これらの使用型に対応するブロッ
クはプログラム構造図上で連続した領域として表示され
る。例えば“DRを含む使用型全て”を選択した場合、
該当する使用型に対応するブロックである、図12に斜
線部で示す連続した領域が例えば黄色に表示される。When the allocation of the usage type to each block is set in this way in the program structure diagram, when "all usage types including a certain usage type" is selected in the detailed check mode, the blocks corresponding to these usage types are It is displayed as a continuous area on the program structure diagram. For example, if you select "all usage types including DR",
A block corresponding to the corresponding usage type, for example, a continuous area shown by a hatched portion in FIG. 12 is displayed in yellow, for example.
【0043】このように、ある使用型を含む使用型全て
を連続した領域として表示すると、その使用型に属する
データの分布をイメージとして直観的に捉えやすくな
り、プログラム構造の把握がより容易となるという利点
がある。As described above, when all the usage types including a certain usage type are displayed as a continuous area, the distribution of data belonging to the usage type can be intuitively grasped as an image, and the program structure can be grasped more easily. There is an advantage.
【0044】[0044]
【発明の効果】以上説明したように、本発明によればデ
ータの使われ方から見たプログラム全体の特徴、さらに
は注意すべきデータ(注意すべき使われ方をしているデ
ータ)などを視覚的に容易に把握できるようなプログラ
ム構造の表示が可能となり、プログラム開発・テストに
おいて、プログラムの見直しやテスト項目の設定の際に
有効な情報を与えることができる。As described above, according to the present invention, the characteristics of the entire program in terms of how data is used, and the data to be noted (data to be used with caution), etc. It is possible to display the program structure that can be visually easily grasped, and it is possible to give effective information when reviewing the program and setting test items in program development and testing.
【図1】本発明の一実施例に係るプログラム構造表示装
置の構成を示すブロック図FIG. 1 is a block diagram showing a configuration of a program structure display device according to an embodiment of the present invention.
【図2】同実施例におけるプログラム構造表示用メニュ
ー画面を示す図FIG. 2 is a diagram showing a menu screen for displaying a program structure in the embodiment.
【図3】プログラムのソースコードの具体例の一部を示
す図FIG. 3 is a diagram showing a part of a concrete example of source code of a program.
【図4】プログラムのソースコードの具体例の他の一部
を示す図FIG. 4 is a diagram showing another part of the specific example of the source code of the program.
【図5】メトリクス値情報ファイルに格納されたデータ
の使用型別頻度情報を示す図FIG. 5 is a diagram showing frequency information by usage type of data stored in a metric value information file.
【図6】メトリクス値情報ファイルに格納された使用型
別データ数情報を示す図FIG. 6 is a view showing information on the number of data by usage type stored in a metrics value information file.
【図7】同実施例におけるプログラム構造表示図を示す
図FIG. 7 is a diagram showing a program structure display diagram in the embodiment.
【図8】同実施例におけるプログラム構造表示の処理の
流れを示すフローチャートFIG. 8 is a flowchart showing a flow of processing for displaying a program structure in the embodiment.
【図9】同実施例における起動時のプログラム構造表示
図を示す図FIG. 9 is a diagram showing a program structure display diagram at the time of startup in the embodiment.
【図10】同実施例における詳細チェックモードでのプ
ログラム構造表示例を示す図FIG. 10 is a diagram showing an example of program structure display in a detailed check mode in the embodiment.
【図11】同実施例における検索モードでのプログラム
構造表示例を示す図FIG. 11 is a diagram showing a program structure display example in a search mode in the same embodiment.
【図12】同実施例におけるプログラム構造表示図の特
徴的な表示例を示す図FIG. 12 is a diagram showing a characteristic display example of a program structure display diagram in the embodiment.
11…ソースコードファイル 12…構文解析
部 13…メトリクス値計測部 14…メトリク
ス値ファイル 15…情報検索部 16…ノウハウ
ファイル 17…表示制御部 18…表示部 19…入力部11 ... Source code file 12 ... Syntax analysis unit 13 ... Metric value measurement unit 14 ... Metric value file 15 ... Information retrieval unit 16 ... Know-how file 17 ... Display control unit 18 ... Display unit 19 ... Input unit
Claims (9)
リクス値計測手段と、 このメトリクス値計測手段により計測されたメトリクス
値のうち前記プログラムで使用されるデータとそれらの
各データの使用型との関係を示す情報を検索する情報検
索手段と、 この情報検索手段により検索された情報に基づいて前記
プログラムの構造を表示する表示手段と、 この表示手段において表示すべき内容を指示するための
入力手段とを備えたことを特徴とするプログラム構造表
示装置。1. A metric value measuring means for measuring a metric value of a program, and a relationship between data used in the program and a usage type of each data among metric values measured by the metric value measuring means. An information retrieval means for retrieving the information shown, a display means for displaying the structure of the program based on the information retrieved by the information retrieval means, and an input means for instructing the contents to be displayed on the display means. A program structure display device comprising:
リクス値計測手段と、 このメトリクス値計測手段により計測されたメトリクス
値のうち前記プログラムで使用されるデータとそれらの
各データの使用型との関係を示す情報を検索する情報検
索手段と、 前記プログラムで使用されるデータのうち特に注意すべ
きデータの使用型の情報を格納した記憶手段と、 前記情報検索手段により検索された情報および前記記憶
手段から読み出されたデータの使用型の情報に基づいて
前記プログラムの構造を表示する表示手段と、 この表示手段において表示すべき内容を指示するための
入力手段とを備えたことを特徴とするプログラム構造表
示装置。2. A relationship between a metric value measuring means for measuring a metric value of a program and data used in the program among the metric values measured by the metric value measuring means and a usage type of each of the data. Information retrieval means for retrieving the information shown, storage means for storing information on the usage type of data to be particularly noted among the data used in the program, and information retrieved by the information retrieval means and the storage means A program structure characterized by comprising display means for displaying the structure of the program based on the read usage type information of the data, and input means for instructing the contents to be displayed on the display means. Display device.
用されるデータの使用型別頻度および使用型別データ数
の少なくとも一方の情報を検索することを特徴とする請
求項1または2に記載のプログラム構造表示装置。3. The information retrieving means retrieves information on at least one of the frequency by use type and the number of data by use type of the data used in the program. Program structure display.
た領域を複数のブロックに分割し、これらの各ブロック
に前記プログラムで使用されるデータの使用型を対応さ
せてなるプログラム構造図を表示すると共に、このプロ
グラム構造図の各ブロック上に該ブロックに対応する使
用型に属するデータの数を表示することを特徴とする請
求項1または2に記載のプログラム構造表示装置。4. A program structure diagram in which the display means divides an area surrounded by a plurality of concentric circles into a plurality of blocks and associates each of these blocks with a usage type of data used in the program. 3. The program structure display device according to claim 1, wherein the number of data belonging to the usage type corresponding to the block is displayed on each block of the program structure diagram.
た領域を複数のブロックに分割し、これらの各ブロック
に前記プログラムで使用されるデータの使用型を対応さ
せてなるプログラム構造図を表示すると共に、前記プロ
グラムで使用されるデータが存在する使用型に対応する
ブロックを他のブロックと区別できるように表示するこ
とを特徴とする請求項1、2または4に記載のプログラ
ム構造表示装置。5. A program structure diagram in which the display means divides a region surrounded by a plurality of concentric circles into a plurality of blocks and associates each of these blocks with a usage type of data used in the program. 5. The program structure display according to claim 1, wherein the block corresponding to the usage type in which the data used in the program exists is displayed so as to be distinguishable from other blocks. apparatus.
た領域を複数のブロックに分割し、これらの各ブロック
に前記プログラムで使用されるデータの使用型を対応さ
せてなるプログラム構造図を表示すると共に、前記入力
手段により特定の使用型が指定されたときその使用型に
対応するブロックを他のブロックと区別できるように表
示することを特徴とする請求項1、2、4または5に記
載のプログラム構造表示装置。6. A program structure diagram in which the display means divides a region surrounded by a plurality of concentric circles into a plurality of blocks and associates each of these blocks with a usage type of data used in the program. 6. When the specific usage type is designated by the input means, the block corresponding to the usage type is displayed so as to be distinguishable from other blocks. The program structure display device according to 1.
た領域を複数のブロックに分割し、これらの各ブロック
に前記プログラムで使用されるデータの使用型を対応さ
せてなるプログラム構造図を表示すると共に、前記入力
手段により特定のデータが指定されたときそのデータが
属する使用型に対応するブロックを他のブロックと区別
できるように表示することを特徴とする請求項1、2、
4、5または6に記載のプログラム構造表示装置。7. A program structure diagram in which the display means divides an area surrounded by a plurality of concentric circles into a plurality of blocks and associates each of these blocks with a usage type of data used in the program. 3. When the specific data is designated by the input means, the block corresponding to the usage type to which the data belongs is displayed so as to be distinguishable from other blocks.
7. The program structure display device according to 4, 5, or 6.
た領域を複数のブロックに分割し、これらの各ブロック
に前記プログラムで使用されるデータの使用型を対応さ
せてなるプログラム構造図を表示すると共に、前記記憶
手段から読み出されたデータ名のデータが属する使用型
に対応するブロックを他のブロックと区別できるように
表示することを特徴とする請求項2に記載のプログラム
構造表示装置。8. A program structure diagram in which the display means divides an area surrounded by a plurality of concentric circles into a plurality of blocks and associates each of these blocks with a usage type of data used in the program. 3. The program structure display according to claim 2, wherein the block corresponding to the usage type to which the data of the data name read from the storage means belongs is displayed so as to be distinguishable from other blocks. apparatus.
含む使用型全てにそれぞれ対応するブロックが連続した
領域となるように各ブロックに使用型を対応させてなる
ものであることを特徴とする請求項1、2、4、5、
6、7または8に記載のプログラム構造表示装置。9. The program structure diagram is such that each block is associated with a usage type so that blocks corresponding to all usage types including a common usage type are continuous areas. Claims 1, 2, 4, 5,
9. The program structure display device according to 6, 7, or 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4175525A JPH0619700A (en) | 1992-07-02 | 1992-07-02 | Program structure display |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4175525A JPH0619700A (en) | 1992-07-02 | 1992-07-02 | Program structure display |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0619700A true JPH0619700A (en) | 1994-01-28 |
Family
ID=15997591
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4175525A Pending JPH0619700A (en) | 1992-07-02 | 1992-07-02 | Program structure display |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0619700A (en) |
-
1992
- 1992-07-02 JP JP4175525A patent/JPH0619700A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5297150A (en) | Rule-based method for testing of programming segments | |
| JP4036479B2 (en) | Computer-based system for imaging and analyzing engineering object systems and indicating specific design change values | |
| US5774887A (en) | Customer service electronic form generating system | |
| JPH0388046A (en) | Service processor testing apparatus | |
| US20090217259A1 (en) | Building Operating System Images Based on Applications | |
| WO2020014965A1 (en) | Method and apparatus for processing sample testing data, and computer storage medium | |
| KR20190113446A (en) | Method and Apparatus for visualizing an integrated process between medical software development standards for medical software licensing | |
| US7721269B2 (en) | System and method for detecting redundant subroutine calls | |
| US20020012009A1 (en) | Scenario display method and apparatus | |
| Jovanovikj et al. | Context-specific Quality Evaluation of Test Cases. | |
| US6996516B1 (en) | Apparatus for analyzing software and method of the same | |
| JPH0619700A (en) | Program structure display | |
| KR0180923B1 (en) | Image processing device | |
| JPH0981386A (en) | Device and method for proper job diagnosis | |
| JP2010061610A (en) | Development scale calculation method, information processor, and program | |
| JPH0833834B2 (en) | Display panel generation method | |
| JP4795635B2 (en) | Process generation system and method, and computer program | |
| US12299970B2 (en) | Apparatus, system, and method for supporting setting for cell image analysis | |
| JPH1027099A (en) | Program generation method and apparatus | |
| JPH03127271A (en) | Design support equipment | |
| JPH07182363A (en) | Data processing method and device | |
| EP0994429A1 (en) | A modelling system for project control | |
| JP2001282799A (en) | Method and device for evaluating performance of data base, and recording medium | |
| KR20240030297A (en) | Method and system for automatic generating business logic source code | |
| JPH09258983A (en) | Contention dissolving device and contention dissolving rule generation device for production system |