JPS63104132A - Extension system for summary of parts list - Google Patents

Extension system for summary of parts list

Info

Publication number
JPS63104132A
JPS63104132A JP25102386A JP25102386A JPS63104132A JP S63104132 A JPS63104132 A JP S63104132A JP 25102386 A JP25102386 A JP 25102386A JP 25102386 A JP25102386 A JP 25102386A JP S63104132 A JPS63104132 A JP S63104132A
Authority
JP
Japan
Prior art keywords
data
record
item
heap
parts
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
JP25102386A
Other languages
Japanese (ja)
Inventor
Yasushi Takada
高田 康司
Masaharu Okabe
正治 岡部
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 JP25102386A priority Critical patent/JPS63104132A/en
Publication of JPS63104132A publication Critical patent/JPS63104132A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the change of a record pointer and to attain operations under control of a multi-programming job by preparing a heap data table and a stack pointer table and carrying out the summary extension by means of the heap sorting principle. CONSTITUTION:An item X to under go the summary extension is accepted with an external input and the record on the item X is retrievel out of a data base. Then the record on a slave parts of the item X is retrieved out of a data base and the succession information is set the record on the retrieved slave parts. These records are stored in a heap table based on the heap principle. Then it is checked whether the master part undergone retrieval of the slave parts is equal or not to the first parts of the data table. If so, the first record is extracted out of the heap table and this table is rearranged. Then plural same records are collected and a record X is delivered. The operation is through as long as no data is contained in a data table. While the first data is extracted out of the heap table when the data table contains data. Then the slave parts is retrieved and processed in the same way as the previous time.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は構造形部品表における部品表サマリ展開方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a bill of materials summary development method in a structured bill of materials.

(従来の技術) サマリ部品表は部品の加工や製品の組立順序にとられれ
ず、ある品目をつくるときに必要となる中間部品と原材
料を一覧表の形でまとめた表であシ、同じ部品や素材が
複数回いろいろなレベルで使われていようがこれらの原
単位は集約されて一度で示されている。
(Prior art) A summary parts list is a table that summarizes in the form of a list intermediate parts and raw materials that are required when manufacturing a certain item, without regard to the processing order of parts or the assembly order of products. These basic units are aggregated and shown at once, even if the materials are used multiple times and at various levels.

第5図は品目Xの構造形部品表であυ品目Xは子部品A
とCとから構成され、部品Aは子部品BとEとから構成
され部品Cは子部品EとHとから構成され云々というこ
とを示してお)、(もちろん構成関係を示すだけでなく
親部品のレコード情報には子部品の単位当シの所要数等
も含まれている)、かつ、各部品は階層構造をもってお
シ、品目Xはレベル1、部品Aはレベル2、部品BとC
とはレベル3等と階層化されていることを示している。
Figure 5 is a structural parts list for item X. υItem X is a child part A.
and C, part A is made up of child parts B and E, part C is made up of child parts E and H, and so on). The part record information also includes the required number of child parts, etc.), and each part has a hierarchical structure, with item X at level 1, part A at level 2, and parts B and C.
indicates that it is hierarchically classified as level 3, etc.

ここで部品Eは部品AとCとの共通構成要素で9、部品
E以降についてもこの2方向からの展開が行なわれる。
Here, part E is a common component of parts A and C (9), and parts E and subsequent parts are also developed from these two directions.

このことはE以降の部品について2回展開を行なわねば
ならないこととなる。そこで部品Eにおいて、この2方
向からの展開を集約して以降の展開を1回ですますこと
が効率的でありこれがサマリ展開方式である。
This means that parts after E must be expanded twice. Therefore, for part E, it is efficient to consolidate the expansions from these two directions and perform the subsequent expansions only once, and this is the summary expansion method.

第6図を参照して第5図の構造形部品表からサマリ部品
表を作成する従来の部品表サマリ展開方式について説明
する。
A conventional bill of materials summary development method for creating a summary bill of materials from the structural bill of materials shown in FIG. 5 will be described with reference to FIG. 6.

