JPH0452755A - State restoration system - Google Patents

State restoration system

Info

Publication number
JPH0452755A
JPH0452755A JP2156238A JP15623890A JPH0452755A JP H0452755 A JPH0452755 A JP H0452755A JP 2156238 A JP2156238 A JP 2156238A JP 15623890 A JP15623890 A JP 15623890A JP H0452755 A JPH0452755 A JP H0452755A
Authority
JP
Japan
Prior art keywords
data
state
restoration
time
difference data
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
JP2156238A
Other languages
Japanese (ja)
Inventor
Tetsuya Yoshimura
吉村 哲也
Hirotada Ueda
博唯 上田
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.)
PERSONAL JOHO KANKYO KYOKAI
Original Assignee
PERSONAL JOHO KANKYO KYOKAI
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 PERSONAL JOHO KANKYO KYOKAI filed Critical PERSONAL JOHO KANKYO KYOKAI
Priority to JP2156238A priority Critical patent/JPH0452755A/en
Publication of JPH0452755A publication Critical patent/JPH0452755A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To restore a desired state at a high speed regardless of the past time point to be restored by defining all data stored at a time point approximate to a designated restored state as a starting point and then restoring the state at the starting point with use of the differential data. CONSTITUTION:If the storing state of the differential data satisfies the prescribed conditions, all data to be edited and the differential data are stored in a changed data store means 3. A restoring procedure deciding means 5 decides a restoring procedure based on all data stored before or after the state to be restored to restore an editing subject to a prescribed past state with use of the differential data after the restoration is instructed by a man-machine interface 1. A restoring means 6 reads the changed data decided by the means 5 out of the means 3 and performs the restoration processing based on the decided procedure. Thus the past state to be edited can be restored at a high speed.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、プログラムやデータの文字列または文書、図
形、画像あるいは音声等(以1・、これらを総称して編
集対象と称す)に対して編集を施した場合に、当該編集
対象を過去の=−時期の状態に復元するための状態復元
方式に関するものである。
[Detailed Description of the Invention] [Industrial Fields of Application] The present invention is applicable to programs and data such as character strings, documents, figures, images, sounds, etc. The present invention relates to a state restoration method for restoring the edited object to the state of the past =- time when editing is performed.

[従来の技術] 従来、プログラムやデータの文字列または文書、図形、
画像あるいは音声等を作成するシステムにおいては、移
動、挿入、削除、置換等の編集機能が設けられており、
更に、アンドウ(undo)等と称される編集対象を所
望の過去の状態に戻すための状態復元機能が絞けられて
いる。そしてこれらの機能を駆使することによって所望
の編集対象を容易に作成することができる。
[Conventional technology] Conventionally, character strings or documents of programs and data, figures,
Systems that create images, audio, etc. are equipped with editing functions such as moving, inserting, deleting, and replacing.
Furthermore, a state restoration function called undo or the like for returning an editing object to a desired past state is limited. By making full use of these functions, it is possible to easily create a desired editing target.

従来の状態復元方式の一構成例を第7図に示す。An example of the configuration of a conventional state restoration method is shown in FIG.

第7図において、マンマシンインターフェース30は、
CRT等の表示装置及びギーボード、ポインティングデ
バイス等の入力Witとを備えるコンピユー・夕とユー
ザとのインターフェース部であり、編集の対象となって
いる編集対象の現時点での状態、即ち現時点での編集対
象データを保持している。
In FIG. 7, the man-machine interface 30 is
It is an interface between the computer and the user, which is equipped with a display device such as a CRT and an input device such as a keyboard or pointing device, and it displays the current state of the editing target, that is, the current editing target. It holds data.

差分データ作成手段31は、編集が行われる度毎に、編
集対象の編集前の状態と編集後の状態との差分を作成す
るものである。
The difference data creation means 31 creates a difference between the pre-editing state and the post-editing state of the editing target every time editing is performed.

差分データ蓄積手段32は、差分データ作成手段31で
作成された差分データを順次蓄積するものである。
The difference data storage means 32 sequentially stores the difference data created by the difference data creation means 31.

ff1元手段33は、マンマシンインターフ、−ス30
から状態復元の指示がなされたときに差分データ蓄積手
段32から差分データを読み出し、編集対象を指示され
た過去の状態に復元する処理を行うものである。
The ff1 source means 33 is a man-machine interface, -s 30
When an instruction to restore the state is issued, the difference data is read from the difference data storage means 32, and processing is performed to restore the editing target to the instructed past state.

次に第7図の構成の動作について説明する。いま、編集
対象となっている編犯対象の初期状態がrabAcdB
efgCCCCCChiDjklmnEJであり、この
状態においてマンマシンインターフ、−ス30から、第
8図に示すように第1のコマンドとして削除コマンドが
発行されて「A」が削除され、第2のコマンドでrBJ
が削除され、第3のコマンドで文字列rCCCCCCJ
が削除され、第4のコマンドでrDJが削除され、第5
のコマンドで「E」が削除されたとする。このとき、差
分データ作成手段31は第1〜第5の各コマンド発生時
にはそれぞれA、  B、  CCCCCC,D、  
Eの差分データを生成する。そしてこれらの差分データ
は、編集コマンドの種類及び当該編集された文字列の先
頭からのポジションと共に差分データ蓄積手段32に蓄
積される。
Next, the operation of the configuration shown in FIG. 7 will be explained. The initial state of the editing target currently being edited is rabAcdB.
efgCCCCCCChiDjklmnEJ. In this state, the man-machine interface 30 issues a delete command as the first command to delete "A" as shown in FIG. 8, and the second command deletes rBJ.
is deleted and the third command adds the string rCCCCCCJ
is deleted, the fourth command deletes rDJ, and the fifth
Suppose that "E" is deleted using the command. At this time, the difference data creation means 31 generates A, B, CCCCCC, D, respectively when the first to fifth commands are generated.
Generate differential data of E. These difference data are stored in the difference data storage means 32 together with the type of editing command and the position from the beginning of the edited character string.

そして、第5のコマンドでrEJが削除された状態でマ
ンマシンインターフェース30から現在の状態から5コ
マンド前の状態に復元させる旨の指示がなされたとする
と、復元手段33は、まず直前のコマンド、この場合第
5のコマンドで削除されたrEJを所定のポジションに
挿入し、次に二つ前のコマンド、即ち第4コマンドで削
除されたrDJを所定のポジションに挿入し、同様に「
CCCCCCJ、 rBJを順次所定のポジションに挿
入して5コマンド前の状態に復元し、マンマシンインタ
ーフェース30に送出する。
If rEJ is deleted by the fifth command and an instruction is given from the man-machine interface 30 to restore the current state to the state five commands ago, the restoring means 33 first deletes the previous command, this In this case, insert the rEJ deleted by the fifth command into the predetermined position, then insert the rDJ deleted by the two previous commands, i.e. the fourth command, into the predetermined position, and similarly "
CCCCCCJ and rBJ are sequentially inserted into predetermined positions to restore the state of five commands ago, and then sent to the man-machine interface 30.

以上の動作により、編集対象を所望の過去の状態に復元
することができる。
Through the above operations, the editing target can be restored to a desired past state.

[発明が解決しようとする課題] しかしながら、従来の状態復元方式では、差分データを
基にして現在の状態から順に復元する方式であるため、
より古い過去の状態に復元する場合には時間がかかると
いう問題があった。
[Problems to be Solved by the Invention] However, in the conventional state restoration method, since the method restores the current state in order based on differential data,
There has been a problem in that it takes time to restore to an older past state.

本発明は、上記の課題を解決するものであって、編集対
象の過去の状態を高速に復元することができる状態復元
方式を提供することを目的とするものである。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a state restoration method that can quickly restore the past state of an object to be edited.

