JPH08314703A - Visual programming system - Google Patents

Visual programming system

Info

Publication number
JPH08314703A
JPH08314703A JP12121195A JP12121195A JPH08314703A JP H08314703 A JPH08314703 A JP H08314703A JP 12121195 A JP12121195 A JP 12121195A JP 12121195 A JP12121195 A JP 12121195A JP H08314703 A JPH08314703 A JP H08314703A
Authority
JP
Japan
Prior art keywords
program
graphic
execution
correspondence
parts
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
JP12121195A
Other languages
Japanese (ja)
Inventor
Yasuyuki Maeda
康行 前田
Yuichi Koike
雄一 小池
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP12121195A priority Critical patent/JPH08314703A/en
Publication of JPH08314703A publication Critical patent/JPH08314703A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE: To dynamically generate the substance of a program parts during the execution of a program by changing the corresponding relation between a graphic symbol and the program parts by a program parts corresponding relation rewrite means when a change processing procedure has been defined for the program parts. CONSTITUTION: The method execution order, the relation among data, etc., are interactively defined through the operations of a method execution order designation means 2 and a method argument data reference procedure designation means 3 of a graphic program editing device 1. A method execution means 11 reads the definition information on a program parts out of a program parts store device 5 and carries out a prescribed method. This execution result is outputted to an execution graphic decision means 9. When the change of the program parts corresponding relation is requested, the corresponding relation between a box and the program parts is rewritten by a program parts corresponding relation rewrite means 12. Therefore, the substance of the program parts can be generated during the execution of a program.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、視覚プログラミングシ
ステムに関し、特にプログラム部品を図形シンボルで表
し、図形的操作によってプログラム部品の接続関係を定
義することにより情報処理装置のプログラムを作成する
視覚プログラミングシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a visual programming system, and more particularly to a visual programming system for creating a program for an information processing device by expressing program parts by graphic symbols and defining connection relationships of the program parts by graphical operations. It is about.

【0002】[0002]

