JPS6324444A - Event scheduling system - Google Patents

Event scheduling system

Info

Publication number
JPS6324444A
JPS6324444A JP61169131A JP16913186A JPS6324444A JP S6324444 A JPS6324444 A JP S6324444A JP 61169131 A JP61169131 A JP 61169131A JP 16913186 A JP16913186 A JP 16913186A JP S6324444 A JPS6324444 A JP S6324444A
Authority
JP
Japan
Prior art keywords
event
time
events
child
list
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
JP61169131A
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 JP61169131A priority Critical patent/JPS6324444A/en
Publication of JPS6324444A publication Critical patent/JPS6324444A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve an operation efficiency by introducing a hierarchism into the constitution of an event to combine the existing events by an operator and form the new event. CONSTITUTION:The events are combined hierarchically to constitute the new event, the schedule of the slave event of a constituting element of the new event is set by a relative time viewing from a master event constituted of the slave events, the schedule of the slave event is converted into an absolute time by the start of the execution of the master event to decide whether the slave event is executed or not. Namely, the event has a list in which all the slave event names of the constituting element, a standby slave event list at a remarkable time and an executing slave event list. The schedule of the slave event is described in the relative time viewing from the event (relative time making the start time of the event a reference), when the event is started to be executed, the schedule of the respective slave events is converted into the absolute time and when the event is executed, whether the respective stand by events are executed or not is checked.

Description

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

(従来の技術) ここで呼ぶ事象とは計算機上の任意の事象であるが、と
くに計算機シミュレーションにおいである時刻に発生す
る出来事や物体の動作などが考えられる。
(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 from the time relationship with other events without having to clearly set the start time of the 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 using the predicate before as follows.

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).

(発明が解決しようとする問題点) しかし、上記の方法で複雑な事象の記述および実行が煩
雑で、また、−度定義された事象の再利用性が乏しく新
たな事象の定義が非効率的であり、また、スケジューリ
ングの際にすべての事象について実行するかどうかの検
査を行う必要があるという問題点があった。
(Problems to be solved by the invention) However, with the above method, it is cumbersome to describe and execute complex events, and the reusability of previously defined events is poor, making it inefficient to define new events. Moreover, there is a problem in that it is necessary to check whether all events are to be executed during scheduling.

本発明の目的は、以上の問題点を解決するために、事象
の組み合わせによって階層的に他の事象を構成するとい
う考えを導入し、事象を階層的に組み合わせて新たな事
象を生成、実行できるようにすることにより、効率的に
事象の定義および実行が行える事象スケジューリング方
式を提供することにある。
The purpose of the present invention is to solve the above problems by introducing the idea of configuring other events hierarchically by combining events, and by combining events hierarchically, it is possible to generate and execute a new event. By doing so, it is an object of the present invention to provide an event scheduling method that can efficiently define and execute events.

(問題点を解決するための手段) 本発明の事象のスケジューリング方式は、上記事象を階
層的に組み合わせて新たな事象を構成し、上記新たな事
象の構成要素である子事象のスケジュールを上記子事象
より構成される親事象から見た相対時刻で設定し、上記
親事象の実行開始によって上記子事象のスケジュールを
絶対時刻に変換して上記子事象を実行するかどうかを判
定することを特徴とする。
(Means for solving the problem) The event scheduling method of the present invention configures a new event by hierarchically combining the above-mentioned events, and schedules child events that are constituent elements of the new event. It is characterized in that the time is set as a relative time viewed from a parent event made up of events, and the schedule of the child event is converted to an absolute time based on the start of execution of the parent event to determine whether or not to execute the child event. do.

(作用) 本発明においては、事象は、その構成要素である全子事
象名を連ねたリストおよび主目する時刻において待機中
の子事象リスト、実行中の子事象リストをもっている。
(Operation) In the present invention, an event has a list of all child event names that are its constituent elements, a list of waiting child events, and a list of child events being executed at the main time.

