JPH02288928A - Storage device - Google Patents

Storage device

Info

Publication number
JPH02288928A
JPH02288928A JP1046172A JP4617289A JPH02288928A JP H02288928 A JPH02288928 A JP H02288928A JP 1046172 A JP1046172 A JP 1046172A JP 4617289 A JP4617289 A JP 4617289A JP H02288928 A JPH02288928 A JP H02288928A
Authority
JP
Japan
Prior art keywords
data
element identifier
storage means
identifier
old
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
JP1046172A
Other languages
Japanese (ja)
Inventor
Makoto Sekimori
関森 誠
Atsushi Tsuchiya
敦 土屋
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.)
NAGANO NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Nagano Ltd
Original Assignee
NAGANO NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Nagano Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NAGANO NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Nagano Ltd filed Critical NAGANO NIPPON DENKI SOFTWARE KK
Priority to JP1046172A priority Critical patent/JPH02288928A/en
Publication of JPH02288928A publication Critical patent/JPH02288928A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)

Abstract

PURPOSE:To effectively use a memory by writing a new element identifier in the place indicated by an old element identifier to store the new element identifier without using a conversion table. CONSTITUTION:Data read/write means 2 and 3 remove invalid data from element data stored in a first storage means 1 and read out only valid data including the old element identifier and writes it in a second storage means 4. An element identifier generating means 5 generates the new element identifier based on the address value of the written valid data and uses the old element identifier as the key to write the new element identifier in the read element data area of the first storage means 1. An element identifier converting means 6 converts the old element identifier in the second storage means 4 correspondingly to the new element identifier stored in the first storage means 1. Thus, the first storage means 1 is used to perform old/new element identifier conversion, and the memory is effectively used and restrictions on the number of elements are removed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えばCADシステムの記憶装置に利用され
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is utilized, for example, in a storage device of a CAD system.

本発明は要素データを記憶する記憶装置に関し、特に、
CADシステム等において、メモリの有効利用を図れる
ようにした記憶装置に関する。
The present invention relates to a storage device that stores element data, and in particular,
The present invention relates to a storage device that enables effective use of memory in CAD systems and the like.

〔概要〕〔overview〕

本発明は、点、線および円等の要素を識別する要素識別
子を含む要素データを格納する第一の記憶手段を備えた
記憶装置において、 前記第一の記憶手段に格納された前記要素データ中で無
効データを取り除いた有効データを第二の記憶手段に格
納し、その格納したアドレス値に基づし)で新しい要素
識別子を生成し、これを前記第一・の記憶手段の古い要
素識別子に対するデータ領域に格納しておき、前記第二
の記憶手段に格納された前記有効データの古い要素識別
子を前記第一の記憶手段に格納された新しい要素識別子
に対応させて変換を行うことにより、 変換テーブルを用いることなくデータの再構成を行うこ
とを可能とし、メモリの有効利用を図ったものである。
The present invention provides a storage device including a first storage means for storing element data including element identifiers for identifying elements such as points, lines, circles, etc. Among the element data stored in the first storage means, Store the valid data from which invalid data has been removed in the second storage means, generate a new element identifier (based on the stored address value), and apply this to the old element identifier in the first storage means. conversion by converting the old element identifier of the valid data stored in the data area and making it correspond to the new element identifier stored in the first storage means; This makes it possible to reconstruct data without using tables, and aims to use memory effectively.

〔従来の技術〕[Conventional technology]

従来、点、線、円等の要素データで構成されるCAD図
面を作成すると、それぞれの要素には記憶位置をパラメ
ータとする要素識別子が付けられる。
Conventionally, when creating a CAD drawing made up of element data such as points, lines, circles, etc., each element is given an element identifier whose storage location is a parameter.

そして、CADシステトのコマンド等を用いて要素デー
タを削除すると、無効な部分が生ずる。
If element data is deleted using a CAD system command or the like, invalid portions will be created.

この無効な部分を取り除くことを目的として、データの
再構成が行われる。
Data is restructured to remove this invalid portion.

