Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2855836B2 - Petri net diagram making device - Google Patents
[go: Go Back, main page]

JP2855836B2 - Petri net diagram making device - Google Patents

Petri net diagram making device

Info

Publication number
JP2855836B2
JP2855836B2 JP25297090A JP25297090A JP2855836B2 JP 2855836 B2 JP2855836 B2 JP 2855836B2 JP 25297090 A JP25297090 A JP 25297090A JP 25297090 A JP25297090 A JP 25297090A JP 2855836 B2 JP2855836 B2 JP 2855836B2
Authority
JP
Japan
Prior art keywords
petri net
diagram
net diagram
petri
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP25297090A
Other languages
Japanese (ja)
Other versions
JPH04130958A (en
Inventor
昌秀 孫
和己 赤根
健 ▲吉▼岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP25297090A priority Critical patent/JP2855836B2/en
Publication of JPH04130958A publication Critical patent/JPH04130958A/en
Application granted granted Critical
Publication of JP2855836B2 publication Critical patent/JP2855836B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、生産システム等のシミュレーションや評価
のために使用されるペトリネット図の作成装置に関し、
特に、ワークステーションやパーソナルコンピュータ上
で対話的に操作することにより、ディスプレイ上でペト
リネット図を作成する装置に関するものである。
The present invention relates to an apparatus for creating a Petri net diagram used for simulation and evaluation of a production system, etc.
In particular, the present invention relates to an apparatus for creating a Petri net diagram on a display by interactively operating a workstation or a personal computer.

〔従来の技術〕[Conventional technology]

生産システム等の同時進行的な要素からなるシステム
をモデル化するものとしてペトリネットが知られてい
る。
A Petri net is known as a model of a system composed of simultaneous elements such as a production system.

ペトリネットは、プレース及びトランジションの2種
類のノードと、これらのノードを結ぶアークからなる有
向グラフである。プレースは、システム中で、ある動作
が起きるための条件に対応し、トランジションはその動
作に対応している。そして、アークで示される方向に向
かってシステムの処理が進行する。
The Petri net is a directed graph composed of two types of nodes, place and transition, and an arc connecting these nodes. A place corresponds to a condition for an operation to occur in the system, and a transition corresponds to the operation. Then, the processing of the system proceeds in the direction indicated by the arc.

このペトリネットによりモデル化したシステムのシミ
ュレーションをコンピュータ上で実行することは従来か
ら知られている(たとえば、日本オペレーションズ・リ
サーチ学会,1988年度秋期研究発表会アブストラクト集,
218−219頁参照、特開昭63−317805号公報等参照)。
It is conventionally known to execute a simulation of a system modeled by this Petri net on a computer (for example, the Operations Research Society of Japan, Abstracts of 1988 Fall Meeting,
218-219, JP-A-63-317805, etc.).

このシミュレーションの際には、予めペトリネット図
をコンピュータ上で作成しておく必要があるが、この作
成或いは作成後の変更は、利用者が容易に行えるもので
ある必要がある。
At the time of this simulation, it is necessary to create a Petri net diagram on a computer in advance, but it is necessary that a user can easily make this change or change after creation.

利用者に対する操作性を高めたものとしては、対話型
システムがあり、この対話型システムは、利用者とシス
テムとの対話によってデータ処理を進めていくものであ
り、利用者がシステムに対し何らかの処理を指示し、こ
れに対してシステムがその指示に応じた結果を表示画面
に反映するということを繰り返すことによって処理を進
めていく。この場合、システムがどれだけ利用者にとっ
て判りやすい形で表示できるかということが重要とな
る。
An interactive system that enhances the operability for the user is an interactive system. This interactive system advances data processing through a dialog between the user and the system. , And the system repeats the process of reflecting the result in accordance with the instruction on the display screen. In this case, it is important how much the system can display in a form that is easy for the user to understand.

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

従来のペトリネット図作成装置においては、比較的小
規模のペトリネット図を対象としていたため、表示画面
上にペトリネット図全体を同時に表示することが可能で
あった。しかしながら、モデル化の対象となるシステム
の規模が大きくなると、これに伴ってペトリネット図も
複雑化,大規模化するが、表示画面の大きさに制限があ
るため、グラフ全体を同時に表示することができず、ス
クロール表示や分割表示を行う必要があり、編集作業が
困難となっていた。また、ペトリネットグラフを縮小す
ればペトリネットグラフ全体を表示することも可能であ
るが、グラフが見にくくなり、やはり編集作業が困難で
あった。
In the conventional Petri net diagram creation device, since a relatively small Petri net diagram is targeted, it is possible to simultaneously display the entire Petri net diagram on a display screen. However, as the scale of the system to be modeled increases, the Petri net diagram also becomes more complicated and larger, but the size of the display screen is limited, so the entire graph must be displayed simultaneously. However, it is necessary to perform scroll display or split display, and editing work is difficult. Further, if the Petri net graph is reduced, the entire Petri net graph can be displayed. However, the graph becomes difficult to see and the editing operation is also difficult.

また、全てのノードのデータを集中管理しているた
め、使用者が何らかの処理を行うたびに、画面に表示さ
れていないノード等の情報も処理されていたので、処理
時間が低下するという問題があった。
Also, since the data of all nodes is centrally managed, every time the user performs some processing, information such as nodes that are not displayed on the screen is also processed. there were.

本発明は、前記従来技術の欠点を改良するために、全
体のペトリネットを階層的に分割し、分割されたペトリ
ネットを統一的に管理することによって大規模なペトリ
ネット図の作成を容易に可能とすることを目的とするも
のである。
The present invention facilitates the creation of a large-scale Petri net diagram by dividing the entire Petri net hierarchically and uniformly managing the divided Petri nets, in order to improve the disadvantages of the prior art. The purpose is to make it possible.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は、前記目的を達成するため、ペトリネット図
を生成する手段と生成されたペトリネット図を表示する
手段とを備えたペトリネット図作成装置において、ペト
リネット図内の領域を指定する手段と、指定された領域
内のペトリネット図を抽象化して上位のペトリネット図
として生成する手段と、指定された領域内のペトリネッ
ト図の実体を下位のペトリネット図として生成する手段
と、前記上位のペトリネット図と下位のペトリネット図
との接続関係を定義する接続ノードを生成する手段と、
該接続ノードに基づき階層化されたペトリネット図を統
一して管理するための手段とを設けたことを特徴とす
る。
According to the present invention, in order to achieve the above object, in a Petri net diagram creating apparatus comprising means for generating a Petri net diagram and means for displaying the generated Petri net diagram, means for designating an area in the Petri net diagram Means for abstracting the Petri net diagram in the designated area to generate a higher Petri net diagram, means for generating the substance of the Petri net diagram in the designated region as a lower Petri net diagram, Means for generating a connection node that defines a connection relationship between an upper Petri net diagram and a lower Petri net diagram;
Means for unifying and managing Petri net diagrams hierarchized based on the connection nodes.

〔作用〕[Action]

本発明の作用を、具体的に例を挙げて説明する。 The operation of the present invention will be specifically described with reference to examples.

第1図は本発明の概略の構成を示すブロック図であ
る。この図において、制御部101は、キーボード,マウ
ス等のコマンド入力部102からの指令に応じた処理、た
とえば、ペトリネット図の生成を行い、その結果をペト
リネット図表示部104に表示するとともにペトリネット
図記憶部103に書き込む。また、制御部101は、すでにペ
トリネット図表示部104に表示されているペトリネット
図に対する変更等の要求をコマンド入力部102から受け
取り、要求に対する処理を行った後にペトリネット図表
示部104によって画面上に表示し、変更点をペトリネッ
ト図記憶部104に保存する。
FIG. 1 is a block diagram showing a schematic configuration of the present invention. In this figure, a control unit 101 performs a process according to a command from a command input unit 102 such as a keyboard and a mouse, for example, generates a Petri net diagram, displays the result on a Petri net diagram display unit 104, and displays the result on the Petri net diagram. Write to the net diagram storage unit 103. Further, the control unit 101 receives a request such as a change to the Petri net diagram already displayed on the Petri net diagram display unit 104 from the command input unit 102, and after processing the request, the screen is displayed by the Petri net diagram display unit 104. Displayed above, and the changes are stored in the Petri net diagram storage unit 104.

コマンド入力部102からペトリネット図の階層化の要
求が発せられると、制御部101は、要求に応じて新しい
ペトリネット図作成のための準備等の処理を行い、階層
化されたペトリネット間の接続関係を表わす抽象化され
たノードや、階層化されたペトリネットを代表する抽象
化されたノードを、それぞれの階層化されたペトリネッ
トに付加し、ペトリネット図表示部104の表示画像及び
ペトリネット図記憶部103の記憶内容を更新する。
When a request for layering Petri net diagrams is issued from the command input unit 102, the control unit 101 performs processing such as preparation for creating a new Petri net diagram according to the request, and performs processing between the layered Petri nets. An abstracted node representing a connection relationship and an abstracted node representing a hierarchical Petri net are added to each hierarchical Petri net, and the display image and the Petri net on the Petri net diagram display unit 104 are added. The content stored in the net diagram storage unit 103 is updated.

〔実施例〕〔Example〕

以下、図面に基づいて本発明の1実施例を説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第2図は本発明を実施するためのワークステーション
の全体構成である。ワークステーションは、制御装置20
1、主記憶装置202、ビットマップディスプレイのような
表示装置203、キーボードのようなデータ入力装置204、
マウスのようなポインティング装置205、磁気ディスク
のような補助記憶装置206等から構成されている。
FIG. 2 shows the overall configuration of a workstation for implementing the present invention. Workstation 20
1, main storage device 202, display device 203 such as a bitmap display, data input device 204 such as a keyboard,
It comprises a pointing device 205 such as a mouse, an auxiliary storage device 206 such as a magnetic disk, and the like.

ここで、第1図に示す構成と本発明の実施例との対応
関係を示す。制御部101は制御装置201に、コマンド入力
部102はデータ入力装置204及びポインティング装置205
に、ペトリネット図記憶部103は主記憶装置202及び補助
記憶装置206に、ペトリネット図表示部104は表示装置20
3に、それぞれ相当する。
Here, the correspondence between the configuration shown in FIG. 1 and the embodiment of the present invention is shown. The control unit 101 is a control device 201, and the command input unit 102 is a data input device 204 and a pointing device 205.
In addition, the Petri net diagram storage unit 103 is in the main storage device 202 and the auxiliary storage device 206, and the Petri net diagram display unit 104 is in the display device 20.
3 respectively.

第3図は、本実施例における制御の流れを示したもの
である。この図において、利用者からの要求は、データ
入力装置204、或いはポインティング装置205を経て制御
装置201へ伝えられ、要求に応じた処理、たとえば、ペ
トリネット図の作成を行った後に、その結果を表示装置
203に表示して利用者に知らせるか、ポインティング装
置205の動作に応じた処理を制御装置201が行いつつ表示
装置203にフィードバックし、これを見ながら利用者が
新たな要求を出す。ペトリネット図を表すデータは、主
記憶装置202に格納され、必要に応じて補助記憶装置206
に蓄積される。前記制御装置201における処理として
は、ペトリネット図の新規作成、編集、ファイルへの保
存(補助記憶装置206への書き込み)、ファイルからの
読み込み(補助記憶装置206からの読み出し)等があ
る。また、後述するように、データ入力装置204或いは
ポインティング装置205からペトリネット図の階層化が
指示された場合には、これに応じたペトリネット図の管
理が行われる。
FIG. 3 shows a control flow in this embodiment. In this figure, a request from a user is transmitted to a control device 201 via a data input device 204 or a pointing device 205, and after performing a process according to the request, for example, creating a Petri net diagram, the result is displayed. Display device
The control unit 201 performs a process corresponding to the operation of the pointing device 205 by providing feedback to the display device 203 by displaying it on the 203 or notifying the user, and the user issues a new request while watching this. The data representing the Petri net diagram is stored in the main storage device 202 and, if necessary, the auxiliary storage device 206.
Is accumulated in The processing in the control device 201 includes new creation and editing of a Petri net diagram, saving to a file (writing to the auxiliary storage device 206), reading from a file (reading from the auxiliary storage device 206), and the like. As will be described later, when the data input device 204 or the pointing device 205 instructs the layering of the Petri net diagram, the management of the Petri net diagram is performed according to this.

いま、利用者が、たとえば第4図に示すような階層化
の元となるペトリネット図を作成する場合の手順につい
て第5図のフローチャートを参照して説明する。
Now, a procedure in which a user creates a Petri net diagram as a source of layering as shown in FIG. 4, for example, will be described with reference to the flowchart of FIG.

まず、利用者は、第6図に示すように、ペトリネット
図作成用ウィンドウ702を表示装置203の表示画面701上
に開く。なお、ペトリネット図作成作業開始時には、表
示画面701には、ペトリネット管理ウィンドウ703のみが
表示されており(ステップS101)、たとえば、このペト
リネット管理ウィンドウ703のメニュー「新規作成」を
選択することにより(ステップS102)ペトリネット図作
成用ウィンドウ702が開かれる(ステップS103)。更
に、ウィンドウ702上でなにも表示されていないところ
でポインティング装置205たとえばマウスのメニューボ
タンを押すと、「プレース」,「トランジション」,
「階層化」,「ロード」,「セーブ」等の項目を有する
ペトリネットメニュー705が表示される(ステップS10
4)。「プレース」及び「トランジション」は、ペトリ
ネット図のノードを作成するためのものであり、「階層
化」は、後述するように、ペトリネット図の階層化を指
示するものである。また、「ロード」は既存のペトリネ
ットをファイルから読み込む指示、「セーブ」は、ペト
リネットのファイルへの保存指示を行うものである。
First, the user opens a Petri net diagram creation window 702 on the display screen 701 of the display device 203 as shown in FIG. At the start of the Petri net diagram creation work, only the Petri net management window 703 is displayed on the display screen 701 (step S101). For example, the menu “New” in the Petri net management window 703 is selected. (Step S102) opens a Petri net diagram creation window 702 (Step S103). Further, when a pointing device 205, for example, a menu button of a mouse is pressed in a state where nothing is displayed on the window 702, “place”, “transition”,
A Petri net menu 705 having items such as "layering", "load", and "save" is displayed (step S10).
Four). “Place” and “transition” are for creating nodes of the Petri net diagram, and “layering” is for instructing the layering of the Petri net diagram as described later. “Load” is an instruction to read an existing Petri net from a file, and “Save” is an instruction to save a Petri net to a file.

