JPH06176003A - Simulation device based upon petri net - Google Patents

Simulation device based upon petri net

Info

Publication number
JPH06176003A
JPH06176003A JP33065892A JP33065892A JPH06176003A JP H06176003 A JPH06176003 A JP H06176003A JP 33065892 A JP33065892 A JP 33065892A JP 33065892 A JP33065892 A JP 33065892A JP H06176003 A JPH06176003 A JP H06176003A
Authority
JP
Japan
Prior art keywords
transition
petri net
place
simulation
evaluation
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
JP33065892A
Other languages
Japanese (ja)
Inventor
Masahide Son
昌秀 孫
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 JP33065892A priority Critical patent/JPH06176003A/en
Publication of JPH06176003A publication Critical patent/JPH06176003A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily represent an object which can be represented with neither a basic Petri net nor an extended Petri net and an object which requires complicated logical constitution for the representation and to evade the complication of a Petri net diagram. CONSTITUTION:Transition data 101 consist of a transition main body 102 and a user description part 103. A Petri net processing part 104 is provided newly with an evaluation part 105 and a data setting part 106 in addition to the constitution of a simulation model generation part 105, a simulation execution part 108, etc. The user description part 103 which holds order, a rule, a function or a procedure that a user should describe is provided corresponding to the transition body 102 and the Petri net processing part 104 passes the information of the user description part 103 to the evaluation part 105 when the firing of transition ends. The evaluation part 105 determines a place where a token is sent out according to the description of the user description part 103.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワークステーションや
パーソナルコンピュータ等で実現されるペトリネットに
基づくシミュレーション装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Petri net-based simulation apparatus realized by a workstation, a personal computer or the like.

【0002】[0002]

【従来の技術】加工機械、組立機械、作業者や搬送機器
等で構成される生産システム等の離散事象システムを設
計する場合、目標とする生産能力を達成するために必要
な個々の構成機器等の数量、中間バッファの配置やその
容量等を充分検討する必要がある。
2. Description of the Related Art When designing a discrete event system such as a processing machine, an assembly machine, a production system composed of workers and transfer equipment, etc., individual constituent equipment necessary for achieving a target production capacity. It is necessary to fully consider the number of items, the arrangement of intermediate buffers and their capacity.

【0003】このような場合、従来から汎用言語やシミ
ュレーション専用言語を用いてシミュレーションモデル
を作成し、シミュレーションを行って色々な設計案を評
価することが行われてきた。しかし、通常の設計者にと
ってはそれらの言語の利用方法の習得が難しく、使いこ
なせない状況にあった。
In such a case, conventionally, a simulation model is created using a general-purpose language or a simulation-dedicated language, and simulation is performed to evaluate various design plans. However, it was difficult for ordinary designers to learn how to use those languages, and it was difficult to use them.

【0004】この問題を解決するため、最近では特開昭
63−136249号公報,特開昭63−317805
号公報等に開示されているように、ペトリネットのグラ
フ表現を用いて、シミュレーションモデルの作成を視覚
的に容易に行える方法も数多く提案されている。
In order to solve this problem, recently, JP-A-63-136249 and JP-A-63-317805 have been recently used.
As disclosed in Japanese Unexamined Patent Publication No. 2003-242242, many methods have been proposed that can easily create a simulation model visually by using a graph representation of a Petri net.

【0005】ペトリネットグラフは、システム内の要素
を条件と事象に分け、条件をプレース、事象をトランジ
ションというノードで表し、条件と事象の関係をアーク
で結ぶグラフでモデルを表現するものである。そして、
条件の成立をプレースにトークンを配置することにより
表し、このトークンの移動状態に応じてトランジション
を発火させることによりシステムのダイナミクスを検証
するものである。上記プレースは、プレースに入力する
アークのリスト,出力するアークのリスト,プレースに
置かれるトークンの数等のデータからなるプレースデー
タで表現され、トランジションは、同様にトランジショ
ンに入力するアークのリスト,出力するアークのリスト
等のデータからなるトランジションデータで表現され、
また、アークは、始点ノード及び終点ノード等のデータ
からなるアークデータで表現される。
The Petri net graph is a model in which elements in the system are divided into conditions and events, conditions are placed, events are represented by nodes called transitions, and a relationship between conditions and events is represented by an arc. And
The establishment of a condition is represented by placing a token in a place, and the transition is fired according to the moving state of this token to verify the system dynamics. The above place is represented by place data consisting of a list of arcs to be input to the place, a list of arcs to be output, the number of tokens placed in the place, etc. The transition is also a list of arcs to be input to the transition and output It is represented by transition data consisting of data such as a list of arcs
Further, the arc is represented by arc data composed of data such as a start point node and an end point node.