[課題を解決するための手段] 上記の目的を達成するために、本発明の状態復元方式は
、第1には、編集対象の変更の度毎に蓄積される差分デ
ータに基づいて状態復元を行う状態復元方式において、
差分データの蓄積状態が予め定められた条件を満足する
場合にはその時点での編集対象の全データ及び差分デー
タを蓄積し、状態復元が指示されたときには復元すべき
状態の前または後に蓄積されている全データから差分デ
ータを用いて編集対象を指示された所定の過去の状態に
復元することを特徴とし、第2には、編集対象の変更の
度毎に蓄積される差分データに基づいて状態復元を行う
状態復元方式において、差分データは、編集対象の変更
時に作成される第1差分データと、複数の第1差分デー
タを整理して作成される第2差分データとからなり、第
1差分データの蓄積状態が予め定められた第1の条件を
満足する場合には、前回の第2差分データ蓄積時点以降
の全ての第1差分データを整理して第2差分データを作
成し、当該第2差分データを今回作成した第1差分デー
タと共に蓄積し、第1および/または第2差分データの
蓄積状態が予め定められた第2の条件を満足する場合に
はその時点での編集対象の全データ及び第1差分データ
を蓄積し、状態復元が指示されたときには復元すべき状
態の前または後に蓄積されている全データから第1およ
び/または第2差分データを用いて編集対象を指示され
た所定の過去の状態に復元することを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, the state restoration method of the present invention firstly restores the state based on differential data accumulated each time an editing target is changed. In the state restoration method performed,
If the storage state of the difference data satisfies predetermined conditions, all data to be edited and the difference data at that point are stored, and when state restoration is instructed, the data is stored before or after the state to be restored. The feature is that the editing target is restored to a specified predetermined past state using differential data from all the data that is being edited. In the state restoration method that restores the state, the difference data consists of first difference data created when the editing target is changed, and second difference data created by organizing a plurality of first difference data. When the accumulation state of the differential data satisfies the predetermined first condition, all the first differential data after the previous accumulation of the second differential data is organized to create the second differential data, and the second differential data is created. The second difference data is accumulated together with the first difference data created this time, and if the accumulation state of the first and/or second difference data satisfies the predetermined second condition, the current editing target is All data and first difference data are accumulated, and when state restoration is instructed, the first and/or second difference data are used to specify the editing target from all data accumulated before or after the state to be restored. It is characterized by restoring to a predetermined past state.