第6図の例では、ウィンドウ702には既にペトリネッ
ト図が描かれているが、この図は、ペトリネットメニュ
ー705の中から必要な機能を選ぶことによって作成され
る。
In the example of FIG. 6, a Petri net diagram is already drawn in the window 702, and this diagram is created by selecting a necessary function from the Petri net menu 705.

たとえば、第4図のペトリネット図に示すようなプレ
ース401,402,403,404を新たに作りたいときは、ペトリ
ネットメニュー705からメニュー選択カーソル704により
「プレース」を選ぶ(ステップS105)ことによって作成
され、ウィンドウ702中に表示される(ステップS10
6)。生成されたプレースは、ポインティング装置205す
なわちマウスの指示により移動するカーソルの動きに応
じてウィンドウ702上を移動し、マウスボタンが押され
た位置に固定される(ステップS107)。このプレースの
位置,形状等の属性を表すデータがプレースデータとし
て生成され(ステップS108)、主記憶装置202に記憶さ
れる(ステップS109)。なお、プレースに置かれるトー
クン415,416は、データ入力装置204によって設定するこ
とができる。
For example, when it is desired to newly create places 401, 402, 403, 404 as shown in the Petri net diagram of FIG. (Step S10
6). The generated place moves on the window 702 in accordance with the movement of the pointing device 205, that is, the cursor that moves in accordance with the instruction of the mouse, and is fixed at the position where the mouse button is pressed (step S107). Data representing attributes such as the position and shape of the place is generated as place data (step S108) and stored in the main storage device 202 (step S109). The tokens 415 and 416 placed in the place can be set by the data input device 204.

