JPH02178733A - Program list preparing device - Google Patents

Program list preparing device

Info

Publication number
JPH02178733A
JPH02178733A JP33541688A JP33541688A JPH02178733A JP H02178733 A JPH02178733 A JP H02178733A JP 33541688 A JP33541688 A JP 33541688A JP 33541688 A JP33541688 A JP 33541688A JP H02178733 A JPH02178733 A JP H02178733A
Authority
JP
Japan
Prior art keywords
program list
methods
call relation
calling
calling relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP33541688A
Other languages
Japanese (ja)
Inventor
Eimei Fujii
藤井 栄明
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP33541688A priority Critical patent/JPH02178733A/en
Publication of JPH02178733A publication Critical patent/JPH02178733A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a program list corresponding to the execution order of methods by storing data of the methods and the call relation of inter-method as data of a tree corresponding to nodes and links and outputting source codes corresponding to respective nodes based on data of the call relation. CONSTITUTION:A call relation preparing means 11 recording the methods decided by the class of an object and the class of a message and the call relation of inter-method as data of a tree structure, which are respectively caused to correspond to the node where the name of the class and that of the message are written and the link showing the call relation of inter-method, a call relation extracting means 12 generating the call relation required for generating the tree structure and displaying it on a screen, and a program list preparing means 13 which follows the nodes in a passing order and which prepares the program list are provided. Thus, the program list following the execution order of the methods can be outputted.

Description