【0006】図10はペトリネットの例であり、全ての
入力プレース51,52にトークンが存在する時、アー
ク55,56で接続されるトランジション54は発火可
能となり(同図(a)参照)、発火終了後、入力プレー
ス51,52からトークンを一個づつ取り去り、アーク
57で接続される出力プレース53にトークンが出力さ
れる様子(同図(b)参照)を表している。このペトリ
ネットのグラフ表現を利用することにより、各種システ
ムのシミュレーションモデルを視覚的に表現でき、複雑
なプログラミングを不要とすることができる。
FIG. 10 shows an example of a Petri net. When tokens are present in all the input places 51 and 52, the transition 54 connected by the arcs 55 and 56 can be fired (see FIG. 10A). After the firing ends, the tokens are removed from the input places 51 and 52 one by one, and the tokens are output to the output place 53 connected by the arc 57 (see FIG. 7B). By using the graph representation of this Petri net, simulation models of various systems can be visually represented and complicated programming can be eliminated.

【0007】[0007]

【発明が解決しようとする課題】特開昭63−3178
05号公報に見られるような従来のペトリネットに基づ
くシミュレーション方法では、トランジションが発火終
了した後すべての出力プレースにトークンが送られてい
た。また、ペトリネットの機能を拡張したものとしてト
ークン及びアークに色を付けて色に応じて処理を切り換
えるようにした色付きペトリネットと呼ばれる拡張ペト
リネットが提案されているが、この色付きペトリネット
においても、トランジションが発火終了した後、指定さ
れた色を持つアークに接続されたすべての出力プレース
にトークンが送られていた。
Problems to be Solved by the Invention JP-A-63-3178
In the conventional Petri net-based simulation method as seen in Japanese Patent Publication No. 05, tokens are sent to all output places after the transition is fired. In addition, an extended Petri net called a colored Petri net is proposed in which the tokens and arcs are colored and the processing is switched according to the color as an extension of the Petri net function. , After the transition finished firing, tokens were being sent to all output places connected to the arc with the specified color.

【0008】このため、トランジションが発火を終了し
た後、すべての出力プレースのうち最も少ないトークン
を保持するプレースを選択してそのプレースだけにトー
クンを送るといった制御を記述することが極めて困難で
あった。なお、このような制御は、以下に述べるような
状況の場合に必要となる。
For this reason, it is extremely difficult to describe the control such that after the transition has finished firing, the place which holds the least number of tokens among all the output places is selected and the tokens are sent only to that place. . It should be noted that such control is necessary in the following situations.

【0009】或る製品を作る過程で、機械Aを用いて処
理1を行い、次に機械Bを用いて処理2を行う場合、処
理1に要する時間t1 に比べて処理2に要する時間t2
が遙かに長い場合、処理2を行う機械Bを追加してt2
/t1 台用意することで製品の流れを円滑にすることが
できる。このとき、機械B群を既存の機械と新たに追加
した機械との間で処理能力に差がある場合がある。この
ような場合、処理Aを終えた製品は、次工程で最も待ち
の少ない機械の所へ送ると空間的にも時間的にも効率的
な処理が行える。このような処理を行う場合には、上記
したような制御が必要となる。
In the process of making a certain product, when the process 1 is performed using the machine A and then the process 2 is performed using the machine B, the time t required for the process 2 is longer than the time t 1 required for the process 1. 2
Is much longer, add machine B for processing 2 and t 2
/ T By preparing 1 unit, the product flow can be made smooth. At this time, there may be a difference in processing capability between the existing machine and the machine to which the machine B group is newly added. In such a case, when the product that has undergone the process A is sent to the machine with the least waiting in the next process, it can be processed efficiently both spatially and temporally. When performing such processing, the control as described above is required.

【0010】仮にこのような制御がうまく表現できた場
合でも、ペトリネット図は作成者のみならず第三者にと
っても極めて分かりにくいものとなっていた。したがっ
て、従来のペトリネットによって複雑な制御を伴う生産
ラインを表現するといった場合には、生産機械の制御論
理をペトリネットで表現するためにかなりの熟練や技巧
を必要としたり、場合によっては表現が不可能であると
いう欠点があった。
Even if such control can be expressed well, the Petri net diagram is extremely difficult for not only the creator but also a third party to understand. Therefore, when expressing a production line with complicated control by a conventional Petri net, it requires considerable skill and skill to express the control logic of the production machine with the Petri net, or in some cases, the expression is It had the drawback of being impossible.

【0011】そこで本発明は、ペトリネットの機能を更
に拡張することにより、従来の基本ペトリネットや拡張
ペトリネットでは表現できない対象や、表現するため複
雑な論理構成を必要とする対象を容易に表現し、かつペ
トリネット図が繁雑となることを回避することを目的と
する。
Therefore, according to the present invention, by further expanding the function of the Petri net, it is possible to easily express an object that cannot be expressed by a conventional basic Petri net or an extended Petri net, or an object that requires a complicated logical structure for expression. In addition, the purpose is to prevent the Petri net diagram from becoming complicated.

【0012】[0012]

【課題を解決するための手段】本発明は、前記目的を達
成するため、ペトリネットを作成する手段と、作成され
たペトリネットを表示する手段と、作成されたペトリネ
ットに基づいてシミュレーションを行う手段とを備えた
ペトリネットに基づくシミュレーション装置において、
ペトリネットの中のトランジションに対してトランジシ
ョンの機能を設定する手段と、前記設定された機能を記
憶する手段と、前記記憶された機能を評価する手段と、
シミュレーション実行に際し、トランジションの発火終
了後、前記評価結果に応じて決定されたプレースのみに
トークンを送り出す手段と、を設けたことを特徴とす
る。
In order to achieve the above-mentioned object, the present invention carries out a simulation based on a means for creating a Petri net, a means for displaying the created Petri net, and the created Petri net. In a simulation device based on Petri net with means,
Means for setting the function of the transition with respect to the transition in the Petri net, means for storing the set function, means for evaluating the stored function,
Upon execution of the simulation, a means for sending out the token only to the place determined according to the evaluation result after the firing of the transition is provided.

【0013】[0013]

【作用】本発明においては、ペトリネットの中のトラン
ジションに対して、ユーザによって発火の後にどのプレ
ースにトークンを送るかが予め設定されている。シミュ
レーション実行の際には、トランジションの発火終了後
は常に出力プレース全てにトークンが送り出されるので
はなく、ユーザによって与えられた順序や規則、関数、
手続きによって決定されたプレースのみにトークンが送
り出される。
In the present invention, the transition in the Petri net is preset by the user to which place the token is to be sent after firing. When running the simulation, after the transition fires, tokens are not always sent to all output places, but rather the order, rules, functions, etc. given by the user.
Tokens are sent out only to the places determined by the procedure.

【0014】[0014]

【実施例】以下、図面を参照しながら実施例に基づいて
本発明の特徴を具体的に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The features of the present invention will be specifically described below based on embodiments with reference to the drawings.

【0015】図1は、本発明の実施例の構成を示すブロ
ック図である。入力部11は、キーボード及びマウスで
構成されており、ペトリネットを構成するプレース,ト
ランジション,アーク等の位置を入力したり、或いは、
シミュレーションの実行を指示したりするために使用さ
れる。処理部12は、入力部11から入力された各種デ
ータを記憶部13に格納するとともに、これらのデータ
に基づいて、プレース生成部14でプレースデータを生
成し、トランジション生成部15でトランジションデー
タを生成し、アーク生成部16でアークデータを生成す
る。更に、処理部12は、これらのデータに基づいてシ
ミュレーションを行う。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. The input unit 11 is composed of a keyboard and a mouse, and inputs the positions of places, transitions, arcs, etc. that make up the Petri net, or
It is used to instruct the execution of simulation. The processing unit 12 stores various data input from the input unit 11 in the storage unit 13, and based on these data, the place generation unit 14 generates the place data and the transition generation unit 15 generates the transition data. Then, the arc generation unit 16 generates arc data. Furthermore, the processing unit 12 performs a simulation based on these data.

【0016】生成されたプレース,トランジション,ア
ーク等のデータは、CRTディスプレイ等からなる表示
部17に供給され、ペトリネット図が表示される。
The generated data of places, transitions, arcs, etc. is supplied to the display unit 17 such as a CRT display and the Petri net diagram is displayed.

【0017】上述したプレースデータ、トランジション
データ及びアークデータのデータ構造の一例を表1、表
2及び表3に示す。なお、トランジションデータの中の
ユーザ記述の意味については後述する。
Tables 1, 2 and 3 show examples of the data structures of the above-mentioned place data, transition data and arc data. The meaning of the user description in the transition data will be described later.

【0018】[0018]

【表1】 [Table 1]

【表2】 [Table 2]

【表3】 図2は、図1に示すペトリネットに基づくシミュレーシ
ョン装置の中の、トランジションデータを処理するため
の部分を模式的に図示したブロック図である。
[Table 3] FIG. 2 is a block diagram schematically showing a portion for processing transition data in the Petri net-based simulation apparatus shown in FIG.

【0019】本発明においては、図2に示すようにトラ
ンジションデータ101をトランジション本体102と
ユーザ記述部分103によって構成する。ペトリネット
処理部104には、シミュレーションモデル作成部10
7やシミュレーション実行部108などの従来の構成に
加えて、新たに評価部105及びデータ設定部106を
設ける。トランジション本体102に対応して、ユーザ
が記述すべき順序、規則、関数または手続きを保持する
ユーザ記述部分103が設けられており、ペトリネット
処理部104により、トランジションの発火が終了する
ときにユーザ記述部分103の情報が評価部105に渡
される。ユーザ記述部分103に順序、規則、関数また
は手続きが記述されていれば、評価部105はその記述
に従ってトークンを送り出すプレースを決定する。トラ
ンジションのユーザ記述部分103へのデータ設定する
操作は、データ設定部106によりダイアログパネルな
どの手段を用いて行われる。なお、トランジションデー
タ101は、図1に示す記憶部13に含まれ、ペトリネ
ット処理部104は処理部12に含まれている。
In the present invention, the transition data 101 is composed of a transition body 102 and a user description portion 103 as shown in FIG. The Petri net processing unit 104 includes a simulation model creation unit 10
In addition to the conventional configuration such as 7 and the simulation execution unit 108, an evaluation unit 105 and a data setting unit 106 are newly provided. Corresponding to the transition body 102, a user description portion 103 that holds the order, rules, functions or procedures to be described by the user is provided, and the petri net processing unit 104 provides the user description when the transition firing ends. Information of the portion 103 is passed to the evaluation unit 105. If the order, rule, function or procedure is described in the user description portion 103, the evaluation unit 105 determines the place to send the token according to the description. The operation of setting data in the user description portion 103 of the transition is performed by the data setting unit 106 using a means such as a dialog panel. The transition data 101 is included in the storage unit 13 shown in FIG. 1, and the Petri net processing unit 104 is included in the processing unit 12.

【0020】次に、上述したペトリネットに基づくシミ
ュレーション装置の動作について説明する。
Next, the operation of the above-mentioned Petri net-based simulation apparatus will be described.

【0021】モデル化する事象に応じて、入力部11か
らプレース,トランジション,アーク等のペトリネット
要素のデータを入力し、シミュレーションモデル作成部
107によりシミュレーションの対象となる事象のペト
リネット図を作成し表示部17に表示させる。
Data of Petri net elements such as places, transitions and arcs are input from the input unit 11 according to the event to be modeled, and the simulation model creating unit 107 creates a Petri net diagram of the event to be simulated. It is displayed on the display unit 17.

【0022】図3は、トランジションでの発火が終了し
て該トランジションの出力プレースにトークンを送り出
すとき、予め与えられた順序に従ってトークンを送り出
す機能を、本発明のトランジションの評価部105に持
たせた場合のペトリネット図である。便宜上このような
予め与えられた順序に従ってトークンを送り出す機能を
有するトランジションを送り先指定トランジションと呼
ぶことにする。
In FIG. 3, when the transition firing ends and the tokens are sent to the output place of the transition, the transition evaluation unit 105 of the present invention has a function of sending the tokens in a predetermined order. It is a Petri net figure in the case. For the sake of convenience, the transition having the function of sending out the tokens in such a predetermined order will be referred to as a destination-specified transition.

【0023】プレース201及びプレース202がそれ
ぞれアーク207及びアーク208によって送り先指定
トランジション203と接続されており、送り先指定ト
ランジション203はアーク209、アーク210及び
アーク211によってプレース204、プレース205
及びプレース206と接続されている。
The place 201 and the place 202 are connected to the destination designated transition 203 by the arc 207 and the arc 208, respectively, and the destination designated transition 203 is made by the arc 209, the arc 210 and the arc 211 to the place 204 and the place 205.
And the place 206.

【0024】上記した送り先指定トランジションにおけ
るトークンを送り出す順序は、たとえば、以下のような
手順(図4参照)で設定される。入力部11に設けられ
たマウスで送り先指定トランジション203を指定し
(ステップ101)、マウスボタンを押すことにより
(ステップ102)、データ設定部106が起動され、
表示部17には、図5に示すような順序指定パネルPが
表示される (ステップ103)。順序指定パネルPに
は、トークンを送り出す順序を設定するための入力枠P
1が設けられている。データ設定部106が初めて起動
されたときには、入力枠P1の送り先の欄は空欄になっ
ている。いま、プレース204が「line1」と名付
けられ、プレース205が「line2」と名付けら
れ、プレース206が「line3」と名付けられてお
り、プレース204,205,206の順にトークンを
送り出したいとする。この場合には、まず、マウスで入
力枠P1の中の発火順序「1」に対応する送り先の欄を
指定して (ステップ104)キーボードから送り先「l
ine1」を入力する (ステップ105)。同様に「l
ine2」,「line3」も発火順序「2」,「3」
に対応する送り先の欄に入力する。全ての送り先が指定
されるまでこの入力操作を繰り返す (ステップ10
6)。設定終了後、設定を取り止めるかどうかの確認が
行われ (ステップ107)、設定を取り止める場合には
そのまま処理が終了し、設定を取り止めない場合には、
入力されたデータはトランジションデータ101のユー
ザ記述部分103に格納され (ステップ108)、その
後、処理を終了する。
The order of sending out the tokens in the above-mentioned destination designated transition is set, for example, by the following procedure (see FIG. 4). The destination designated transition 203 is designated by the mouse provided in the input section 11.
(Step 101), by pressing the mouse button
(Step 102), the data setting unit 106 is activated,
An order designation panel P as shown in FIG. 5 is displayed on the display unit 17 (step 103). In the order designation panel P, an input frame P for setting the order of sending the tokens
1 is provided. When the data setting unit 106 is activated for the first time, the destination field of the input frame P1 is blank. Now, the place 204 is named "line1", the place 205 is named "line2", the place 206 is named "line3", and the tokens are sent in the order of the places 204, 205, and 206. In this case, first, specify the destination field corresponding to the firing order "1" in the input frame P1 with the mouse (step 104) and select the destination "l" from the keyboard.
"ine1" is input (step 105). Similarly, "l
ine2 ”and“ line3 ”are also firing order“ 2 ”,“ 3 ”
Enter in the destination field corresponding to. Repeat this input operation until all destinations are specified (Step 10
6). After the setting is completed, it is confirmed whether or not the setting should be canceled (step 107). If the setting is canceled, the processing is terminated as it is, and if the setting is not canceled,
The input data is stored in the user description portion 103 of the transition data 101 (step 108), and then the process ends.

【0025】シミュレーションを実行する場合には、ユ
ーザが入力部11からシミュレーション開始を指示する
ことによりシミュレーション実行部108が起動され、
先に作成されたペトリネット図に基づいて、発火条件を
満足するトランジションが順次発火していく。
When executing the simulation, the user instructs the simulation start from the input unit 11 to activate the simulation executing unit 108,
Based on the Petri net diagram created earlier, transitions that satisfy the firing conditions are fired in sequence.

【0026】トランジションでの発火の際には、ペトリ
ネット処理部104の評価部でトランジションデータ1
01のユーザ記述部分103を評価し、その評価結果に
基づいた順序で発火毎にトランジションから各プレース
にトークンを送り出す。
When a transition is fired, the transition data 1 is calculated by the evaluation unit of the Petri net processing unit 104.
The user description part 103 of 01 is evaluated, and the tokens are sent from the transition to each place at each firing in the order based on the evaluation result.

【0027】上述の例では、送り先指定トランジション
203にプレース204、プレース205、プレース2
06の順にトークンを送るような指定がなされているの
で、送り先指定トランジション203は、最初の発火終
了時にはプレース204にのみ、次の発火終了時にはプ
レース205にのみ、そして次の発火終了時にはプレー
ス206にのみトークンを送り出す。
In the above example, the place 204, the place 205, and the place 2 are set in the destination designated transition 203.
Since the tokens are designated to be sent in the order of 06, the destination designated transition 203 is only in the place 204 at the end of the first firing, only in the place 205 at the end of the next firing, and in the place 206 at the end of the next firing. Only send out tokens.

【0028】図6は、上述したシミュレーション実行時
の評価部の動作を説明するためのフローチャートであ
る。同図(a)は概略フローチャートを示し、同図
(b)は送り先指定処理のフローチャートを示してい
る。
FIG. 6 is a flow chart for explaining the operation of the evaluation section at the time of executing the above-mentioned simulation. The figure (a) shows the schematic flow chart, and the figure (b) shows the flow chart of the destination designation processing.

【0029】送り先指定トランジションは、トークンを
送る順序データの他に、ユーザ記述のローカル変数とし
て「次の送り先プレース」を持っている。この変数に
は、次の発火終了時にトークンを送るプレースのポイン
タがセットされる。なお、データ設定直後には、nil
データがセットされている。
The destination designation transition has a "next destination place" as a local variable described by the user, in addition to the order data for sending the tokens. This variable is set to the pointer of the place to send the token at the end of the next firing. Immediately after setting the data, nil
The data is set.

【0030】シミュレーションが開始されると、発火処
理 (ステップ151)、発火終了処理 (ステップ15
2)の後に送り先指定処理 (ステップ153)が行われ
る。
When the simulation is started, the ignition process (step 151) and the ignition end process (step 15)
After step 2), destination designation processing (step 153) is performed.

【0031】送り先指定処理では、ユーザ記述データを
読み出し (ステップ154)、そのユーザ記述データに
次の送り先プレースが指定されているか否かを調べ (ス
テップ155)、指定されている場合には、ユーザ記述
データに記述されている次の送り先プレースにトークン
を送る (ステップ157)。また、指定されていない場
合には、ユーザ記述データで指定されている最初のプレ
ースを次の送り先プレースとした (ステップ156)後
に、ステップ157に進む。次に、次の送り先プレース
をセットして (ステップ158)処理を終わる。
In the destination designation process, the user description data is read (step 154), and it is checked whether or not the next destination place is designated in the user description data (step 155). The token is sent to the next destination place described in the description data (step 157). If not specified, the first place specified by the user description data is set as the next destination place (step 156), and the process proceeds to step 157. Next, the next destination place is set (step 158), and the process ends.

【0032】これにより、同じトランジションから発火
毎に異なったプレースにトークンを送り出すことが可能
となり、少ないペトリネット要素で複雑な工程を表現す
ることができる。
As a result, tokens can be sent from the same transition to different places at each firing, and a complicated process can be expressed with a small number of Petri net elements.

【0033】図7は、発火が終了して該トランジション
の出力プレースにトークンを送り出すとき、それらのプ
レースの状態によってトークンを送り出すプレースを決
定する機能を本発明のトランジションの評価部に持たせ
た場合のペトリネット図である。便宜上、このようなプ
レースの状態によってトークンを送り出すプレースを決
定する機能を有するトランジションを送り先評価トラン
ジションと呼ぶことにする。
FIG. 7 shows a case in which the transition evaluation unit of the present invention has a function of determining the place to which the token is to be sent depending on the state of the place when the token is sent to the output place of the transition after the firing is completed. It is a Petri net diagram of. For the sake of convenience, the transition having the function of determining the place to which the token is to be sent according to the state of such a place will be referred to as a destination evaluation transition.

【0034】この送り先評価トランジションを使用した
場合のペトリネット図の構成は、図3と同じであるが、
送り先指定トランジション203が送り先評価トランジ
ション403に変更されている。
The structure of the Petri net diagram when this destination evaluation transition is used is the same as that of FIG.
The destination designated transition 203 is changed to a destination evaluation transition 403.

【0035】上記した送り先評価トランジションにおけ
るトークンを送り出すための評価方法は、たとえば、以
下のような手順(図8参照)で設定される。入力部11
に設けられたマウスで送り先評価トランジション403
を指定し (ステップ201)、マウスボタンを押すこと
により (ステップ202)、データ設定部106が起動
され、表示部17には、図9に示すような評価方法設定
パネルQが表示される(ステップ203)。評価方法設
定パネルQには、評価方法を選択するための「最小値を
選ぶ」,「最大値を選ぶ」,「ランダムに選ぶ」,「ユ
ーザ記述」等の幾つかの選択枠Q1〜Q4が設けられて
いる。
The evaluation method for sending out the token in the above-mentioned destination evaluation transition is set by the following procedure (see FIG. 8), for example. Input unit 11
Destination transition transition 403 with the mouse provided in
Is designated (step 201) and the mouse button is pressed (step 202), the data setting unit 106 is activated, and the evaluation method setting panel Q as shown in FIG. 9 is displayed on the display unit 17 (step 203). On the evaluation method setting panel Q, there are several selection frames Q1 to Q4 for selecting an evaluation method, such as “select minimum value”, “select maximum value”, “randomly select”, and “user description”. It is provided.

【0036】これらの選択枠のうち、「最小値を選
ぶ」,「最大値を選ぶ」,「ランダムに選ぶ」は、予め
用意された評価関数であり、マウスによりこれらの評価
関数の中のいずれかが選択された場合には (ステップ2
04)、その評価関数に対応したデータがユーザ記述部
分103に格納される (ステップ205〜208)。
「最小値を選ぶ」とは、出力プレースのうちトークン量
の最小のプレースにのみトークンを送るという設定を行
うことである。「最大値を選ぶ」,「ランダムに選ぶ」
も同様である。
Among these selection frames, “select minimum value”, “select maximum value”, and “randomly select” are evaluation functions prepared in advance, and any of these evaluation functions can be selected by the mouse. If is selected (Step 2
04), the data corresponding to the evaluation function is stored in the user description portion 103 (steps 205 to 208).
“Choose the minimum value” is to set the token to be sent only to the place having the smallest token amount among the output places. "Choose maximum value", "Choose randomly"
Is also the same.

【0037】また、「ユーザ記述」が選択された場合に
は、ユーザ記述枠Q5に入力が可能となり、キーボード
からユーザ記述枠Q5内にユーザが希望する条件式が所
定の簡易言語で入力される。たとえば、「line1」
のトークン量と「line2」のトークン量の和が「l
ine3」のトークン量よりも少ないときのみ「lin
e3」へトークンを送る場合には、IF((line1
+line2)<line3)THEN(line2)
という式がユーザ記述として入力され (ステップ20
7)、ユーザ記述部分103に書き込まれる。
When "user description" is selected, it becomes possible to input in the user description frame Q5, and the conditional expression desired by the user is input in a predetermined simple language from the keyboard into the user description frame Q5. . For example, "line1"
Sum of the token amount of "line2" and the token amount of "line2"
Only when it is less than the token amount of "ine3"
When sending a token to "e3", IF ((line1
+ Line2) <line3) THEN (line2)
Is entered as a user description (step 20
7), written in the user description portion 103.

【0038】シミュレーションを実行する場合には、ユ
ーザが入力部11からシミュレーション開始を指示する
ことによりシミュレーション実行部108が起動され、
先に作成されたペトリネット図に基づいて、発火条件を
満足するトランジションが順次発火していく。
When executing the simulation, the user instructs the start of the simulation from the input unit 11 to activate the simulation executing unit 108,
Based on the Petri net diagram created earlier, transitions that satisfy the firing conditions are fired in sequence.

【0039】トランジションでの発火の際には、ペトリ
ネット処理部104の評価部でトランジションデータ1
01のユーザ記述部分103を評価し、その評価結果に
基づいたプレースの状態によってトークンを送り出すプ
レースを決定する。
When the transition is fired, the transition data 1 is calculated by the evaluation unit of the Petri net processing unit 104.
The user description portion 103 of 01 is evaluated, and the place to which the token is sent is determined according to the state of the place based on the evaluation result.

【0040】いま、送り先評価トランジション403
に、出力プレースのうちトークン量の最小のプレースに
のみトークンを送るという設定がなされているとする
と、図7の状態では送り先評価トランジション403は
発火終了後、トークン量が最小のすなわち「2」のプレ
ース204にのみトークンを送り出す。プレース204
のトークン量が「4」になると、トークン量が同じ場合
にはトークンの送り先がランダムに選択されるようにな
っているため、次の発火終了時には、これと同じトーク
ン量を持つプレースの何れか一つがランダムに選択さ
れ、そのプレースにトークンが送られる。
Now, the destination evaluation transition 403
In the state of FIG. 7, the destination evaluation transition 403 shows that the token amount is minimum, that is, “2”, after the firing in the state of FIG. Send tokens only to place 204. Place 204
When the token amount becomes 4, the token destination is randomly selected if the token amount is the same, so at the end of the next firing, one of the places with the same token amount One is randomly selected and the token is sent to that place.

【0041】なお、上述の説明においては、送り先指定
トランジションと送り先評価トランジションを別の実施
例としたが、装置の立ち上がりのメニューで送り先指定
トランジションと送り先評価トランジションのどちらを
選択するかを指定できるようにしてもよい。また、トラ
ンジションを指定したのちに種類を指定するようにして
もよい。
In the above description, the destination designation transition and the destination evaluation transition are different embodiments, but it is possible to designate which one of the destination designation transition and the destination evaluation transition is selected in the menu at the start of the apparatus. You may Further, the type may be designated after the transition is designated.

【0042】また、上述の実施例においては、トークン
やアークに色がついていないものとして説明したが、出
力されるトークンと同じ色を指定されたアークによって
接続されている出力プレースすべてにトークンを送り出
すようにした色付きペトリネットに対しても本発明を適
用することができる。
In the above embodiment, the tokens and arcs are not colored, but the same color as the token to be output is sent to all output places connected by the specified arc. The present invention can also be applied to such a colored Petri net.

【0043】また、上記実施例では、トランジションご
とに評価部の設定を行っているが、あらかじめ送り先指
定トランジションや送り先評価トランジションなどとい
ったものを定義しておき、あとはいくつかのパラメータ
を設定するだけで特別な機能を持ったトランジションと
して利用することができる。
In the above embodiment, the evaluation section is set for each transition. However, a destination designation transition, a destination evaluation transition, etc. are defined in advance, and then only some parameters are set. Can be used as a transition with a special function.

【0044】[0044]

【発明の効果】以上に述べたように、本発明において
は、トランジションに順序や規則、関数、手続きを設定
できるようにしている。したがって、トランジションが
発火終了したあと、トークンはすべての出力プレースに
送り出されるとは限らず、トランジションの処理部に設
定された順序や規則、関数、手続きによって決定される
ので、下記の効果を奏することができる。
As described above, according to the present invention, it is possible to set the order, rules, functions and procedures in the transition. Therefore, after the transition is fired, tokens are not always sent to all output places, and are determined by the order, rules, functions, and procedures set in the transition processing part. You can

【0045】(1) 基本ペトリネットや従来の拡張ペ
トリネットだけでは表現できない処理を記述できる。
(1) It is possible to describe a process that cannot be expressed only by a basic Petri net or a conventional extended Petri net.

【0046】(2) 複雑な論理構成を容易に表現する
ことが可能となる。
(2) It is possible to easily express a complicated logical structure.

【0047】(3) ペトリネット図の規模を小さくで
きる。
(3) The scale of the Petri net diagram can be reduced.

【0048】(4) シミュレーションモデルを迅速に
作成することが可能となる。
(4) It is possible to quickly create a simulation model.

【0049】(5) ペトリネット図が繁雑となること
を回避できる。
(5) The Petri net diagram can be prevented from becoming complicated.

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

【図1】 本発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【図2】 図1に示すペトリネットに基づくシミュレー
ション装置の中の、トランジションデータを処理するた
めの部分を模式的に図示したブロック図である。
2 is a block diagram schematically showing a portion for processing transition data in the simulation device based on the Petri net shown in FIG. 1. FIG.

【図3】 送り先指定トランジションを使用したペトリ
ネット図の例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of a Petri net diagram using a destination-specified transition.

【図4】 送り先指定トランジションを使用した場合の
設定処理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing a flow of setting processing when a destination designated transition is used.

【図5】 送り先指定トランジションの設定を行う場合
に使用される順序指定パネルの一例を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing an example of an order designation panel used when setting a destination designation transition.

【図6】 シミュレーション実行時の評価部の動作を説
明するためのフローチャートである。
FIG. 6 is a flowchart for explaining the operation of the evaluation unit when executing a simulation.

【図7】 送り先評価トランジションを使用したペトリ
ネット図の例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a Petri net diagram using a destination evaluation transition.

【図8】 送り先評価トランジションを使用した場合の
設定処理の流れを示すフローチャートである。
FIG. 8 is a flowchart showing a flow of a setting process when a destination evaluation transition is used.

【図9】 送り先評価トランジションの設定を行う場合
に使用される評価方法設定パネルの一例を示す説明図で
ある。
FIG. 9 is an explanatory diagram showing an example of an evaluation method setting panel used when setting a destination evaluation transition.