しかし、有効データの中には第3図で示すように、要素
基本データ21のほかに要素識別子群22が存在するた
め、古い要素識別子(以下、旧要素識別子という。)と
新しい要素識別子(以下、鉦1要素識別子という。)を
対応づけるために変換テーブルを作るようになる。この
方式によると要素数に比例して変換テーブルを用意しな
ければならない。
However, as shown in FIG. 3, in the valid data, there is an element identifier group 22 in addition to element basic data 21, so old element identifiers (hereinafter referred to as old element identifiers) and new element identifiers (hereinafter referred to as old element identifiers) are included. , the gong 1 element identifier), a conversion table is created to associate them. According to this method, conversion tables must be prepared in proportion to the number of elements.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述した従来の記憶装置におけるデータの再構成の方式
は、要素識別子変換テーブルは要素数jに比例するため
、要素数が変換デープルの大きさによって決定されてし
まう欠点があった3、また、旧要素識別子は記憶装置」
−に存在するにもかかわらず、変換デープルにも記憶す
るという方式なのでメモリの有効利用が行われない欠点
があった。
The method of data reconstruction in the conventional storage device mentioned above had the disadvantage that the number of elements was determined by the size of the conversion dupple because the element identifier conversion table was proportional to the number of elements j. Element identifiers are storage devices.”
-Although it exists in the converted table, it is also stored in the converted table, which has the disadvantage that the memory cannot be used effectively.

本発明の目的は、前記の欠点を除去することにより、変
換テーブルを用いることなく、要素識別子の変換ができ
、メモリの有効利用を図ることができる記憶装置を提供
することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a storage device that can convert element identifiers without using a conversion table by eliminating the above-mentioned drawbacks, and that can effectively utilize memory.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明は、点、線および円等の要素を識別する要素識別
子を含む要素データを格納する第一の記憶手段を備えた
記憶装置において、前記要素デク内の無効データを取り
除いて再構成された要素データを格納する第二の記憶手
段と、前記第一の記憶手段から前記無効データを取り除
き有効な前記要素データを読み出し前記第二の記憶手段
に書き込むデータ読出し書込み手段と、前記第二の記憶
手段に書き込まれた前記要素データのアドレス値を入力
し新しい要素識別子を生成し、古い要素識別子をキーと
しC前記第一の記憶手段の読み出された前記要素データ
領域に書き込む要素識別子生成手段と、前記第二の記憶
手段に格納された前記要素データ中の前記古い要素識別
子を前記第一・の記憶手段に格納された前記新しい要素
5n1別子に対応させて変換を行う要素識別子変換手段
、ヒを備えたことを特徴とする。
The present invention provides a storage device including a first storage means for storing element data including element identifiers for identifying elements such as points, lines, circles, etc., which is reconfigured by removing invalid data in the element deck. a second storage means for storing element data; a data read/write means for removing the invalid data from the first storage means, reading the valid element data and writing it into the second storage means; and the second storage means. element identifier generating means for inputting the address value of the element data written in the means to generate a new element identifier, and writing it into the read element data area of the first storage means using the old element identifier as a key; , element identifier conversion means for converting the old element identifier in the element data stored in the second storage means so as to correspond to the new element 5n1 identifier stored in the first storage means; It is characterized by having a

〔作用〕[Effect]