【発明の詳細な説明】 (産業上の利用分野〕 この発明は、計惇機システムのプログラムリスト作成装
置に関し、特に、実行されるメソッドがプログラム実行
時に決定されるプログラミングh語に対応したプログラ
ムリスト作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a program list creation device for a control system, and particularly to a program list creation device for a program list whose method to be executed is determined at the time of program execution. Regarding the creation device.

〔従来の技術〕[Conventional technology]

一般に、3malltalk(スモールトーク)に代表
されるようなオブジェクト指向型のプログラミング8語
においては、計算がオブジェクトに対するメツセージの
送イ1により実行され、実行されるメソッドはオブジェ
クトの属するクラスによってプログラムの実行時に決定
される。従来、このようなプログラミング8 aのプロ
グラムリストは、メソッドがクラス別に大分類されて記
述されるようになっていた。
In general, in object-oriented programming such as 3malltalk, calculations are performed by sending messages to objects1, and the method to be executed is determined by the class to which the object belongs at the time of program execution. It is determined. Conventionally, in the program list of Programming 8a, methods are roughly classified and described by class.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、従来のプログラムリスト作成装置では、メソッ
ドの実行とは無関係にプログラムリストが作成されるの
で、プログラムが実際にどのように実行されるのかが、
作成されたプログラムリストからは読取りにくく、この
ためプログラムの検討やチエツク等に時間がかかるとい
う問題点があった。
However, with conventional program list creation devices, program lists are created regardless of method execution, so it is difficult to know how the program is actually executed.
There is a problem in that it is difficult to read the created program list, and therefore it takes time to study and check programs.

この発明は、メソッドの実行順に従ったプログラムリス
トを出力することができるプログラムリスト作成装置を
提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a program list creation device that can output a program list according to the execution order of methods.

[課題を解決するための手段] 上記課題を解決するため、この発明に係わるプログラム
リスト作成装置では、オブジェクトのクラスとメツセー
ジの組によって定まるメソッド及びメソッド間の呼び出
し関係を、クラス名とメツセージ名が出かれたノード及
びメソッド間の呼び出し関係を表わすリンクにそれぞれ
対応させたツリー構造のデータとして記録する呼び出し
関係作成手段と、上記ツリー構造を形成するために必要
な呼び出し関係を生成して画面上に表示させる呼び出し
関係抽出手段と、上記呼び出し関係作成手段のデータを
もとにプログラムリストを作成するプログラムリスト作
成手段とを具えている。
[Means for Solving the Problems] In order to solve the above problems, in the program list creation device according to the present invention, methods determined by a pair of an object class and a message, and the calling relationship between the methods, are determined by a class name and a message name. a calling relationship creation means for recording as tree-structured data corresponding to links representing calling relationships between exited nodes and methods; The apparatus includes a calling relationship extracting means for displaying, and a program list creating means for creating a program list based on the data of the calling relationship creating means.

〔作用〕 呼び出し関係作成手段にプログラムリストを作成したい
プログラムのメツセージ名とクラス名が入力されると、
Dfびυ1し関係作成手段は入ツノされたメツセージ名
とクラス名が円かれたノードを画面上に表示する。ユー
ザーはここでノードを選択する。次に、呼び出し関係抽
出手段に解析コマンドが入力されると、呼び出し関係抽
出手段は選択されたノードに対応するメソッドで使用さ
れている全てのメツセージを生成し、画面上に表示する
[Operation] When the message name and class name of the program for which you want to create a program list are input to the calling relationship creation means,
The relationship creation means displays on the screen a node with the entered message name and class name circled. The user selects a node here. Next, when an analysis command is input to the calling relationship extraction means, the calling relationship extraction means generates all messages used in the method corresponding to the selected node and displays them on the screen.

ユーザーはここで解析したいメツセージを選択する。メ
ツセージが選択されると、呼び出し関係抽出手段は選択
されたメツセージを受ける可能性のある全てのクラスを
生成し、画面上に表示する。
Here the user selects the message they wish to analyze. When a message is selected, the calling relationship extraction means generates all classes that may receive the selected message and displays them on the screen.

ユーザーは選択されたメツセージが送られているオブジ
ェクトのクラスを推定により選択する。クラスが選択さ
れると、呼び出し関係抽出手段は選択されたメツセージ
名とクラス名のデータを呼び出し関係作成手段に送出す
る。呼び出し関係作成手段は、ユーザーから選択された
メツセージ名とクラス名の出かれたノードを新たに作成
すると共に、新たに作成したノードと呼び出し関係を示
すリンクを、これまで表示されていたノードとリンクの
実行の順序が保たれる位置に新たに加えて全体を再配置
し、画面上に表示する。ユーザーは表示画面から解析し
たいソースコードに対応16ノドを選択する。
The user speculatively selects the class of object to which the selected message is being sent. When a class is selected, the calling relationship extracting means sends data of the selected message name and class name to the calling relationship creating means. The calling relationship creation means creates a new node with the message name and class name selected by the user, and also links the newly created node and a link indicating the calling relationship with the previously displayed node. Add a new one to a position where the order of execution is maintained, rearrange the whole thing, and display it on the screen. The user selects 16 nodes corresponding to the source code they wish to analyze from the display screen.

一方、呼び出し関係抽出手段にプログラムリスト作成コ
マンドが入力されると、呼び出し関係抽出手段は呼び出
し関係作成手段にこれを通知する。
On the other hand, when a program list creation command is input to the calling relationship extraction means, the calling relationship extraction means notifies the calling relationship creation means.

呼び出し関係作成手段は、現在保有しているメソッド及
びメソッド間の呼び出し関係のデータをプログラムリス
ト作成手段に送出する。プログラムリスト作成手段は、
ノード及びリンクの形で示されているツリーのデータを
基にしてノードをいきがけ順に辿り、各ノードに対応す
るソースコードをプログラム用メモリ→から取り出し、
印字装置に出力する。印字装置では、メソッドの実行順
に出かれたプログラムリストを出力する。
The calling relationship creating means sends data on currently held methods and calling relationships between methods to the program list creating means. The program list creation method is
Based on the tree data shown in the form of nodes and links, the nodes are traced in order of starting point, and the source code corresponding to each node is retrieved from the program memory →.
Output to printing device. The printing device outputs a program list in the order in which the methods are executed.

(実施例) 以下、この発明に係わるプログラムリスト作成装置の一
実施例を説明する。
(Embodiment) An embodiment of the program list creation device according to the present invention will be described below.

第2図は、この発明のプログラムリスト作成装置の概略
構成を示すブロック図である。図において、11はオブ
ジェクトのクラスとメツセージの組によって定まるメソ
ッド及びメソッド間の呼び出し関係を、ノード及びリン
クにそれぞれ対応させたツリー構造のデータとして記録
する呼び出し関係作成手段、12は上記ツリーM4造を
形成するために必要な呼び出し関係を生成する呼び出し
関係抽出手段、13は上記呼び出し関係作成手段のデー
タをもとにプログラムリストを作成するプログラムリス
ト作成手段である。上記呼び出し関係作成手段11、呼
び出し関係抽出手段12及びプログラムリスト作成手段
13は制御部1を構成し、この制御部1はマイクロプロ
セッサを用いて構成することができる。また、2はキー
ボードとマウスからなる入力手段、3は実行されるプロ
グラムやあらかじめ登録されているメソッドが記憶され
ているプログラム用メモリ、4はプログラムリストをプ
リントする印字Huff、5はプログラムリストをデイ
スプレィ画面上に表示する両僅出力装置である。
FIG. 2 is a block diagram showing a schematic configuration of the program list creation device of the present invention. In the figure, reference numeral 11 denotes a calling relationship creation means for recording methods and calling relationships between methods determined by a set of an object class and a message as data in a tree structure that corresponds to nodes and links, respectively, and 12 represents the above-mentioned tree M4 structure. A calling relationship extracting means 13 generates the calling relationships necessary for forming the calling relationship, and a program list creating means 13 creates a program list based on the data of the calling relationship creating means. The calling relationship creating means 11, the calling relationship extracting means 12, and the program list creating means 13 constitute a control section 1, and this control section 1 can be constructed using a microprocessor. In addition, 2 is an input means consisting of a keyboard and a mouse, 3 is a program memory in which programs to be executed and pre-registered methods are stored, 4 is a printing Huff for printing a program list, and 5 is a display for displaying a program list. Both are small output devices that display on the screen.

次に、上述したプログラムリスト作成装置によりプログ
ラムリストを作成する場合の制御部1の処理手順を第2
図を参照しながら、第1図のフロチャートに基づいて説
明する。
Next, the processing procedure of the control unit 1 when creating a program list using the program list creation device described above will be described in a second manner.
The process will be explained based on the flowchart of FIG. 1 with reference to the drawings.

まず、呼び出し関係作成手段11は入力手段2からプロ
グラムリストを作成したいプログラムのメツセージ名と
クラス名が入力されると(ステップ101)、入力され
たメツセージ名とクラス名がかかれたノードを画像出力
装置5に表示さゼる(ステップ102)。次に、ユーザ
ーからノードが選択され(ステップ103)、続いて呼
び出し関係抽出手段12にコマンドが入力されると(ス
テップ104)、呼び出し関係抽出手段12は入力され
たコマンドが解析コマンドかどうかを判断する(ステッ
プ105)。
First, when the message name and class name of the program for which a program list is to be created are input from the input means 2 (step 101), the call relationship creation means 11 outputs the node with the input message name and class name to the image output device. 5 (step 102). Next, when a node is selected by the user (step 103) and a command is input to the calling relationship extraction means 12 (step 104), the calling relationship extraction means 12 determines whether the input command is an analysis command. (Step 105).

ここで、入力されたコマンドが解析コマンドであると判
断したときは、呼び出し関係抽出手段12はステップ1
03で選択されたノードに対応するメソッドで使用され
ている全てのメツセージを生成し、画像出力装置5に表
示させる(ステップ106)。次に、呼び出し関係抽出
手段12は、表示されたメツセージの一つが選択される
と(ステップ107)、選択されたメツセージを受ける
可能性のある全てのクラスを生成し、画像出力装置5に
表示させる(ステップ108)。呼び出し関係抽出手段
12は、選択されたメツセージが送られているオブジェ
クトのクラスが推定により選択されると(ステップ10
9)、ステップ107とステップ109で決定されたメ
ツセージ名とクラス名を呼び出し関係作成手段11に送
出する(ステップ110)。呼び出し関係作成手段11
は、メツセージ名とクラス名の書かれたノードを新たに
作成する(ステップ111)。そして、新たに作成した
ノードと呼び出し関係を示すリンクを、これまで表示さ
れていたノードとリンクの実行の順序が保たれる位置に
新たに加えて全体を再配置し、(ステップ112)画像
出力波v15に表示させる(ステップ113)。
Here, when it is determined that the input command is an analysis command, the calling relationship extraction means 12 performs step 1.
All messages used in the method corresponding to the node selected in step 03 are generated and displayed on the image output device 5 (step 106). Next, when one of the displayed messages is selected (step 107), the calling relationship extraction means 12 generates all classes that may receive the selected message and displays them on the image output device 5. (Step 108). When the class of the object to which the selected message is sent is selected by estimation (step 10), the calling relationship extraction means 12
9) The message name and class name determined in steps 107 and 109 are sent to the calling relationship creation means 11 (step 110). Calling relationship creation means 11
creates a new node in which the message name and class name are written (step 111). Then, the newly created node and the link indicating the calling relationship are newly added to the position where the order of execution of the previously displayed nodes and links is maintained, and the whole is rearranged (step 112) and the image is output. It is displayed on wave v15 (step 113).