トランジション405,406についても同様にマウス操作
によって生成され、位置が指定され、トランジションの
属性を示すトランジションデータが主記憶装置202に記
憶される。
Similarly, the transitions 405 and 406 are generated by mouse operation, the position is specified, and transition data indicating the attribute of the transition is stored in the main storage device 202.

更に、プレースとトランジションとの間、すなわち、
ノード間のアーク407〜414も、同様にマウス操作によっ
て生成される。すなわち、あるプレースからあるトラン
ジションにアークを張りたいときには、まずプレース上
にカーソルを移動し、ここでマウスボタンを押し続け
る。すると、カーソルが矢型から十字形となり、プレー
スの中心とカーソル中心を結ぶ直線が表示される。次
に、トランジションの上にカーソルを持ってきてマウス
ボタンを離すとアークが確定し、画面上に正規のアーク
が表示される。このとき、トランジション以外でマウス
ボタンを押すと無効となり、元の状態に戻され、入力受
け付けのモードとなる。このアークの位置,形状等の属
性は、後述するアークデータにより規定される。一旦描
かれたアークは、アークの線上でメニューボタンを押す
ことによって表示される「編集」及び「削除」の項目を
有するメニューとマウス操作により自由にその軌跡を編
集することができる。上述の操作を目的のペトリネット
の作成が終了するまで繰り返す(ステップS110)。これ
らの処理は、ワークステーション等において広く利用さ
れているウィンドウシステムを用いて実現することがで
きる。
In addition, between places and transitions,
Arcs 407 to 414 between the nodes are also generated by mouse operation. That is, when an arc is to be formed from a certain place to a certain transition, the cursor is first moved to the place, and here, the mouse button is kept pressed. Then, the cursor changes from an arrow to a cross, and a straight line connecting the center of the place and the center of the cursor is displayed. Next, when the cursor is moved over the transition and the mouse button is released, the arc is determined, and the regular arc is displayed on the screen. At this time, if the mouse button is pressed other than during the transition, the mouse button is invalidated, the state is returned to the original state, and the mode is changed to an input acceptance mode. Attributes such as the position and shape of the arc are defined by arc data described later. Once the arc is drawn, the locus of the arc can be freely edited by operating the mouse and operating a menu having “edit” and “delete” items displayed by pressing a menu button on the arc line. The above operation is repeated until the creation of the desired Petri net is completed (step S110). These processes can be realized using a window system widely used in a workstation or the like.