【従来の技術】プログラミング言語の知識を持たない利
用者が、各種情報処理装置のプログラムを作成するため
の方法として、従来、プログラム部品を図形シンボルで
表し、図形的操作によってプログラム部品の接続関係を
定義することによりプログラムを作成する視覚プログラ
ミング方法が提案されている(例えば、Nan C.Shu,"Vis
ual Programming",Van Nostrand Rheinhold,1988な
ど)。従来の視覚プログラミング方法では、部品化され
たプログラムを図形シンボルとして表示し、図形的操作
または対話的データ操作によってプログラム部品の実行
順序およびデータ間の関係を定義する手段が提供されて
おり、こうして定義されたプログラムは図形プログラム
として保存される。
2. Description of the Related Art As a method for a user who has no knowledge of programming languages to create programs for various information processing apparatuses, conventionally, program parts are represented by graphic symbols, and the connection relationship of the program parts is graphically operated. A visual programming method for creating a program by defining is proposed (for example, Nan C. Shu, "Vis
ual Programming ", Van Nostrand Rheinhold, 1988, etc.) In the conventional visual programming method, the program segmented is displayed as a graphic symbol, and the execution order of program parts and the relationship between data are graphically or interactively manipulated. Is provided, and the program thus defined is stored as a graphic program.

【0003】一般に、これらプログラム部品は、いくつ
かのデータといくつかのメソッドと呼ばれる手続から構
成されるオブジェクトによって表現される。図形プログ
ラムの実行時には、プログラムを構成する図形シンボル
に対応するプログラム部品の実体が生成され、プログラ
ムで指定された順序にしたがってプログラム部品のメソ
ッドが、順次、実行されるものとなる。
Generally, these program parts are represented by an object composed of some data and some procedures called methods. When the graphic program is executed, the entity of the program component corresponding to the graphic symbol forming the program is generated, and the method of the program component is sequentially executed in the order designated by the program.

【0004】[0004]

【発明が解決しようとする課題】したがって、このよう
な従来の視覚プログラミング方法では、図形プログラム
を構成する図形シンボルと実行時に生成されるプログラ
ミングの実体が1対1に対応している必要があり、その
対応関係は固定的であるため、プログラムの実行途中に
動的にプログラム部品の実体を生成したり、不特定個の
プログラム部品を対象とする処理を含むようなプログラ
ムを記述することは困難であった。本発明はこのような
課題を解決するためのものであり、プログラムの実行途
中に動的にプログラム部品の実体を生成したり、不特定
個のプログラム部品を対象とする処理を含むようなプロ
グラムを記述することができる視覚プログラミングシス
テムを提供することを目的としている。
Therefore, in such a conventional visual programming method, it is necessary that the graphic symbols forming the graphic program and the programming entity generated at the time of execution correspond to each other on a one-to-one basis. Since the correspondence is fixed, it is difficult to dynamically generate the entity of the program part during the execution of the program, or to write a program that includes processing that targets an unspecified number of program parts. there were. The present invention is intended to solve such a problem, and to provide a program that dynamically generates the entity of a program part during the execution of the program or includes a process that targets an unspecified number of program parts. It aims to provide a visual programming system that can be described.

【0005】[0005]

【課題を解決するための手段】このような目的を達成す
るために、本発明による視覚プログラミングシステム
は、任意のプログラム部品が対応付けられた複数の第1
の図形シンボルを図形的に操作して各プログラム部品の
接続関係を定義することにより図形プログラムを編集す
る図形プログラム編集装置と、図形プログラムを格納す
る図形プログラム格納装置と、プログラム部品の定義情
報を格納するプログラム部品格納装置と、プログラム部
品の定義情報に基づいて図形プログラムを実行する図形
プログラム実行装置とを備え、図形プログラム編集装置
は、各プログラム部品のメソッドの実行順序を指定する
メソッド実行順序指定手段と、メソッドの実行に必要な
引数の値を決定する処理手続を指定するメソッド引数デ
ータ参照手続指定手段と、第1の図形シンボルに対応す
るプログラム部品の変更処理手続を指定するプログラム
部品書換手続指定手段とを有し、図形プログラム実行装
置は、図形プログラム内の第1の図形シンボルとプログ
ラム部品との対応関係を格納する図形プログラム部品対
応関係格納手段と、図形プログラムを参照し次に実行す
べき第1の図形シンボルを決定する実行図形決定手段
と、決定された第1の図形シンボルに対応するプログラ
ム部品として対応関係に基づいて選択されたプログラム
部品のメソッドを実行し実行結果をプログラム部品格納
装置に格納するメソッド実行手段と、第1の図形シンボ
ルとプログラム部品との対応関係を変更する変更処理手
続を指定するプログラム部品対応関係書換手段とを有す
るものである。また、プログラム部品対応関係書換手続
指定手段は、第1の図形シンボルごとに設けられた第2
の図形シンボルであって、第1の図形シンボルに対応す
るプログラム部品の実体を示す第2の図形シンボルを図
形的に操作することにより、変更処理手続を指定するよ
うにしたものである。
In order to achieve such an object, the visual programming system according to the present invention includes a plurality of first program parts to which arbitrary program parts are associated.
The graphic program editing device for editing the graphic program by graphically operating the graphic symbols of the above to define the connection relation of each program part, the graphic program storage device for storing the graphic program, and the definition information of the program parts are stored. And a graphic program execution device for executing a graphic program based on the definition information of the program parts. The graphic program editing device is a method execution order designating means for designating the execution order of the method of each program part. And a method argument data reference procedure designating means for designating a processing procedure for deciding an argument value required for executing the method, and a program part rewriting procedure designating a program part change processing procedure corresponding to the first graphic symbol. And a graphics program execution device, A graphic program part correspondence relationship storing means for storing a correspondence relationship between a first graphic symbol in the program and a program part, and an execution graphic deciding means for referring to the graphic program and deciding a first graphic symbol to be executed next. A method for executing a method of a program part selected based on the correspondence as a program part corresponding to the determined first graphic symbol, and storing the execution result in the program part storage device; and a first graphic symbol. And a program part correspondence relationship rewriting means for designating a change processing procedure for changing the correspondence relationship between the program parts and the program parts. Further, the program part correspondence relationship rewriting procedure designating means is provided for each of the first graphic symbols.
The graphic symbol of the second graphic symbol corresponding to the first graphic symbol, which indicates the substance of the program part, is graphically operated to specify the change processing procedure.

【0006】[0006]

【作用】したがって、図形プログラム編集装置のメソッ
ド実行順序指定手段、メソッド引数データ参照手続指定
手段、およびプログラム部品書換手続指定手段により、
各プログラム部品のメソッドの実行順序、メソッドの実
行に必要な引数の値、および第1の図形シンボルに対応
するプログラム部品の変更処理手続がそれぞれ定義さ
れ、図形プログラム実行装置の実行図形決定手段により
決定された第1の図形シンボルに対応するプログラム部
品が、図形プログラム部品対応関係格納手段に格納され
ている対応関係に基づいて選択され、そのメソッドがメ
ソッド実行手段により実行される。また、プログラム部
品対応関係書換手段により第1の図形シンボルとプログ
ラム部品との対応関係が変更される。
Therefore, by the method execution order designating means, the method argument data reference procedure designating means, and the program part rewriting procedure designating means of the graphic program editing device,
The execution order of the method of each program part, the value of the argument necessary for executing the method, and the change processing procedure of the program part corresponding to the first graphic symbol are respectively defined, and are determined by the execution graphic determination means of the graphic program execution device. The program component corresponding to the selected first graphic symbol is selected on the basis of the correspondence stored in the graphic program component correspondence storage means, and the method is executed by the method executing means. Further, the correspondence relation between the first graphic symbol and the program component is changed by the program component correspondence relation rewriting means.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例である視覚プログラミング
システムの機能ブロック図であり、同図において、1は
図形シンボルを表示する画面表示部やマウスなどの図形
操作入力部からなるユーザインターフェース(図示せ
ず)を有し、複数のプログラム部品を表す図形シンボル
を操作して各プログラム部品間の関係を定義することに
より図形プログラムを編集する図形プログラム編集装
置、5は予め用意されている各プログラム部品の定義情
報を格納するプログラム部品格納装置、6は図形プログ
ラムを格納する図形プログラム格納装置、7はプログラ
ム部品の定義情報に基づいて図形プログラムを実行する
図形プログラム実行装置である。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a functional block diagram of a visual programming system which is an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a user interface (a screen display unit for displaying graphic symbols and a graphic operation input unit such as a mouse) (not shown). And a graphic program editing device for editing a graphic program by operating graphic symbols representing a plurality of program parts to define the relationship between the program parts. A program component storage device for storing definition information, a graphic program storage device 6 for storing a graphic program, and a graphic program execution device 7 for executing a graphic program based on the definition information of the program component.

【0008】図形プログラム編集装置1において、2は
プログラム部品のメソッドの実行順序を指定するメソッ
ド実行順序指定手段、3はプログラム部品のメソッドの
実行に必要な引数の値を決定する処理手続を指定するメ
ソッド引数データ参照手続指定手段、4は図形に対応す
るプログラム部品の変更処理手続を指定するプログラム
部品書換手続指定手段であり、これら手段は図形シンボ
ルを図形的に操作することにより、それぞれの手続を指
定するものとなっている。
In the graphic program editing apparatus 1, 2 is a method execution order designating means for designating the execution order of the method of the program component, and 3 is a processing procedure for determining the value of the argument required for the execution of the method of the program component. The method argument data reference procedure designating means 4 is a program part rewriting procedure designating means for designating a change processing procedure of a program part corresponding to a figure. It is designated.

【0009】また、図形プログラム実行装置7におい
て、8は図形シンボルとプログラム部品との対応関係を
格納する図形プログラム部品対応関係格納手段、9は図
形プログラムを参照し次に実行すべき図形シンボルを決
定する実行図形決定手段、10は決定された図形シンボ
ルに対応するプログラム部品を決定する実行プログラム
部品決定手段、11は決定されたプログラム部品のメソ
ッドを実行し、実行結果をプログラム部品格納装置5に
格納するメソッド実行手段、12は図形シンボルとプロ
グラム部品との対応関係を変更するプログラム部品対応
関係書換手段である。
Further, in the graphic program execution device 7, 8 is a graphic program part correspondence storing means for storing the correspondence between the graphic symbols and the program parts, and 9 is a reference to the graphic program to decide the graphic symbol to be executed next. Execution figure determining means for executing, 10 is an execution program component determining means for determining a program component corresponding to the determined graphic symbol, 11 executes a method of the determined program component, and stores the execution result in the program component storage device 5. Reference numeral 12 denotes a program component correspondence rewriting means for changing the correspondence between the graphic symbols and the program components.

【0010】次に、図2〜図5を参照して、本発明の動
作として図形プログラムを編集する場合の動作について
説明する。まず利用者は、図形プログラム編集装置1の
メソッド実行順序指定手段2、メソッド引数データ参照
手続指定手段3、およびプログラム部品対応関係書換手
続指定手段4を必要に応じて操作することにより、メソ
ッドの実行順序、データ間の関係、および図形シンボル
に対するプログラム部品の変更処理を、対話的に定義す
る。
Next, referring to FIGS. 2 to 5, the operation of the present invention for editing a graphic program will be described. First, the user executes the method by operating the method execution order designating unit 2, the method argument data reference procedure designating unit 3, and the program component correspondence rewriting procedure designating unit 4 of the graphic program editing apparatus 1 as necessary. Interactively define the sequence, the relationship between data, and the process of changing program parts for graphic symbols.

【0011】図2はメソッド実行順序指定手段2の動作
を示す説明図であり、(a)は編集に要する各種項目が
図形シンボルとして表示されている画面出力例、(b)
は画面出力例に対応する接続情報を示している。図2に
おいて、100は部品種別「クラスC1」に属する「メ
ソッドM1」というメソッドを有するプログラム部品を
示すボックス(第1の図形シンボル)、101はボック
ス100に対応して設けられたセルフ(self:第2の図
形シンボル)、102,103はセルフ101の入力お
よび出力ポート、111,112は「メソッドM1」の
入力および出力ポート、121,122は「メソッドM
1」を実行するために必要な引数(arg )、131,1
32は各引数121,122の入力ポート、123は
「メソッドM1」の戻り値(return)、133は戻り値
123の出力ポートである。
FIG. 2 is an explanatory view showing the operation of the method execution order designating means 2, (a) is a screen output example in which various items required for editing are displayed as graphic symbols, (b).
Indicates connection information corresponding to the screen output example. In FIG. 2, 100 is a box (first graphic symbol) indicating a program component having a method called “method M1” belonging to the component type “class C1”, and 101 is a self (self :) provided corresponding to the box 100. Second graphic symbol), 102 and 103 are input and output ports of the self 101, 111 and 112 are input and output ports of "method M1", and 121 and 122 are "method M".
Argument required to execute "1", 131,1
32 is an input port of each argument 121 and 122, 123 is a return value (return) of the “method M1”, and 133 is an output port of the return value 123.