[作用コ 本発明によれば、差分データばかりでなく、差分データ
列のところどころに編集対象の全てのデータが蓄積され
る。従って、編集対象の状態復元は、復元すべき状態に
時間的に近い距離に蓄積されている全データから差分デ
ータを用いて行うことができるので、差分データに基づ
いて現在の状態から順に過去を復元するという従来の状
態復元方式に比較して状態復元を高速に行うことができ
る。
[Operations] According to the present invention, not only the difference data but also all the data to be edited are accumulated in some places in the difference data string. Therefore, the state to be edited can be restored using the difference data from all the data accumulated temporally close to the state to be restored, so the past state can be restored in order from the current state based on the difference data. Compared to conventional state restoration methods, state restoration can be performed faster.

[実施例コ 以下、図面を参照しつつ実施例を説明する。[Example code] Examples will be described below with reference to the drawings.

第1図は本発明に係る状態復元方式の一実施例の構成を
示す図であり、図中、1はマンマシンインターフェース
、2は差分データ(以下dデータと称す)作成手段、3
は変更データ蓄積手段、4は蓄積データ決定手段、5は
復元手順決定手段、6は復元手段を示す。
FIG. 1 is a diagram showing the configuration of an embodiment of the state restoration method according to the present invention, in which 1 is a man-machine interface, 2 is a difference data (hereinafter referred to as d data) creation means, and 3
4 represents a modified data storage means, 4 represents a stored data determination means, 5 represents a restoration procedure determination means, and 6 represents a restoration means.

第1図において、マンマシンインターフェース1は、C
RT等の表示装置及びキーボード、ポインティングデバ
イス等の入力装置とを備えるコンピュータとユーザとの
インターフェース部であり、編集対象の現時点での状態
、即ち現時点での編集対象データを保持している。
In FIG. 1, a man-machine interface 1 includes C
It is an interface unit between a computer and a user, which includes a display device such as an RT, and an input device such as a keyboard and a pointing device, and holds the current state of the editing target, that is, the current editing target data.

dデータ作成手段2は、編集が行われる度毎に編集対象
の編集前の状態と編集後の状態との差分をとってdデー
タを作成すると共に、作成したdデータを復元する場合
に要する時間、即ち復元時間を算出するものである。な
お、以下の説明においては、理解を容易にするために、
移動、置換等は全て削除と挿入に置き換えられて差分デ
ータが作成されるものとする。
The d data creation means 2 creates d data by calculating the difference between the pre-edited state and the post-edited state of the editing target each time editing is performed, and also calculates the time required to restore the created d data. , that is, the restoration time is calculated. In the following explanation, for ease of understanding,
It is assumed that all movements, replacements, etc. are replaced by deletions and insertions to create differential data.

変更データ蓄積手段3は、RAM、  フロッピーディ
スク等の適当な記憶手段で構成され、dデータまたは編
集対象の全てのデータ(以下、全データと称す)が蓄積
されるものである。
The modified data storage means 3 is constituted by a suitable storage means such as a RAM, a floppy disk, etc., and stores d data or all data to be edited (hereinafter referred to as "all data").

蓄積データ決定手段4は、dデータ、全データのいずれ
の変更データを変更データ蓄積手段3に蓄積するかを決
定するものである。
The storage data determining means 4 determines which changed data, d data or total data, is to be stored in the changed data storage means 3.

復元手順決定手段5は、マンマシンインターフェース1
により復元が指示された場合に、最短時間で指示された
状態に復元するために必要な変更データと復元手順を決
定するためのものである。
The restoration procedure determining means 5 is a man-machine interface 1
This is to determine the changed data and restoration procedure necessary to restore the specified state in the shortest time when restoration is instructed by the system.

復元手段6は、復元手順決定手段5で決定された変更デ
ータを変更データ蓄積手段3から読み出して、決定され
た手順に従って復元処理し、編集対象を指示された状態
に復元するものである。
The restoration means 6 reads the changed data determined by the restoration procedure determination means 5 from the changed data storage means 3, performs restoration processing according to the determined procedure, and restores the editing target to the specified state.

次に第1図に示す構成の動作について詳細に説明する。Next, the operation of the configuration shown in FIG. 1 will be explained in detail.

編集対象に対して何等かの編集が行われ、変更が生じた
場合にはマンマシンインターフェースエは、変更が生じ
た旨を示す信号を信号線(オ)を介して蓄積データ決定
手段4に送ると共に、編集対象の変更前の全データ及び
変更後の全データを信号線(ア)を介してdデータ作成
手段2に送る。
When some editing is performed on the editing object and a change occurs, the man-machine interface sends a signal indicating that a change has occurred to the stored data determining means 4 via the signal line (O). At the same time, all the data to be edited before and after the change are sent to the d data creation means 2 via the signal line (A).

これによりdデータ作成手段2では編集対象の変更前と
変更後の差分であるdデータと当該dデータの復元時間
が作成される。
As a result, the d data creation means 2 creates the d data that is the difference between before and after the edit target and the restoration time of the d data.

このとき、蓄積データ決定手段4はdデータ、全データ
のいずれを変更データ蓄積手段3に蓄積するかを決定す
るが、この蓄積データの決定の方法としては次の3通り
の方法がある。
At this time, the stored data determining means 4 determines which of the d data and the total data is to be stored in the changed data storing means 3. There are three methods for determining this stored data.

第1の方法は、前回の全データ蓄積以降に蓄積されてい
るdデータの復元時間の部分和を計算し、その値が予め
設定した閾値以上である場合には全データ及びdデータ
を蓄積し、そうでない場合にはdデータのみを蓄積する
よう決定する方法であり、具体的には次のようである。
The first method is to calculate the partial sum of the restoration times of the d data accumulated since the previous accumulation of all data, and if that value is greater than or equal to a preset threshold, all data and d data are accumulated. , otherwise, it is determined to store only d data, and specifically, the method is as follows.

第2図に示すように、変更データ蓄積手段3に、初期状
態であるt−の時点で全データ全Aが蓄積されており、
j+の時点での編集でdデータd+(復元時間△10)
が作成されて蓄積され、同様にjp、taの時点での編
集でdデータda(復元時間△ta2) 、da (復
元時間△to)が作成されて蓄積されているものとし、
いま、t4の時点で編集が行われdデータd4(復元時
間△td4)が作成されたとする。このとき、蓄積デー
タ決定手段4は信号線(つ)を介して今回作成されたd
データd、の復元時間△taaを取り込むと共に、変更
データ蓄積手段3から、前回の全データ全Aの蓄積以降
に蓄積されているdデータd+、d2.d+=の復元時
間△ja++△td2+△t、3を取り込み、その復元
時間の和△tdl+Δt、p+Δtag+△ta4が予
め設定された閾値T t h以上である場合にはt4の
時点における変更後の全データ全B及びdデータd4を
、そうでなければdデータd4を蓄積するようにするの
である。第2図は全データ全Bとdデータd4とを蓄積
した場合を示している。これによれば、復元時点の如何
に拘らず、復元に要する時間はT t hを超えること
はないから、従来の状態復元方式に比較して高速に状態
復元を行えることは明らかであり、特に、より古い過去
の状態に復元する場合に顕著である。
As shown in FIG. 2, all data A is stored in the changed data storage means 3 at the time t-, which is the initial state.
d data d+ (restoration time △10) by editing at the time of j+
is created and stored, and similarly, d data da (restoration time △ta2) and da (restoration time △to) are created and stored by editing at the time of jp and ta,
Assume that editing is performed at time t4 and d data d4 (restoration time Δtd4) is created. At this time, the stored data determining means 4 transmits the currently created d
At the same time, the restoration time Δtaa of the data d, is taken in from the changed data storage means 3, and the d data d+, d2. The restoration time △ja++ △td2 + △t, 3 of d+= is taken in, and if the sum of the restoration times △tdl+Δt, p+Δtag+△ta4 is greater than or equal to the preset threshold T th , then all the changes after the time of t4 are taken. All data B and d data d4 are stored, otherwise d data d4 is stored. FIG. 2 shows a case where all data B and d data d4 are accumulated. According to this, the time required for restoration will not exceed T th regardless of the restoration time, so it is clear that state restoration can be performed faster than conventional state restoration methods, especially , especially when restoring to an older past state.

第2の方法は、前回の全データの蓄積以降に蓄積されて
いるdデータのデータ量の部分和を計算し、その値が予
め設定したデータ量以上である場合には全データ及びd
データを蓄積し、そうでない場合にはdデータを蓄積す
る方法であり、具体的には、第2図に示す場合を例にと
ると、時点t4でdデータd4が作成されたとき、蓄積
データ決定手段4は今回作成されたdデータd4を取り
込むと共に、変更データ蓄積手段3から、前回の全デー
タ全Aの蓄積以降に蓄積されているdデータd+ + 
d 21 d aを取り込み、そのデータ量の和を計算
し、その値が予め設定された閾値B t h以上である
場合にはt4の時点における変更後の全データ全B及び
dデータ量4を、そうでなければdデータ量4のみを蓄
積するようにするのである。この方法は復元時間は差分
データのデータ量に概ね比例することを利用したもので
あり、これによれば、復元時点の如何に拘らず、1回の
復元に使用するデータ量は8thを超えることはないか
ら、従来の状態復元方式に比較して高速に状態復元を行
えることは明らかであり、特に、より古い過去の状態に
復元する場合に顕著である。なお、該第2の方法におい
ては各dデータについての復元時間を求める必要はない
ことは明らかである。
The second method calculates the partial sum of the amount of d data accumulated since the previous accumulation of all data, and if the value is greater than a preset amount of data, the total data and d
This is a method of accumulating data, and if not, accumulating d data. Specifically, taking the case shown in FIG. 2 as an example, when d data d4 is created at time t4, the accumulated data The determining means 4 takes in the d data d4 created this time, and also receives the d data d+ + accumulated since the previous accumulation of all data A from the changed data accumulation means 3.
d 21 d a is taken in, the sum of the data amounts is calculated, and if the value is greater than or equal to the preset threshold B t h, all the data after the change at the time of t4, the total B and d data amount 4 are calculated. , otherwise only d data amount 4 is stored. This method takes advantage of the fact that the restoration time is roughly proportional to the amount of differential data, and according to this, the amount of data used for one restoration will exceed 8th regardless of the restoration point. Therefore, it is clear that state restoration can be performed faster than conventional state restoration methods, especially when restoring to an older past state. Note that in the second method, it is clear that there is no need to find the restoration time for each d data.

第3の方法は、前回の全データの蓄積以降にdデータを
所定回数蓄積したら次の変更時には必ず全データ及びd
データを蓄積するようにする方法である。この方式では
復元時間は上記第1、第2の方法よりは長くなる可能性
があるが、従来の状態復元方式に比較すると短時間で状
態復元を行うことができることは明らかであり、また、
蓄積データ決定手段4における蓄積データ決定の処理は
非常に簡単なものとなる。
The third method is to accumulate all data and d data a predetermined number of times since the previous accumulation of all data.
This is a method of accumulating data. In this method, the restoration time may be longer than in the first and second methods, but it is clear that the state can be restored in a shorter time compared to the conventional state restoration method.
The process of determining the stored data in the stored data determining means 4 is extremely simple.

蓄積データ決定のために上記の3通りの方法のいずれを
採用するかは必要に応じて任意に選択することができる
It is possible to arbitrarily select which of the three methods described above to use for determining the accumulated data as required.

蓄積データ決定手段4は、蓄積すべき変更データを決定
すると、信号線(1)を介して変更データ蓄積手段3に
対して蓄積する変更データを指示する。これにより変更
データ蓄積手段3は、dデータの蓄積が指示された場合
には信号線(イ)を介して今回作成されたdデータを取
り込んで蓄積し、全データの蓄積が指示された場合には
信号線(ア)を介して変更後の全データを取り込んで蓄
積する。またこのとき、変更データ蓄積手段3は必要に
応じてdデータ作成手段2で作成された復元時間を取り
込んで蓄積する。
When the storage data determining means 4 determines the change data to be stored, it instructs the change data storage means 3 through the signal line (1) about the change data to be stored. As a result, the changed data storage means 3 takes in and stores the currently created d data via the signal line (A) when storage of d data is instructed, and when storage of all data is instructed. captures and stores all changed data via the signal line (A). Also, at this time, the modified data storage means 3 captures and stores the restoration time created by the d data creation means 2 as needed.

以下、同様にして蓄積データの決定が行われる。Thereafter, stored data is determined in the same manner.

次に、変更データ蓄積手段3のデータ構造について説明
する。変更データ蓄積手段3は、各データのアドレスが
書き込まれるエントリー領域と、エントリーが示す変更
内容そのものが書き込まれる変更内容領域を備えている
。そして、dデータに関しては、エントリー領域にはd
データのアドレスが書き込まれ、変更内容領域には、挿
入か削除かを示す変更の種類、変更データ即ちdデータ
の内容、編集対象内の変更位置、また必要に応じて復元
時間が書き込まれる。また、全データに関しては、エン
トリー領域には全データのアドレスが書き込まれ、変更
内容領域には編集対象の全体のデータが書き込まれる。
Next, the data structure of the changed data storage means 3 will be explained. The changed data storage means 3 includes an entry area in which the address of each data is written, and a changed content area in which the changed content indicated by the entry itself is written. As for d data, the entry area contains d
The address of the data is written, and in the change content area, the type of change indicating whether it is insertion or deletion, the content of the change data, that is, d data, the change position within the editing object, and the restoration time if necessary are written. Regarding all data, the addresses of all data are written in the entry area, and the entire data to be edited is written in the change content area.

次に、状態復元の動作について説明する。Next, the state restoration operation will be explained.

状態復元の指示及び復元すべき時点の指示が入力すれる
と、マンマシンインターフェース1はこれらのデータを
信号線(コ)を介して復元手順決定手段5に送る。復元
手順決定手段5は、これらの指定されたデータを受は取
ると、変更データ蓄積手段3から信号線(り)を介して
蓄積されている変更データを取り込んで復元手順を決定
し、当該復元手順を信号線(ケ)を介して復元手段6に
送ると共に、信号線(り)を介して変更データ蓄積手段
3に状態復元に必要な変更データの読み出しを指示する
。このようにして読み出された変更データは信号線(力
)を介して復元手段6に送られる。
When the instruction to restore the state and the instruction of the point in time to restore are input, the man-machine interface 1 sends these data to the restoration procedure determining means 5 via the signal line (C). Upon receiving these specified data, the restoration procedure determining means 5 takes in the changed data stored from the changed data storage means 3 via the signal line, determines the restoration procedure, and performs the restoration. The procedure is sent to the restoring means 6 via the signal line (l), and the changed data storage means 3 is instructed to read out the changed data necessary for restoring the state via the signal line (l). The modified data thus read out is sent to the restoring means 6 via the signal line (power).

復元手段6は、復元手順決定手段5からの復元手順及び
変更データ蓄積手段3からの変更データを受けると、変
更データを用いて決定された復元手順に従って編集対象
を指示された状態に復元し、信号線(キ)を介してマン
マシンインターフェース1に送る。これによって、マン
マシンインターフェース1の表示装置には指示された過
去の状態に復元された編集対象が表示される。
Upon receiving the restoration procedure from the restoration procedure determination means 5 and the change data from the change data storage means 3, the restoration means 6 restores the editing target to the specified state according to the restoration procedure determined using the change data, It is sent to the man-machine interface 1 via the signal line (K). As a result, the editing object restored to the instructed past state is displayed on the display device of the man-machine interface 1.

次に状態復元の動作について説明する。状態復元は全デ
ータからdデータを辿ることで行うが、復元手順を決定
するについては、復元に要する時間を最小にするパスを
選択する方法と、復元に要するデータ量を最小にするパ
スを選択する方法の2通りの方法がある。
Next, the state restoration operation will be explained. State restoration is performed by tracing d data from all data, but when deciding on the restoration procedure, there are two methods: select the path that minimizes the time required for restoration, and select the path that minimizes the amount of data required for restoration. There are two ways to do this.

まず、前者においては、復元手順決定手段5は、復元時
点が指示された場合には、当該復元時点とその前に蓄積
されている全データの間に蓄積されているdデータの復
元時間と、当該復元時とその後に蓄積されている全デー
タの間に蓄積されているdデータの復元時間を計算し、
これらを比較し。
First, in the former case, when a restoration time point is specified, the restoration procedure determining means 5 determines the restoration time of d data accumulated between the restoration time point and all the data accumulated before that point, Calculate the restoration time of the d data accumulated between the time of the restoration and all the data accumulated after that,
Compare these.

て復元時間の少ないパスを復元手順として決定する処理
を行う。具体的には次のようである。いま、変更データ
蓄積手段3には第3図に示すような変更データが蓄積さ
れているものとし、時点t+aにおける変更後の状態復
元が指示されたとすると、蓄積データ決定手段4が1−
2第1の方法を採用している場合には、復元手順決定手
段5は、復元時点とその前の全デ・−・夕全Cとの間に
蓄積されているdデータd+a+d++ +a+2nd
+a+d+4の復元時間の和ΔT1(=△t、 d 1
11+Atd日+△td12+△t、□3−+−△td
lA)、及び復元時点とその後の全デー<2全りとの間
に蓄積されているdデータdi6.cL+6、d1□+
d+s+d+oの復元時間の和ΔT2(二△td7.+
△t 、+a(−△t、、1−r(−Δt、、IIQ+
△t 1.o)を計算し、これらを比較して八T、≦△
T2であれば全データ全Cから順次dデータd+e+d
+++d+a+d+s + d + aを復元する手順
を選択り、、△T+>△T2であれば、全データ全りか
ら順次dデータd+e、ds+d+7+d+s+d+s
を復元する手順を選択する。
A process is performed to determine the path with the shortest restoration time as the restoration procedure. Specifically, it is as follows. Assume that the changed data storage means 3 has stored changed data as shown in FIG. 3, and that an instruction is given to restore the state after the change at time t+a.
2. When the first method is adopted, the restoration procedure determining means 5 selects the d data d+a+d++ +a+2nd accumulated between the restoration time and all data C before that.
+a+d+4 restoration time sum ΔT1 (=△t, d 1
11+Atd day+△td12+△t, □3-+-△td
lA), and d data di6. cL+6, d1□+
Sum of restoration times ΔT2(2Δtd7.+
△t, +a(-△t,, 1-r(-Δt,, IIQ+
△t1. o) and compare them to find 8T, ≦△
If T2, sequentially d data d+e+d from all data all C
Select the procedure to restore +++d+a+d+s + d+a, and if △T+>△T2, sequentially restore d data d+e, ds+d+7+d+s+d+s from all data.
Select the steps to restore.

次に、復元に要するデータ量を最小にするパスを選択す
る方法においては、復元手順決定手段5は、復元時点が
指示された場合には、当該復元時点とその前に蓄積され
ている全データの間に蓄積されているdデータのデータ
量の和と、当該復元時とその後に蓄積されている全デー
タの間に蓄積されているdデータのデータ量の和を計算
し、データ量の少ないパスを復元手順として決定する処
理を行う。具体的には、第3図の場合を例にとると、復
元手順決定手段5は、dデークd + s + d +
 I+d +2+d+3rd+aのデータ量の和B2、
及びdデータd+li+d+6+d+t+d+a+d+
*のデータ量の和B2を34算し、これらを比較して△
B、≦△B、であればぐデータ全Cから順次dデータd
 lll 、d口、d I 2 + d3 + d l
 4を復元する手順を選択し、ΔB+>ΔB2であれば
、全データ全りから順次dデータd+9+d+e + 
d l 71 d + 6+ d I 6を復元する手
順を選択する。
Next, in the method of selecting a path that minimizes the amount of data required for restoration, when a restoration time point is specified, the restoration procedure determining means 5 selects a path that minimizes the amount of data required for restoration. Calculate the sum of the amount of d data accumulated between the time of restoration and all the data accumulated after that time, Performs processing to determine the path as a restoration procedure. Specifically, taking the case of FIG. 3 as an example, the restoration procedure determining means 5 determines that
Sum of data amount B2 of I+d+2+d+3rd+a,
and d data d+li+d+6+d+t+d+a+d+
Calculate the sum B2 of the data amount of * and compare them to find △
If B, △B, sequentially d data d from all data C
lll, d mouth, d I 2 + d3 + d l
4, and if ΔB+>ΔB2, sequentially restore d data d+9+d+e+ from all data.
Select the procedure to restore d l 71 d + 6+ d I 6.

復元手順決定方法としていす狛の方法を採用するかは任
意であるが、復元所要時間に基づいて決定する場合に1
.!、変更データ蓄積手段3に復元時間が蓄積されてい
なければならないことは当然である。
It is optional whether to adopt Isukoma's method as a method for determining the restoration procedure, but if you decide based on the required restoration time, 1
.. ! It goes without saying that the restoration time must be stored in the modified data storage means 3.

なお、上記の説明において、指示された復元時点以降に
全データが蓄積されていない場合には、全デー・夕とし
て身時点での全y −,9を採用するものとする。
In the above description, if all data has not been accumulated after the designated restoration time, all y-,9 at the current time is assumed to be used as all data and evening.

息子の動作においで、復元手順決定のための計14時間
は復う)[5外理::一片較し7″」分じ短いので、無
視することができろものである。」刀、〜、第1図の構
成はハ・−ドウ。アで構成でさることは勿論、ソノトつ
。−アで構成する+7ともできる′−i)のである。
In the son's movement, a total of 14 hours for determining the restoration procedure is shortened by 7'', so it can be ignored. "Sword, ~, the composition of Figure 1 is Ha-do. Of course, it is composed of A and Sonoto. It can also be +7 consisting of -a'-i).

以1−1本光明のap 3の実施例について説明したが
、次じ第2の実施例に°ついて説明する。
The 1-1 Ap 3 embodiment of Komyo has been described above, and the second embodiment will now be described.

第11図に本発明の第2の実施例の構成を示すが、二の
構成は第1図に示す構成に第2の差分データでJ)るD
デー3ノを作成するI)データ作成手段7が(=j加さ
れた構成?” j′)す、それ;ご伴っ゛τ蓄積データ
決定手段4及び復元手順決定手段5の処理内容が異なっ
ている。なお、以下の説明においては第1図と重複する
場合にはその説明を省略する。
FIG. 11 shows the configuration of a second embodiment of the present invention, and the second configuration is the configuration shown in FIG.
I) The data creation means 7 creates the (=j added configuration?" In the following explanation, if it overlaps with that of FIG. 1, the explanation will be omitted.

Dデータ作成手段7はDデータ及びその復元時間を作成
するものである。Dデータは、よ2第1の実施例より状
態復元を効率よく行えるように、前回のDデータ蓄積以
降に作成された全てのdデータを整理してまとめたデー
タであり、その詳細については後述するところから明ら
かになるであろう。
The D data creation means 7 creates D data and its restoration time. The D data is data that has been organized and summarized all the d data created since the previous D data accumulation so that the state can be restored more efficiently than in the first embodiment, and the details will be described later. It will become clear from where you go.

編集対象に対して何等かの編集が行われ、変更が生した
場合に(マ、蓄積データ決定手段4はdデータ、Dデー
タ、全データのいずれを変更データ蓄積手段3に蓄積す
るかを決定するが、この蓄積データの決定方法としては
、−1−2第1の実施例におけると同様に3通りの方法
がある。
When some kind of editing is performed on the editing target and a change occurs (Ma), the storage data determining means 4 determines whether to store d data, D data, or all data in the changed data storage means 3. However, there are three methods for determining this accumulated data, as in the -1-2 first embodiment.

まず、上記第1の方法、即し復元時間に基づいて蓄積デ
ータを決定する場合には、蓄積データ決定手段4は、d
データ、Dデータ、全デー・夕のいずれを変更データ蓄
積手段3に蓄積するかを決定するに際して、前の全デー
タの蓄積時点からDデ−タ及びdデータを辿って編集対
象を現状の状態に復元するに要する前方向復元所要時間
T pa、及び前のDデータの蓄積時点からdデータを
辿って編集対象を現状の状態に復元するに要する前方向
復元所要時間T p oに基づいて行うのである。即ち
、初期状態では変更データ蓄積手段3には全データが蓄
積されており、蓄積データ決定手段4はマンマシンイン
ターフェース1から変更が生じた旨の信号を受は取る度
毎にT F 6及びTFDを演算し、T1.が予め設定
されている上限値Tn+u+p以上である場合には当該
変更後の全データ及びdデータを蓄積する決定を行い、
Tpnが予め設定されている上限値Tn、、D以上であ
る場合には、今回作成されたdデータをも含めて前回蓄
積されたDデータ以降に作成されたdデータ列を整理し
てDデータを作成して蓄積すると共に、今回作成された
dデータも蓄積する決定を行い、それ以外の場合はdデ
ータを蓄積する決定を行う。このようにDデータは単独
で蓄積されるものではなく、編集対象の今回の変更に伴
って作成されたdデータとペアで蓄積されるのである。
First, when determining the accumulated data based on the first method, that is, the restoration time, the accumulated data determining means 4 uses d
When deciding whether to store data, D data, all data, or evening data in the changed data storage means 3, the D data and d data are traced from the previous storage point of all data, and the editing target is changed to the current state. This is performed based on the forward restoration time required to restore the data to the current state, Tpa, and the forward restoration time required, Tpo, to restore the editing target to its current state by tracing the d data from the point of accumulation of the previous D data. It is. That is, in the initial state, all data is stored in the changed data storage means 3, and each time the stored data determining means 4 receives a signal from the man-machine interface 1 indicating that a change has occurred, the stored data determines T F 6 and TFD. Calculate T1. is greater than or equal to the preset upper limit Tn+u+p, a decision is made to accumulate all data and d data after the change,
If Tpn is greater than or equal to the preset upper limit Tn,,D, the d data strings created after the last accumulated D data, including the d data created this time, are organized and the D data is stored. At the same time, it is determined to create and store the d data created this time, and in other cases, it is determined to store the d data. In this way, the D data is not stored alone, but is stored as a pair with the d data created in accordance with the current change in the editing target.

後述するところから明らかなように、このことによって
状態復元のための処理時間を上記第1の実施例よりも短
縮することができるのである。
As will be clear from what will be described later, this allows the processing time for state restoration to be shorter than in the first embodiment.

なお、前にDデータが蓄積されていない場合にはT p
 D = T p^として蓄積データを決定するものと
する。また、Dデータはdデータ列を効率よく復元でき
るように整理したデータであるので、dデータ列をそれ
ぞれ単独に復元する場合に比較して短時間で復元できる
ことは明らかであり、一つのDデータを復元するに必要
な時間は、当該Dデータに含まれるdデータ列の復元時
間の総和よりは小さい。例えば、あるDデータが3つの
dデータd+ 、d2.daを整理してまとめたもので
あるとし、これらの各dデータの復元時間をそれぞれ△
td+、△td2.△tdaとすると、このDデータの
復元時間△tnは △tn<△tdI十△tdl!+△td3となる。
Note that if no D data has been accumulated before, T p
It is assumed that the accumulated data is determined as D = T p^. In addition, since D data is data that has been organized so that d data strings can be efficiently restored, it is clear that it can be restored in a shorter time than when restoring each d data string individually. The time required to restore is smaller than the total restoration time of the d data strings included in the D data. For example, a certain D data consists of three d data d+, d2. Assume that da is organized and summarized, and the restoration time of each of these d data is △
td+, △td2. If △tda, then the restoration time △tn of this D data is △tn<△tdI ten △tdl! +Δtd3.

二つの上限値Tnamo及びT、lI¥8カについては
変更データ蓄積手段3の記憶容量等を勘案して設定すれ
ばよい。記憶容量が大きい場合には復元時間を短縮する
ために、比較的頻繁に全データを蓄積するのが得策であ
り、記憶容量が小さい場合にはDデータを蓄積するのが
得策であることは明らかである。
The two upper limit values Tnamo and T and lI\8 may be set by taking into consideration the storage capacity of the changed data storage means 3, etc. It is clear that if the storage capacity is large, it is a good idea to accumulate all data relatively frequently in order to shorten the restoration time, and if the storage capacity is small, it is a good idea to accumulate D data. It is.

第1の方法による蓄積データ決定処理を具体的に説明す
ると次のようである。第2図に示す場合を例にとると、
蓄積データ決定手段4はTpp及びT F nを演算す
る。第2図の場合、T、aの時点で蓄積されている全デ
ータ全Aから順次d+ 、(し、da、d4のdデータ
を辿って編集対象を現在の状態に復元するには、 TFA=TFD=△1d++Δtda+△taa+△t
ajの時間だけ要することになるが、Tp。≧T、。□
である場合には、蓄積データ決定手段4は、今回の編集
により変更された状態の全データ及び今回作成したdデ
ータd4を蓄積すると決定する。
The stored data determination process according to the first method will be specifically explained as follows. Taking the case shown in Figure 2 as an example,
The accumulated data determining means 4 calculates Tpp and T F n. In the case of Fig. 2, all the data accumulated at time T, a are sequentially d+, (and, to restore the editing target to the current state by tracing the d data of da, d4, TFA= TFD=△1d+++Δtda+△taa+△t
Although it will take the time of aj, Tp. ≧T. □
If so, the storage data determining means 4 determines to store all the data changed by the current editing and the d data d4 created this time.

また、TFD≧Tn11xnである場合には、蓄積デー
タ決定手段4はDデータを蓄積すると決定し、信号線(
1)を介して変更データ蓄積手段3にその旨を指示する
と共に、信号線(す)に起動信号を発生することにより
Dデータ作成手段7を起動させ、Dデータを作成させる
。これによりDデータ作成手段7は、信号線(イ)を介
して今回作成されたdデータd4を取り込み、更に信号
線(シ)を介して変更データ蓄積手段3からこれまでに
蓄積されているdデータd+、da及びdaを読み込み
、これらの4個のdデータd1.d2.da、d4を削
除と挿入に分け、それぞれ文字列の位置の順番にソーテ
ィングすることによって整理する。このようにして作成
されたDデータD、は信号線(シ)を介して変更データ
蓄積手段3に蓄積されるが、このときには同時に今回作
成されたdデータd4も信号線(イ)を介して蓄積され
る。このときの様子を第5図に示す。なお、この場合の
DデータD量の復元時間△tDIは △1+++<Δ1d++Δtd2+△tda+△tda
であることは当然である。
Further, when TFD≧Tn11xn, the storage data determining means 4 determines to store D data, and the signal line (
1), the changed data storage means 3 is instructed to that effect, and a start signal is generated on the signal line (su) to start the D data creation means 7 and create the D data. As a result, the D data creation means 7 takes in the d data d4 created this time via the signal line (a), and also receives the d data d4 that has been accumulated so far from the changed data storage means 3 via the signal line (b). Read the data d+, da, and da, and convert these four d data d1. d2. Da and d4 are divided into deletions and insertions, and organized by sorting them in the order of the character string positions. The D data D created in this way is stored in the changed data storage means 3 via the signal line (C), but at the same time, the d data d4 created this time is also stored via the signal line (A). Accumulated. The situation at this time is shown in FIG. In addition, the restoration time △tDI of the amount of D data D in this case is △1+++<Δ1d++Δtd2+△tda+△tda
Of course it is.

また、Tpll<Tnoxoで且つT pn < T 
IIaxnである場合には、蓄積データ決定手段4はd
データdAのみを蓄積すると決定する。
Moreover, T pll < Tnoxo and T pn < T
IIaxn, the accumulated data determining means 4 d
It is determined that only data dA is to be stored.

次に蓄積データ決定方法として上記第2の方法を採用し
た場合には次のようである。このとき、蓄積データ決定
手段4は、例えば、前回の全データ蓄積以降の全データ
量B、11及び前回のDデータ蓄積以降の全データ量B
nm++を計算し、Ba1l≧Bい、である場合には全
データ及び今回作成したdデータを蓄積すると決定しN
  BDall≧Bthpである場合には、今回作成さ
れたdデータをも含めて前回のDデータ蓄積以降のdデ
ータを整理してDデータを作成させ、今回作成したdデ
ータと共番こ蓄積する決定をし、それ以外の場合にはd
データのろ。
Next, when the second method is adopted as the accumulated data determination method, the process is as follows. At this time, the accumulated data determining means 4 determines, for example, the total data amount B, 11 since the previous all data accumulation, and the total data amount B since the previous D data accumulation.
nm++ is calculated, and if Ba1l≧B, it is decided to accumulate all data and the d data created this time.N
If BDall≧Bthp, it is decided to create D data by organizing the d data since the previous D data accumulation, including the d data created this time, and to store the same number as the d data created this time. and otherwise d
Data is slow.

を蓄積するものと決定する。なおN  Bth++Bt
h21ま予め設定されている閾値である。
is decided to be accumulated. Note that N Bth++Bt
h21 is a preset threshold value.

また、蓄積データ決定方法として上記第3の方法を採用
した場合には、蓄積データ決定手段4山例えば、前回の
I〕デデー蓄積以降のdデータの蓄積回数が予め設定さ
れた回数Nに達した場合乙こit次は必ずDデータ及び
dデータを蓄積すると決定し、前回の全データの蓄積以
降に予め設定された回数だけDデータを蓄積したら次に
は必ず全データを蓄積するように決定する。
In addition, when the third method described above is adopted as the accumulation data determination method, for example, if the number of accumulations of d data since the previous I]de data accumulation has reached the preset number N In this case, it is determined that D data and d data will be stored next time, and after storing D data a preset number of times since the previous storage of all data, it will be determined that all data will be stored next time. .

以下、同様にして蓄積データの決定が行われる。Thereafter, stored data is determined in the same manner.

変更データ蓄積手段3のデータ構造はdデータ及び全デ
ータについては上記第1の実施例で説明したと同じであ
るが、Dデータに関しては、エントリー領域にはDデー
・夕のアドレスが書き込まれ、変更内容領域には、挿入
内容のデータ配列即ち変゛更データとその変更位置の配
列、削除内容のデータ配列即ち変更データとその変更位
置の配列、前のDデータまたは全データのエントリーア
ドレス、後のDデータまたは全データのエントリーアド
レス、また必要に応じて当該変更を復元するために必要
な復元時間が書き込まれる。
The data structure of the changed data storage means 3 is the same as described in the first embodiment for d data and all data, but for D data, the address of D day/evening is written in the entry area, The changed content area includes a data array for inserted content, that is, an array of changed data and its changed position, a data array for deleted content, that is, an array of changed data and its changed position, the entry address of the previous D data or all data, and the following. The entry address of the D data or all data, and if necessary, the restoration time required to restore the changes are written.

次に、状態復元の動作について説明する。Next, the state restoration operation will be explained.

マンマシンインターフェース1から復元時点が指示され
ると、復元手順決定手段5は復元手順を決定するが、復
元手順の決定方法としては、上記の第1の実施例におけ
ると同様に、復元所要時間に基づいて決定する方法と、
復元に要するデータ量に基づいて決定する方法の2通り
の方法がある。
When the restoration time point is instructed from the man-machine interface 1, the restoration procedure determining means 5 determines the restoration procedure. As in the first embodiment described above, the restoration procedure determination means 5 determines the restoration procedure based on the restoration time required. how to decide based on;
There are two methods of determining this based on the amount of data required for restoration.

ます、復元所要時間に基づいて復元手順を決定する方法
については次のようである。
The method for determining the restoration procedure based on the required restoration time is as follows.

この実施例においては、状態復元は全データからDデー
タ間を辿り、最後にdデータ間を辿ることで行う。従っ
て、復元手順決定手段5は、復元時点の前後に蓄積され
ている全データからDデータを辿り、最後にdデータを
辿って指示された復元時点の状態に復元するに要する処
理時間が最短になるパスを復元手順として決定するが、
具体的には次のようである。いま、変更データ蓄積手段
3には第6図に示すような変更データが蓄積されている
ものとし、時点を目における変更後の状態復元が指示さ
れたものとすると、この場合には、状態復元のパスとし
ては次の■〜■の4通りが考えられる。
In this embodiment, state restoration is performed by tracing from all data to D data, and finally by tracing D data. Therefore, the restoration procedure determining means 5 traces the D data from all the data accumulated before and after the restoration time, and finally traces the d data to minimize the processing time required to restore the state at the designated restoration time. The path will be determined as the restoration procedure, but
Specifically, it is as follows. Now, it is assumed that the changed data storage means 3 has accumulated change data as shown in FIG. The following four paths (1) to (2) are possible as the path.

■全A +d Ie ” d + s→d+7→D4→
D3→die→d11→復元時点 ■全A→d+s→d、*→d+t→D、→d+s→d+
2→復元時点 ■全B→D、→D2→d+++”dz→復元時点■全B
 = D +→D2→D3峠d+3→d+2→復元時点
従って、復元手順決定手段4は、これらの4通りの復元
パスについてそれぞれの変更データの復元時間を加算し
て復元所要時間を求め、復元所要時間が最小となるパス
を復元手順として決定し、決定した復元手順を復元手段
6に送ると共に、変更データ蓄積手段3に指示して当該
復元手順に必要な変更データを変更手段6に送るように
指示する。以上の動作により編集対象は指示された状態
に復元され、マンマシンインターフェース1の表示装置
に表示されることとなる。
■All A +d Ie ” d + s→d+7→D4→
D3 → die → d11 → Restoration time ■ All A → d + s → d, * → d + t → D, → d + s → d +
2 → At the time of restoration ■ All B → D, → D2 → d+++”dz → At the time of restoration ■ All B
= D + → D2 → D3 Pass d+3 → d+2 → Restoration time point Therefore, the restoration procedure determining means 4 calculates the restoration time by adding the restoration time of each changed data for these four restoration paths, and determines the restoration time. The path with the minimum time is determined as the restoration procedure, and the determined restoration procedure is sent to the restoration means 6, and the changed data storage means 3 is instructed to send changed data necessary for the restoration procedure to the changing means 6. Instruct. Through the above operations, the editing target is restored to the specified state and displayed on the display device of the man-machine interface 1.

第6図の場合、従来の状態復元方式では現時点から時点
1++における変更後の状態に復元するにはlOステッ
プの処理が必要であるが、本発明ではそれよりも少ない
ステップ数でよく、従って本発明により状態復元を高速
にできることは明らかである。
In the case of FIG. 6, in the conventional state restoration method, 10 steps are required to restore the state from the current point to the changed state at time 1++, but the present invention requires a smaller number of steps; It is clear that the invention can speed up state restoration.

また、第6図において現時点が時点te9である場合に
は、全データ全Aを現在の状態と読み直し、上述したと
同様にして同じように復元手順を決定することができる
In addition, when the current time is time te9 in FIG. 6, all the data A can be reread as the current state and the restoring procedure can be determined in the same manner as described above.

以上のように、変更データ蓄積手段3内の各変更内容の
データにその復元所要時間を付加して書き込んでおくこ
とによって、各変更を復元するための所要時間はほぼこ
の付加データだけで計算でき、全体の復元時間はそれら
の加算で求めることができる。なお、復元手順決定のた
めの計算時間は復元処理に比較して十分に短いので、無
視することができるものである。
As described above, by writing the data of each change in the change data storage means 3 with the time required for restoring it, the time required to restore each change can be almost calculated using this additional data alone. , the total restoration time can be found by adding them. Note that the calculation time for determining the restoration procedure is sufficiently short compared to the restoration process, so it can be ignored.

次に、復元に要するデータ量に基づいて復元手順を決定
する方法については次のようである。第6図の場合を例
にとると、復元手順決定手段5は、上記の4通りのパス
についてそれぞれ復元に要するデータ量を計算し、最も
データ量が少ないパスを復元手順として決定する。
Next, a method for determining a restoration procedure based on the amount of data required for restoration is as follows. Taking the case of FIG. 6 as an example, the restoration procedure determining means 5 calculates the amount of data required for restoration for each of the above four paths, and determines the path with the least amount of data as the restoration procedure.

復元手順決定方法としていずれの方法を採用するかは任
意であるが、復元所要時間に基づいて決定する場合には
、変更データ蓄積手段3に復元時間が蓄積されていなけ
ればならないことは当然である。
Which method to adopt as the restoration procedure determination method is arbitrary, but when determining based on the restoration time required, it goes without saying that the restoration time must be stored in the changed data storage means 3. .

なお、第1図の構成と同様に第4図の構成についてもハ
ードウェアでもソフトウェアでも構成することができる
Note that, similar to the configuration in FIG. 1, the configuration in FIG. 4 can be configured using either hardware or software.

以上、本発明の実施例について説明したが、本発明は上
記実施例に限定されるものではなく、種々の変形が可能
であることは明らかである。例えば、上記第1、第2の
実施例では初期状態で全データが蓄積されているものと
し、蓄積データの決定を前方向復元所要時間あるいはデ
ータ量というパラメータにより行うものとしたが、現在
の編集対象の状態を基にして、そこから過去に遡って復
元する場合の復元所要時間またはデータ量に応じて蓄積
するデータを決定するようにしてもよいものである。
Although the embodiments of the present invention have been described above, it is clear that the present invention is not limited to the above embodiments and that various modifications are possible. For example, in the first and second embodiments described above, it is assumed that all data is accumulated in the initial state, and the accumulated data is determined based on parameters such as the forward restoration time or data amount. Based on the state of the object, the data to be accumulated may be determined in accordance with the time required for restoration or the amount of data when restoring from there retrospectively.

また、上記の実施例では、dデータの復元時間はdデー
タ作成手段で、Dデータの復元時間はDデータ作成手段
でそれぞれ作成されるものとしたが、蓄積データ決定手
段で作成するようにすることもできるものである。
Furthermore, in the above embodiment, the restoration time of d data is created by the d data creation means, and the restoration time of D data is created by the D data creation means, but they are created by the accumulated data determination means. It is also possible.

[発明の効果コ 以上の説明から明らかなように、本発明によれば、従来
のように差分データだけを蓄積するものではなく、所々
に全データを蓄積するようにしたので、指定された復元
状態に近い時点に蓄積されている全データを出発点とし
て、そこから差分データを用いて状態復元を行うことが
できるので、復元すべき過去の時点にかかわらず高速に
所望の状態に復元できる機能を実現することができる。
[Effects of the Invention] As is clear from the above explanation, according to the present invention, instead of storing only differential data as in the past, all data is stored in some places, so that specified restoration Since the state can be restored using differential data starting from all the data accumulated at a point in time close to the state, it is a function that can quickly restore the desired state regardless of the past point in time to be restored. can be realized.

それに加えて、指定された復元時点の前の全データから
でも後の全データからでも復元することができるので、
最短の復元パスを選択し、高速復元を行うことができる
In addition, you can restore from all data before or after the specified restoration point.
You can select the shortest recovery path and perform fast recovery.

また、変更データの蓄積に関しては復元時間をも併せて
書き込んでおくことによって全体の復元時間を容易に求
めることができ、復元手順の決定を高速に行うことがで
きる。そして、この復元時間の部分和または蓄積されて
いる差分データのデータ量の部分和を蓄積データ決定手
段の判定条件として用いることによって、より効率的な
差分データ蓄積と復元を行うことも可能である。
Furthermore, with regard to accumulation of changed data, by writing the restoration time as well, the entire restoration time can be easily determined, and the restoration procedure can be determined at high speed. Further, by using the partial sum of the restoration time or the partial sum of the data amount of the stored difference data as a judgment condition of the storage data determining means, it is also possible to perform differential data storage and restoration more efficiently. .

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

第1図は本発明に係る状態復元方式の第1の実施例の構
成を示す図、第2図は第1の実施例における蓄積データ
手段の処理を説明するための図、第3図は第1の実施例
における復元手順決定手段の処理を説明するための図、
第4図は本発明に係る状態復元方式の第2の実施例の構
成を示す図、第5図は第2の実施例における蓄積データ
手段の処理を説明するための図、第6図は第2の実施例
における復元手順決定処理を説明するための図、第7図
は従来の状態復元方式の構成例を示す図、第8図は差分
データ蓄積手段内のデータ構造を示す図である。 1…マンマシンインターフエース、2・・・dデータ作
成手段、3・・・変更データ蓄積手段、4・・・蓄積デ
ータ決定手段、5・・・復元手順決定手段、6・・・復
元手段、7・・・Dデータ作成手段。 第1 図 時点 第2 図 変更データ蓄積手段 内のデータの並び 全A d。 d。 (壱P) 復元時間 Δt 41 △t。 △t。 山、4) 第4 図 第5図 第 3図 △t U △Lt △t 13 tゎ 現時点 △tas △t。 △t at △(。 ぼ0.) △t□。 △t al △t 412 △t、、。 △t6.4 △t 41@ △t Ull △t、17 △t 1111 儲、1゜) △t、ゎ 第6図 △t ml △tit △t 43 m−) △t工 △t。 △Lt △t。 α〜) △t al。 Δt al △t4.。 磨π、) △t1,4 △t、1゜ を匍 現時点 △【、1□ △t ml。 (刈、1.) △t0
FIG. 1 is a diagram showing the configuration of a first embodiment of the state restoration method according to the present invention, FIG. 2 is a diagram for explaining the processing of the accumulated data means in the first embodiment, and FIG. A diagram for explaining the processing of the restoration procedure determining means in the first embodiment,
FIG. 4 is a diagram showing the configuration of a second embodiment of the state restoration method according to the present invention, FIG. 5 is a diagram for explaining the processing of the accumulated data means in the second embodiment, and FIG. FIG. 7 is a diagram illustrating a configuration example of a conventional state restoration method, and FIG. 8 is a diagram illustrating a data structure within the differential data storage means. DESCRIPTION OF SYMBOLS 1...Man-machine interface, 2...D data creation means, 3...Change data accumulation means, 4...Accumulated data determination means, 5...Restoration procedure determination means, 6...Restoration means, 7...D data creation means. As of the time in FIG. 1, FIG. 2 shows the total arrangement of data in the changed data storage means A d. d. (1P) Restoration time Δt 41 Δt. △t. Mountain, 4) Figure 4 Figure 5 Figure 3 △t U △Lt △t 13 tゎCurrently △tas △t. △t at △(. BO0.) △t□. △t al △t 412 △t,,. △t6.4 △t 41@ △t Ull △t, 17 △t 1111 profit, 1゜) △t, ゎFigure 6 △t ml △tit △t 43 m-) △t engineering △t. △Lt △t. α~) △t al. Δt al Δt4. . Polish π,) △t1,4 △t, 1° at the moment △[, 1□ △t ml. (Kari, 1.) △t0

Claims (12)

【特許請求の範囲】[Claims] (1)編集対象の変更の度毎に蓄積される差分データに
基づいて状態復元を行う状態復元方式において、差分デ
ータの蓄積状態が予め定められた条件を満足する場合に
はその時点での編集対象の全データ及び差分データを蓄
積し、状態復元が指示されたときには復元すべき状態の
前または後に蓄積されている全データから差分データを
用いて編集対象を指示された所定の過去の状態に復元す
ることを特徴とする状態復元方式。
(1) In a state restoration method that restores the state based on the difference data accumulated each time the editing target is changed, if the accumulated state of the difference data satisfies predetermined conditions, editing at that point is performed. Accumulate all target data and differential data, and when state restoration is instructed, use the differential data from all data accumulated before or after the state to be restored to change the editing target to the specified past state. A state restoration method characterized by restoration.
(2)前記予め定められた条件は、前回の全データ蓄積
時点から現時点までの前方向復元所要時間に基づいて設
定されることを特徴とする請求項1記載の状態復元方式
(2) The state restoration method according to claim 1, wherein the predetermined condition is set based on the time required for forward restoration from the previous all data accumulation point to the current time.
(3)前記予め定められた条件は、前回の全データ蓄積
時点以降の差分データのデータ量の和に基づいて設定さ
れることを特徴とする請求項1記載の状態復元方式。
(3) The state restoration method according to claim 1, wherein the predetermined condition is set based on the sum of data amounts of differential data after the previous time point of all data accumulation.
(4)前記予め定められた条件は、前回の全データ蓄積
時点以降の差分データの蓄積回数に基づいて設定される
ことを特徴とする請求項1記載の状態復元方式。
(4) The state restoration method according to claim 1, wherein the predetermined condition is set based on the number of times differential data has been accumulated since the previous time when all data was accumulated.
(5)前記状態復元のパスは復元所要時間が最小となる
パスが選択されることを特徴とする請求項1記載の状態
復元方式。
(5) The state restoration method according to claim 1, wherein a path for the state restoration is selected such that a path requiring a minimum restoration time is selected.
(6)前記状態復元のパスは復元に要するデータ量が最
小となるパスが選択されることを特徴とする請求項1記
載の状態復元方式。
(6) The state restoration method according to claim 1, wherein a path for the state restoration is selected such that a path requiring a minimum amount of data for restoration is selected.
(7)編集対象の変更の度毎に蓄積される差分データに
基づいて状態復元を行う状態復元方式において、差分デ
ータは、編集対象の変更時に作成される第1差分データ
と、複数の第1差分データを整理して作成される第2差
分データとからなり、第1差分データの蓄積状態が予め
定められた第1の条件を満足する場合には、前回の第2
差分データ蓄積時点以降の全ての第1差分データを整理
して第2差分データを作成し、当該第2差分データを今
回作成した第1差分データと共に蓄積し、第1および/
または第2差分データの蓄積状態が予め定められた第2
の条件を満足する場合にはその時点での編集対象の全デ
ータ及び第1差分データを蓄積し、状態復元が指示され
たときには復元すべき状態の前または後に蓄積されてい
る全データから第1および/または第2差分データを用
いて編集対象を指示された所定の過去の状態に復元する
ことを特徴とする状態復元方式。
(7) In a state restoration method that restores the state based on difference data accumulated each time the editing target is changed, the difference data includes the first difference data created when the editing target is changed, and the plurality of first difference data. and second difference data created by organizing the difference data, and if the accumulation state of the first difference data satisfies a predetermined first condition, the previous second difference data is
Organize all the first difference data after the time of difference data accumulation to create second difference data, accumulate the second difference data together with the first difference data created this time, and
Or, the second difference data storage state is predetermined.
If the conditions are satisfied, all the data to be edited at that point and the first difference data are accumulated, and when state restoration is instructed, the first difference data is stored from all the data accumulated before or after the state to be restored. and/or a state restoration method characterized by restoring the editing target to a specified predetermined past state using the second difference data.
(8)前記予め定められた第1の条件は前回の第2差分
データ蓄積時点から現時点までの前方向復元所要時間に
基づいて設定され、前記予め定められた第2の条件は前
回の全データ蓄積時点から現時点までの前方向復元所要
時間に基づいて設定されることを特徴とする請求項7記
載の状態復元方式。
(8) The predetermined first condition is set based on the required time for forward restoration from the previous second differential data accumulation point to the present time, and the predetermined second condition is 8. The state restoration method according to claim 7, wherein the state restoration method is set based on the forward restoration time required from the accumulation point to the current time.
(9)前記予め定められた第1の条件は前回の第2差分
データ蓄積時点以降の第1差分データのデータ量の和に
基づいて設定され、前記予め定められた第2の条件は前
回の全データ蓄積時点以降の全てのデータのデータ量の
和に基づいて設定されることを特徴とする請求項7記載
の状態復元方式。
(9) The predetermined first condition is set based on the sum of the data amounts of the first difference data after the previous second difference data accumulation time, and the predetermined second condition is 8. The state restoration method according to claim 7, wherein the state restoration method is set based on the sum of data amounts of all data after the point in time when all data is accumulated.
(10)前記予め定められた第1の条件は、前回の第2
差分データ蓄積時点以降の第1差分データの蓄積回数に
基づいて設定され、前記予め定められた第2の条件は、
前回の全データ蓄積時点以降の第2差分データの蓄積回
数に基づいて設定されることを特徴とする請求項7記載
の状態復元方式。
(10) The predetermined first condition is the previous second condition.
The predetermined second condition is set based on the number of times the first difference data is accumulated after the time of accumulation of the difference data, and the predetermined second condition is:
8. The state restoration method according to claim 7, wherein the state restoration method is set based on the number of times the second difference data has been stored since the previous time when all data was stored.
(11)前記状態復元のパスは復元所要時間が最小とな
るパスが選択されることを特徴とする請求項7記載の状
態復元方式。
(11) The state restoration method according to claim 7, wherein a path for the state restoration is selected such that a path requiring a minimum restoration time is selected.
(12)前記状態復元のパスは復元に要するデータ量が
最小となるパスが選択されることを特徴とする請求項7
記載の状態復元方式。
(12) Claim 7, wherein the state restoration path is selected as a path that minimizes the amount of data required for restoration.
State restoration method described.
JP2156238A 1990-06-14 1990-06-14 State restoration system Pending JPH0452755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2156238A JPH0452755A (en) 1990-06-14 1990-06-14 State restoration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2156238A JPH0452755A (en) 1990-06-14 1990-06-14 State restoration system

Publications (1)

Publication Number Publication Date
JPH0452755A true JPH0452755A (en) 1992-02-20

Family

ID=15623394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2156238A Pending JPH0452755A (en) 1990-06-14 1990-06-14 State restoration system

Country Status (1)

Country Link
JP (1) JPH0452755A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816369A (en) * 1994-06-27 1996-01-19 Internatl Business Mach Corp <Ibm> Method and system for clustering
JP2000010692A (en) * 1998-06-24 2000-01-14 Sfd Kk Application device and method provided with redo/undo function and automatic preservation function of work
JP2008501180A (en) * 2004-06-01 2008-01-17 レッド ベンド エルティーディー Method and system for in-place updating of content stored in a storage device
JP2008282239A (en) * 2007-05-11 2008-11-20 Hitachi Ltd Storage control device, and method for controlling storage control device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63273961A (en) * 1987-05-01 1988-11-11 Nec Corp Management system for plural versions

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63273961A (en) * 1987-05-01 1988-11-11 Nec Corp Management system for plural versions

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816369A (en) * 1994-06-27 1996-01-19 Internatl Business Mach Corp <Ibm> Method and system for clustering
JP2000010692A (en) * 1998-06-24 2000-01-14 Sfd Kk Application device and method provided with redo/undo function and automatic preservation function of work
JP2008501180A (en) * 2004-06-01 2008-01-17 レッド ベンド エルティーディー Method and system for in-place updating of content stored in a storage device
JP2008282239A (en) * 2007-05-11 2008-11-20 Hitachi Ltd Storage control device, and method for controlling storage control device

Similar Documents

Publication Publication Date Title
US5428774A (en) System of updating an index file of frame sequences so that it indexes non-overlapping motion image frame sequences
US9984725B2 (en) Apparatus and method for editing
JP3943880B2 (en) Video data processing apparatus and method
US5657433A (en) Method for generating, managing and displaying information retrieval data on information processing system
JP3980062B2 (en) Media editing system with improved effects management
JPH0778804B2 (en) Scene information input system and method
KR100601610B1 (en) Method for vertually deleting data stream object, searching method, recovering method, method for permanently deleting thereof, and recording medium storing additional infomation for recovering data stream objects divided by vertual deletion
JPH0455317B2 (en)
JP3574606B2 (en) Hierarchical video management method, hierarchical management device, and recording medium recording hierarchical management program
JPH06253255A (en) Video index display device
JPH0452755A (en) State restoration system
JP3374294B2 (en) Hierarchical display
KR100618966B1 (en) Method for vertually deleting data stream object, method for recovering thereof, method for faciliating permanently deleting data stream object vertually deleted, and recording medium storing infomation for recovering or permanently deleting data stream object vertually deleted
JP2686758B2 (en) Graphic editing device
US5734381A (en) Cancel undo method and system for tree structure data edition based on hierarchical menu inquiry
JPH0789267B2 (en) Data editing / presentation method and device
JP2000059720A (en) Display and editing device for continuous media information, display and edit method for the continuous media information and recording medium recorded with its processing procedure
JP3467862B2 (en) Image filling device
KR101074066B1 (en) Method and system for controlling generation of cable connection diagram by cable tracking
JP3211563B2 (en) Data editing device and data editing method
JPH06131136A (en) Time-changing data display device
CN113992977A (en) Video data processing method and device
JPH06119448A (en) Image processing method
JPS62214438A (en) Software specification reuse system
JPH0765186A (en) Graphic editing device