ここで、ペトリネット図を表すためのペトリネットデ
ータの構造について述べる。ペトリネットデータは、第
1表に示すように、各ペトリネット図毎に、そのペトリ
ネットの名前を示す変数nameと、トランジション、プレ
ース、接続ノード、代表ノード及びアークを保持するた
めの配列で与えられるそれぞれの変数transitions,plac
es,connectNodes,repNodes及びarcsからなっている。な
お、接続ノードとその変数connectNodes及び代表ノード
とその変数repNodesの意味については後述する。
Here, the structure of Petri net data for representing a Petri net diagram will be described. As shown in Table 1, the Petri net data is given in each Petri net diagram by a variable name indicating the name of the Petri net and an array for holding transitions, places, connection nodes, representative nodes, and arcs. Each variable transitions, plac
It consists of es, connectNodes, repNodes and arcs. The meaning of the connection node and its variable connectNodes and the meaning of the representative node and its variable repNodes will be described later.

また、トランジションデータ及びプレースデータは、
第2表及び第3表に示すように、一次元の配列で与えら
れる変数inputArcs及びoutputArcsと、位置及び形状を
表すためのそれぞれの変数position及びiconと、互いに
異なる識別子idを持つ。ノードから見て入力関係にある
アークはinputArcsに、また、出力関係にあるアークはo
utputArcsにそれぞれのアークへのポインタが格納され
る。ノードをウィンドウのどこに表示するかという情報
は、変数positionが持ち、表示される絵をiconが持つ。
なお、プレースデータは、プレースに置かれるトークン
の数を示す変数tokenCountを持っている。
Also, the transition data and place data are
As shown in Tables 2 and 3, variables inputArcs and outputArcs given in a one-dimensional array, respective variables position and icon for representing a position and a shape, and identifiers different from each other are provided. Arcs that have an input relationship when viewed from the node are inputArcs, and arcs that have an output relationship are o
A pointer to each arc is stored in utputArcs. The information on where to display the node in the window has a variable position, and the icon to be displayed has an icon.
The place data has a variable tokenCount indicating the number of tokens placed in the place.

また、アークデータは、第4表に示すように、 その始点のノードと終点のノードへのポインタを、そ
れぞれstartNode及びendNodeという変数に持つ。また、
アークを曲線で表示するために、collectionOfPointsと
いう配列で与えられる変数に途中の座標値を入れてお
き、表示する場合には、これらを順に直線で結ぶ。
Also, as shown in Table 4, the arc data has pointers to the start node and the end node in variables called startNode and endNode, respectively. Also,
In order to display the arc as a curve, the intermediate coordinate values are put in a variable given by an array called collectionOfPoints, and when displaying the arc, these are sequentially connected with a straight line.

本実施例においては、後述するように、ペトリネット
図の指定部分が代表ノードと呼ばれるシンボルによって
抽象化され、抽象化された部分の実体は、階層化された
別のペトリネット図として作成される。そしてこの階層
化されたペトリネット図間の接続関係が、接続ノードと
呼ばれる新たに導入されたノードにより規定される。
In the present embodiment, as will be described later, a designated portion of a Petri net diagram is abstracted by a symbol called a representative node, and the substance of the abstracted portion is created as another hierarchical Petri net diagram. . The connection relationship between the hierarchical Petri net diagrams is defined by a newly introduced node called a connection node.

代表ノードデータは、ペトリネット図を階層化した場
合の抽象化されたシンボルすなわち代表ノードの属性を
規定するもので、代表ノードデータには、第5表に示す
ように、階層化された上位と下位のペトリネット図の接
続状態を定義するための接続ノードを表す変数connectP
oints、抽象化されたシンボルの位置と絵を表すための
変数position及びiconと、そのノードの実体である下位
のペトリネットの名前を保持するための変数petriNetと
id等の変数がある。変数connectPointsは、一次元の配
列で与えられ、ここにそれが表すペトリネットの接続ノ
ードと同じidを持つ接続ノードが入れられる。
The representative node data defines an abstracted symbol when the Petri net diagram is hierarchized, that is, the attribute of the representative node. As shown in Table 5, the representative node data includes the hierarchized upper and lower layers. The variable connectP representing the connection node for defining the connection state of the lower Petri net diagram
oints, variables position and icon to represent the position and picture of the abstracted symbol, and a variable petriNet to hold the name of the lower-level Petri net that is the entity of that node.
There are variables such as id. The variable connectPoints is given as a one-dimensional array, in which connection nodes having the same ids as the connection nodes of the Petri net they represent are placed.

また、接続ノードデータは、第6表に示すように、ト
ランジションデータと同様なデータを有している。
Further, as shown in Table 6, the connection node data has the same data as the transition data.

本実施例では、代表ノードとその実体となるべきペト
リネットとの接続関係は、この接続ノードのidの同値性
により実現されている。
In the present embodiment, the connection relationship between the representative node and the Petri net that is to be the entity is realized by the equivalence of the id of this connection node.

次に、第4図に示されるペトリネット図を階層化する
処理について、第7図のフローチャートを参照して説明
する。
Next, the process of hierarchizing the Petri net diagram shown in FIG. 4 will be described with reference to the flowchart in FIG.