データ読出し書込み手段は、第一の記憶手段に格納され
た要素テ゛−=夕のうち無効データ4取り除き有効デー
タだ(′jをその旧要素識別子を力んて読み出し、これ
を第二の記憶手段へ書き込む。要素識別子生成手段は、
この書き込まれた前記有効データのアドレス値に基つい
て新要素識別子を生成し、これを旧要素識別子をキーと
して前記第一の記憶手段の読み出されたあとの要素デー
タ領域に書き込む。そして、要素識別子変換手段は、前
記第二の記憶手段内の旧要素識別子を、前記第一の記憶
手段に格納した新要素識別子に対応させて変換を行う。
The data read/write means reads out the element data stored in the first storage means by removing invalid data 4 and valid data ('j) by inputting its old element identifier, and stores it in the second storage means. The element identifier generation means is
A new element identifier is generated based on the address value of the written valid data, and is written into the read element data area of the first storage means using the old element identifier as a key. Then, the element identifier conversion means converts the old element identifier in the second storage means into correspondence with the new element identifier stored in the first storage means.

従って、別に変換テーブルを用いることなく、前記のよ
うに第一の記憶手段を用いて、新旧要素識別子の変換を
行うことができ、メモリの有効利用ならびに要素数の制
限をなくすことが可能となる。
Therefore, it is possible to convert old and new element identifiers using the first storage means as described above without using a separate conversion table, making it possible to effectively utilize memory and eliminate restrictions on the number of elements. .

なお、[)f1記第−および第二の記憶手段は別々の記
憶装置であってもよく、または一つの記憶装置でその記
憶領域を区分したものであってもよい。
Note that the second and second storage means in [)f1 may be separate storage devices, or may be a single storage device with its storage area divided.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明ずろ
Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図、第2
図(a)および(b)はその記憶装置上の記憶イメージ
を示す説明図、第3図はその要素データイメージを示す
説明図、および第4図はその新要素識別子格納イメージ
を示す説明図である。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
Figures (a) and (b) are explanatory diagrams showing the storage image on the storage device, Figure 3 is an explanatory diagram showing the element data image, and Figure 4 is an explanatory diagram showing the new element identifier storage image. be.

第1図によると本実施例は、点、線および円等の要素を
識別する要素識別子を含む要素データを格納する第一の
記憶手段としての記憶装置1を備えた記憶装置において
、 前記要素データ内の無効データを取り除いて再構成され
た要素データを格納する第二の記憶手段としての記憶装
置4と、記憶装置1から前記無効データを取り除き有効
な前記要素データを読み出し記憶装置4に書き込むデー
タ読出し書込み手段としてのデータ読出し部2およびデ
ータ書込み部3と、記憶装置4に書き込まれた前記要素
データのアドレス値を入力し新要素識別子を生成し、旧
要素識別子をキーとして記憶装置lの読み出された前記
要素データ領域に書き込む要素識別子生成手段としての
要素識別子生成部5と、記憶装置4に格納された前記要
素データ中の前記旧要素識別子を記憶装置fに格納され
た前記新要素識別子に対応させて変換を行う要素識別子
変換手段としての要素識別子変換部6とを備えている。
According to FIG. 1, the present embodiment is a storage device including a storage device 1 as a first storage means for storing element data including element identifiers for identifying elements such as points, lines, circles, etc. a storage device 4 as a second storage means for storing element data reconstructed by removing invalid data from the storage device 1; and data for reading out the valid element data from the storage device 1 after removing the invalid data and writing it into the storage device 4. A data reading section 2 and a data writing section 3 as reading/writing means input the address value of the element data written in the storage device 4 to generate a new element identifier, and read the data from the storage device l using the old element identifier as a key. An element identifier generation unit 5 as an element identifier generation means for writing into the extracted element data area, and an element identifier generation unit 5 that converts the old element identifier in the element data stored in the storage device 4 into the new element identifier stored in the storage device f. The element identifier converter 6 is provided as an element identifier converter that performs conversion corresponding to the element identifier converter.

本発明の特徴は、第1図において、データ読出し部2、
データ書込み部3、記憶装置4、要素識別子生成手段5
、および要素識別子変換部6を設けたことにある。
The feature of the present invention is that in FIG.
Data writing section 3, storage device 4, element identifier generation means 5
, and an element identifier converter 6 are provided.

次に、本実施例の動作について説明する。始緬に各部の
構成の詳細と動作とについて説明する。
Next, the operation of this embodiment will be explained. First, the details of the configuration and operation of each part will be explained.

記憶装置1および2は、磁気ディスクからなり、その記
憶イメージは第2図(a)および(b)に示すようにな
る。すなわち、記憶装置1は、第2図(a)に示すよう
に、要素データの削除等を行った後の再構成前の記憶イ
メージであり、無効なデータが記憶領域上に存在してい
る状態で、点データ11と、削除データ12と、線デー
タ13と、円データ14とを含んでいる。記憶装置4に
は、これを再構成することにより、第2図(b)に示す
ように削除データ12が取り除かれた記憶イメージが格
納される。
The storage devices 1 and 2 are composed of magnetic disks, and their storage images are shown in FIGS. 2(a) and 2(b). That is, as shown in FIG. 2(a), the storage device 1 is a storage image before being reconfigured after element data has been deleted, etc., and invalid data is present in the storage area. It includes point data 11, deletion data 12, line data 13, and circle data 14. By reconfiguring the storage device 4, a storage image from which the deleted data 12 has been removed is stored as shown in FIG. 2(b).

データ読出し部2は、記憶装置1より第2図(a)に示
した削除データ12を取り除いた有効な要素データのみ
を読み出し、読み出した要素データをデータ書込み部3
へ渡す。
The data reading section 2 reads only valid element data from which the deleted data 12 shown in FIG.
pass it on to

データ書込み部3は、データ読出し部2から渡された要
素データの記憶装置4への書込みを行う。
The data writing section 3 writes the element data passed from the data reading section 2 into the storage device 4 .

要素識別子生成部5は、記憶装置4からデータ書込み部
3が書き込んだ要素データのアドレス位置を入力し、そ
のアドレス位置をパラメータとする新要素識別子を生成
する。そしてこの生成された新要素識別子を記憶装置1
に対して、旧要素識別子をキーとして、第4図に示すよ
うな形式で、ずなわち、その基本データが格納されてい
た旧基本データ格納領域に格納する。
The element identifier generating section 5 receives the address position of the element data written by the data writing section 3 from the storage device 4, and generates a new element identifier using the address position as a parameter. Then, this generated new element identifier is stored in the storage device 1.
The data is stored in the old basic data storage area where the basic data was stored, using the old element identifier as a key, in the format shown in FIG.

要素識別子群(ω・部6は、記憶装置4か、:、、、 
11ヨ要素識別子を読み出し、この読み出した旧要ジ3
識別子をキーとして記憶装置1から新要素識別子を読み
出し、前記旧平糸Fa”Jt別子を読み出した新要、、
・活識別子に変換して記・1.j)装置4に書込みを行
う。
Element identifier group (ω・part 6 is the storage device 4, etc.)
11 Read out the element identifier and read out the old key 3
A new element read out the new element identifier from the storage device 1 using the identifier as a key, and read out the old Hirayato Fa"Jt bessifier,
・Convert it to a live identifier and record it.・1. j) Write to the device 4.

次に、全体と1−1′−の動作について説明する。Next, the overall operation and the operation of 1-1'- will be explained.

記憶装置1にはCAD図面を構成している点、線、円等
のいろいろな要素データが第2図(a)で示されるよう
な記憶イメージで記憶されている。第2図(a)のよう
な状態では、CADシステムのコマンド等で要素の削除
や更新を行ったときに生ずる削除データ12、つまり無
効なデータが存在する。
In the storage device 1, various element data such as points, lines, circles, etc. that make up a CAD drawing are stored in a memory image as shown in FIG. 2(a). In the state shown in FIG. 2(a), there is deleted data 12 that is generated when elements are deleted or updated using commands of the CAD system, that is, invalid data.

この無効データ12を読み飛ばしながら、有効データの
みをデータ読出し部2を用いて読出しを行う。
While skipping this invalid data 12, only the valid data is read using the data reading section 2.

ここで読み出された要素データは、第3図で示すように
要素基本データ21と要素識別子群22とを含む形式に
なっている。ここで、要素識別子群22は、他の要素デ
ータと関連付けるために持たれたデータであり、この段
階ではまだ旧要素識別子群である。
The element data read here is in a format including element basic data 21 and element identifier group 22, as shown in FIG. Here, the element identifier group 22 is data held to be associated with other element data, and is still an old element identifier group at this stage.

次に、この読み出された要素データをデータ書込み部3
を用いて記憶装置4へ書込みを行う。データ書込み部4
より新しく書き込まれた要素データのアドレス位置が要
素識別子生成部5に入力される。要素識別子生成部5は
、この入力されたアドレス位置を基に、新要素識別子を
生成する。そして、この新要素識別子を、記憶装置1の
この識別子に対応する旧要素識別子で示される旧要素基
本データ領域へ第4図に示すイメージで格納する。
Next, this read element data is transferred to the data writing unit 3.
Write to the storage device 4 using. Data writing section 4
The address position of the element data written more recently is input to the element identifier generation section 5. The element identifier generation unit 5 generates a new element identifier based on this input address position. Then, this new element identifier is stored in the old element basic data area indicated by the old element identifier corresponding to this identifier in the storage device 1 in the image shown in FIG.

以上のことを全要素データについて繰り返し行うと、第
2図(a)のような再構成前のデータベースが、第2図
(1))のように有効データで詰まったデータベースに
再構成される。
By repeating the above steps for all element data, the database before reconstruction as shown in FIG. 2(a) is reconfigured into a database filled with valid data as shown in FIG. 2(1)).

次に、要素識別子変換部6は、記憶装置4より第3図で
示される要素識別子群22の読出しを行い、読み出した
旧要素識別子群より当該の旧要素識別子を取り出す。次
にこの旧要素識別子をキーとして、前段階で記憶装置1
に第4図のイメージで書込みを行った新要素識別子を記
憶装置1から読み出す。そして識別子の置き換えを行い
、記憶装置4へ書き込む。
Next, the element identifier converter 6 reads the element identifier group 22 shown in FIG. 3 from the storage device 4, and extracts the old element identifier from the read old element identifier group. Next, using this old element identifier as a key, the storage device 1 is
The new element identifier written in the image shown in FIG. 4 is read out from the storage device 1. Then, the identifier is replaced and written to the storage device 4.

このことを繰り返すことにより、旧要素識別子群が新要
素識別子群へ変換される。
By repeating this process, the old element identifier group is converted into a new element identifier group.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、旧要素識別子で示され
る場所へ新要素識別子を書き込むことにより、新要素識
別子を変換テーブルを使用ゼずに記憶できるので、メモ
リの有効利用がはかれるとともに、要素数がメモリに制
限されることがなくなる効果がある。
As explained above, in the present invention, by writing the new element identifier to the location indicated by the old element identifier, the new element identifier can be stored without using a conversion table. This has the effect that the number is no longer limited by memory.

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

第1図は本発明の一実施例を示すブロック構成図。 第2図(a)および(b)はその記憶装置上の記憶イメ
ージを示す説明図。 第3図はその要素データイメージを示す説明図。 第4図はその要素識別子格納イメージを示す説明図。 1.4・・・記憶装置、2・・・データ読出し部、3・
データ書込み部、5・・・要素識別子生成部、6・・・
要素識別子変換部、11・・・点データ、12・・・削
除データ、13・・・線データ、14・・・円データ、
21・・・要素基本データ、22・・・要素識別子群。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIGS. 2(a) and 2(b) are explanatory diagrams showing storage images on the storage device. FIG. 3 is an explanatory diagram showing an image of the element data. FIG. 4 is an explanatory diagram showing an image of storing the element identifier. 1.4...Storage device, 2...Data reading section, 3.
Data writing section, 5...Element identifier generation section, 6...
Element identifier conversion unit, 11... point data, 12... deleted data, 13... line data, 14... circle data,
21... Element basic data, 22... Element identifier group.

Claims (1)

【特許請求の範囲】 1、点、線および円等の要素を識別する要素識別子を含
む要素データを格納する第一の記憶手段を備えた記憶装
置において、 前記要素データ内の無効データを取り除いて再構成され
た要素データを格納する第二の記憶手段と、 前記第一の記憶手段から前記無効データを取り除き有効
な前記要素データを読み出し前記第二の記憶手段に書き
込むデータ読出し書込み手段と、前記第二の記憶手段に
書き込まれた前記要素データのアドレス値を入力し新し
い要素識別子を生成し、古い要素識別子をキーとして前
記第一の記憶手段の読み出された前記要素データ領域に
書き込む要素識別子生成手段と、 前記第二の記憶手段に格納された前記要素データ中の前
記古い要素識別子を前記第一の記憶手段に格納された前
記新しい要素識別子に対応させて変換を行う要素識別子
変換手段と を備えたことを特徴とする記憶装置。
[Claims] 1. A storage device comprising a first storage means for storing element data including element identifiers for identifying elements such as points, lines, circles, etc., comprising: removing invalid data from the element data; a second storage means for storing reconstructed element data; a data read/write means for removing the invalid data from the first storage means, reading the valid element data and writing it into the second storage means; An element identifier that inputs the address value of the element data written in the second storage means to generate a new element identifier, and writes it into the read element data area of the first storage means using the old element identifier as a key. generating means; and element identifier converting means for converting the old element identifier in the element data stored in the second storage means to correspond to the new element identifier stored in the first storage means. A storage device comprising:
JP1046172A 1989-02-27 1989-02-27 Storage device Pending JPH02288928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1046172A JPH02288928A (en) 1989-02-27 1989-02-27 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1046172A JPH02288928A (en) 1989-02-27 1989-02-27 Storage device

Publications (1)

Publication Number Publication Date
JPH02288928A true JPH02288928A (en) 1990-11-28

Family

ID=12739608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1046172A Pending JPH02288928A (en) 1989-02-27 1989-02-27 Storage device

Country Status (1)

Country Link
JP (1) JPH02288928A (en)

Similar Documents

Publication Publication Date Title
US5377315A (en) Regeneration of process control flow diagrams for programmable logic controllers
JPS63109653A (en) Information registering and retrieving device
JPH06250906A (en) Backup/recovery system for data developed in main storage device
JPH0793186A (en) Reusing method for existing test program
JPH0997277A (en) Design support device
JP2587417B2 (en) File backup and restoration method
JPH039426A (en) Software development environment storing system
JPH09168009A (en) Network operation information setting system
JPH04163671A (en) Drawing retrieving system
JPH056272A (en) Software designing device
JPH064167A (en) Restoring system for fault of disk medium
JP2000123038A (en) Database device, database access method, and recording medium recording database access program
JPH01136235A (en) Automatic program generation device
JPH01119839A (en) File constitution control system
JPH05324422A (en) Inter-system database usage
JPH04151770A (en) Design data base management system
JPH01154278A (en) Electronic filing system
JPH0478941A (en) Information collecting system
JPH0594350A (en) Maintenance system for definition record address
JPH07120303B2 (en) Data base file restoration method
JPH06168074A (en) Common ionput/output device
JPH03282843A (en) File conversion program system referring to rule file
JPS63170754A (en) Extending method for file directory
JPH06230944A (en) Object control system
JP2001216339A (en) Integrated process rtl description generation system