【図10】 ペトリネットの原理を示す説明図である。FIG. 10 is an explanatory diagram showing the principle of a Petri net.

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

11:入力部、12:処理部、13:記憶部、14:プ
レース生成部、15:トランジション生成部、16:ア
ーク生成部、17:表示部、101:トランジションデ
ータ、102:トランジション本体、103:ユーザ記
述部分、104:ペトリネット処理部、105:評価
部、106:データ設定部、107:シミュレーション
モデル作成部、108:シミュレーション実行部、20
1,202,204〜206:プレース、203,40
3:トランジション、207〜211:アーク
11: input unit, 12: processing unit, 13: storage unit, 14: place generation unit, 15: transition generation unit, 16: arc generation unit, 17: display unit, 101: transition data, 102: transition body, 103: User description part, 104: Petri net processing part, 105: evaluation part, 106: data setting part, 107: simulation model creation part, 108: simulation execution part, 20
1,202,204-206: Place, 203,40
3: transition, 207 to 211: arc

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ペトリネットを作成する手段と、作成さ
れたペトリネットを表示する手段と、作成されたペトリ
ネットに基づいてシミュレーションを行う手段とを備え
たペトリネットに基づくシミュレーション装置におい
て、 ペトリネットの中のトランジションに対してトランジシ
ョンの機能を設定する手段と、 前記設定された機能を記憶する手段と、 前記記憶された機能を評価する手段と、 シミュレーション実行に際し、トランジションの発火終
了後、前記評価結果に応じて決定されたプレースのみに
トークンを送り出す手段と、 を設けたことを特徴とするペトリネットに基づくシミュ
レーション装置。
1. A Petri net-based simulation apparatus comprising: a unit for creating a Petri net; a unit for displaying the created Petri net; and a unit for performing a simulation based on the created Petri net. Means for setting a transition function for the transition in, a means for storing the set function, a means for evaluating the stored function, and the evaluation after the completion of firing of the transition during simulation execution. A simulation device based on a Petri net, characterized in that: means for sending a token only to a place determined according to the result, and.
【請求項2】 前記トランジションの機能を設定する手
段は、トランジションの発火毎のトークンを送り出す順
序を指定するものである請求項1記載のペトリネットに
基づくシミュレーション装置。
2. The petri net-based simulation apparatus according to claim 1, wherein the means for setting the transition function specifies an order of sending out tokens each time the transition is fired.
【請求項3】 前記トランジションの機能を設定する手
段は、トークンが送られるべき複数のプレースのトーク
ン量に応じて次にどのプレースにトークンを送るべきか
を設定するものである請求項1記載のペトリネットに基
づくシミュレーション装置。
3. The means for setting the function of the transition sets the place to which the token should be sent next according to the token amount of a plurality of places to which the token should be sent. Simulation device based on Petri net.
JP33065892A 1992-12-10 1992-12-10 Simulation device based upon petri net Pending JPH06176003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33065892A JPH06176003A (en) 1992-12-10 1992-12-10 Simulation device based upon petri net

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33065892A JPH06176003A (en) 1992-12-10 1992-12-10 Simulation device based upon petri net

Publications (1)

Publication Number Publication Date
JPH06176003A true JPH06176003A (en) 1994-06-24

Family

ID=18235138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33065892A Pending JPH06176003A (en) 1992-12-10 1992-12-10 Simulation device based upon petri net

Country Status (1)

Country Link
JP (1) JPH06176003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100426088B1 (en) * 2002-01-31 2004-04-06 삼성전자주식회사 Self organizing learning petri nets

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100426088B1 (en) * 2002-01-31 2004-04-06 삼성전자주식회사 Self organizing learning petri nets

Similar Documents

Publication Publication Date Title
US5721959A (en) Information processing apparatus for pattern editing using logic relationship representative patterns
US5130932A (en) Generating device for production system simulator
JPH0991338A (en) Parameter input method for verification of logical design
JPH05233590A (en) Production system simulator device using petri net
JP3409269B2 (en) Program creation device
EP0477760A1 (en) Programming method and apparatus for programmable controller
JPH06176003A (en) Simulation device based upon petri net
JP2608085B2 (en) Production planning simulation device
JPH025102A (en) Input system for pc rudder graphic
JP2765691B2 (en) Simulation method
JP2002169843A (en) Design support system
JP2875135B2 (en) Program device for programmable controller
JP3114875B2 (en) Layout design method
JPH02162463A (en) Back-up device for production of process network
JPH06149774A (en) Simulation device based upon petri net
JP3102222B2 (en) Knowledge acquisition method and its implementation device
JPH06149773A (en) Simulation device based upon petri net
JPH07200530A (en) Simulation method
JP3283055B2 (en) Program editing device
JPH10334075A (en) Simulator based on extension petri net
JPH03204722A (en) Specification review supporting method
JPH06149776A (en) Simulation device based upon petri net
JPH06124288A (en) Simulation device based on petrinet
JP2001034791A (en) Mesh preparation system for analytic model
JPH06149775A (en) Simulation device based upon petri net