第6図に示すように、ペトリネット図作成用ウィンド
ウ702及びペトリネットメニュー705が表示されている状
態において、メニュー選択カーソル704によりメニュー7
05の中の「階層化」を指示すると、システムは、まず新
たに代表ノードを生成するとともに(ステップS201)、
新しいペトリネットデータのための領域を主記憶装置20
2上に確保する(ステップS202)。そして、カーソルの
形状を第8図に示すような鉤型の枠指定開始カーソル80
1に変え、これによって指定すべき領域の左上の角を指
定するモードとなる。始点が決まったら、マウスボタン
を押すと、今度はカーソルの形状が枠指定終了カーソル
802のように変化し、領域の右下の角を指定するモード
となる。次に、マウスボタンを押したところで領域(点
線の矩形で示す)が確定し領域指定が終了する(ステッ
プS203)。
As shown in FIG. 6, when the Petri net diagram creation window 702 and the Petri net menu 705 are displayed, the menu 7 is moved by the menu selection cursor 704.
When "hierarchy" in 05 is instructed, the system first generates a new representative node (step S201),
Area for new Petri net data in main storage 20
2 (step S202). Then, the shape of the cursor is changed to a hook-shaped frame designation start cursor 80 as shown in FIG.
Change to 1 to set the mode to specify the upper left corner of the area to be specified. When the start point is determined, press the mouse button, this time the cursor shape changes to the frame specification end cursor
The mode changes like 802, and the mode is for specifying the lower right corner of the area. Next, when the mouse button is pressed, the area (indicated by the dotted rectangle) is determined, and the area designation is completed (step S203).

システムは、この領域にどのノードが含まれるかを各
々のノードデータの位置データpositionに含まれている
座標情報から調べ、領域内にあるものは、そのペトリネ
ットデータから削除して新しく生成したペトリネットデ
ータへ移す(ステップS204)。同時に、それらのノード
に接続されているアークを各ノードのデータinputArcs
及びoutputArcsによって調べ、それらのアークのうち領
域外にまたがらないアークも同様に新しいペトリネット
データに移す(ステップS205)。すなわち、第4図に示
すペトリネットの例でいえば、指定領域の外周を示す指
定枠417によって、プレース402及び404と、トランジシ
ョン405及び406の四つのノードが洗い出され、これらを
もとにアーク408,409,411,412,413及び414の六つのアー
クが、その領域内部のアークとして取り出され、これら
を元のペトリネットから削除して新しく生成したペトリ
ネットデータの該当する変数に代入される。
The system checks which nodes are included in this area from the coordinate information included in the position data position of each node data, and deletes the ones in the area from the Petri net data and newly generated Petri nets. Move to net data (step S204). At the same time, the arcs connected to those nodes are
And outputArcs, and among those arcs, arcs that do not extend outside the region are also transferred to new Petri net data (step S205). That is, in the example of the Petri net shown in FIG. 4, the four nodes of the places 402 and 404 and the transitions 405 and 406 are identified by the designation frame 417 indicating the outer periphery of the designated area. Six arcs 408, 409, 411, 412, 413 and 414 are taken out as arcs inside the area, and these arcs are deleted from the original Petri net and substituted into the corresponding variables of newly generated Petri net data.

次に、指定枠417の内側と外側にまたがるアークを調
べ、第4図においてアーク407と410が発見される。ここ
で発見されたアークは、一時的に表示画面から消去さ
れ、それらのアークの指定枠417の内側のノード、つま
り、新たに生成されたペトリネットに移されたノード
に、それぞれアーク407及び410のコピーのアーク603及
び604(第9図参照)が付け加えられる(ステップS20
6)。これらのコピーは、id以外は全てオリジナルと同
一の情報を持つ。このとき、アークの一方の端には、第
9図に示すような接続ノード601及び602が生成されて接
続される(ステップS207)。ここで生成された接続ノー
ド601及び602のコピーの接続ノード502及び503(第10図
参照)のデータが、元のペトリネット上で生成されてい
る代表ノードデータの変数connectNodesに加えられる
(ステップS209)。
Next, the arcs extending over the inside and outside of the designated frame 417 are examined, and arcs 407 and 410 are found in FIG. The arcs found here are temporarily erased from the display screen, and the nodes inside the designated box 417 of those arcs, that is, the nodes moved to the newly generated Petri net, arc 407 and 410, respectively. Arcs 603 and 604 of the copy (see FIG. 9) are added (step S20).
6). These copies all have the same information as the original except for the id. At this time, connection nodes 601 and 602 as shown in FIG. 9 are generated and connected to one end of the arc (step S207). The data of the connection nodes 502 and 503 (see FIG. 10) of the copy of the connection nodes 601 and 602 generated here are added to the variable connectNodes of the representative node data generated on the original Petri net (step S209). ).

代表ノード501では、変数ノードデータの変数connetP
ointsにある接続ノードを示す図形は、第10図の接続ノ
ード502及び503に示すように、第9図の接続ノード601
及び603とは異なっている。すなわち、本実施例の場
合、上位のペトリネット図の代表ノードの接続ノード50
2及び503としては正方形が使用されており、下位のペト
リネット図の接続ノード601及び603としては三角形が使
用されており、識別を容易に行えるようにしている。な
お、表示画面701上でカーソルが代表ノード501上にあっ
ても、カーソルが接続ノード502或いは503の上にあれば
接続ノードのほうが認識されるようにしておくことによ
り、個別にアークを張ることが可能となる。
In the representative node 501, the variable connetP of the variable node data
The connection node in the oints is represented by the connection nodes 502 and 503 in FIG.
And 603. That is, in the case of the present embodiment, the connection node 50 of the representative node in the upper Petri net diagram
Squares are used as 2 and 503, and triangles are used as connection nodes 601 and 603 in the lower Petri net diagram, so that identification can be easily performed. Note that even if the cursor is on the representative node 501 on the display screen 701, if the cursor is on the connection node 502 or 503, the connection node is recognized so that an arc can be individually set. Becomes possible.