一方、ステップ105において入力されたコマンドが解
析コマンドでないと判断したときは、呼び出し関係抽出
手段12はコマンドがリスト作成コマンドかどうかを判
断する(ステップ114)。
On the other hand, when it is determined in step 105 that the input command is not an analysis command, the calling relationship extraction means 12 determines whether the command is a list creation command (step 114).

ここで、リスト作成コマンドでないと判断したとぎは処
理を終了し、リスト作成コマンドであると判断したとき
は、呼び出し関係作成手段11にリス1へ作成コマンド
であることを通知する(ステップ115)。呼び出し関
係作成手段11は現在保有しているメソッド及びメソッ
ド間の呼び出し関係のデータをプログラムリスト作成手
段13に送出する(ステップ116)。プログラムリス
ト作成手段13では、ノード及びリンクの形で示されて
いるツリーのデータを基にしてノードをいきかけ順に辿
り、各ノードに対応するソースコードをプログラム用メ
モリ3から取り出し、印字装置4に出力する(ステップ
117)。印字装置4では、メソッドの実行順に書かれ
たプログラムリストを出力する(ステップ118)。
Here, if it is determined that it is not a list creation command, the process is terminated, and if it is determined that it is a list creation command, the calling relationship creation means 11 is notified to the list 1 that it is a creation command (step 115). The calling relationship creating means 11 sends data on currently held methods and calling relationships between methods to the program list creating means 13 (step 116). The program list creation means 13 traces the nodes in the starting order based on the tree data shown in the form of nodes and links, takes out the source code corresponding to each node from the program memory 3, and prints it on the printing device 4. Output (step 117). The printing device 4 outputs a program list written in the order of method execution (step 118).

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この弁明に係わるプログラムリス
ト作成装置では、メソッド及びメソッド間の呼び出し関
係のデータをノード及びリンクに対応したツリーのデー
タとして記憶すると共に、前記ツリーを形成するために
必要な呼び出し関係を生成し、前記呼び出し関係のデー
タに73づいてノードをいぎがけ順に辿り、各ノードに
対応するソースコードを出力するようにしたため、メソ
ッドの実行順に従ったプログラムリストを作成すること
ができ、プログラムの検討やヂエック等を簡単に行なう
ことができる。
As explained above, the program list creation device according to this defense stores data on methods and call relationships between methods as tree data corresponding to nodes and links, and also stores data on calls necessary to form the tree. Since the relationships are generated, the nodes are traced in the order of invocation based on the calling relationship data, and the source code corresponding to each node is output, it is possible to create a program list according to the method execution order. , you can easily examine and check programs.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は制御部の処理手順を示す70−チヤト、第2図
はこの発明のプログラムリスト作成装置の戦略構成を示
すブロック図である。 1・・・制御部、2・・・入力手段、 3・・・プログラム用メモリ、4・・・印字装置、5・
・・画像出力装置、 11・・・呼び出し関係作成手段、 12・・・呼び出し関係抽出手段、 13・・・プログラムリスト作成手段。
FIG. 1 is a 70-chat showing the processing procedure of the control section, and FIG. 2 is a block diagram showing the strategic configuration of the program list creation device of the present invention. DESCRIPTION OF SYMBOLS 1... Control unit, 2... Input means, 3... Program memory, 4... Printing device, 5...
. . . Image output device, 11 . . . Calling relation creation means, 12 . . . Calling relation extraction means, 13 . . . Program list creation means.