該事象の子事象のスケジュールは該事象から見た相対時
刻(たとえば、該事象の開始時刻を基準とした相対時刻
)で記述される。該事象が実行開始となった時点で、そ
の各子事象のスケジュールが絶対時刻に変換される。該
事象が実行される際、その待機中の各子事象について実
行されるかどうかの検査を行う。待機中の各子事象のう
ち実行されると判定された子事象は、実行中の子事象リ
ストに移され、実行される。実行中子事象リストに登録
されている子事象はそのまま実行される。実行後、終了
するかどうかの検査を行い、終了する場合は、実行中子
事象リストから除かれる。また、待機中の子事象リスト
に登録されている子事象についても終了チェックを行い
、開始しないまま終了時刻に達した事象を待機中事象リ
ストから除く。以上の処理を再帰的に行うことにより、
事象の階層性が実現される。
The schedule of child events of the event is described in terms of relative time from the event (for example, relative time with respect to the start time of the event). Once the event begins execution, the schedule of each of its child events is converted to absolute time. When the event is executed, it checks whether each of its waiting child events is executed. Among the waiting child events, the child event determined to be executed is moved to the currently executing child event list and executed. The child events registered in the executing child event list are executed as they are. After execution, it is checked to see if it has finished, and if it has finished, it is removed from the running child event list. Furthermore, the child events registered in the waiting child event list are also checked for completion, and events whose end time has been reached without being started are removed from the waiting event list. By performing the above processing recursively,
A hierarchy of events is realized.

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

第2図は事象の発生の時間関係の一例を示す概念図であ
る。時間軸上に各事象の開始時刻、終了時刻が示されて
いる。この図では、事象Aが時刻L]に開始し、時刻t
2に終了する。事象Bは時刻t2に開始し、時刻t4に
終了する。事象Cは時刻t3に開始し、時刻t5に終了
する。事象りは時刻4に開始し、時刻t6に終了する。
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 L] and time t
Ends in 2. Event B starts at time t2 and ends at time t4. Event C starts at time t3 and ends at time t5. The event begins at time 4 and ends at time t6.

ここで、各時刻tl、・・・、t6は値が未定の場合も
ありうる。したがって、たとえば時刻t2を未定とすれ
ば、第2図は事象Aが終了すると同時に事象Bが開始す
るという定性的性質を表現していることになる。同様に
、t2 = t3とすれば、事象Bと事象Cが同時刻t
2に開始するということを表現している(t2.t3が
未定ならば、[同時]という定性的時間関係だけを表現
している。)。
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, event B and event C occur at the same time t
2 (if t2 and t3 are undetermined, only the qualitative time relationship of [simultaneous] is expressed).

第3図は、階層化された事象の時間関係の一例を示す概
念図である。事象Aはその子事象AI、A2゜A3より
構成される。事象Aは時刻t1に発生し、時刻t2に終
了する。子事象A1は事象Aの開始時刻t1を基準とし
た相対時刻tllに発生し、相対時刻t13に終了する
。他の子事象も同様である。各事象の時間関係は、第2
図と同様に解釈される。
FIG. 3 is a conceptual diagram showing an example of the time relationship of hierarchized events. Event A is composed of its child events AI, A2 and A3. Event A occurs at time t1 and ends at time t2. The child event A1 occurs at a relative time tll with respect to the start time t1 of the event A, and ends at a relative time t13. The same applies to other child events. The time relationship of each event is the second
Interpreted in the same way as the figure.