【0012】200は部品種別「クラスC2」に属する
「メソッドM2」というメソッドを有するプログラム部
品を示すボックス(第1の図形シンボル)、201はボ
ックス200に対応して設けられたセルフ(self:第2
の図形シンボル)、202,203はセルフ201の入
力および出力ポート、211,212は「メソッドM
2」の入力および出力ポート、221は「メソッドM
2」を実行するために必要な引数(arg )、231は引
数221の入力ポート、222は「メソッドM2」の戻
り値(return)、232は戻り値222の出力ポートで
ある。301は実行順序を示すコントロール線である。
Reference numeral 200 is a box (first graphic symbol) indicating a program component having a method called "method M2" belonging to the component type "class C2", and 201 is a self (self: first) symbol provided corresponding to the box 200. Two
(Figure symbol), 202 and 203 are input and output ports of the self 201, and 211 and 212 are “method M
2 ”input and output ports, 221“ Method M
Arguments (arg) necessary to execute "2" are 231 are input ports of the argument 221, 222 are return values (return) of "method M2", and 232 are output ports of the return value 222. Reference numeral 301 is a control line indicating the execution order.

【0013】各「メソッドM1」,「メソッドM2」の
入力ポート111,211は、それぞれのメソッドの実
行開始に対応しているとともに、出力ポート112,2
12は実行終了に対応しており、入力および出力ポート
間にコントロール線(図中、実線にて示す)が引かれる
ことによって、メソッドの実行順序が定義される。例え
ば、図2(a)に示すように、コントロール線301に
より、ボックス100の「メソッドM1」の出力ポート
112が、ボックス200の「メソッドM2」の入力ポ
ート211に接続された場合には、「メソッドM1」の
実行が終了した後、「メソッドM2」の実行を開始する
ように定義される。
The input ports 111 and 211 of each "method M1" and "method M2" correspond to the start of execution of the respective method and output ports 112 and 2
12 corresponds to the end of execution, and a control line (indicated by a solid line in the figure) is drawn between the input and output ports to define the execution order of the methods. For example, as shown in FIG. 2A, when the control line 301 connects the output port 112 of the “method M1” of the box 100 to the input port 211 of the “method M2” of the box 200, After the execution of the "method M1" is completed, the execution of the "method M2" is defined.

【0014】このようにして、メソッド実行順序指定手
段2により、メソッド実行順序を指定する図形的操作が
行われ、図2(b)に示すような接続情報として認識さ
れる。ここでは、コントロール線301に対応する接続
関係として、接続元にボックス100の「メソッドM
1」が設定されるとともに、接続先にボックス200の
「メソッドM2」が設定され、図形プログラムの一部と
して図形プログラム格納装置6に格納される。
In this way, the method execution order designating means 2 carries out a graphic operation for designating the method execution order, and is recognized as connection information as shown in FIG. 2 (b). Here, as a connection relationship corresponding to the control line 301, the connection source is “method M” of the box 100.
1 ”is set, and the“ method M2 ”of the box 200 is set as the connection destination and stored in the graphic program storage device 6 as a part of the graphic program.

【0015】図3はメソッド引数データ参照指定手段3
の動作を示す説明図であり、(a)は画面出力例、
(b)は接続情報を示している。図3において、前述の
図2と同じ部分には同一符号を付してあり、302はデ
ータの参照(引き渡し)を示すデータ線である。出力ポ
ート133は「メソッドM1」の実行結果である戻り値
123の参照に対応しているとともに、入力ポート23
1は「メソッドM2」の実行に必要な引数221の入力
に対応しており、戻り値の出力ポートと引数の入力ポー
トがデータ線(図中、破線にて示す)により接続される
ことによって、データ参照手続が定義される。
FIG. 3 is a method argument data reference designating means 3
FIG. 6A is an explanatory diagram showing the operation of FIG.
(B) shows the connection information. In FIG. 3, the same portions as those in FIG. 2 described above are denoted by the same reference numerals, and 302 is a data line indicating data reference (delivery). The output port 133 corresponds to the reference of the return value 123 which is the execution result of the “method M1”, and the input port 23
1 corresponds to the input of the argument 221 necessary for executing the “method M2”, and the output port of the return value and the input port of the argument are connected by the data line (indicated by the broken line in the figure), Data reference procedures are defined.

【0016】例えば、図3(a)に示すように、データ
線302により、ボックス100の「メソッドM1」の
戻り値123の出力ポート133が、ボックス200の
「メソッドM2」の引数221の入力ポート231に接
続された場合には、「メソッドM1」の戻り値123が
「メソッドM2」の引数221として参照されるものと
なる。このようにして、メソッド引数データ参照手続指
定手段3により、データ参照手続を指定する図形的操作
が行われ、図3(b)に示すような接続情報として管理
される。
For example, as shown in FIG. 3A, the output port 133 of the return value 123 of the “method M1” of the box 100 and the input port of the argument 221 of the “method M2” of the box 200 are connected by the data line 302. In the case of being connected to 231, the return value 123 of the “method M1” is referred to as the argument 221 of the “method M2”. In this way, the method argument data reference procedure designating means 3 performs a graphic operation for designating the data reference procedure and manages it as connection information as shown in FIG.

【0017】ここでは、データ線302に対応する接続
関係として、接続元にボックス100の「メソッドM
1」の戻り値123が設定されるとともに、接続先にボ
ックス200の「メソッドM2」の引数221が設定さ
れ、図形プログラムの一部として図形プログラム格納装
置6に格納される。したがって、図形プログラムの実行
時には、コントロール線301により定義された実行順
序に基づいて、ボックス100の「メソッドM1」の実
行終了後、ボックス200の「メソッドM2」の実行が
開始されるとともに、「メソッドM2」実行に必要な引
数221として「メソッドM1」の戻り値123が用い
られるものとなる。
Here, as a connection relationship corresponding to the data line 302, the connection source is the “method M” of the box 100.
The return value 123 of “1” is set, and the argument 221 of “method M2” of the box 200 is set in the connection destination and stored in the graphic program storage device 6 as a part of the graphic program. Therefore, when the graphic program is executed, based on the execution order defined by the control line 301, after the execution of the “method M1” of the box 100 is completed, the execution of the “method M2” of the box 200 is started and the “method M2” is started. The return value 123 of the “method M1” is used as the argument 221 necessary for executing “M2”.

【0018】図4はプログラム部品対応関係書換手続指
定手段4の動作を示す説明図であり、(a)は画面出力
例、(b)は接続情報を示している。図4において、前
述の図2と同じ部分には同一符号を付してあり、303
はコントロール線、304はデータの参照を示すデータ
線である。各セルフ101,201は、それぞれのボッ
クス100,200とプログラム部品との対応関係を書
き換える手続処理を示しており、各種処理を実行するメ
ソッドと同レベルの図形シンボル(第2の図形シンボ
ル)である。
FIG. 4 is an explanatory view showing the operation of the program parts correspondence relation rewriting procedure designating means 4, where (a) shows an example of screen output and (b) shows connection information. In FIG. 4, the same parts as those in FIG.
Is a control line, and 304 is a data line indicating data reference. Each self 101, 201 indicates a procedural process for rewriting the correspondence between the respective boxes 100, 200 and program parts, and is a graphic symbol (second graphic symbol) at the same level as a method for executing various processes. .

【0019】また、セルフ101,201に設けられた
入力ポート102,202は、対応関係書換手続処理の
実行開始および実行に必要な引数設定に対応し、出力ポ
ート103,203は、対応関係書換手続処理の実行終
了および対応関係書換手続処理によりボックス100,
200に対応づけられたプログラム部品を示す識別情報
の参照に対応している。
Further, the input ports 102 and 202 provided in the self 101 and 201 correspond to the start of execution of the correspondence rewriting procedure processing and the argument setting necessary for execution, and the output ports 103 and 203 correspond to the correspondence rewriting procedure. When the execution of the processing is completed and the correspondence relation rewriting procedure processing is performed,
This corresponds to the reference of the identification information indicating the program component associated with 200.

【0020】例えば、図4(a)に示すように、データ
線304により、ボックス100の「メソッドM1」の
戻り値123の出力ポート133が、ボックス200の
セルフ201の入力ポート202に接続された場合に
は、ボックス100の「メソッドM1」の戻り値として
出力されたプログラム部品識別情報に基づいて、ボック
ス200で実行するプログラム部品の実体が変更される
ように定義される。また、この変更処理が実行される契
機は、コントロール線303により、ボックス100の
「メソッドM1」の出力ポート112が、ボックス20
0のセルフ201の入力ポート202に接続されている
ことから、「メソッドM1」の実行終了後と定義され
る。
For example, as shown in FIG. 4A, the output port 133 of the return value 123 of the “method M1” of the box 100 is connected to the input port 202 of the self 201 of the box 200 by the data line 304. In this case, the substance of the program component executed in the box 200 is defined to be changed based on the program component identification information output as the return value of the “method M1” of the box 100. Further, the control line 303 causes the output port 112 of the “method M1” of the box 100 to cause the change process to be executed.
Since it is connected to the input port 202 of the self 201 of 0, it is defined as after completion of execution of the “method M1”.

【0021】このようにして、プログラム部品対応関係
書換手続指定手段4により、プログラム部品の対応関係
を書き換える手続を指定する図形的操作が行われ、図4
(b)に示すような接続情報として管理される。ここで
は、コントロール線303に対応する接続関係として、
接続元にボックス100の「メソッドM1」が設定さ
れ、接続先にボックス200のセルフ201が設定され
るとともに、データ線304に対応する接続関係とし
て、接続元にボックス100の「メソッドM1」の戻り
値123が設定され、接続先にボックス200のセルフ
201が設定されて、図形プログラムの一部として図形
プログラム格納装置6に格納される。
In this manner, the program part correspondence rewriting procedure designating means 4 performs a graphic operation for designating a procedure for rewriting the correspondence of the program parts, and FIG.
It is managed as connection information as shown in (b). Here, as the connection relationship corresponding to the control line 303,
The “method M1” of the box 100 is set to the connection source, the self 201 of the box 200 is set to the connection destination, and the “method M1” of the box 100 is returned to the connection source as the connection relationship corresponding to the data line 304. The value 123 is set, the self 201 of the box 200 is set as the connection destination, and the self is stored in the graphic program storage device 6 as a part of the graphic program.

【0022】したがって、図形プログラムの実行時に
は、ボックス100の「メソッドM1」の実行終了後、
ボックス200に対応するプログラム部品の実体が変更
設定される。また、そのプログラム部品は「メソッドM
1」の戻り値に基づいて、部品種別「クラスC2」に属
する複数のプログラム部品のうちから任意に選択される
ものとなり、これにより図形プログラムの実行途中に、
その実行結果に応じて不特定個のプログラム部品のうち
の任意の部品を選択実行するような図形プログラムを編
集することが可能となる。
Therefore, at the time of executing the graphic program, after the execution of the "method M1" in the box 100 is completed,
The substance of the program part corresponding to the box 200 is changed and set. In addition, the program part is "Method M
Based on the return value of "1", it is arbitrarily selected from among a plurality of program parts belonging to the part type "class C2".
It is possible to edit a graphic program that selects and executes an arbitrary part of an unspecified number of program parts according to the execution result.

【0023】図5はプログラム部品対応関係書換手続指
定手段4の他の動作を示す説明図であり、(a)は画面
出力例、(b)は接続情報を示している。図5におい
て、前述の図2,4と同じ部分には同一符号を付してあ
り、305はデータの参照を示すデータ線である。セル
フ101の出力ポート103は、ボックス100に対応
付けられているプログラム部品の参照に対応している。
FIG. 5 is an explanatory view showing another operation of the program parts correspondence relation rewriting procedure designating means 4, where (a) shows an example of screen output and (b) shows connection information. In FIG. 5, the same parts as those in FIGS. 2 and 4 described above are denoted by the same reference numerals, and 305 is a data line indicating data reference. The output port 103 of the self 101 corresponds to the reference of the program component associated with the box 100.

【0024】例えば、図5(a)に示すように、データ
線305により、ボックス100のセルフ101の出力
ポート103が、ボックス200のセルフ201の入力
ポート202に接続された場合には、ボックス100に
対応付けられているプログラム部品を示す識別情報に基
づいて、ボックス200で実行するプログラム部品の実
体が変更されるように定義される。また、この変更処理
が実行される契機は、前述の図4と同様に、コントロー
ル線303により、ボックス100の「メソッドM1」
の出力ポート112が、ボックス200のセルフ201
の入力ポート202に接続されていることから、「メソ
ッドM1」の実行終了直後と定義される。
For example, as shown in FIG. 5A, when the output port 103 of the self 101 of the box 100 is connected to the input port 202 of the self 201 of the box 200 by the data line 305, the box 100 is It is defined that the entity of the program component executed in the box 200 is changed based on the identification information indicating the program component associated with the. Further, the trigger for executing this change processing is the “method M1” of the box 100 by the control line 303, as in the case of FIG. 4 described above.
The output port 112 of the
Since it is connected to the input port 202 of “method M1”, it is defined immediately after the execution of “method M1”.

【0025】このようにして、プログラム部品対応関係
書換手続指定手段4によりプログラム部品の対応関係を
書き換える手続を指定する図形的操作が行われ、図5
(b)に示すような接続情報として管理される。ここで
は、コントロール線303に対応する接続関係として、
接続元にボックス100の「メソッドM1」が設定さ
れ、接続先にボックス200のセルフ201が設定され
るとともに、データ線305に対応する接続関係とし
て、接続元にボックス100のセルフ101が設定さ
れ、接続先にボックス200のセルフ201が設定され
て、図形プログラムの一部として図形プログラム格納装
置6に格納される。
In this way, the graphical operation for designating the procedure for rewriting the correspondence of the program parts is performed by the program parts correspondence rewriting procedure designating means 4, and FIG.
It is managed as connection information as shown in (b). Here, as the connection relationship corresponding to the control line 303,
The “method M1” of the box 100 is set as the connection source, the self 201 of the box 200 is set as the connection destination, and the self 101 of the box 100 is set as the connection relationship corresponding to the data line 305. The self 201 of the box 200 is set as the connection destination and stored in the graphic program storage device 6 as a part of the graphic program.

【0026】したがって、図形プログラムの実行時に
は、ボックス100の「メソッドM1」の実行終了後、
ボックス200に対応するプログラム部品の実体が変更
設定される。また、そのプログラム部品には、ボックス
100に対応付けられている部品種別「クラスC1」に
属するプログラム部品の実体が、部品種別「クラスC
2」に属するプログラム部品として変更設定されるもの
となり、これにより図形プログラムの実行途中に、その
実行結果に応じて動的にプログラム部品の実体を生成す
るような図形プログラムを編集することが可能となる。
Therefore, at the time of executing the graphic program, after the execution of the "method M1" in the box 100 is completed,
The substance of the program part corresponding to the box 200 is changed and set. Further, in the program component, the substance of the program component belonging to the component type “class C1” associated with the box 100 is the component type “class C”.
It will be changed and set as a program part belonging to "2", which makes it possible to edit a figure program that dynamically generates the entity of the program part according to the execution result during the execution of the figure program. Become.

【0027】さらに、各ボックス100,200に対応
してセルフ101,201、すなわちそれぞれのボック
ス100,200とプログラム部品との対応関係を書き
換える手続処理を示す図形シンボルを設け、これらセル
フ101,201に対する図形的操作により、対応関係
書換手続処理の実行開始・終了、およびプログラム部品
を示す識別情報の入力・参照を定義するようにしたの
で、特別な操作を必要とすることなく、メソッドに対す
る実行順序および引数決定時と同様の操作でプログラム
部品の変更処理手続を指定することが可能となる。
Further, graphic symbols indicating the procedure processing for rewriting the correspondence between the respective boxes 100, 200 and program parts are provided corresponding to the respective boxes 100, 200, and these self 101, 201 are provided. Since the start and end of execution of correspondence rewriting procedure processing and the input and reference of identification information indicating program parts are defined by graphical operations, it is possible to define the execution order and method for methods without requiring special operations. It is possible to specify the change processing procedure of the program component by the same operation as when determining the argument.

【0028】次に、図6を参照して、本発明の動作とし
て図形プログラムを実行する場合の動作について説明す
る。図6は、図形プログラム実行装置7の処理動作を示
すフローチャートである。まず、実行開始時に応じて、
図形プログラム格納装置6(図1参照)に格納されてい
る図形プログラムを読込み(ステップ51)、この図形
プログラムに基づいてボックスとプログラム部品との対
応関係を作成して図形プログラム対応関係格納手段8に
格納する(ステップ52)。
Next, referring to FIG. 6, the operation of the present invention for executing the graphic program will be described. FIG. 6 is a flowchart showing the processing operation of the graphic program execution device 7. First, depending on when the execution starts
The graphic program stored in the graphic program storage device 6 (see FIG. 1) is read (step 51), the correspondence between the boxes and the program parts is created based on the graphic program, and the graphic program correspondence storage unit 8 is created. Store (step 52).

【0029】この対応関係は、例えば図7に示すよう
に、各ボックスと、これに対応する部品種別および実際
のプログラム部品を示す対応部品実体から構成されてい
る。次に、実行図形決定手段9により、実行するボック
スが選択決定される(ステップ53)。ここでは、例え
ば利用者の操作や外部入力などに応じて発生したイベン
トや、図形プログラム内で定義されている実行順序に基
づいて所定のボックスが決定される。
As shown in FIG. 7, for example, this correspondence is made up of each box, a corresponding component entity indicating the component type corresponding to this box and the actual program component. Next, the execution figure determining means 9 selects and determines the box to be executed (step 53). Here, the predetermined box is determined based on, for example, an event that has occurred in response to a user operation or external input, or an execution order defined in the graphic program.

【0030】ここで、選択決定されたボックスがメソッ
ドか否か判断され(ステップ54)、メソッドである場
合には(ステップ54:YES)、実行プログラム部品
決定手段10により、そのボックスに対応するプログラ
ム部品が決定される(ステップ56)。この場合、図形
プログラム部品対応関係格納手段8に予め格納してある
ボックスとプログラム部品との対応関係に基づいてプロ
グラム部品が決定される。
Here, it is determined whether or not the selected and selected box is a method (step 54), and if it is a method (step 54: YES), the execution program component determining means 10 causes the program corresponding to the box. The parts are determined (step 56). In this case, the program parts are determined based on the correspondence between the boxes and the program parts stored in advance in the graphic program part correspondence storage unit 8.

【0031】これに応じて、メソッド実行手段11によ
り、そのプログラム部品の定義情報がプログラム部品格
納装置5から読出されて所定のメソッドが実行され、そ
の結果が実行図形決定手段9に出力される(ステップ5
7)。続いて、図形プログラムの終了が判断され(ステ
ップ58)、図形プログラムの終了でない場合には(ス
テップ58:NO)、前述のステップ53に戻って、次
に実行すべきボックスが決定されるものとなり、これら
一連の処理が図形プログラムの終了(ステップ58:Y
ES)まで繰り返される。
In response to this, the method executing means 11 reads the definition information of the program component from the program component storing device 5 to execute a predetermined method, and the result is output to the execution figure determining means 9 ( Step 5
7). Subsequently, the end of the graphic program is judged (step 58), and when it is not the end of the graphic program (step 58: NO), the process returns to the aforementioned step 53, and the box to be executed next is determined. Then, the series of processes ends the graphic program (step 58: Y).
It is repeated until ES).

【0032】また、前述のステップ54において、実行
図形決定手段9により決定されたボックスがメソッドで
はなくプログラム部品対応関係の変更手続を示す場合、
例えば前述の図4,5に示したようにコントロール線で
定義された接続関係において、接続先がボックスのセル
フを示す場合には(ステップ54:NO)、プログラム
部品対応関係書換手段12により、前述(図7参照)の
ボックスとプログラム部品(対応部品実体)との対応関
係が書き換えられる(ステップ55)。
If the box determined by the execution figure determining means 9 in the above step 54 indicates not the method but the procedure for changing the program component correspondence,
For example, in the connection relationship defined by the control lines as shown in FIGS. 4 and 5, when the connection destination indicates the self of the box (step 54: NO), the program component correspondence rewriting means 12 causes The correspondence between the box (see FIG. 7) and the program component (corresponding component entity) is rewritten (step 55).