Claims (1)

【特許請求の範囲】 オブジェクト指向型のプログラミング言語に対応したプ
ログラムリスト作成装置において、オブジェクトのクラ
スとメッセージの組によって定まるメソッド及びメソッ
ド間の呼び出し関係を、ノード及びリンクにそれぞれ対
応させたツリーのデータとして記録する呼び出し関係作
成手段と、 上記ツリーを形成するために必要な呼び出し関係を生成
する呼び出し関係抽出手段と、 上記呼び出し関係作成手段のデータをもとにプログラム
リストを作成するプログラムリスト作成手段と、 を具えたことを特徴とするプログラムリスト作成装置。
[Claims] In a program list creation device compatible with an object-oriented programming language, tree data in which methods and calling relationships between methods determined by a combination of an object class and a message are associated with nodes and links, respectively. a calling relationship generating means for recording the calling relationships necessary to form the tree; a calling relationship extracting means for generating the calling relationships necessary to form the tree; and a program list creating means for creating a program list based on the data of the calling relationship creating means. A program list creation device characterized by comprising the following.
JP33541688A 1988-12-28 1988-12-28 Program list preparing device Pending JPH02178733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33541688A JPH02178733A (en) 1988-12-28 1988-12-28 Program list preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33541688A JPH02178733A (en) 1988-12-28 1988-12-28 Program list preparing device