第4図は、事象の内容を表すための説明図である。事象
の内容は名前、事象の実行内容を表す実行本体、諸事象
を子事象として含む親事象の名前、開始時刻変数名、終
了時刻変数名、終了フラグ、子事象の名前リスト、実行
中の子事象の名前リスト、待機中の子事象の名前リスト
、よりなる。事象の名前は他の事象と区別できる一意な
ものであれば何でもよいが、親事象、さらにその上の親
事象のすべての名前を連ねたパス名を用いると便利であ
る。実行本体には、諸事象が実行すべき内容が格納され
る。第4図では、例としてhellowという文字を印
刷する実行内容が格納されている。親事象の名前は必ず
しも必要ではないが、あれば本方式の実現上便利である
。開始時刻変数名は開始時刻を格納するための言己憶領
域へのポインタで、開始時刻変数の値は使用者が直接与
えるか、後述する時間同期機構により決定する。終了時
刻変数名は終了時刻を格納するための記憶領域へのポイ
ンタである。終了時刻変数の値は開始時刻変数と同様の
方法で決定する。この両案数をまとめて時間パラメータ
と呼ぶが、この時間パラメータにより事象のスケジュー
ルが設定されることになる。ただし、時間パラメータは
あらかじめ値が確定しているとは限らず、他の事象との
時間関係から動的に決定することがある。その詳細は後
述する。終了フラグは諸事象が実行中にその目的を果た
したことを示すためのものである。終了フラグは1.諸
事象の金子事象が終了し、かつ、実行本体の処理が終了
したときに諸事象自身によって活性化される。終了フラ
グが活性化されると諸事象は終了され、その終了時刻変
数にそのときの時刻が格納される。子事象の名前リスト
は諸事象が構成要素として含む子事象の名前をすべて並
べたものである。実行中の子事象の名前リストは、注目
している時刻においてすでに開始され、まだ終了してい
ない子事象の名前をすべて並べたものである。待機中の
子事象の名前リストは注目している時刻においてまだ実
行されていない子事象の名前をすべて並べたものである
FIG. 4 is an explanatory diagram for representing the contents of the event. The contents of the event are the name, the execution body representing the execution content of the event, the name of the parent event that includes various events as child events, the start time variable name, the end time variable name, the end flag, the name list of child events, and the child being executed. It consists of a list of event names and a list of names of waiting child events. The name of an event may be any unique name that can be distinguished from other events, but it is convenient to use a path name that includes the names of the parent event and all of the parent events above it. The execution body stores the contents to be executed by various events. In FIG. 4, as an example, execution contents for printing the character "hello" are stored. Although the name of the parent event is not necessarily required, it is convenient for implementing this method. The start time variable name is a pointer to a memory area for storing the start time, and the value of the start time variable is either given directly by the user or determined by the 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 numbers are collectively called a 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. Termination flags are used to indicate that events have fulfilled their purpose during execution. The end flag is 1. It is activated by the events themselves when the Kaneko event of the events ends and 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. The child event name list is a list of all the names of child events that events include as constituent elements. The list of names of child events that are being executed is a list of all the names of child events that have already started at the time of interest and have not yet ended. The waiting child event name list is a list of all the names of child events that have not yet been executed at the time of interest.

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

待機事象は着目する時刻Tにおいてまだ発生せず、開始
待ちの状態にあるものをいう。実行事象は時刻Tにおい
てすでに実行中であるものをい ′う。待機事象は待機
事象リストに、実行事象は実行事象リストに登録されて
いる。スケジューリングの初期状態(時刻Oまたは任意
の基準時刻)においては、すべての事象は先ず待機事象
リストに登録されている。
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 O or any reference time), all events are first registered in the waiting event list.

また、実際に計算機などの装置によって、第2図、第3
図のような時間関係にしたがって事象を発生させる場合
、時間軸は離散的となり、ある単位時間ごとに時刻をカ
ウントすることになる。
In addition, by actually using equipment such as a computer, figures 2 and 3 can be
When events occur according to the time relationship shown in the figure, the time axis becomes discrete, and times are counted every certain unit time.