まず構造形部品表の階層すなわちレベル毎にポインタを
有せしめそのテーブル61を用意し、初期設定をしてお
く。初期設定値は各レベル共終了(END)符号とする
(第6図(a))。
First, a table 61 is prepared in which a pointer is provided for each hierarchy or level of the structural parts list, and initial settings are made. The initial setting value is the end (END) code for each level (FIG. 6(a)).

次Ka上位のレコードX(Xは部品名称であるがそれに
関するレコードを以下レコードXという)をデータベー
スから読み込みこれにつながる子レコードAとCとを検
索しポインタテーブル61にそれぞれのレベルに対応し
て各レコードのアドレスを設定する。すなわちレベル1
にレコードXのアドレス(以下A D R(X)と記載
する)、レベル2にA D R(A)を、レベル3にA
DR(C)を設定する。そして今までポインタテーブル
61にあったEND(テーブルの初期値)を各レコード
62中のポインタに設定する(第6図(b))。データ
ベースから検索したXのレコードであるレコードX中の
ポインタにはENDが検出されたのでレベルlは終了す
る。
Read the next Ka upper record X (X is a part name, and the record related to it will be referred to as record Set the address for each record. i.e. level 1
Address of record X (hereinafter referred to as ADR(X)), ADR(A) at level 2, A at level 3.
Set DR(C). Then, the END (initial value of the table) that has been in the pointer table 61 is set to the pointer in each record 62 (FIG. 6(b)). Since END is detected in the pointer in record X, which is the record of X retrieved from the database, level l ends.

次にポインタテーブル610レベル2をみてレコードA
をよみそれにつながる子レコードを検索しレコードBお
よびレコードEをみつけこれらのアドレスを対応するポ
インタテーブル61の各レベルに設定しレコードBおよ
びE中のポインタにはポインタテーブル61に格納され
ているADR(C)およびE N Dを設定する(第6
図(C))。
Next, look at pointer table 610 level 2 and record A.
, search for child records connected to it, find records B and record E, set these addresses to each level of the corresponding pointer table 61, and pointers in records B and E to the ADR ( C) and setting E N D (6th
Figure (C)).

このような処理をhl、U、l)、E、F、G、H等に
レベル順に繰返していく。ただし、Cを読んだときの子
レコードEVi既にポインタテーブルにチェイニングさ
れているから重役して設定しない(第6図(d))。
Such processing is repeated in order of levels such as hl, U, l), E, F, G, H, etc. However, since the child record EVi when reading C is already chained in the pointer table, it is not set as an executive (FIG. 6(d)).

以上のようにして従来のサマリ展開方式では上位から何
らかの情報を引き継ぎながら処理する際レベル順に行な
うためのEのような共有度の高いレコード以下のレコー
ドでも一度処理するだけでよいように考慮されている。
As described above, in the conventional summary expansion method, when processing is carried out in level order while inheriting some information from the higher level, it is considered that even records below records with a high degree of sharing such as E only need to be processed once. There is.

(発明が解決しようとする問題点) 以上説明したように従来のサマリ展開方式では同一レベ
ルによるレコード中にチューニングのためアドレスを持
たさねばならず、このレコードの変更が必須となる。
(Problems to be Solved by the Invention) As explained above, in the conventional summary expansion method, it is necessary to have an address for tuning in records at the same level, and it is essential to change this record.

したがってマルチプログラミング下での動作が出来ず、
またレコードの変更のための物理I10が増加するとい
う問題点がある。
Therefore, it cannot operate under multiprogramming,
Another problem is that the physical I10 required for changing records increases.

(問題点を解決するための手段) 本発明の方式はソートキーに関しヒーブを構成するよう
にデータを格納するテーブルを用意し、前記テーブルを
初期化しサマリ展開対象品目を受付は前記品目のデータ
を検索し第2の工程にサマリ出力対象品目として供給す
る第1の工程と、供給されたサマリ出力対象品目を構成
する子品目の有無を調べ前記子品目がないときには第3
の工程に前記サマリ出力対象品目データを供給し、前記
子品目があるときには前記子品目のデータを検索し前記
テーブルに格納して前記サマリ出力対象品目データを第
3の工程に供給する第2の工程と、供給された前記サマ
リ出力対象品目と前記テーブルに格納されている第1番
目のデータとを比較し同じのときには前記第1番目のデ
ータを抽出して前記サマリ出力対象品目のデータと集約
化してサマリ結果を出力し第4の工程に移る第3の工程
と、前記テーブルにデータが格納されているときにはこ
れを抽出して前記第2の工程にサマリ対象品目として供
給し前記テーブルにデータが格納されていないときには
終了する第4の工程とを含んで構成される。
(Means for solving the problem) The method of the present invention prepares a table for storing data so as to form a heave with respect to a sort key, initializes the table, receives an item for summary expansion, and searches the data of the item. The first process supplies the item as a summary output target item to the second process, and the third process checks whether there are any child items constituting the supplied summary output target item and if there are no child items, the third process
A second step that supplies the item data for summary output to the third step, searches for the data of the child item when there is the child item, stores it in the table, and supplies the item data for summary output to the third step. Compare the process, the supplied summary output target item, and the first data stored in the table, and if they are the same, extract the first data and aggregate it with the data of the summary output target item. a third step that outputs the summary result and moves on to a fourth step; and if data is stored in the table, it is extracted and supplied to the second step as a summary target item, and the data is stored in the table. and a fourth step that ends when the data is not stored.

(実施例) 次に本発明の実施例について図面を参照して説明する。(Example) Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示す流れ図である。FIG. 1 is a flowchart showing one embodiment of the present invention.

本実施例では処理に先立って第4図(a)に示すヒーブ
用テーブルを用意する。ヒーブ用テーブルは2種ありそ
の1つはデータテーブルTABLEであシデータを格納
するメモリである。他の1つはスタックポインタテーブ
ルPTBLでちゃポインタ値を格納するものである。第
4図(a)で:PPと示すのはスタックポインタテーブ
ルPTBLのポインタである。
In this embodiment, a heave table shown in FIG. 4(a) is prepared prior to processing. There are two types of heave tables, one of which is a data table TABLE, which is a memory that stores data. The other one is the stack pointer table PTBL, which stores pointer values. In FIG. 4(a), PP is a pointer to the stack pointer table PTBL.

以下、説明の便宜上いくつかの記号を定義する。Some symbols will be defined below for convenience of explanation.

PPはポインタを示すと同時にポインタの設定されてい
る位置をしめずこととする。すなわち、PP=nとはス
タックポインタテーブルPTBLOn番目の位置をポイ
ンタが示していることを表わす。次にPTBL(n)に
よ)スタックポインタテーブルPTBLのn番目に格納
されている値を示す。またT A B L E(n)に
よシデータテーブルTABLEのn番目に格納されてい
るデータを示す。
PP indicates a pointer without indicating the position where the pointer is set. That is, PP=n indicates that the pointer points to the PTBLOnth position in the stack pointer table. Next, PTBL(n) indicates the value stored at the nth position in the stack pointer table PTBL. Further, T A B L E (n) indicates the data stored in the nth position of the data table TABLE.

さらにV A L U E (n)によシデータテーブ
ルTABLEのn番目に格納されているデータのソート
キ値を示す。ソートキー値はその品目のレベル番号とレ
コードの物理アドレスで示されるものとする。
Further, V A L U E (n) indicates the sort key value of the nth data stored in the data table TABLE. The sort key value shall be indicated by the level number of the item and the physical address of the record.

レコードの物理アドレスはこの場合アルファベット項に
大になるものとする。すなわちレコードAの物理アドレ
スはレコードBの物理アドレスよシ小である。
The physical address of the record shall in this case be an alphabetical term. That is, the physical address of record A is smaller than the physical address of record B.

次にデータのデータテーブルTABLEへの格納ルール
としてヒーブの原理を採用する。
Next, the heave principle is adopted as a rule for storing data in the data table TABLE.

すなわち  VALUE(n)(VALUE(2n)か
つ    VALUE(n)(VALUE(2n+1)
であるようにデータはデータテーブルTABLEへ格納
する。
That is, VALUE(n) (VALUE(2n) and VALUE(n)(VALUE(2n+1)
The data is stored in the data table TABLE as follows.

またスタックポインタテーブルPTBLのポインタPP
はデータテーブルTABLEのデータが削除される毎に
−1され、追加されるごとに+1される。またデータテ
ーブルTABLEに空ができた場合にはそのたびに空と
なったアドレス(この場合は何番目が空となったを示す
番号)をスタックポインタテーブルに退避しておき次に
データが挿入できるアドレスをポインタPP以下の情報
として持つ、かくすることによりポインタPPはデータ
テーブルTABLE中の有効データ数を示していること
とガなシまた必然的に生ずるデータテーブルTABLE
中の空を効率的に利用しその時点でのチータテ−プル’
I’ A B L Eの大きさを最適に保つことができ
る。
Also, the pointer PP of the stack pointer table PTBL
is incremented by -1 each time data in the data table TABLE is deleted, and incremented by +1 each time data is added. In addition, whenever an empty space becomes available in the data table TABLE, the empty address (in this case, the number indicating which position became empty) is saved in the stack pointer table, and the next data can be inserted. By having the address as information below the pointer PP, the pointer PP indicates the number of valid data in the data table TABLE.
Cheetah table at that point by efficiently utilizing the empty space inside.
The size of I'ABLE can be kept optimal.

スタックポインタテーブルPTBLの初期値はデータテ
ーブルTABLEのサイズを最大とする1からの連番が
設定され、データテーブルTABLEの初期値はソート
キー値の最大値(以下HIGH−VALUEという)に
しておく。
The initial value of the stack pointer table PTBL is set to a sequential number starting from 1, which is the maximum size of the data table TABLE, and the initial value of the data table TABLE is set to the maximum value of the sort key value (hereinafter referred to as HIGH-VALUE).

次に本実施例について第1図を参照し第5図の構造形部
品表を例にと9説明する。
Next, this embodiment will be explained with reference to FIG. 1 and using the structural parts list shown in FIG. 5 as an example.

本実施例は第1図に示す1.II、IIIおよび■の4
つの工程から構成される。
This embodiment is based on 1. shown in FIG. II, III and ■4
It consists of two processes.

■に示す第1の工程では先ず、サマリ展開対象となる品
目Xを外部からの入力で受付け(ステップ101)、次
いでヒーブ用テーブルを初期化する。すなわちデータテ
ーブルTABLEの各欄にHIGH−VALUEを格納
し、スタックポインタテーブルP ’I’ B Lの各
欄に順に1からの連番を格納しポインタPPをスタック
ポインタテーブル装置の1の位置にセットする(ステッ
プ102)。
In the first step shown in (2), first, item X to be expanded as a summary is received as input from the outside (step 101), and then the heave table is initialized. That is, store HIGH-VALUE in each column of the data table TABLE, store sequential numbers starting from 1 in each column of the stack pointer table P'I'BL, and set the pointer PP to the 1 position of the stack pointer table device. (step 102).

次に品目Xについてのレコードをデータベースから検索
する(ステップ103)。
Next, a record regarding item X is searched from the database (step 103).

次に■で示す第2工程に移る。すなわち品目Xの子部品
のレコードをデータベースから検索する(ステップ10
4)。子部品がないときには第8の工程に移るが(ステ
ップ105のN枝)、あるときには検索された子部品レ
コード(この場合には部品Aと部品C)に引き継ぎ情報
を設定しくステップ106)ヒーブの原理に従ってヒー
ブ用テーブルへこれらのレコードの格納処理を行なう(
ステップ107)。ヒーブ用テーブル格納処理について
は後述する。レコード人およびレコードCがヒーブ用テ
ーブルに格納された状態を第4図(b)に示す。
Next, proceed to the second step indicated by ■. That is, a record of child parts of item X is searched from the database (step 10).
4). If there are no child parts, the process moves to the eighth step (N branch of step 105), but if there is, inheritance information is set in the searched child part records (parts A and C in this case) (step 106) of the heave. Store these records in the heave table according to the principle (
Step 107). The heave table storage process will be described later. FIG. 4(b) shows a state in which record person and record C are stored in the heave table.

次に■で示す第3工程に移る。ここでは先ず子部品検索
が行なわれた親部品(この場合はX)がデータテーブル
TABLEの1番目と同一部品か否かを調べ同一のとき
にはヒーブ用テーブルからその第1番目のレコードの抽
出処理上し、ヒーブ用テーブルの整理を行ない(ステッ
プ110)、同一レコードが複数になったのでその集約
を行ない(ステップ111)、その集約結果を出力する
(ステップ112)。ヒーブ用テーブル抽出処理は後述
する。レコードXはデータテーブルの1番目(レコード
A)と同一でないので(ステップ109のN枝)レコー
ドXを出力しくステ、プ112)第4工程に移る。
Next, proceed to the third step indicated by ■. Here, first, it is checked whether the parent part (in this case, Then, the heave table is organized (step 110), and since there are multiple identical records, they are aggregated (step 111), and the aggregation results are output (step 112). The heave table extraction process will be described later. Since record X is not the same as the first record (record A) in the data table (step 112) to output record X (N branch of step 109), the process moves to the fourth step.

第4工程ではデータテーブルTABLEにデータがなけ
れば終了しくステップ113のN枝)、あるときにはそ
の第1番目のデータをヒーブ用テーブルから抽出(ステ
ップ114)Lその子部品検索を行なう第2工程に移る
。この場合はレコードAが抽出され抽出後はヒーブ用テ
ーブルの整理が行なわれる。その結果が第4図(C)K
示しである。
In the fourth step, if there is no data in the data table TABLE, the process ends (N branch of step 113), and if there is, the first data is extracted from the heave table (step 114).L moves on to the second step of searching for its child parts. . In this case, record A is extracted, and after the extraction, the heave table is organized. The result is Figure 4 (C)K
This is an indication.

このようにして本実施例ではヒーブ用テーブルを利用し
てソートキー順KX→A→B→C→D→E−、F→G−
、Hと1つづつサマリ出力を得ることができる。
In this way, in this embodiment, using the heave table, the sort key order is KX→A→B→C→D→E-, F→G-
, H and one summary output can be obtained.

次にステップ107のヒーブ用テーブル格納処理とステ
ップ110および114のヒーブ用テーブルからの抽出
処理について説明する。
Next, the heave table storage process in step 107 and the extraction process from the heave table in steps 110 and 114 will be described.

第4図(a) 、 (C) 、 (e)はヒーブ用テー
ブル格納処理前のヒーブ用テーブルの格納状態を示し、
それに対しそれぞれ第4図(b) 、 (d) 、 (
f)は格納処理後の状態を示す。また第4図(b) 、
 (d)はヒーブ用テーブルからの抽出処理前のヒーブ
用テーブルの格納状態を示しそれに対しそれぞれ第4図
(C) 、 (e)uヒーブ用テーブル抽出処理後の格
納状態を示している。
FIGS. 4(a), (C), and (e) show the storage state of the heave table before the heave table storage process,
In contrast, Figures 4(b), (d), and (
f) shows the state after the storage process. Also, Fig. 4(b),
4(d) shows the storage state of the heave table before the extraction process from the heave table, whereas FIGS. 4(C) and 4(e) show the storage state after the heave table extraction process, respectively.

先ずヒーブ用テーブル格納処理のフローチャトである第
2図を参照してステップ107を説明する。
First, step 107 will be explained with reference to FIG. 2, which is a flowchart of the heave table storage process.

Xの子部品Aの格納については、ステ、プ201では第
4図(a)でPP=1PP T B L(t)= 1と
なシn = lとなる。ステップ202でm = Qと
なる故、ステップ203ON枝をとおりステップ206
でAはTABLE(1)すなわち1番目にセットされP
p=2となる。
Regarding the storage of the child part A of X, in step 201, PP=1PP TBL(t)=1 in FIG. Since m = Q in step 202, step 206 passes through the ON branch of step 203.
In this case, A is set as TABLE (1), that is, it is set first, and P
p=2.

Xの子部品Cの格納はPP =2 、 PTBL(2)
=2=n 、m=1 、VALUE(1)=Aのソート
キー。
Storage of child part C of X is PP = 2, PTBL (2)
=2=n, m=1, VALUE(1)=A sort key.

AのソートキーくCのソートキー故ステ、プ203のN
枝を通りCはTABLg(2)すなわち2番目にセット
されPP=3となる。これが第4図(b)である。
A's sort key, C's sort key, step 203, N.
After passing through the branch, C is set to TABLg(2), that is, second, and PP=3. This is shown in FIG. 4(b).

Aの子部品B、Eの格納について説明する。格納前の状
態は第4図(C)である。まず子部品Bの格納であるが
PP=2 、PTBL(2)=2=n 、m=1 、V
ALUE(1)=CO/−ト#−、Coンー1キー〉B
のソートキー故ステップ203のY枝を通りステップ2
04において、TABLE(1)=CをT A B L
 E (2)へ移行しnを新たに1としてステップ20
2.203ON枝をへてTABLE(1)はBとなシP
P=3とする。
The storage of child parts B and E of A will be explained. The state before storage is shown in FIG. 4(C). First, the child part B is stored, PP=2, PTBL(2)=2=n, m=1, V
ALUE (1)=CO/-to #-, Con-1 key>B
Because of the sort key, the Y branch of step 203 is passed through step 2
04, TABLE(1)=C is T A B L
E Move to (2) and set n to 1 in step 20
2. TABLE (1) is B and P through the 203ON branch
Let P=3.

次にEの格納であるがPTBL(3)=3=n 、m=
1 、VALUE(1)=Bの/−ト*−、B(7)ソ
ートキーくEのソートキー故Eはr A B L E 
(3)となりPP=4となる。これが第4図(山である
。以下Bの子部品の格納後が第4図(f)、Cの子部品
の格納図が第4図(2))、Eの子部品の格納図が第4
図(h)に示されている。このようにしてヒーブ用デー
タテーブルTABI、EKはヒーブの原理にもとづいて
子部品のデータが格納される。
Next is the storage of E, PTBL (3) = 3 = n, m =
1, VALUE (1) = B's /-t *-, B (7) sort key | E's sort key, so E is r A B L E
(3) and PP=4. This is Figure 4 (mountain). Figure 4 (f) shows the storage of the child parts of B, Figure 4 (2) shows the storage diagram of the child parts of C, and Figure 4 (2) shows the storage diagram of the child parts of E. 4
It is shown in figure (h). In this manner, data of child parts is stored in the heave data tables TABI and EK based on the heave principle.

次にヒーブ用テーブルからの抽出処理のフローチャート
である第3図を参照してステップ110および114を
説明する。
Next, steps 110 and 114 will be explained with reference to FIG. 3, which is a flowchart of the extraction process from the heave table.

ステップ114で第4図(b)からA全抽出するときを
考える。ステップ301でTABLE(1)すなわちA
を抽出し、k=lとしくステップ302)、VALUE
(2)=CO/−)*−値はHIGH−VALUEでな
いのでステップ303ON枝を通る。
Consider the case where all A are extracted from FIG. 4(b) in step 114. In step 301, TABLE(1), that is, A
, and set k=l (Step 302), VALUE
Since the (2)=CO/-)*- value is not HIGH-VALUE, the process passes through the ON branch of step 303.

VALUE(2)≦VALUE(3)=HIGH−MA
LUE故ステップ304のY枝を通シTABLE(2)
すなわちCをTABLE(1)に移しくステップ305
)k=2としくステ、プ306)、VALUE(4)と
VALUE(5)とが共KHIGH−VALUE故ステ
ップ309でTABLE(2)KHIGH−VALUE
をセットしPP=2としP ’I’ B L(2)= 
2とする。これが第4図(C)の状態である。
VALUE(2)≦VALUE(3)=HIGH-MA
TABLE (2) through the Y branch of LUE step 304
In other words, move C to TABLE (1) in step 305.
) k = 2, step 306), VALUE (4) and VALUE (5) are both KHIGH-VALUE, so in step 309 TABLE (2) KHIGH-VALUE
Set PP=2 and P 'I' B L(2)=
Set it to 2. This is the state shown in FIG. 4(C).

次に第4図(d)からBを抽出するときにはCは前述と
同様にしてTABLE(1)となるが、ステップ306
でに=2となシステップ303のY枝をと2ツテT A
 B L E(2)KHI GHV AL U E t
セ、)L、PP=3とじP T B L(3)= 2と
してデータテーブルTABLEの空の格納位置をスタッ
クポインタテーブルPTBLに退避させている。
Next, when extracting B from FIG. 4(d), C becomes TABLE (1) in the same manner as described above, but in step 306
2 = 2 and the Y branch of step 303 and 2 T A
B L E (2) KHI GHV AL U E t
)L, PP=3 and P TBL (3)=2, and the empty storage position of the data table TABLE is saved to the stack pointer table PTBL.

このようにデータ抽出後はヒーブの原理に従ってヒーブ
用テーブルを整理している。第4図(g)は第4図(f
)からCを抽出しその子部品を格納した図であり、第4
図(h)は第4図(g)からり、Eを抽出し、Eの子部
品を格納した図である。このEを抽出するときにステッ
プ109.110.111.112の集約化処理が行な
われる。
In this way, after data is extracted, the heave table is organized according to the heave principle. Figure 4(g) is similar to Figure 4(f).
) is a diagram in which C is extracted from C and its child parts are stored, and the fourth
FIG. 4(h) is a diagram in which E is extracted from FIG. 4(g) and child parts of E are stored. When extracting this E, aggregation processing in steps 109, 110, 111, and 112 is performed.

本実施例ではヒーブはソートキー値の小さい順にヒーブ
を構成したが本発明はこれに限るものではない。
In this embodiment, the heave is arranged in order of decreasing sort key value, but the present invention is not limited to this.

(発明の効果) 本発明にはヒーブ用データテーブルとスタックポインタ
テーブルとを用意しヒーブソートの原理を利用してサマ
リ展開を行なうことKよりレコードポインタの変更の必
要がなく、マルチプログラミング下での動作が可能とな
9、かつ物理I10も増加しないという効果がある。
(Effects of the Invention) In the present invention, a heave data table and a stack pointer table are prepared and summary expansion is performed using the principle of heave sort.Therefore, there is no need to change the record pointer, and operation under multiprogramming is improved. 9, and the physical I10 does not increase.

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