【0033】この場合、そのセルフに入力されているデ
ータ線で定義された接続関係から、例えば直前に実行さ
れたメソッドの戻り値が示すプログラム部品の識別情報
や、直前に実行されたボックスに対応付けられていたプ
ログラム部品の識別情報などに基づいて新たなプログラ
ム部品が決定されて、対象のボックスに対応する対応部
品実体(図7参照)として書き換えらる。なお、新たに
対応づけられたプログラム部品内のメソッドは、後続の
実行順序におけるボックスの実行要求に応じて実行され
る。
In this case, from the connection relationship defined by the data line input to the self, for example, the identification information of the program component indicated by the return value of the method executed immediately before or the box executed immediately before is associated. A new program component is determined based on the attached program component identification information and the like and is rewritten as the corresponding component entity (see FIG. 7) corresponding to the target box. The method in the newly associated program component is executed in response to the box execution request in the subsequent execution order.

【0034】このようにして、図形プログラムにおいて
プログラム部品対応関係の変更が要求された場合には、
プログラム部品対応関係書換手段12によりボックスと
プログラム部品との対応関係を書き換えるようにしたの
で、図形プログラム実行途中に動的にプログラム部品の
実体を生成して実行することが可能となり、また不特定
個のプログラム部品のうちの任意のプログラム部品を選
択実行することが可能となる。なお、以上の説明におい
て、コントロール線またはデータ線を引くという図形的
操作により各プログラム部品のメソッドの実行順序、メ
ソッドの実行に必要な引数の値、およびボックスに対応
するプログラム部品の変更処理手続を定義するようにし
た場合について説明したが、各種図形シンボル間の接続
関係を定義する操作であればどのような図形的操作であ
っても良い。
In this way, when it is requested to change the program part correspondence in the graphic program,
Since the correspondence relation between the box and the program component is rewritten by the program component correspondence rewriting means 12, it becomes possible to dynamically generate and execute the substance of the program component during the execution of the graphic program, and the unspecified number It is possible to selectively execute any program component among the program components. In the above explanation, the method execution order of each program part, the argument values required to execute the method, and the program part change processing procedure corresponding to the box are described by the graphical operation of drawing a control line or a data line. Although the case where the definition is defined has been described, any graphic operation may be performed as long as it is an operation that defines the connection relationship between various graphic symbols.

【0035】[0035]

【発明の効果】以上説明したように、本発明は、図形プ
ログラム編集装置にプログラム部品書換手続指定手段を
設けて、第1の図形シンボルに対応するプログラム部品
の変更処理手続を定義し、図形プログラム実行装置にプ
ログラム部品対応関係書換手段を設けて、実行中の図形
プログラムにおいてプログラム部品の変更処理手続が定
義されている場合には、プログラム部品対応関係書換手
段により、第1の図形シンボルとプログラム部品との対
応関係を変更するようにしたので、プログラムの実行途
中に動的にプログラム部品の実体を生成したり、不特定
個のプログラム部品を対象とする処理を含むようなプロ
グラムを記述することが可能となる。
As described above, according to the present invention, the graphic program editing apparatus is provided with the program part rewriting procedure designating means, and the change processing procedure of the program part corresponding to the first graphic symbol is defined. When the execution device is provided with a program part correspondence rewriting means, and the program part change processing procedure is defined in the graphic program being executed, the program part correspondence rewriting means makes the first graphic symbol and the program part. Since the correspondence relation with is changed, it is possible to dynamically generate the actual entity of the program part during the execution of the program, or to write a program that includes processing that targets an unspecified number of program parts. It will be possible.

【0036】また、プログラム部品対応関係書換手続指
定手段として、第1の図形シンボルごとに設けられ、な
おかつ第1の図形シンボルに対応するプログラム部品の
実体を示す第2の図形シンボルを図形的に操作すること
により、プログラム部品の変更処理手続および関連する
処理手続を指定するようにしたので、特別な操作を必要
とすることなく、メソッドに対する実行順序および引数
決定時と同様の操作でプログラム部品の変更処理手続を
指定することが可能となる。
As a program part correspondence rewriting procedure designating means, a second graphic symbol provided for each first graphic symbol and showing the substance of the program part corresponding to the first graphic symbol is graphically operated. By doing so, the change processing procedure of program parts and related processing procedures are specified, so program parts can be changed with the same operation as when deciding the execution order and arguments of methods without requiring special operations. It is possible to specify the processing procedure.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の一実施例による視覚プログラミング
システムの機能ブロック図である。
FIG. 1 is a functional block diagram of a visual programming system according to an embodiment of the present invention.

【図2】 メソッド実行順序指定手段の動作を示す説明
図である。
FIG. 2 is an explanatory diagram showing an operation of a method execution order designating unit.

【図3】 メソッド引数データ参照手続指定手段の動作
を示す説明図である。
FIG. 3 is an explanatory diagram showing an operation of a method argument data reference procedure specifying unit.

【図4】 プログラム部品対応関係書換手続指定手段の
動作を示す説明図である。
FIG. 4 is an explanatory diagram showing an operation of a program part correspondence relationship rewriting procedure designating means.

【図5】 プログラム部品対応関係書換手続指定手段の
他の動作を示す説明図である。
FIG. 5 is an explanatory diagram showing another operation of the program part correspondence relationship rewriting procedure designating means.

【図6】 図形プログラム実行装置の動作を示すフロー
チャートである。
FIG. 6 is a flowchart showing the operation of the graphic program execution device.

【図7】 ボックスとプログラム部品との対応関係を示
す説明図である。
FIG. 7 is an explanatory diagram showing a correspondence relationship between boxes and program components.

【符号の説明】[Explanation of symbols]

1…図形プログラム編集装置、2…メソッド実行順序指
定手段、3…メソッド引数データ参照手続指定手段、4
…プログラム部品対応関係書換手続指定手段、5…プロ
グラム部品格納装置、6…図形プログラム格納装置、7
…図形プログラム実行装置、8…図形プログラム対応関
係格納手段、9…実行図形決定手段、10…実行プログ
ラム部品決定手段、11…メソッド実行手段、12…プ
ログラム部品対応関係書換手段、100,200…ボッ
クス(第1の図形シンボル)、101,201…セルフ
(第2の図形手段)、301,303…コントロール
線、302,304,305…データ線。
1 ... Graphic program editing device, 2 ... Method execution order designation means, 3 ... Method argument data reference procedure designation means, 4
... program component correspondence rewriting procedure designating means, 5 ... program component storage device, 6 ... graphic program storage device, 7
... graphic program execution device, 8 ... graphic program correspondence storage means, 9 ... execution graphic determination means, 10 ... execution program component determination means, 11 ... method execution means, 12 ... program component correspondence rewriting means, 100, 200 ... box (First graphic symbol), 101, 201 ... Self (second graphic means), 301, 303 ... Control line, 302, 304, 305 ... Data line.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プログラム部品を示す図形シンボルを図
形的に操作して各プログラム部品の接続関係を定義する
ことによりプログラムを作成する視覚プログラミングシ
ステムにおいて、 任意のプログラム部品が対応付けられた複数の第1の図
形シンボルを図形的に操作して各プログラム部品の接続
関係を定義することにより図形プログラムを編集する図
形プログラム編集装置と、 図形プログラムを格納する図形プログラム格納装置と、 プログラム部品の定義情報を格納するプログラム部品格
納装置と、 プログラム部品の定義情報に基づいて図形プログラムを
実行する図形プログラム実行装置とを備え、 図形プログラム編集装置は、 各プログラム部品のメソッドの実行順序を指定するメソ
ッド実行順序指定手段と、 メソッドの実行に必要な引数の値を決定する処理手続を
指定するメソッド引数データ参照手続指定手段と、 第1の図形シンボルに対応するプログラム部品の変更処
理手続を指定するプログラム部品書換手続指定手段とを
有し、 図形プログラム実行装置は、 図形プログラム内の第1の図形シンボルとプログラム部
品との対応関係を格納する図形プログラム部品対応関係
格納手段と、 図形プログラムを参照し次に実行すべき第1の図形シン
ボルを決定する実行図形決定手段と、 決定された第1の図形シンボルに対応するプログラム部
品として前記対応関係に基づいて選択されたプログラム
部品のメソッドを実行し実行結果をプログラム部品格納
装置に格納するメソッド実行手段と、 第1の図形シンボルとプログラム部品との対応関係を変
更する変更処理手続を指定するプログラム部品対応関係
書換手段とを有することを特徴とする視覚プログラミン
グシステム。
1. A visual programming system for creating a program by graphically operating a graphic symbol indicating a program part to define a connection relation of each program part, wherein a plurality of first program parts are associated with arbitrary program parts. The graphic program editing device for editing the graphic program by graphically operating the graphic symbol 1 to define the connection relation of each program component, the graphic program storage device for storing the graphic program, and the definition information of the program component It is equipped with a program parts storage device for storing and a graphics program execution device for executing a graphics program based on the definition information of the program parts. The graphics program editing device specifies a method execution order for specifying the execution order of the methods of each program part. Means and necessary to execute the method The method includes a method argument data reference procedure designating means for designating a processing procedure for determining the value of the number, and a program component rewriting procedure designating means for designating a modification processing procedure of the program component corresponding to the first graphic symbol. The execution device refers to the graphic program part correspondence storage means for storing the correspondence between the first graphic symbol in the graphic program and the program part, and determines the first graphic symbol to be executed next by referring to the graphic program. An execution figure determining means, and a method executing means for executing a method of a program part selected based on the correspondence as a program part corresponding to the determined first figure symbol and storing an execution result in a program part storage device. , Specify a change processing procedure for changing the correspondence between the first graphic symbol and the program part A visual programming system comprising: a program parts correspondence rewriting means.
【請求項2】 請求項1記載の視覚プログラミングシス
テムにおいて、 プログラム部品対応関係書換手続指定手段は、 第1の図形シンボルごとに設けられた第2の図形シンボ
ルであって、前記第1の図形シンボルに対応するプログ
ラム部品の実体を示す第2の図形シンボルを図形的に操
作することにより、前記変更処理手続を指定するように
したことを特徴とする視覚プログラミングシステム。
2. The visual programming system according to claim 1, wherein the program part correspondence relation rewriting procedure designating means is a second graphic symbol provided for each first graphic symbol, and the first graphic symbol. The visual programming system is characterized in that the change processing procedure is designated by graphically operating a second graphic symbol showing the substance of the program part corresponding to.
JP12121195A 1995-05-19 1995-05-19 Visual programming system Pending JPH08314703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12121195A JPH08314703A (en) 1995-05-19 1995-05-19 Visual programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12121195A JPH08314703A (en) 1995-05-19 1995-05-19 Visual programming system

Publications (1)

Publication Number Publication Date
JPH08314703A true JPH08314703A (en) 1996-11-29

Family

ID=14805635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12121195A Pending JPH08314703A (en) 1995-05-19 1995-05-19 Visual programming system

Country Status (1)

Country Link
JP (1) JPH08314703A (en)

Similar Documents

Publication Publication Date Title
GB2302419A (en) Control parameter setting system
JPH08314703A (en) Visual programming system
JP3238728B2 (en) Image processing device and user terminal device
JPH01191269A (en) Image controller
JP3138430B2 (en) User interface screen creation support device
JPH0944208A (en) Simulation method
JP3308781B2 (en) Programmable controller
JPH0991127A (en) Image processing programming method
JP3376950B2 (en) Screen generator
JPS6180426A (en) System editing processing system
JPH01244502A (en) Pc program display system
JP3327748B2 (en) Graphic processing method and apparatus
JP3895806B2 (en) Line drawing arithmetic processing method and processing apparatus
JPH01236309A (en) Display device for numerical controller
JP2862369B2 (en) Image display control device
JP3358113B2 (en) Program creation device for programmable controller
JPH0277973A (en) Automatic wiring process executing system
JPH04209007A (en) User program editing system for programmable controller
JPH07110651A (en) Method for storing comments in programmable controller and programmable controller
JPH04316138A (en) Debug processor
JPH096581A (en) Window system
JPH01215195A (en) Exchange program rearrangement tool control language generation system
JPH0219936A (en) Program application state grasping system by reference and time/date of application
JPH05307487A (en) Multi-task monitor
JPH0498454A (en) Screen state continuing control system