Publications (1)

Publication Number Publication Date
JPH02178733A true JPH02178733A (en) 1990-07-11

Family

ID=18288307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33541688A Pending JPH02178733A (en) 1988-12-28 1988-12-28 Program list preparing device

Country Status (1)

Country Link
JP (1) JPH02178733A (en)

Similar Documents

Publication Publication Date Title
JPH031708B2 (en)
WO2023082654A1 (en) Method, apparatus and device for generating service interaction diagram, and storage medium
CN114168853A (en) Data visualization display method, device, medium and electronic equipment
JPH07168709A (en) Method and device for simulating program generator utilization specification
JPH02178733A (en) Program list preparing device
CN112732243A (en) Data processing method and device for generating functional component
CN111124386A (en) Unity-based animation event processing method, device, equipment and storage medium
JPS61210415A (en) Crt key input operating device
JP2973906B2 (en) Character user interface device
JPH0635890A (en) Information processor
JPH1049355A (en) Development support method for work application program performing screen operation
JPH11288367A (en) Automatic program generation system and method
JP2004213148A (en) Plant monitor control system
JPH02178737A (en) Program analysis device
CN117332170A (en) Webpage display method, device, equipment, storage medium and program product
JP2000056956A (en) Device and method for converting request specification model into other system model
JPH04315255A (en) Work bench/tool box interface for data processing system
JP2003296146A (en) Message dependency display device, message dependency display method, program and storage medium
JPH0497448A (en) Interactive type simplex testing system
JPH0877007A (en) Real-time system exceptional process determining device
JPH04308919A (en) Operation specification display device for real time system
JPH07182149A (en) Message display system
JPH07182150A (en) Interface specification producing device
JPH01161530A (en) Additional processing system for defining body auxiliary information
JPS63138466A (en) Control method for form data on cad system