JPS6324443A - Event scheduling system - Google Patents

Event scheduling system

Info

Publication number
JPS6324443A
JPS6324443A JP61169130A JP16913086A JPS6324443A JP S6324443 A JPS6324443 A JP S6324443A JP 61169130 A JP61169130 A JP 61169130A JP 16913086 A JP16913086 A JP 16913086A JP S6324443 A JPS6324443 A JP S6324443A
Authority
JP
Japan
Prior art keywords
time
event
events
variable
value
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
JP61169130A
Other languages
Japanese (ja)
Inventor
Masahiro Tomono
正裕 友納
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 JP61169130A priority Critical patent/JPS6324443A/en
Publication of JPS6324443A publication Critical patent/JPS6324443A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To flexibly set and execute various time relations between events by setting a relational expression between the start time and the completion time of the respective events. CONSTITUTION:A time parameter consisting of a start time variable and a completion time variable and a completion flag are set with respect to the respective events, the time relation with the respective events is represented by the network of the time parameter and the relational expression between the time parameters of the contacts of both the ends is attached to the branch of the network. At a certain time, whether the respective events are executed or not is decided according to the comparison of the value of the time parameter and the time or to the completion flag. At the time of the start or the completion of the certain event, the network of the time parameter is successively traced and the value of the time parameter of other event related to the event is decided according to the relational expression, thereby, the synchronization of the respective events is taken.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、計X機上の任意の事象、たとえば、計算機シ
ミュレーションにおける事象や計算機アニメーションに
おける動作のスケジューリング方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a scheduling method for arbitrary events on a total of X machines, such as events in computer simulations and operations in computer animations.

(従来の技術) ここで呼ぶ事象とは計算機上の任意の事象であるが、と
くに計算機シミュレーションにおいである時刻に発生す
る出来事や物体の動作などが考えられる。
(Prior Art) The event referred to here is any event on a computer, and in particular, it can be an event that occurs at a certain time in a computer simulation, or the movement of an object.

事象はある時刻(開始時刻)に始まり、ある時刻(終了
時刻)に終了するとし、複数の事象間の時間関係をそれ
らの開始時刻と終了時刻の順次関係により設定していた
。事象がある時刻t1に開始される場合は、諸事像の開
始時刻をtlに設定すればよい。また、事象Aが事象B
の開始より後に開始される場合は、事象Aの開始時刻を
事象Bの開始時刻より後の値に設定すればよい。また、
各事象間の開始時刻または終了時刻の定性的な大小関係
を設定することにより、ある事象の開始時刻を明確に設
定しなくても、他の事象との時間関係がちその事象の開
始時刻を決定することも可能であった。
It is assumed that an event starts at a certain time (start time) and ends at a certain time (end time), and the time relationship between multiple events is set by the sequential relationship between their start time and end time. If an event starts at a certain time t1, the start time of the event may be set to tl. Also, event A is event B
If the start time of event A is started later than the start time of event B, the start time of event A may be set to a value later than the start time of event B. Also,
By setting a qualitative magnitude relationship between the start time or end time of each event, the start time of an event can be determined based on the time relationship with other events, without having to clearly set the start time of an event. It was also possible to do so.

たとえば、事象eventが時刻timeに実行開始に
なることを述語holdを用いて次のように設定し、h
old(event、 time) さらに事象間の時間関係を表す述語を設け、それにより
スケジュールを設定していた。たとえば、事象Aが事象
Bの前に発生することを述語beforeを用いて次の
ように表現した。
For example, use the predicate hold to set the event event to start executing at time time, and set h
old(event, time) Furthermore, a predicate was provided to express the time relationship between events, and a schedule was set using this predicate. For example, the fact that event A occurs before event B is expressed as follows using the predicate before.