上述の一連の処理により、新たに生成されたペトリネ
ット図のペトリネットデータ(第1表参照)が確定す
る。但し、変数nameは、利用者からの指定がなければ、
システムが自動的に設定する。
By the above-described series of processes, the Petri net data (see Table 1) of the newly generated Petri net diagram is determined. However, if the variable name is not specified by the user,
The system sets it automatically.

一方、元のペトリネットにおいては、新しく生成され
た代表ノード501の接続ノード502,503の情報から自動的
にその代表ノードのiconを作り(ステップS210)、この
情報をもとに第11図のように、階層化の完了したペトリ
ネット図を表示する(ステップS211)。代表ノードの変
数petriNetには、新しく生成されたペトリネットの変数
nameが格納され、これによってその代表ノードがどのペ
トリネットを代表しているのかを知ることができる。
On the other hand, in the original Petri net, the icon of the representative node is automatically created from the information of the connection nodes 502 and 503 of the newly generated representative node 501 (step S210), and based on this information, as shown in FIG. Then, the hierarchical Petri net diagram is displayed (step S211). The variable petriNet of the representative node contains the variable of the newly created Petri net.
The name is stored, so that it is possible to know which Petri net the representative node represents.

階層化された下位のペトリネットの実体は、第11図に
示すようにメニュー選択カーソル901によって代表ノー
ドメニュー902から「開く」を選択することにより、第1
2図のウィンドウ1001のように表示される(ステップS21
2〜S214)。なお、代表ノードメニュー902は、その図形
上でメニューボタンを押すことにより表示することがで
き、この代表ノードメニュー902には、「開く」の他
に、「移動」,「複写」,「削除」がある。
By selecting “open” from the representative node menu 902 with the menu selection cursor 901 as shown in FIG.
It is displayed as a window 1001 in FIG. 2 (step S21
2 to S214). The representative node menu 902 can be displayed by pressing a menu button on the figure. In addition to “open”, the representative node menu 902 includes “move”, “copy”, and “delete”. There is.

上述の処理は、制御装置201が行っており、全体のペ
トリネットがどのように階層化されているかは、ペトリ
ネット図とは独立に、表示装置203に第13図に示すよう
なペトリネット管理ウィンドウ703に表示されるペトリ
ネット管理図によって利用者に知らされる。なお、先に
述べたように最初のペトリネット図は、この管理図にお
いて、新規作成メニューによって作られる。この管理図
からは、唯一つのペトリネット図のみが作成可能であ
り、そのペトリネット図が階層表現されるペトリネット
図の最上位となる、 第14図は、3層に階層化されたペトリネットの管理図
の例を示している。第1層には、「1」という名前が付
けられたペトリネットが存在し、第2層には、「2」及
び「3」という名前が付けられた二つのペトリネットが
存在し、更にペトリネット「2」の下位には、「4」と
いう名前が付けられた第3層のペトリネットが存在して
いる。これらの名前は、それぞれのペトリネットの変数
nameそのものである。階層関係は木構造によって表現さ
れており、最も左側にあるのが最上位のペトリネットで
あることを示している。
The above-described processing is performed by the control device 201, and how the entire Petri net is hierarchized is independent of the Petri net diagram, and the Petri net management as shown in FIG. The user is notified by the Petri net control chart displayed in the window 703. As described above, the first Petri net diagram is created by a new creation menu in this control chart. From this control chart, only one Petri net diagram can be created, and the Petri net diagram is the top level of the Petri net diagram that is expressed hierarchically. FIG. 14 shows a Petri net hierarchized into three layers 3 shows an example of the control chart. In the first layer there is a Petri net named "1", in the second layer there are two Petri nets named "2" and "3", and further in the Petri net. Below the net “2”, there is a third-layer Petri net named “4”. These names are the variables in each Petri net
The name itself. The hierarchical relationship is represented by a tree structure, and the leftmost one indicates that the topmost Petri net is.

ペトリネット管理図がこの階層構造を表示する動作は
次の通りである。ペトリネット管理図は、そこで生成さ
れたペトリネットを変数として持っており、このペトリ
ネットの変数repNodesを調べることにより、そのペトリ
ネットに階層化されたペトリネットがあるかどうかを判
断する。もしなければ、そのペトリネットは階層化され
ていないが、もしあればrepNodes中の代表ノードの変数
petriNetを見てそのペトリネットの実体を探し出す。実
体が主記憶装置202上になければ補助記憶装置206の中を
調べ、そこで更にそのペトリネットの変数repNodesを調
べていく。全てのrepNodes中の代表ノードを調べ尽くし
たら表示のための作業に入る。すなわち、全体が何層で
あるかを調べ、階層の依存関係によって木を構成し、自
動的に名前付けを行って表示装置203に表示する。
The operation in which the Petri net control chart displays this hierarchical structure is as follows. The Petri net control chart has the Petri net generated there as a variable, and examines the variable repNodes of this Petri net to determine whether or not the Petri net has a hierarchical Petri net. If not, the Petri net is unhierarchical, but if present, the variable of the representative node in repNodes
Look at petriNet and find the entity of the Petri net. If the entity is not on the main storage device 202, the contents of the auxiliary storage device 206 are checked, and the variable repNodes of the Petri net is further checked there. Once all the representative nodes in all repNodes have been examined, work on the display starts. That is, the number of layers in the whole is checked, a tree is formed based on the hierarchical dependency, and the tree is automatically named and displayed on the display device 203.

利用者は、このペトリネット管理図において、たとえ
ば、第14図で「4」と書かれているノード上にカーソル
を移動し、マウスボタンを素早く2度押す等のウィンド
ウを開く操作を行うことによりそのペトリネット図を表
示することができる。そして、この下位のペトリネット
図に対してカーソル1002を使用して、元のペトリネット
図と同様に作成・編集等の操作を行うことができる。
In this Petri net control chart, the user moves the cursor to a node marked "4" in FIG. 14, and performs an operation of opening a window, such as quickly pressing a mouse button twice. The Petri net diagram can be displayed. Then, using the cursor 1002 on this lower Petri net diagram, operations such as creation and editing can be performed in the same manner as the original Petri net diagram.