第1図は本発明の一実施例を示す流れ図、第2図は第1
図のヒーブ用テーブル格納処理の流れ図、第3図は第1
図のヒーブ用テーブルからの抽出処理の流れ図、第4図
はヒーブ用チータテ−プルおよびスタックポインタテー
ブルおよび部品表サマリ展開におけるそれらのデータ格
納過程を示すデータ格納図、第5図は構造形部品表の例
を示す構造図、第6図は従来の部品表サマリ展開を示す
ポインタテーブルのデータ格納図である。 61−−−−−−ポインタテーブル、62・・・・・・
レコード、101−114,201〜207,301〜
311・・・・・・流れ図のステップ、PP・・・・・
・ポインタ、PTBL・・・・・・スタックポインタテ
ーブル、TABLE第1図 (勾              (b)(C)   
             (d)(+!り     
           (f)(g)(λ) 第4図 第5図 (必) (d) 矛6図
FIG. 1 is a flow chart showing one embodiment of the present invention, and FIG.
The flowchart of the heave table storage process shown in the figure, Figure 3 is the first
Figure 4 is a flowchart of the extraction process from the heave table, Figure 4 is a data storage diagram showing the heave cheetah table and stack pointer table and their data storage process in parts list summary expansion, and Figure 5 is a structured parts list. FIG. 6 is a data storage diagram of a pointer table showing conventional parts table summary development. 61 -------Pointer table, 62...
Records, 101-114, 201-207, 301-
311...Step of flowchart, PP...
・Pointer, PTBL...Stack pointer table, TABLE Figure 1 (gradient (b) (C)
(d) (+!ri
(f) (g) (λ) Figure 4 Figure 5 (required) (d) Figure 6

Claims (1)

【特許請求の範囲】 ソートキーに関しヒーブを構成するようにデータを格納
するテーブルを用意し、 前記テーブルを初期化しサマリ展開対象品目を受付け前
記品目のデータを検索し第2の工程にサマリ出力対象品
目として供給する第1の工程と、供給されたサマリ出力
対象品目を構成する子品目の有無を調べ前記子品目がな
いときには第3の工程に前記サマリ出力対象品目データ
を供給し、前記子品目があるときには前記子品目のデー
タを検索し前記テーブルに格納して前記サマリ出力対象
品目データを第3の工程に供給する第2の工程と、 供給された前記サマリ出力対象品目と前記テーブルに格
納されている第1番目のデータとを比較し同じのときに
は前記第1番目のデータを抽出して前記サマリ出力対象
品目のデータと集約化してサマリ結果を出力し第4の工
程に移る第3の工程と、 前記テーブルにデータが格納されているときにはこれを
抽出して前記第2の工程にサマリ対象品目として供給し
前記テーブルにデータが格納されていないときには終了
する第4の工程とを含むことを特徴とする部品表サマリ
展開方式。
[Scope of Claims] A table is prepared to store data so as to constitute a heave with respect to a sort key, the table is initialized, an item for summary expansion is received, the data of the item is searched, and a second step is performed to select the item for summary output. The first step is to supply the summary output target item data to a third step, which checks whether there are any child items constituting the supplied summary output target item, and if there are no child items, the summary output target item data is supplied to a third process, and if the child item is In some cases, a second step searches for data on the child item, stores it in the table, and supplies the summary output target item data to a third step; A third step in which the first data is compared with the first data, and if they are the same, the first data is extracted and aggregated with the data of the summary output target item, a summary result is output, and the process moves on to the fourth step. and a fourth step which extracts data when data is stored in the table and supplies it to the second step as a summary target item, and ends when data is not stored in the table. Features a parts list summary expansion method.
JP25102386A 1986-10-21 1986-10-21 Extension system for summary of parts list Pending JPS63104132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25102386A JPS63104132A (en) 1986-10-21 1986-10-21 Extension system for summary of parts list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25102386A JPS63104132A (en) 1986-10-21 1986-10-21 Extension system for summary of parts list

Publications (1)

Publication Number Publication Date
JPS63104132A true JPS63104132A (en) 1988-05-09

Family

ID=17216473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25102386A Pending JPS63104132A (en) 1986-10-21 1986-10-21 Extension system for summary of parts list

Country Status (1)

Country Link
JP (1) JPS63104132A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0887549A (en) * 1994-09-20 1996-04-02 Nec Corp Level-by-level evolving method for planning of material demand program
RU2486410C2 (en) * 2011-09-13 2013-06-27 Бафа Османович Сейфетдинов Method of combustion products recirculation in pulsating combustion chamber and device for its realisation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0887549A (en) * 1994-09-20 1996-04-02 Nec Corp Level-by-level evolving method for planning of material demand program
RU2486410C2 (en) * 2011-09-13 2013-06-27 Бафа Османович Сейфетдинов Method of combustion products recirculation in pulsating combustion chamber and device for its realisation

Similar Documents

Publication Publication Date Title
US4514826A (en) Relational algebra engine
US5293616A (en) Method and apparatus for representing and interrogating an index in a digital memory
US4785400A (en) Method for processing a data base
US6236988B1 (en) Data retrieval system
US5117495A (en) Method of sorting data records
US5613110A (en) Indexing method and apparatus facilitating a binary search of digital data
US5787433A (en) Method and system for remapping an existing database to a new database system
EP1466277A2 (en) Enhanced multiway radix tree
JPS589982B2 (en) information retrieval device
JP2888188B2 (en) Information retrieval device
JPS63104132A (en) Extension system for summary of parts list
US5881380A (en) Device and method for data management based on values
WO2003079235A1 (en) System and method for storing and retrieving thesaurus data
US3662402A (en) Data sort method utilizing finite difference tables
JP2722684B2 (en) File system search device
CN115510941A (en) Data catalog classification system based on machine learning
JP2827674B2 (en) Database search method
JPH04182828A (en) In-table entry selection system using psuedo-random number
JP3018579B2 (en) Name search processor
JP4988441B2 (en) Search program, search method, and search device
JPH09212515A (en) Information retrieving device
JPH04230576A (en) Method for retrieving record
JPH04297956A (en) Multimedium retrieval and processing system
JPS60252949A (en) Information retrieving method
JPH04304559A (en) Data retrieving system