第5図は本発明の一実施例としての事象スケジューリン
グ方式の全体の概略を示すブロック図である。事象の内
容を格納および参照するための事象格納手段l、着目し
ている事象がある時刻において実行されるかまたは終了
するかどうがを判定するための事象実行手段2、事象間
の実行時間の同期をとるための時間同期手段3、事象の
実行本体を実行するための事象実行手段4、時刻を与え
るためのタロツク生成手段5が設けられている。事象格
納手段1に事象の内容を入力するための接続線6、事象
格納手段1に格納されている事象の内容を事象実行判定
手段2に伝えるための接続線7、事象実行判定手段2で
生成された事実の実行か待機かの状態遷移情報を事象格
納手段1に伝えるための接続線8、事象実行判定手段2
での時間パラメータ(開始時刻変数と終了時刻変数)の
値およびそのときの時刻からなる時間同期情報を時間同
期手段3に伝えるための接続線9、時間同期手段3で決
定した時間パラメータ値を事象格納手段1に伝えるため
の接続線10、事象実行判定手段2で判断された事象を
実行するかどうかの情報およびその時の時刻を事象実行
手段4に伝えるための接続線11、事象実行手段4の実
行結果を出力するための接続線12、クロック生成手段
5で生成された時刻を事象実行判定手段2に伝えるため
の接続線13が設けられている。
FIG. 5 is a block diagram showing an overall outline of an event scheduling system as an embodiment of the present invention. An event storage means 1 for storing and referencing the contents of an event, an event execution means 2 for determining whether an event of interest is executed or terminated at a certain time, and an event execution means 2 for determining whether an event of interest is 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 tally clock generation means 5 for providing time are provided. A connection line 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 a connection line 7 for inputting the contents of the event stored in the event storage means 1 to the event execution determination means 2. a connection line 8 for transmitting state transition information of execution or standby of a fact to the event storage means 1; an event execution determination means 2;
A connection line 9 is used to transmit time synchronization information consisting of the values of time parameters (start time variables and end time variables) and the time at that time to the time synchronization means 3, and the time parameter values determined by the time synchronization means 3 are transmitted to the event. A connection line 10 for transmitting to the 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, A connection line 12 for outputting the execution result and a connection line 13 for transmitting the time generated by the clock generation means 5 to the event execution determination means 2 are provided.

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

第1図は、本発明の実施例としての事象スケジューリン
グ方式を示すための流れ図であり、第5図の事象実行判
定手段2、時間同期手段3、事象実行手段4における処
理を示している。ある時刻Tにおける、ある1つの事象
Xのスケジューリング方法を例として以下に説明する。
FIG. 1 is a flowchart showing an event scheduling system as an embodiment of the present invention, and shows processing in the event execution determining means 2, time synchronizing means 3, and event executing means 4 of FIG. A method of scheduling a certain event X at a certain time T will be described below as an example.

ステップ101において、事象Xの時間パラメータの値
と時刻Tより、事象Xが時刻Tで実行されるかどうかを
判定する。もし、時刻Tでちょうど事象Xが開始される
場合は、事象Xの開始時刻変数と時刻Tをもとに他の事
象との同期をとる。詳細は後述する。ステップ101で
実行すると判断された場合、ステップ102により実行
のためのステップ103.104.105に処理が進め
られる。実行しないと判断された場合、ステップ106
に処理が進められる。ステップ103で事象Xが子事象
をもたなければステップ104により、事象Xの本体が
実行される。事象Xが子事象をもてば、ステップ105
によりその各子事象についてスケジューリングがなされ
る。各子事象のスケジューリングも、第1図の処理と同
様に行う。すなわち、再帰的な処理となる。この際、各
子事象の開始時刻変数および終了時刻変数に事象Xの開
始時刻変数の値を加えることにより、各子事象のスケジ
ュールを絶対時刻に変換する。ここで注意すべきことは
各子事象の時間パラメータの値(事象Xから見た相対値
)は確定しているとは限らないことである。そのため、
後述する時間関係ネットワークでの値の伝搬によって各
子事象の時間パラメータの値を動的に求めることになる
。最後に、ステップ106において、事象Xが時刻Tで
終了するかどうかを判定する。終了する場合は、事象X
の終了時刻変数と時刻Tをもとに他の事象との同期をと
る。詳細は後述する。なお、ステップ103の各子事象
についてのスケジューリングとステップ104の本体実
行の順序は入れ換えてもよい。
In step 101, it is determined from the value of the time parameter of event X and time T whether event X 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 in step 101 to execute, step 102 advances the process to steps 103, 104, and 105 for execution. If it is determined not to execute, step 106
Processing will proceed. If event X does not have any child events in step 103, the main body of event X is executed in step 104. If event X has a child event, step 105
Scheduling is performed for each of its child events. Scheduling of each child event is also performed in the same way as the process shown in FIG. In other words, the process is recursive. At this time, the schedule of each child event is converted into an absolute time by adding the value of the start time variable of event X to the start time variable and end time variable of each child event. What should be noted here is that the value of the time parameter (relative value seen from event X) of each child event is not necessarily fixed. Therefore,
The value of the time parameter of each child event is dynamically determined by propagation of the value in a time-related network, which will be described later. Finally, in step 106, it is determined whether event X ends at time T. If it ends, event
Synchronization with other events is performed based on the end time variable and time T. Details will be described later. Note that the order of scheduling for each child event in step 103 and the main execution order of step 104 may be reversed.

上述の説明は、ある時刻Tにおける、ある1つの事象X
のスケジューリング方法であったが、ある時間[T1.
T2]の間の複数の事象のスケジューリングを行う場合
は、時刻Tを時刻T1から時刻T2まで1単位時間ずつ
進めながら、各時刻Tにおいて各事象について第1図の
処理を繰り返せばよい。ただし、実行事象リストに登録
されている事象については、開始チェックは行う必要は
ない。
The above explanation is based on a certain event X at a certain time T.
However, if a certain time [T1.
T2], the process shown in FIG. 1 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.

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

第7図は、第1図の終了チェックのステップ106を詳
細に説明するための流れ図である。時刻Tで考える。ま
ず、ステップ31において事象Xの終了時刻変数teが
未定であるか確定であるかを調べる(開始チェックもの
ときと同様にして行う)。teが確定の場合は、ステッ
プ32においてteの値と時刻Tを比較し、teがT以
下である場合は、ステップ35においてteと時刻Tに
基づいて他の事象との時間の同期がとられる。teが未
定であるか、te>Tであれば、ステップ33において
事象Xの終了フラグがオンとなっているかどうか調べる
。終了フラグは諸事像の金子事象が終了しくすなわち、
待機中子事象リスト、実行中子事象リストが空になり)
、かつ、実行本体の処理が終了したときに諸事像自身に
よって活性化される。終了フラグが活性化された場合は
、事象Xは時刻Tで終了するとして、ステップ34にお
いて事象Xの終了時刻変数teの値をTとし、ステップ
35において他の事象との同期をとる。終了フラグが活
性されていない場合は終了しない。ステップ32または
ステップ33で終了と判定された場合、事象Xはステッ
プ36において実行事象リストおよび待機事象リストか
ら除かれる。
FIG. 7 is a flowchart for explaining step 106 of the completion check in FIG. 1 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 way 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 or te>T, it is checked in step 33 whether the end flag of event X is on. The end flag indicates that the Kaneko event of various events has ended, that is,
(The waiting core event list and running core event list are empty)
, and is activated by the various images themselves when the processing of the execution body is completed. If the end flag is activated, it is assumed that event X ends at time T, and in step 34 the value of 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. If it is determined at step 32 or step 33 that the event has ended, event X is removed from the running event list and the waiting event list at step 36.

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

事象間の時間関係の設定方法の一例を、第8図(a)に
示す。時間関係の設定の際、絶対時刻であるか、ある事
象からの相対時刻であるかを示す設定時間軸を指定する
。親事象の内容の定義の際にその子事象の時間関係を設
定するとき、その設定時間軸が該親事象から見た相対時
刻となるようにすると便利である。第8図(a>では、
第3図で示した事象の時間関係を例にとっている。事象
Aの中で事象A1が相対時刻3に開始されることを述語
occurを用いて表現されている。事象Aの直後に事
象Bが開始されることが述語seqで、事象A1と事象
A2の同時に開始することが述語5tartで、事象A
1と事象A3が同時に終了することが述語flnish
で、事象A2の直後に事象A3が開始されることが述語
seqで表現されている。
An example of a method for setting time relationships between events is shown in FIG. 8(a). When setting the time relationship, specify the setting time axis indicating whether it is an absolute time or a relative time from a certain event. When defining the content of a parent event and setting the time relationship of its child events, it is convenient to set the set time axis to be a relative time viewed from the parent event. In Figure 8 (a>,
The time relationship of the events shown in FIG. 3 is taken as an example. The fact that event A1 in event A starts at relative time 3 is expressed using the predicate occur. The predicate seq means that event B starts immediately after event A, and the predicate 5tart means that event A1 and event A2 start at the same time.
1 and event A3 end at the same time is the predicate flnish
The predicate seq expresses that event A3 starts immediately after event A2.

以上のようにして設定された時間関係に基づいて、開始
時刻変数および終了時刻変数からなる時間パラメータに
よるネットワークが構成され、そのネットワーク上の時
間パラメータの値の伝搬によって事象間の同期が実現さ
れる。とくに、親事象の開始時刻変数と子事象の開始時
刻変数の時間同期により子事象のスケジュールの相対時
刻から絶対時刻への変換が実現される。
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. . In particular, time synchronization of the start time variable of the parent event and the start time variable of the child event realizes conversion from relative time to absolute time in the schedule of the child event.

次に時間関係のネットワークを用いた事象間の同期方法
について説明する。時間関係のネットワークは、時間パ
ラメータを有向枝でつなぎ、有向枝にある計算式を付属
させた形をとる。有向枝の始点側の時間パラメータを活
性変数、有向枝の終点側の時間パラメータを従属変数と
呼ぶことにする。第8図(b)は、事象の時間関係のネ
ットワークの構成方法の一例を示す説明図である。第8
図(b)では、第8図(a)の設定方法に対応するネッ
トワークの構成方法が示されている。活性変数名、従属
変数名、計算式の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(b) is an explanatory diagram showing an example of a method for configuring a network of time relationships of events. 8th
FIG. 8(b) shows a network configuration method corresponding to the setting method of FIG. 8(a). It is configured as a triple table of active variable name, dependent variable name, and calculation formula. 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(開始時刻変数でも終了時刻変数でもよい)を起点
として、ネットワーク上の値の伝搬が行われるとする。
FIG. 9 is a flowchart showing 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).

まず、ステップ41でtpを起点にしたネットワーク上
の伝搬経路を求める。伝搬経路を求めるには、第7図の
テーブルをもとに、tpを活性変数として、対応するす
べての従属変数、計算式の対のリスト((tl、 El
)、 (t2. E2)、・・(tn、 En))を求
め、これを探索経路リストとする。ただし、tl。
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, all corresponding dependent variables and a list of pairs of calculation formulas ((tl, El
), (t2. E2), ... (tn, En)), and use this as a 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. . . . For each tn as an active variable, all corresponding pairs of dependent variables and calculation formulas are obtained in the same way as above, and merged into the search route list that has already been obtained. 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 described in, for example, the literature self-published by Tsujii, Artificial Intelligence (Sonic Shoten, 1982), Vol. (described in 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 introduces hierarchy into the configuration of events. therefore,
Workers can generate new events by combining existing events, increasing work efficiency. Moreover, since the schedule of the child event can be set at a relative time as seen from the parent event, the setting becomes easy. Furthermore, since scheduling is also performed hierarchically, each child event of an event that is not executed at a certain time does not need to be scheduled at that time, improving execution efficiency.

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

第1図は本発明の一実施方式を示す流れ図、第2図は事
象の時間関係の一例を示す概念図、第3図は階層化され
た事象の時間関係の一例を示す概念図、第4図は事象の
内容を示すための説明図、第5図は事象スケジューリン
グ方式の全体を示すブロック図、第6図は時刻Tにおけ
るある事象の開始チェックの方法の一例を示すための流
れ図、第7図は時刻Tにおけるある事象の終了チェック
の方法の一例を示すための流れ図、第8図は(a)は事
象の時間関係の設定方法の一例を示す説明図、第8図(
b)は事象の時間関係ネットワークの構成方法の一例を
示す説明図、第9図は事象の時間関係ネットワーク上の
時間パラメータの値の伝搬の手順の一例を示すための流
れ図である。 図において、1は事象格納手段、2は事象実行判定手段
、3は時間同期手段、4は事象実行手段、5はクロック
生成手段、である。 /−′″\ 代理人弁理士内原 晋″−゛・。 第 1 図 第2図 第3図 第4図 第5図 第6図 第7図 第8図(a) 第 9 1三 t
FIG. 1 is a flowchart showing an implementation method of the present invention, FIG. 2 is a conceptual diagram showing an example of the time relationship of events, FIG. 3 is a conceptual diagram showing an example of the time relationship of hierarchical events, and FIG. Figure 5 is an explanatory diagram showing the contents of an event, Figure 5 is a block diagram showing the entire event scheduling method, Figure 6 is a flowchart showing an example of a method for checking the start of a certain event at time T, Figure 7 The figure is a flowchart showing an example of a method for checking the completion of a certain event at time T; FIG.
b) is an explanatory diagram showing an example of a method for configuring a time-related network of events, and FIG. 9 is a flowchart showing an example of a procedure for propagating the value of a time parameter on the time-related network of events. In the figure, 1 is an event storage means, 2 is an event execution determination means, 3 is a time synchronization means, 4 is an event execution means, and 5 is a clock generation means. /−′″\ Representative Patent Attorney Susumu Uchihara″−゛・. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 (a) Figure 9 13t

Claims (1)

【特許請求の範囲】[Claims] 事象のスケジューリング方式において、上記事象を階層
的に組み合わせて新たな事象を構成し、上記新たな事象
の構成要素である子事象のスケジュールを上記子事象よ
り構成される親事象から見た相対時刻で設定し、上記親
事象の実行開始によって上記子事象のスケジュールを絶
対時刻に変換して上記子事象を実行するかどうかを判定
することを特徴とする、事象スケジューリング方式。
In the event scheduling method, the above events are hierarchically combined to form a new event, and the schedule of the child event that is a component of the new event is determined based on the relative time seen from the parent event composed of the above child events. an event scheduling method, characterized in that the schedule of the child event is converted into an absolute time based on the start of execution of the parent event, and it is determined whether or not to execute the child event.
JP61169131A 1986-07-17 1986-07-17 Event scheduling system Pending JPS6324444A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=15880855

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS6324444A (en)

Similar Documents

Publication Publication Date Title
US5513122A (en) Method and apparatus for determining the reachable states in a hybrid model state machine
CN100383732C (en) Signal processing apparatus and method thereof
US8555251B2 (en) Signal processing apparatus with user-configurable circuit configuration
CN110515608A (en) A kind of generation method and device, electronic equipment, storage medium of interface code
CN107688500A (en) A kind of distributed task scheduling processing method, device, system and equipment
EP0453152A2 (en) Computer program specification system
JPH103374A (en) Method for reutilizing parts of configuration tool for controlling design
EP0418980A2 (en) System for combining independently clocked simulators
JPH04340158A (en) Simulation method for event
Hoepner Synchronizing the presentation of multimedia objects-ODA extensions
CN111124379A (en) Page generation method and device, electronic equipment and storage medium
CN115526578A (en) Method and device for generating project flow, electronic equipment and storage medium
Schönberger et al. Algorithmic support for model transformation in object‐oriented software development
JP2012099103A (en) Method, products and electronic equipment for synchronizing state graph
JPS6324444A (en) Event scheduling system
JP2000348111A (en) Workflow managing method and its implementing device, and recording medium where processing program thereof is recorded
JPS6336358A (en) Event scheduling system
JP2012099104A (en) Technique for efficient partial crawling of interactive client-server applications in parallel distributed environment
JPH06301618A (en) Remote procedure accessing method
CN113407598A (en) Method and device for generating demand document, storage medium and electronic equipment
US20020143511A1 (en) Method and computer program product for system design support
CN108536758B (en) Data table reconstruction method, device and system for database mode
Poizat et al. An adaptation-based approach to incrementally build component systems
JP2815073B2 (en) Test procedure generation method for concurrent programs
CN112115303A (en) Data processing method and device