このように、全体のペトリネットの管理図を見ること
により、全体の構成が極めて明瞭となる。
Thus, by looking at the control chart of the entire Petri net, the overall configuration becomes extremely clear.

前記実施例の変形例として、色つきのペトリネットや
時間の概念等を加味した拡張ペトリネット、アークフロ
ーグラフなどへ応用することが考えられる。これらはい
ずれも複数のノードとそれらを結ぶリンクによって構成
されている。
As a modified example of the embodiment, application to a colored petri net, an extended petri net considering the concept of time, and the like, an arc flow graph, and the like can be considered. Each of these is composed of a plurality of nodes and links connecting them.

また、前記実施例においては全体のペトリネット図を
管理するための機能を設けていたが、これを個々のペト
リネット図ごとに分解し、あるペトリネット図は、これ
に接続されているペトリネット図のみを呼び出すことが
できるようにすれば前記実施例と同等の操作が可能とな
る。
Further, in the above embodiment, a function for managing the entire Petri net diagram is provided. However, this is decomposed for each Petri net diagram, and a Petri net diagram connected to the Petri net diagram is connected. If only the figures can be called, the same operation as in the above embodiment can be performed.

〔発明の効果〕〔The invention's effect〕

以上に述べたように、本発明によれば、ペトリネット
図を階層化して表示するようにしたので、ペトリネット
図が大型化,複雑化した場合でも、表示装置上に利用者
が一瞥して認識できる状態で全体を表示することがで
き、ペトリネット図の作成,編集を容易に行うことがで
きる。また、部分に分けたペトリネット図において表示
すべき要素数を少なくすることができるため、表示内容
を見落とすおそれが少なくなるとともに表示のための時
間を短縮できるという効果がある。
As described above, according to the present invention, the Petri net diagram is displayed in a hierarchical manner. Therefore, even when the Petri net diagram becomes large and complicated, the user can glance at the display device. The whole can be displayed in a recognizable state, and creation and editing of Petri net diagrams can be easily performed. Further, since the number of elements to be displayed in the Petri net diagram divided into parts can be reduced, there is an effect that the possibility of overlooking the display content is reduced and the time for display can be reduced.

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

第1図は本発明の概略の構成図、第2図は本発明を実施
するためのワークステーションの構成図、第3図は本実
施例における制御の流れを示す説明図、第4図は階層化
されていないペトリネット図の一例を示す説明図、第5
図はペトリネット図作成のための基本的な処理を示すフ
ローチャート、第6図は本実施例において基本的なペト
リネット図を作成する際の表示画面例を示す説明図、第
7図はペトリネット図を階層化する際の処理を示すフロ
ーチャート、第8図はペトリネット図を階層化する際の
領域指定時の表示画面例を示す説明図、第9図は第4図
に示すペトリネット図を階層化した場合の下位のペトリ
ネット図を示す説明図、第10図は第4図に示すペトリネ
ット図を階層化した場合の上位のペトリネット図を示す
説明図、第11図は階層化されたペトリネット図が表示さ
れた表示画面例を示す説明図、第12図は下位のペトリネ
ットの実体が表示された表示画面例を示す説明図、第13
図及び第14図は階層化されたペトリネットの管理図を示
すそれぞれ異なる例の説明図である。 101:制御部、102:コマンド入力部 103:ペトリネット図記憶部 104:ペトリネット図表示部 201:制御装置、202:主記憶装置 203:表示装置、204:データ入力装置 205:ポインティング装置 206:補助記憶装置、401〜404:プレース 405,406:トランジション 407〜414:アーク、415,416:トークン 417:指定枠、510:代表ノード 502,503,601,602:接続ノード 603,604:アーク、701:表示画面 702:ペトリネット図作成用ウィンドウ 703:ペトリネット管理用ウィンドウ 704:メニュー選択カーソル 705:ペトリネットメニュー 801:枠指定開始カーソル 802:枠指定終了カーソル 901:メニュー選択カーソル 902:代表ノードメニュー
FIG. 1 is a schematic configuration diagram of the present invention, FIG. 2 is a configuration diagram of a workstation for implementing the present invention, FIG. 3 is an explanatory diagram showing a control flow in the present embodiment, and FIG. FIG. 5 is an explanatory view showing an example of an unconverted Petri net diagram, and FIG.
FIG. 6 is a flowchart showing basic processing for creating a Petri net diagram, FIG. 6 is an explanatory diagram showing an example of a display screen when a basic Petri net diagram is created in this embodiment, and FIG. FIG. 8 is a flow chart showing the processing when the figure is hierarchized, FIG. 8 is an explanatory view showing an example of a display screen when an area is specified when the Petri net figure is hierarchized, and FIG. FIG. 10 is an explanatory diagram showing a lower Petri net diagram in the case of hierarchization, FIG. 10 is an explanatory diagram showing an upper Petri net diagram in a case where the Petri net diagram shown in FIG. 4 is hierarchized, and FIG. FIG. 12 is an explanatory view showing an example of a display screen on which a Petri net diagram is displayed, FIG. 12 is an explanatory view showing an example of a display screen on which an entity of a lower Petri net is displayed, and FIG.
FIG. 14 and FIG. 14 are explanatory diagrams of different examples showing a management diagram of a hierarchical Petri net. 101: control unit, 102: command input unit 103: Petri net diagram storage unit 104: Petri net diagram display unit 201: control device, 202: main storage device 203: display device, 204: data input device 205: pointing device 206: Auxiliary storage device, 401 to 404: Place 405, 406: Transition 407 to 414: Arc, 415, 416: Token 417: Designated frame, 510: Representative node 502, 503, 601, 602: Connection node 603, 604: Arc, 701: Display screen 702: Window for creating Petri net diagram 703: Petri net management window 704: Menu selection cursor 705: Petri net menu 801: Frame specification start cursor 802: Frame specification end cursor 901: Menu selection cursor 902: Representative node menu

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−120980(JP,A) 特開 平1−109475(JP,A) 特開 昭62−256171(JP,A) 特開 昭62−239273(JP,A) 岡田義広ほか「ビジュアル・シュミレ ーション・システム」情報処理学会第40 会全国大会論文集(▲III▼)(平成 2年3月14日),1357、1358頁. 古宮 貴ほか「ネット解析・設計ソフ トウェア開発のためのツール」第33回シ ステム制御情報学会研究発表講演論文集 (1989年5月17日)349,350頁 長谷川健介「ペトリネットの生産シス テムへの応用」計測と制御、Vol. 28,No.9(1989年9月)775〜783頁 椎塚久雄「ペトリネットのシュミレー ションへの応用(▲IV▼)オペレーシ ョンズ.リサーチ、Vol.35,No. 2(1990年2月)、120〜125頁 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-2-120980 (JP, A) JP-A-1-109475 (JP, A) JP-A-62-256171 (JP, A) JP-A-62-256 239273 (JP, A) Yoshihiro Okada et al. "Visual Simulation System" Transactions of the IPSJ 40th National Convention (III) (March 14, 1990), 1357, 1358. "Tools for Network Analysis and Design Software Development" Proceedings of the 33rd Annual Conference of the Society of System Control and Information Engineers (May 17, 1989), pp. 349, 350 Kensuke Hasegawa "Application of Petri Nets to Production Systems" "Measurement and Control, Vol. 28, No. 9 (September 1989) pp. 775-783 Hisao Shiizuka, "Application of Petri Net to Simulation (IV), Operations. Research, Vol. 35, No. 2, February 1990, pp. 120-125.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ペトリネット図を生成する手段と生成され
たペトリネット図を表示する手段とを備えたペトリネッ
ト図作成装置において、ペトリネット図内の領域を指定
する手段と、指定された領域内のペトリネット図を抽象
化して上位のペトリネット図として生成する手段と、指
定された領域内のペトリネット図の実体を下位のペトリ
ネット図として生成する手段と、前記上位のペトリネッ
ト図と下位のペトリネット図との接続関係を定義する接
続ノードを生成する手段と、前記接続ノードに基づき階
層化されたペトリネット図を統一して管理するための手
段とを設けたことを特徴とするペトリネット図作成装
置。
An apparatus for creating a Petri net diagram, comprising: means for generating a Petri net diagram; and means for displaying the generated Petri net diagram. Means for abstracting the Petri net diagram in the above as a higher Petri net diagram, means for generating the substance of the Petri net diagram in the designated area as the lower Petri net diagram, and Means for generating a connection node that defines a connection relationship with a lower-level Petri net diagram; and means for unifying and managing a hierarchical Petri net diagram based on the connection nodes are provided. Petri net diagram creation device.
JP25297090A 1990-09-21 1990-09-21 Petri net diagram making device Expired - Fee Related JP2855836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25297090A JP2855836B2 (en) 1990-09-21 1990-09-21 Petri net diagram making device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25297090A JP2855836B2 (en) 1990-09-21 1990-09-21 Petri net diagram making device