before(A、 B) 詳細は、文献溝口他、[時間情報を含んだ行動計画シス
テムの試作j(情報処理学会第32回(昭和61年前期
)全国大会予稿集pp、1559−1560)参照。
before (A, B) For details, see Mizoguchi et al., [Prototype of an action planning system including time information J (Information Processing Society of Japan 32nd (first half of 1985) National Conference Proceedings pp, 1559-1560).

(発明が解決しようとする問題点) しかし、上記の方法ではある事象Aと別の事象Bの同時
性や順序などの定性的な時間関係は記述できたが、たと
えば、事象Aが事象Bの開始後4秒後に開始するなどの
ように、時間関係に定量値を含むことができなかった。
(Problem to be solved by the invention) However, although the above method was able to describe qualitative temporal relationships such as the simultaneity and order of an event A and another event B, for example, It was not possible to include a quantitative value in the time relationship, such as starting 4 seconds after the start.

また、時間関係はあらがしめ用意された述語を用いて記
述され、使用者が種々の時間関係を自由に設定できなか
った。
Furthermore, the time relationships are described using predicates that have been preliminarily prepared, and the user cannot freely set various time relationships.

本発明の目的は、以上の問題点を解決するために、各事
象の開始時刻および終了時刻の間に関係式を設定し、そ
の関係式によって各事象の時間関係を定性的だけでなく
定量的にも設定することができ、しかも種々の関係式を
もちいることにより、事象間の様々な時間関係を柔軟に
設定し、実行することができる事象スケジューリング方
式を提供することを目的とする。
It is an object of the present invention, in order to solve the above problems, to set a relational expression between the start time and end time of each event, and to use the relational expression to determine the time relationship between each event not only qualitatively but also quantitatively. It is an object of the present invention to provide an event scheduling method that can flexibly set and execute various time relationships between events by using various relational expressions.

(間紐点を解決するため手段) 本発明の事象のスケジューリング方式は、上記各事象に
対してそれぞれ開始時刻変数、終了時刻変数からなる時
間パラメータ、および、終了フラグを設定し、上記各事
象との時間関係を上記時間パラメータのネットワークで
表現し、上記ネットワークの枝に上記の枝の両端の接点
となる時間パラメータ間の関係式を付属させ、ある時刻
での上記各事象の発生の有無を上記パラメータの値と上
記時刻との比較によるが、または、上記終了フラグによ
り決定し、ある事象の開始または終了の時刻において上
記ネットワークを次々にたどりながら、上記事象と関係
のある他の事象の時間パラメータの値を上記関係式によ
って決定していくことにより、上記各事象の同期をとる
ことを特徴とする。
(Means for resolving interlocking points) The event scheduling method of the present invention sets a time parameter consisting of a start time variable and an end time variable, and an end flag for each of the above events, and Express the time relationship of the above as a network of the above time parameters, attach relational expressions between the time parameters that are the contact points of both ends of the above branches to the branches of the above network, and express the presence or absence of each of the above events at a certain time as the above. time parameters of other events related to said event, by comparing the value of the parameter with said time, or as determined by said end flag, traversing said network one after another at the start or end time of an event; The present invention is characterized in that the above-mentioned events are synchronized by determining the value of according to the above-mentioned relational expression.

(作用) 本発明においては、上記各事象に対してそれぞれ開始時
刻変数、終了時刻変数からなる時間パラメータおよび、
終了フラグを設定し、上記各事象との時間関係を上記時
間パラメータのネットワークで表現し、上記ネットワー
クの枝に上記技の両端の接点となる時間パラメータ間の
関係式を付属させている。ある時刻おいて上記各事象が
実行させるかどうかを上記時間パラメータの値と上記時
刻との比較によるか、または、上記終了フラグにより決
定する。開始時刻変数の値がその時の時刻以上であれば
実行し、終了時刻変数の値がその時の時刻より小さいか
、終了フラグが活性化されていれば実行終了である。あ
る事象の開始または終了の時刻において上記時間関係の
ネットワークを次々にたどりながら、上記事象と関係の
ある他の事象の時間パラメータの値を上記関係式によっ
て決定していくことにより、上記各事象の同期をとるこ
とができる。
(Operation) In the present invention, for each of the above events, a time parameter consisting of a start time variable and an end time variable, and
An end flag is set, the time relationship with each of the above events is expressed by a network of the time parameters, and the branches of the network are attached with relational expressions between the time parameters that are the contact points at both ends of the technique. Whether each of the above events is executed at a certain time is determined by comparing the value of the time parameter with the time, or by using the end flag. If the value of the start time variable is greater than or equal to the current time, execution is executed, and if the value of the end time variable is smaller than the current time or the end flag is activated, execution is completed. At the start or end time of a certain event, the time-related network described above is followed one after another, and the values of the time parameters of other events related to the above event are determined by the above relational expression, thereby determining the value of each of the above events. Can be synchronized.

(実施例) 以下、図面により本発明の一実施例を詳細に説明する。(Example) Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第2図は、事象の発生の時間関係の一例を示す概念図で
ある。時間軸上に各事象の開始時刻、終了時刻が示され
ている。この図では、事象Aが時刻L1に開始し、時刻
L2に終了する。事象Bは時刻t2に開始し、時刻t4
に終了する。事象Cは時刻t3に開始し、時刻L5に終
了する。事象りは時刻t4に開始し、時刻t6に終了す
る。ここで、各時刻tl、・・・、t6は値が未定の場
合もありうる。したがって、たとえば時刻t2を未定と
すれば、第2図は事象Aが終了すると同時に事象Bが開
始するという定性的性質を表現していることになる。同
様に、t2 = t3とすれば、事象Bと事象Cが同時
刻t2に開始するということを表現している(t2.t
3が未定ならば、[同時jという定性的時間関係だけを
表現している。)。
FIG. 2 is a conceptual diagram showing an example of the time relationship of occurrence of events. The start time and end time of each event are shown on the time axis. In this figure, event A starts at time L1 and ends at time L2. Event B starts at time t2 and ends at time t4.
ends at Event C starts at time t3 and ends at time L5. The event begins at time t4 and ends at time t6. Here, each time tl, . . . , t6 may have an undetermined value. Therefore, for example, if time t2 is undetermined, then FIG. 2 expresses the qualitative property that event B starts at the same time as event A ends. Similarly, if t2 = t3, it means that event B and event C start at the same time t2 (t2.t
If 3 is undetermined, [it expresses only the qualitative temporal relationship of simultaneous j. ).

第3図は、事象の内容を表すための説明図である。事象
の内容は、名前、事象の実行内容を表す実行本体、開始
時刻変数名、終了時刻変数名、終了フラグ、よりなる。
FIG. 3 is an explanatory diagram for representing the contents of the event. The content of the event consists of a name, an execution body representing the execution content of the event, a start time variable name, an end time variable name, and an end flag.

事象の名前は他の堪象と区別できる一意なものであれば
何でもよい。実行本体には、諸事象が実行すべき内容が
格納される。
The name of the event can be any unique name that can be distinguished from other experiences. The execution body stores the contents to be executed by various events.

第3図では、例としてhellowという文字を印刷す
る実行内容が格納されている。開始時刻変数名は開始時
刻を格納するための記憶領域へのポインタで、開始時刻
変数の値は使用者が直接与えるか、後述する時間同期機
構により決定する。終了時刻変数名は終了時刻を格納す
るための記憶領域へのポインタである。終了時刻変数の
値は開始時刻変数と同様の方法で決定する。この両変数
をまとめて時間パラメータと呼ぶが、この時間パラメー
タにより事象のスケジュールが設定されることになる。
In FIG. 3, as an example, execution contents for printing the character "hello" are stored. The start time variable name is a pointer to a storage area for storing the start time, and the value of the start time variable is either directly given by the user or determined by a time synchronization mechanism described later. The end time variable name is a pointer to a storage area for storing the end time. The value of the end time variable is determined in the same way as the start time variable. These two variables are collectively referred to as the time parameter, and the event schedule is set by this time parameter.

ただし、時間パラメータはあらかじめ値が確定している
とは限らず、他の事象との時間関係から動的に決定する
ことがある。その詳細は後述する。終了フラグは諸事象
が実行中にその目的を果たしたことを示すものである。
However, the value of the time parameter is not necessarily determined in advance, and may be dynamically determined based on the time relationship with other events. The details will be described later. Finish flags indicate that events have fulfilled their purpose during execution.

終了フラグは、実行本体の処理が終了したときに諸事象
自身によって活性化される。終了フラグが活性化される
と諸事象は終了され、その終了時刻変数にそのときの時
刻が格納される。
The end flag is activated by the events themselves when the processing of the execution body ends. When the end flag is activated, the events are ended, and the time at that time is stored in the end time variable.

事象はその状態から待機事象と実行事象に分類される。Events are classified into standby events and execution events based on their status.

待機事象は着目する時刻Tにおいてまだ発生せず、開始
待ちの状態にあるものをいう。実行事象は時刻Tにおい
てすでに実行中であるものをいう。待機事象は待機事象
リストに、実行事象は実行事象リストに登録されている
。スケジューリングの初期状態(時刻0または任意の基
準時刻)においては、すべての事象は先ず待機事象リス
トに登録されている。   ゛ また、実際に計算機などの装置によって、第2図のよう
な時間関係にしたがって事象を発生させる場合、時間軸
は離散的となり、ある単位時間ごとに時刻をカウントす
ることになる。
A standby event is one that has not yet occurred at the time T of interest and is in a state of waiting to start. An execution event is one that is already being executed at time T. Waiting events are registered in the waiting event list, and execution events are registered in the execution event list. In the initial state of scheduling (time 0 or any reference time), all events are first registered in the waiting event list. Furthermore, when an event is actually caused by a device such as a computer according to the time relationship shown in FIG. 2, the time axis becomes discrete, and the time is counted in units of time.

第1図は、本発明の一実施例としての事象スケ−シュリ
ング方法の全体を示すブロック図である。事象の内容を
格納および参照するための事象格納手段1、着目してい
る事象がある時刻において実行されるかまたは終了する
がどうかを判定するための事象実行判定手段2、事象間
の実行時間の同期をとるための時間同期手段3、事象の
実行本体を実行するための事象実行手段4、時刻を与え
るためのクロック生成手段5が設けられている。事象格
納手段1に事象の内容を入力するための接続IA6、事
象格納手段1に格納されている事象の内容を事象実行判
定手段2に伝えるための接続線7、事象実行判定手段2
で生成された事象の実行が待機かの状態遷移情報を事象
格納手段1に伝えるための接続線8、事象実行判定手段
2での時間パラメータ(開始時刻変数と終了時刻変数)
の値およびそのときの時刻からなる時間同期情報を時間
同期手段3に伝えるための接続線9、時間同期手段3で
決定した時間パラ)−タ値ヲ事象格納手段1に伝えるた
めの接続線1o、事象実行判定手段2で判断された事象
を実行するがどうかの情報およびその時の時刻を事象実
行手段4に伝えるための接続線11、事象実行手段4の
実行結果τ出力するための接続線12、クロック生成手
段5で生成すれた時刻を事象実行判定手段2に伝乏るた
めノ[親線13が設けられている。
FIG. 1 is a block diagram showing the entire event scaling method as an embodiment of the present invention. Event storage means 1 for storing and referencing the contents of events; event execution determination means 2 for determining whether the event of interest will be executed or terminated at a certain time; A time synchronization means 3 for synchronization, an event execution means 4 for executing the event execution body, and a clock generation means 5 for providing time are provided. A connection IA 6 for inputting the contents of an event to the event storage means 1, a connection line 7 for transmitting the contents of the event stored in the event storage means 1 to the event execution determination means 2, and an event execution determination means 2.
A connection line 8 for transmitting state transition information indicating whether execution of the event generated in is on standby to the event storage means 1, and time parameters (start time variable and end time variable) in the event execution determination means 2.
A connection line 9 for transmitting time synchronization information consisting of the value and the current time to the time synchronization means 3, and a connection line 1o for transmitting the time parameter value determined by the time synchronization means 3 to the event storage means 1. , a connection line 11 for transmitting information on whether or not to execute the event determined by the event execution determination means 2 and the time at that time to the event execution means 4, and a connection line 12 for outputting the execution result τ of the event execution means 4. A master line 13 is provided to transmit the time generated by the clock generation means 5 to the event execution determination means 2.

第3図で表される事象の内容は、第1図の事象格納手段
lに格納される。格納の際、その事象名とその事象の内
容が格納されている記憶領域の番地の対をまとめて事象
参照用のテーブルを生成する。
The contents of the event shown in FIG. 3 are stored in the event storage means l shown in FIG. When storing, a table for event reference is generated by combining the event name and the address of the storage area where the event content is stored.

第4図は、事象スケ−シュリングの手順を示すための流
れ図であり、第1図の事象実行判定手段2、時間同期手
段3、事象実行手段4における処理を示している。ある
時刻Tにおける、ある1つの事象Xのスケ−シュリング
方法を例として以下に説明する。ステップ101におい
て、事象Xの時間パラメータの値と時刻Tより、事象X
が時刻Tで実行されるかどうかを判定する。もし、時刻
Tでちょうど事象Xが開始される場合は、事象Xの開始
時刻変数と時刻Tをもとに他の事象との同期をとる。詳
細は後述する。ステップ10゛lて゛実行すると判定さ
れた場合、ステップ102により実行のためのステップ
103に処理が進められ、事象Xの実行本体が実行され
、その後ステップ104において事象Xが時刻Tで終了
するがどうかを判定する。ステップ101で実行しない
と判定された場合は、ステップ102により直接ステッ
プ104に処理が進められ、事象Xが時刻Tで終了する
かどうかを判定する。ステップ104で終了すると判定
された場合は、事象Xの終了時刻変数と時刻Tをもとに
他の事象との同期をとる。詳細は後述する。
FIG. 4 is a flowchart showing the procedure of event scaling, and shows the processing in the event execution determination means 2, time synchronization means 3, and event execution means 4 of FIG. A scaling method for a certain event X at a certain time T will be described below as an example. In step 101, from the value of the time parameter of the event X and the time T, the event
is executed at time T. If event X starts exactly at time T, synchronization with other events is performed based on the start time variable of event X and time T. Details will be described later. If it is determined that step 10 is to be executed, step 102 advances the process to step 103 for execution, the execution body of event X is executed, and then in step 104 event X ends at time T. Determine. If it is determined in step 101 not to be executed, the process proceeds directly to step 104 in step 102, and it is determined whether event X ends at time T. If it is determined in step 104 that the event has ended, synchronization with other events is performed based on the end time variable of event X and time T. Details will be described later.

上述の説明は、ある時刻Tにおける、ある1つの事象X
のスケジューリング方法であったが、ある時刻[T1.
T2]の間の複数の事象のスケジューリングを行う場合
は、時刻Tを時刻T1がら時刻T2まで1単位時間ずつ
進めながら、各時刻Tにおいて各事象について第4図の
処理を繰り返せばよい。ただし、実行事象リストに登録
されている事象については、開始チェックは行う必要は
ない。
The above explanation is based on a certain event X at a certain time T.
However, at a certain time [T1.
T2], the process shown in FIG. 4 may be repeated for each event at each time T while advancing time T by one unit time from time T1 to time T2. However, there is no need to perform a start check for events registered in the execution event list.

第5図は、第4図の開始チェックのステップ101を詳
細に説明するための流れ図である。時刻Tで考える。ま
ず、ステップ21において事象Xの開始時刻変数tsの
値がすでに確定されているが未定であるかを調べる。未
定であることを示すためには、tsに未定フラグを与え
ればよい。もし未定であれば、事象Xは時刻Tでは実行
されないとして、事象Xは待機事象リストに登録された
ままとなる。tsが確定されている場合は、ステップ2
2においてtsの値と時刻Tの大小が比較される。ts
の値が時刻Tより大きい場合は、事象Xは時刻Tではま
だ開始されないとして、待機事象リストに登録されたま
まとなる。七5の値が時刻T以下である場合は、待機事
象リストに登録されたままとなる。tsの値が時刻T以
下である場合は、実行されるものと解釈される。その際
、ステップ23においてtsの値が時刻Tに等しいと判
定されると、事象Xは時刻Tにちょうど開始されるとし
て、ステップ24でtsと時刻Tに基づいて他の事象と
の時間の同期がとられる。同期をとる方法は後述される
。°ステップ22で実行されると解釈された事象はステ
ップ25において待機事象リストから実行事象リストに
移される。
FIG. 5 is a flowchart for explaining step 101 of the start check in FIG. 4 in detail. Consider time T. First, in step 21, it is checked whether the value of the start time variable ts of event X has already been determined but is still undetermined. To indicate that it is undetermined, an undetermined flag may be given to ts. If it is undetermined, it is assumed that event X will not be executed at time T, and event X will remain registered in the waiting event list. If ts is determined, step 2
2, the value of ts and time T are compared in magnitude. ts
If the value of is greater than time T, it is assumed that event X has not yet started at time T, and remains registered in the waiting event list. If the value of 75 is less than or equal to time T, it remains registered in the waiting event list. If the value of ts is less than or equal to time T, it is interpreted as being executed. At this time, if it is determined in step 23 that the value of ts is equal to time T, the event is taken. A method for synchronizing will be described later. ° Events interpreted in step 22 to be executed are moved in step 25 from the waiting events list to the running events list.

第6図は、第4図の終了チェックのステップ104を詳
細に説明するための流れ図である。時刻Tで考える。ま
ず、ステップ31において事象Xの終了時刻変数teが
未定であるか確定であるかを調べる(開始チェックのと
きと同様にして行う)。teが確定の場合は、ステップ
32においてteの値と時刻Tを比較し、teがT以下
である場合は、ステップ35においてteと時刻Tに基
づいて他の事象との時間の同期がとられる。teが未定
であるが、te>Tであれば、ステップ33において事
象Xの終了フラグがオンとなっているかどうか調べる。
FIG. 6 is a flowchart for explaining step 104 of the completion check in FIG. 4 in detail. Consider time T. First, in step 31, it is checked whether the end time variable te of the event X is undetermined or determined (this is done in the same manner as the start check). If te is determined, the value of te and time T are compared in step 32, and if te is less than or equal to T, time synchronization with other events is established based on te and time T in step 35. . If te is undetermined, but te>T, it is checked in step 33 whether the end flag of event X is on.

終了フラグは、実行本体の処理が終了したときに諸事象
自身によって活性化される。終了フラグが活性化された
場合は、事象Xは時刻Tで終了するとして、ステップ3
4において事象Xの終了時刻変数teの値をTとし、ス
テップ35において他の事象との同期をとる。終了フラ
グが活性されていない場合は終了しない。ステップ32
またはステップ33で終了と判定された場合、事象Xは
ステップ36において実行事象リストおよび待機事象リ
ストから除かれる。
The end flag is activated by the events themselves when the processing of the execution body ends. If the end flag is activated, it is assumed that event X ends at time T, and step 3
In step 4, the value of the end time variable te of event X is set to T, and in step 35, synchronization with other events is established. If the termination flag is not activated, it will not terminate. Step 32
Alternatively, if it is determined in step 33 that the event has ended, event X is removed from the running event list and the waiting event list in step 36.

次に、事象間の時間関係の設定方法について説明する。Next, a method of setting time relationships between events will be explained.

事象間の時間関係の設定方法の一例を、第7図に示す。An example of a method for setting time relationships between events is shown in FIG.

第7図では、第2図で示した事象の時間関係を例にとっ
ている。第2図でt1=3で、t2.t3゜t4. t
、5. t6は未定であるが、t3− t2 = 2、
t5−1,4 = 3であるとする。事象Aが時刻3に
開始されることを述語occurを用いて表現されてい
る。事象Aの直後に事象Bが開始されることが述語se
qで、事象Cが事象Bの開始後2単位時間目に開始する
ことが述語5tartで、事象Cが事象Bの終了後3単
位時間目に終了することが述語finishで、事象B
の直後に事象りが開始されることが述語seqで表現さ
れている。
In FIG. 7, the time relationship of the events shown in FIG. 2 is taken as an example. In FIG. 2, t1=3 and t2. t3゜t4. t
,5. Although t6 is undetermined, t3-t2 = 2,
Assume that t5-1,4 = 3. It is expressed using the predicate occur that event A starts at time 3. The predicate se indicates that event B starts immediately after event A.
In q, the predicate 5tart means that event C starts at the second time unit after the start of event B, the predicate finish means that event C ends at the third unit time after the end of event B, and event B
The predicate seq expresses that the event starts immediately after .

以上のようにして設定された時間関係に基づいて、開始
時刻変数および終了時刻変数からなる時間パラメータに
よるネットワークが構成され、そのネットワーク上の時
間パラメータの値の伝搬によって事象間の同期が実現さ
れる。
Based on the time relationships set as above, a network of time parameters consisting of start time variables and end time variables is constructed, and synchronization between events is achieved by propagating the values of the time parameters on the network. .

次に時間関係のネットワークを用いた事象間の同期方法
について説明する。時間関係のネットワークは、時間パ
ラメータを有向枝でつなぎ、有向枝にある計算式を付属
させた形をとる。有向枝の始点側の時間パラメータを活
性変数、有向枝の終点側の時間パラメータを従属変数と
呼ぶことにする。第8図は、事象の時間関係のネットワ
ークの構成方法の一例を示す説明図である。第8図では
、第7図の設定方法に対応するネットワークの構成方法
が示されている。ただし、述語occurに関しては、
対象となる事象Aの開始時刻変数に3を代入するだけで
ある。したがって、第8図には対応する欄はない。ネッ
トワークは活性変数名、従属変数名、計算式の3つ組テ
ーブルとして構成される。活性変数に値が格納されると
、対応する従属変数に計算式の計算結果が格納される。
Next, a method of synchronizing events using a time-related network will be explained. A time-related network has a form in which time parameters are connected by directed edges, and a certain calculation formula is attached to the directed edges. The time parameter on the starting point side of the directed branch will be called an active variable, and the time parameter on the end point side of the directed branch will be called a dependent variable. FIG. 8 is an explanatory diagram illustrating an example of a method for configuring a network related to time of events. FIG. 8 shows a network configuration method corresponding to the setting method of FIG. 7. However, regarding the predicate occur,
Simply assign 3 to the start time variable of the target event A. Therefore, there is no corresponding column in FIG. The network is configured as a triple table of active variable names, dependent variable names, and calculation formulas. When a value is stored in the active variable, the calculation result of the calculation formula is stored in the corresponding dependent variable.

さらに上記従属変数が活性変数としても登録されている
場合、上記従属変数を活性変数として同様の処理が行わ
れる。すなわち、ある変数に値が格納された結果がネッ
トワーク上を次々と伝搬する。したがって、ある事象が
開始または終了すると、諸事像の時間パラメータとネッ
トワーク上で接続されている他の事象の時間パラメータ
の値が次々に求められ、時間の同期がとられることにな
る。
Further, if the dependent variable is also registered as an active variable, similar processing is performed using the dependent variable as the active variable. That is, the result of a value stored in a certain variable is propagated one after another on the network. Therefore, when a certain event starts or ends, the values of the time parameters of various events and the time parameters of other events connected on the network are determined one after another, and the times are synchronized.

第9図は、事象の時間関係のネットワーク上の値の伝搬
の手順の一例を示す流れ図である。いま、時間パラメー
タtp(開始時刻変数でも終了時刻変数でもよい)を起
点として、ネットワーク上の値の伝搬が行われるとする
。まず、ステップ41でtpを起点にしたネットワーク
上の伝搬経路を求める。伝搬経路を求めるには、第7図
のテーブルをもとに、tpを活性変数として、対応する
すべての従属変数、計算式の対のリスト((tl、 E
l)、 (t2. E2)、 −(tn、 En))を
求め、これを探索経路リストとする。ただし、tl。
FIG. 9 is a flowchart illustrating an example of a procedure for propagating values on a network of time-related events. Now, suppose that values are propagated on the network starting from a time parameter tp (which may be a start time variable or an end time variable). First, in step 41, a propagation path on the network starting from tp is determined. To find the propagation path, based on the table in Figure 7, with tp as the active variable, list all the corresponding dependent variables and pairs of calculation formulas ((tl, E
l), (t2. E2), -(tn, En)) and use this as the search route list. However, tl.

t2.・・・、tnは時間パラメータ、El、 E2.
・・・、Enは各時間パラメータに対応する計算式であ
る。次に、tl。
t2. ..., tn is a time parameter, El, E2.
..., En are calculation formulas corresponding to each time parameter. Next, tl.

t2.・・・、tnそれぞれを活性変数として、上記と
同様に対応するすべての従属変数、計算式の対を求め、
すでに求められている探索経路リストにマージする。た
だし、すでに探索経路リストにある時間パラメータは除
かれる。以上の操作を次々と繰り返すことにより、伝搬
経路が求められる(これは基本的に横型探索である。そ
の探索アルゴリズムは、たとえば、文献自弁・辻井著、
人工知能(音波書店、1982年)、第3章に述べられ
ている。)。ステップ41で求められた伝搬リストをも
とに、ステップ42において時間パラメータの値の伝搬
が行われる。値の伝搬は、伝搬リストの時間パラメータ
と計算式の対を順に取り出し、計算式の計算結果を時間
パラメータに格納していけばよい。
t2. ..., tn as active variables, find all the corresponding pairs of dependent variables and calculation formulas in the same way as above,
Merge into the already desired search route list. However, time parameters already on the search route list are excluded. By repeating the above operations one after another, the propagation path is found (this is basically a horizontal search.The search algorithm is, for example, in the literature self-explained by Tsujii,
Artificial Intelligence (Sonic Shoten, 1982), Chapter 3. ). Based on the propagation list obtained in step 41, the values of the time parameters are propagated in step 42. Value propagation can be accomplished by sequentially extracting pairs of time parameters and calculation formulas from the propagation list, and storing the calculation results of the calculation formulas in the time parameters.

(効果) 以上記述したように、本発明の事象スケジューリング方
式は、各事象の開始時刻および終了時刻の間に関係式を
設定し、その関係式によって各事象の時間関係を定性的
だけでなく定量的にも設定することができ、しかも種々
の関係式を用いることにより、事象間の様々な時間関係
を柔軟に設定し、実行することができる。したがって、
事象間の時間関係を細かく設定することができ、スケジ
ュール設定能力が向上する。
(Effects) As described above, the event scheduling method of the present invention sets a relational expression between the start time and end time of each event, and uses the relational expression to determine the time relationship between each event not only qualitatively but also quantitatively. Furthermore, by using various relational expressions, various time relations between events can be flexibly set and executed. therefore,
Time relationships between events can be set in detail, improving schedule setting ability.

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

第1図は本発明の一実施方式の全体を示すブロック図、
第2図は事象の時間関係の一例を示す概念図、第3図は
事象の内容を示すための説明図、第4図は事象スケジュ
ーリングの手順を示す流れ図、第5図は時刻Tにおける
ある事象の開始チェックの方法の一例を示すための流れ
図、第6図は時刻Tにおけるある事象の終了チェックの
方法の一例を示すだめの流れ図、第7図は事象の時間関
係の設定方法の一例を示す説明図、第8図は事象の時間
関係ネットワークの構成方法の一例を示す説明図、第9
図は事象の時間関係ネットワーク上の時間パラメータの
値の伝搬の手順の一例を示すための流れ図である。
FIG. 1 is a block diagram showing the entire implementation method of the present invention;
Figure 2 is a conceptual diagram showing an example of the time relationship of events, Figure 3 is an explanatory diagram showing the contents of events, Figure 4 is a flowchart showing the procedure for event scheduling, and Figure 5 is an event at time T. 6 is a flowchart showing an example of a method for checking the start of an event at time T. FIG. 7 is a flowchart showing an example of a method for checking the end of an event at time T. FIG. An explanatory diagram, FIG. 8 is an explanatory diagram showing an example of a method for configuring a time-related network of events, and FIG.
The figure is a flowchart showing an example of a procedure for propagating the value of a time parameter on an event time relationship network.

Claims (1)

【特許請求の範囲】[Claims] 事象のスケジューリング方式において、上記各事象の開
始時刻または終了時刻の間に関係式を設定し、ある事象
の開始または終了の時刻において、上記事象と関係のあ
る他の事象の開始時刻または終了時刻を上記関係式によ
って次々に求めていくことを特徴とする、事象スケジュ
ーリング方式。
In the event scheduling method, a relational expression is set between the start time or end time of each of the above events, and at the start or end time of an event, the start time or end time of another event related to the above event is set. An event scheduling method characterized in that events are determined one after another using the above relational expressions.
JP61169130A 1986-07-17 1986-07-17 Event scheduling system Pending JPS6324443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61169130A JPS6324443A (en) 1986-07-17 1986-07-17 Event scheduling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61169130A JPS6324443A (en) 1986-07-17 1986-07-17 Event scheduling system

Publications (1)

Publication Number Publication Date
JPS6324443A true JPS6324443A (en) 1988-02-01

Family

ID=15880835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61169130A Pending JPS6324443A (en) 1986-07-17 1986-07-17 Event scheduling system

Country Status (1)

Country Link
JP (1) JPS6324443A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04119461A (en) * 1990-09-10 1992-04-20 Fujitsu Ltd Scheduling system for knowledge base system
JPH07129661A (en) * 1993-10-29 1995-05-19 Matsushita Electric Ind Co Ltd Method and device for managing and supporting production progress
JPH0863516A (en) * 1994-08-22 1996-03-08 Nec Corp Event scheduling system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04119461A (en) * 1990-09-10 1992-04-20 Fujitsu Ltd Scheduling system for knowledge base system
JPH07129661A (en) * 1993-10-29 1995-05-19 Matsushita Electric Ind Co Ltd Method and device for managing and supporting production progress
US6122621A (en) * 1993-10-29 2000-09-19 Matsushita Electric Industrial Co., Ltd. Method and system for progress management assistance
JP3334970B2 (en) * 1993-10-29 2002-10-15 松下電器産業株式会社 Production progress management support method and apparatus
JPH0863516A (en) * 1994-08-22 1996-03-08 Nec Corp Event scheduling system

Similar Documents

Publication Publication Date Title
Bengtsson et al. Partial order reductions for timed systems
JP2609280B2 (en) Simulation method
JPH04340158A (en) Simulation method for event
CN108009642A (en) Distributed machines learning method and system
JP2012221318A (en) Scenario generation device and scenario generation program
US6122621A (en) Method and system for progress management assistance
CN110347749A (en) A kind of method and system that the distributed class JSON data based on CRDT merge automatically
JPS6324443A (en) Event scheduling system
CN1163866C (en) Apparatus and method for generating music data
JP2917939B2 (en) Server performance measurement method
CN111831271B (en) Git code review system supporting simulation pre-assembly pipeline and method thereof
JPS6336358A (en) Event scheduling system
JP2765691B2 (en) Simulation method
JPH09282283A (en) Tracing method and performance evaluation method for on-line transaction, and on-line transaction processing system
JPS6324444A (en) Event scheduling system
Lin et al. Protocol validation for large-scale applications
CN106325770A (en) Method for processing long-time idle data
CN116521400B (en) Article information processing method and device, storage medium and electronic equipment
Bonzon Compiling dynamic agent conversations
JPH04239338A (en) Measuring system for microprogram comprehension rate
JP2006202102A (en) Simulation apparatus
Donaldson et al. Constraint-Based Discourse Agents.
CN115936095A (en) Parameter gradient synchronization method, device, equipment and storage medium
JP2569881B2 (en) Concurrent failure simulation method
JPH04353939A (en) Trace system for multi-processor