Publications (2)

Publication Number Publication Date
JPH04130958A JPH04130958A (en) 1992-05-01
JP2855836B2 true JP2855836B2 (en) 1999-02-10

Family

ID=17244689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25297090A Expired - Fee Related JP2855836B2 (en) 1990-09-21 1990-09-21 Petri net diagram making device

Country Status (1)

Country Link
JP (1) JP2855836B2 (en)

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
古宮 貴ほか「ネット解析・設計ソフトウェア開発のためのツール」第33回システム制御情報学会研究発表講演論文集(1989年5月17日)349,350頁
岡田義広ほか「ビジュアル・シュミレーション・システム」情報処理学会第40会全国大会論文集(▲III▼)(平成2年3月14日),1357、1358頁.
椎塚久雄「ペトリネットのシュミレーションへの応用(▲IV▼)オペレーションズ.リサーチ、Vol.35,No.2(1990年2月)、120〜125頁
長谷川健介「ペトリネットの生産システムへの応用」計測と制御、Vol.28,No.9(1989年9月)775〜783頁

Also Published As

Publication number Publication date
JPH04130958A (en) 1992-05-01

Similar Documents

Publication Publication Date Title
US5715413A (en) Dragging and dropping with an instantiation object
US6388683B1 (en) Object oriented data arranger graphical user interface
US5220675A (en) Method and system for customizing a user interface in an integrated environment
JP3441309B2 (en) How to display functional objects in graphical programming
US6928453B2 (en) System for iteratively designing an object heterarchy in an object-oriented computing environment
JPH07134765A (en) Method of graphic display of data
JPH07200278A (en) Programming system using figures
JP3056297B2 (en) Drawing information processing system, design support method
JP3448874B2 (en) Document processing apparatus and document processing method
Feiner et al. An integrated system for creating and presenting complex computer-based documents
JP2001306310A (en) Method and device for assisting creation of gui part and application developing method
JP2855836B2 (en) Petri net diagram making device
JPH0573630A (en) Distributed design support method/system
JPH04257973A (en) Device and method for supporting design
Mitchell et al. DRIVE: an environment for the organised construction of user-interfaces to databases
CN111897530B (en) UI system and method based on UE4 platform
JP2713147B2 (en) How to edit multimedia presentations
JPH0736684A (en) Domain-oriented component management method
Plateau et al. Building user interfaces with the LOOKS hyper-object system
JP3370064B2 (en) Drawing information processing method and system
JPH07306776A (en) Visual programming method
JP3083552B2 (en) Hierarchy editing processor
JP3015418B2 (en) System development equipment
JP3298456B2 (en) Visual simulation support method and apparatus
Guarna et al. A portable user interface for a scientific programming environment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees