JP2015141087A - Management device, management method, and program - Google Patents

Management device, management method, and program Download PDF

Info

Publication number
JP2015141087A
JP2015141087A JP2014013655A JP2014013655A JP2015141087A JP 2015141087 A JP2015141087 A JP 2015141087A JP 2014013655 A JP2014013655 A JP 2014013655A JP 2014013655 A JP2014013655 A JP 2014013655A JP 2015141087 A JP2015141087 A JP 2015141087A
Authority
JP
Japan
Prior art keywords
data
file
writing
unit
measurement 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.)
Granted
Application number
JP2014013655A
Other languages
Japanese (ja)
Other versions
JP6331422B2 (en
Inventor
浩 堀口
Hiroshi Horiguchi
浩 堀口
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2014013655A priority Critical patent/JP6331422B2/en
Publication of JP2015141087A publication Critical patent/JP2015141087A/en
Application granted granted Critical
Publication of JP6331422B2 publication Critical patent/JP6331422B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Recording Measured Values (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a management device capable of storing a large amount of measurement data efficiently.SOLUTION: Provided is a management device 1 for receiving, from a plurality of measurement devices, data acquired from time to time by the measurement devices, the management device 1 having: a write-in unit 102 for classifying the received data into a prescribed number of data and writing the classified data into a storage unit; a write-out unit 104 for writing the data written into the storage unit out to different files corresponding to the classification; and an alteration unit 106 for altering the sequence of the data written out to the files so that the data received from one of the measurement devices are arranged contiguously.

Description

本発明は、管理装置、管理方法及びプログラムに関する。   The present invention relates to a management apparatus, a management method, and a program.

ネットワークを通じて、様々な場所に設置された計測器のデータを収集する、管理システムが存在する。例えば、電力会社は、各家庭や事業所に多数設置された電力計の測定値を、定期的に収集するために、大規模な管理システムを用いる。このような管理システムは、一定周期で、大量のデータを処理するため、高い計算能力を必要とする。   There is a management system that collects data of measuring instruments installed in various places through a network. For example, an electric power company uses a large-scale management system in order to periodically collect measured values of power meters installed in many homes or offices. Since such a management system processes a large amount of data at a constant cycle, it requires a high calculation capacity.

特許文献1は、大量のデータを効率よく記録媒体に格納し、読み出すことができるようにデータを編集する装置を開示している。   Patent Document 1 discloses an apparatus for editing data so that a large amount of data can be efficiently stored in a recording medium and read out.

特開昭63−83820号公報JP-A-63-83820

上述した管理システムにおいて、収集されたデータは、一般的に、大容量の補助記憶装置(例えば、ハードディスク)に設けられた、ファイルに格納される。しかしながら、従来の技術では、例えば、1時間ごとに1000万個の計測データを取り扱うような場合、1000万回のファイル書き込みが発生し、その処理が1時間以内に完了しないという問題があった。特許文献1では、このような大量のファイル書き込みがなされることを想定しておらず、上記問題を解決することができなかった。   In the management system described above, the collected data is generally stored in a file provided in a large-capacity auxiliary storage device (for example, a hard disk). However, in the conventional technique, for example, when 10 million pieces of measurement data are handled every hour, there is a problem that 10 million file writing occurs and the processing is not completed within one hour. In Patent Document 1, it is not assumed that such a large amount of file writing is performed, and the above problem cannot be solved.

本発明は、このような問題に鑑みてなされたものであり、大量の計測データを効率よく格納できるようにすることを目的とする。   The present invention has been made in view of such a problem, and an object thereof is to enable a large amount of measurement data to be stored efficiently.

上述した課題を解決し目的を達成するため、本発明の一実施形態における管理装置は、
複数の計測装置から、該計測装置において随時取得されるデータを受信する管理装置であって、
受信した前記データを所定の数に分類して記憶部に書き込む書込部と、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出部と、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更部と、
を有する。
In order to solve the above-described problems and achieve the object, a management device according to an embodiment of the present invention is:
A management device that receives data acquired from time to time in a plurality of measurement devices,
A writing unit that classifies the received data into a predetermined number and writes the data to the storage unit;
A writing unit for writing the data written in the storage unit to a different file according to the classification;
A changing unit that changes the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacently;
Have

また、本発明の一実施形態における管理方法は、
コンピュータが行う管理方法であって、
複数の計測装置から、該計測装置において随時取得されるデータを受信する受信ステップと、
受信した前記データを所定の数に分類して記憶部に書き込む書込ステップと、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出ステップと、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更ステップと、
を有する。
In addition, the management method in one embodiment of the present invention is:
A management method performed by a computer,
A receiving step of receiving data acquired at any time in the measuring device from a plurality of measuring devices;
A writing step of classifying the received data into a predetermined number and writing it in the storage unit;
A writing step of writing the data written in the storage unit to a different file according to the classification;
A change step of changing the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacent to the file;
Have

また、本発明の一実施形態におけるプログラムは、
コンピュータに管理方法を実行させるプログラムであって、前記管理方法は、
複数の計測装置から、該計測装置において随時取得されるデータを受信する受信ステップと、
受信した前記データを所定の数に分類して記憶部に書き込む書込ステップと、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出ステップと、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更ステップと、
を有する。
Moreover, the program in one embodiment of the present invention is:
A program for causing a computer to execute a management method, the management method comprising:
A receiving step of receiving data acquired at any time in the measuring device from a plurality of measuring devices;
A writing step of classifying the received data into a predetermined number and writing it in the storage unit;
A writing step of writing the data written in the storage unit to a different file according to the classification;
A change step of changing the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacent to the file;
Have

本発明によれば、大量の計測データを効率よく格納できるようになる。   According to the present invention, a large amount of measurement data can be efficiently stored.

本発明の一実施形態における管理装置を含むシステムの例を表す図。The figure showing the example of the system containing the management apparatus in one Embodiment of this invention. 本発明の一実施形態における管理装置の概要を説明する図。The figure explaining the outline | summary of the management apparatus in one Embodiment of this invention. 本発明の一実施形態における管理装置のハードウェア構成図。The hardware block diagram of the management apparatus in one Embodiment of this invention. 本発明の一実施形態における管理装置の機能ブロック図。The functional block diagram of the management apparatus in one Embodiment of this invention. 計測データの構成例を示す図。The figure which shows the structural example of measurement data. 計測データのメモリ構造の例を表す図。The figure showing the example of the memory structure of measurement data. 計測データを格納するファイルの構成を表す図。The figure showing the structure of the file which stores measurement data. 本発明の一実施形態における書出処理を説明する図。The figure explaining the write-out process in one Embodiment of this invention. 本発明の一実施形態における変更処理を説明する図。The figure explaining the change process in one Embodiment of this invention. 本発明の一実施形態における読出処理を説明する図。The figure explaining the read-out process in one Embodiment of this invention. 本発明の一実施形態における受信処理・書込処理を表すフローチャート。The flowchart showing the reception process and writing process in one Embodiment of this invention. 本発明の一実施形態における書出処理を表すフローチャート。The flowchart showing the writing process in one Embodiment of this invention. 本発明の一実施形態における変更処理を表すフローチャート。The flowchart showing the change process in one Embodiment of this invention. 本発明の一実施形態における読出処理を表すフローチャート。The flowchart showing the reading process in one Embodiment of this invention. 本発明の一実施形態における管理装置の動作例を表すシーケンス図。The sequence diagram showing the operation example of the management apparatus in one Embodiment of this invention.

以下、本発明の実施形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

1.システムの概要
2.ハードウェア構成
3.機能構成
4.動作例
1. 1. System overview 2. Hardware configuration Functional configuration Example of operation

≪ 1. システムの概要 ≫
図1は、本発明の一実施形態における管理装置1を含む管理システムの例を表す図である。図1に示される管理システムは、家庭や事業所で使用されるエネルギーを管理及び制御する、EMS(Energy Management System)の例を示している。図1に示される管理システムは、管理装置1と、収集装置2と、コンセントレータ3と、計測装置4とを有し、家庭や事業所で計測されたデータを収集することができる。
≪ 1. System overview ≫
FIG. 1 is a diagram illustrating an example of a management system including a management apparatus 1 according to an embodiment of the present invention. The management system shown in FIG. 1 shows an example of an EMS (Energy Management System) that manages and controls energy used in homes and offices. The management system shown in FIG. 1 includes a management device 1, a collection device 2, a concentrator 3, and a measurement device 4, and can collect data measured at home or business.

管理装置1と収集装置2は、例えば、PC(Personal Computer)又はサーバのようなコンピュータであり、LAN(Local Area Network)のようなネットワーク5で接続される。収集装置2とコンセントレータ3は、例えば、インターネット又は専用線等のネットワーク6で接続される。コンセントレータ3と計測装置4は、例えば、無線LAN、Bluetooth(登録商標)、ZigBee(登録商標)等のネットワーク7で接続される。   The management device 1 and the collection device 2 are computers such as a PC (Personal Computer) or a server, for example, and are connected by a network 5 such as a LAN (Local Area Network). The collection device 2 and the concentrator 3 are connected via a network 6 such as the Internet or a dedicated line. The concentrator 3 and the measuring device 4 are connected via a network 7 such as a wireless LAN, Bluetooth (registered trademark), ZigBee (registered trademark), or the like.

計測装置4は、家庭や事業所に設置され、有効電力量や、平均kW値や、電圧や、一定時間ごとの積算kWh値等を取得することができる。計測装置4は、取得した計測データを、ネットワーク7を通じて、コンセントレータ3に送信する。計測装置4は、定期的(例えば1時間おき)又は不定期的に、計測データを送信することができる。   The measuring device 4 is installed in a home or business, and can acquire an active power amount, an average kW value, a voltage, an integrated kWh value for every predetermined time, and the like. The measuring device 4 transmits the acquired measurement data to the concentrator 3 through the network 7. The measurement device 4 can transmit measurement data regularly (for example, every hour) or irregularly.

コンセントレータ3は、ある地域ごとに設置され、複数の計測装置4から、計測データを受信する。コンセントレータ3は、受信した計測データを、ネットワーク6を通じて、収集装置2に送信する。   The concentrator 3 is installed for each area and receives measurement data from a plurality of measurement devices 4. The concentrator 3 transmits the received measurement data to the collection device 2 through the network 6.

収集装置2は、複数のコンセントレータ3から、計測データを受信する。収集装置2は、受信した計測データを、ネットワーク5を通じて、管理装置1に送信する。   The collection device 2 receives measurement data from the plurality of concentrators 3. The collection device 2 transmits the received measurement data to the management device 1 through the network 5.

管理装置1は、収集装置2によって収集された計測データを受信し、その計測データをファイルに書き込む。例えば、上述した計測装置4が、1000万個設置されており、それぞれが1時間に1回、計測データを送信すると、管理装置1は、1時間に1000万個の計測データを、ファイルに書き出す必要がある。   The management device 1 receives the measurement data collected by the collection device 2 and writes the measurement data to a file. For example, when 10 million measurement devices 4 are installed and each transmits measurement data once per hour, the management device 1 writes 10 million measurement data per hour to a file. There is a need.

図2は、本発明の一実施形態における管理装置1が、大量の計測データを効率的にファイルに格納する処理と、ファイルの内容を配列し直す処理とを示している。これにより、管理装置1は、大量の計測データを効率的に読み出すことができる。以下の例では、1つのファイルに、24時間分の計測データが格納されるものとして、説明を行う。   FIG. 2 shows a process in which the management apparatus 1 according to an embodiment of the present invention efficiently stores a large amount of measurement data in a file and a process in which the contents of the file are rearranged. Thereby, the management apparatus 1 can read a lot of measurement data efficiently. In the following example, description will be made assuming that measurement data for 24 hours is stored in one file.

まず、管理装置1は、収集装置2から随時受信される計測データを、後に格納されるファイルのファイル番号を用いて分類し、メモリに書き込む(計測データ書込処理)。ここで、管理装置1は、一つのファイルが、単位時間あたりに格納する計測データの数(例えば、10000)を利用して、計測データを分類する。詳しくは後述するが、管理装置1は、計測データに含まれる識別番号(例えば、0〜9999999)を、一時間あたりの格納数(例えば、10000)で割ることにより求まる商の値を用いて、計測データを格納すべきファイルのファイル番号を特定する。   First, the management apparatus 1 classifies measurement data received from the collection apparatus 2 as needed using the file number of a file stored later, and writes it into the memory (measurement data writing process). Here, the management apparatus 1 classifies the measurement data by using the number of measurement data (for example, 10000) stored in one file per unit time. As will be described in detail later, the management device 1 uses the value of the quotient obtained by dividing the identification number (for example, 0 to 9999999) included in the measurement data by the number of storages per hour (for example, 10000), Specify the file number of the file to store the measurement data.

次に、管理装置1は、一定時間おきに、メモリ上で分類されて書き込まれた計測データをファイルに書き出す(ファイル書出処理)。ファイルは、計測データの取得時間に対応する、24個のブロックに分かれており、各ブロック内に、所定数の計測装置4の計測データが格納される。   Next, the management apparatus 1 writes the measurement data classified and written on the memory at regular intervals to a file (file writing process). The file is divided into 24 blocks corresponding to the measurement data acquisition time, and a predetermined number of measurement data of the measurement device 4 is stored in each block.

管理装置1は、メモリに記憶された計測データの取得時間と、計測データの識別番号を、上記の格納数で割って求まる剰余の値とを用いて、計測データのファイル上での格納位置を特定する。図2に示されるファイルのうち、「File2_2012_1_12」、「File999_2012_1_12」等のファイルは、ファイル書出処理によって書き出されたファイルである。   The management device 1 determines the storage position of the measurement data on the file by using the measurement data acquisition time stored in the memory and the remainder value obtained by dividing the measurement data identification number by the number of storages. Identify. Among the files shown in FIG. 2, files such as “File2_2012_1_12” and “File999_2012_1_12” are files written by the file writing process.

また、管理装置1は、一定時間おき(例えば、ファイル書出処理より長い周期)に、ファイルに書き出された計測データの並び順を変更する(ファイル変更処理)。詳しくは後述するが、管理装置1は、取得時間ごとのブロックに分類されて記録された計測データを、計測装置4ごとのブロックに分けて再配置する。各ブロックは、取得時刻順に、計測値を格納する。図2に示されるファイルのうち、「XFile0_2012_1_10」、「XFile1_2012_1_10」等のファイルは、ファイル書出処理によって書き出されたファイルである。   Moreover, the management apparatus 1 changes the arrangement order of the measurement data written in the file at regular intervals (for example, a longer cycle than the file writing process) (file changing process). As will be described in detail later, the management device 1 rearranges the measurement data that is classified and recorded in blocks for each acquisition time into blocks for each measurement device 4. Each block stores measurement values in order of acquisition time. Among the files shown in FIG. 2, files such as “XFile0_2012_1_10” and “XFile1_2012_1_10” are files written by the file writing process.

また、管理装置1は、ユーザからの指示又は外部のシステムからの要求等に応じて、計測装置4ごとに、ファイルに格納された計測データを読み出す(計測データ読出処理)。管理装置1は、計測装置4の識別番号と、計測データの日時とを受け取り、計測データが格納されたファイルと、ファイル内での位置とを特定する。計測データは、上述したファイル変更処理により、計測装置4ごとにブロック単位で記録されているため、管理装置1は、効率的に計測データを読み出すことができる。   Moreover, the management apparatus 1 reads the measurement data stored in the file for each measurement apparatus 4 in response to an instruction from the user or a request from an external system (measurement data reading process). The management device 1 receives the identification number of the measurement device 4 and the date and time of the measurement data, and specifies the file in which the measurement data is stored and the position in the file. Since the measurement data is recorded in units of blocks for each measurement device 4 by the file change process described above, the management device 1 can efficiently read the measurement data.

以下、本発明の一実施形態における管理装置1を構成する要素を詳細に説明する。なお、本発明は、上述したEMSの例に限られず、複数の計測データを一定周期で収集して格納する、任意のシステムに適用することができる。   Hereinafter, elements constituting the management device 1 according to an embodiment of the present invention will be described in detail. In addition, this invention is not restricted to the example of EMS mentioned above, It can apply to the arbitrary systems which collect and store several measurement data with a fixed period.

≪ 2. ハードウェア構成 ≫
図3を用いて、本発明の一実施形態における管理装置1のハードウェア構成例を説明する。管理装置1は、CPU11と、ROM12と、RAM13と、HDD(Hard Disk Drive)/SSD(Solid State Drive)14と、NIC(Network Interface Card)15ととを有する。
≪ 2. Hardware configuration ≫
A hardware configuration example of the management apparatus 1 according to an embodiment of the present invention will be described with reference to FIG. The management device 1 includes a CPU 11, a ROM 12, a RAM 13, an HDD (Hard Disk Drive) / SSD (Solid State Drive) 14, and a NIC (Network Interface Card) 15.

CPU11は、管理装置1の動作制御を行うプログラムを実行する。ROM12は、CPU11が実行するシステムプログラムを記憶する。RAM13は、CPU11のワークエリアを構成する。また、RAM13は、計測データを一時的に記憶する領域としても使用される。HDD/SSD14は、計測データを格納するファイルに加えて、CPU11が実行するOSやアプリケーション等のプログラムやデータ等を記憶する。NIC15は、有線の通信インターフェースとその制御装置を含み、収集装置2と通信を行うために用いられる。バス16は、管理装置1を構成する上記の装置を相互に接続し、データのやり取りを行う。   The CPU 11 executes a program that controls the operation of the management apparatus 1. The ROM 12 stores a system program executed by the CPU 11. The RAM 13 constitutes a work area for the CPU 11. The RAM 13 is also used as an area for temporarily storing measurement data. The HDD / SSD 14 stores programs and data such as an OS and applications executed by the CPU 11 in addition to files for storing measurement data. The NIC 15 includes a wired communication interface and its control device, and is used to communicate with the collection device 2. The bus 16 connects the above-described devices constituting the management device 1 to each other and exchanges data.

なお、管理装置1は、計測データやアプリケーション等を、HDD/SSD14に格納する代わりに、ネットワーク上の記憶領域を使用してもよい。また、管理装置1は、計測データを格納するファイルそのものを、RAM13に記憶してもよい。   The management apparatus 1 may use a storage area on the network instead of storing measurement data, applications, and the like in the HDD / SSD 14. Further, the management device 1 may store the file itself for storing measurement data in the RAM 13.

≪ 3. 機能構成 ≫
次に、図4を用いて、本発明の一実施形態における管理装置1の機能構成を説明する。なお、図4は、管理装置1が備える様々な要素のうち、本実施形態の説明に特に関連する要素を示す。以下の例では、管理装置1は、1時間ごとに1000万個の計測データを受信し、各計測データを、1000個のファイルに分類して記録する。すなわち、各ファイルは、1時間あたり1万個の計測データを格納する。また、各ファイルは、合計24時間分の計測データを格納するものとする。
≪ 3. Functional configuration ≫
Next, the functional configuration of the management apparatus 1 according to an embodiment of the present invention will be described with reference to FIG. FIG. 4 shows elements that are particularly relevant to the description of the present embodiment, among various elements included in the management apparatus 1. In the following example, the management apparatus 1 receives 10 million pieces of measurement data every hour, and classifies and records each piece of measurement data into 1000 files. That is, each file stores 10,000 pieces of measurement data per hour. Each file stores measurement data for a total of 24 hours.

管理装置1は、受信部101と、書込部102と、一時記憶部103と、書出部104と、格納部105と、変更部106と、読出部107とを有する。   The management device 1 includes a receiving unit 101, a writing unit 102, a temporary storage unit 103, a writing unit 104, a storage unit 105, a changing unit 106, and a reading unit 107.

受信部101は、図3に示されるCPU11及びNIC15の処理により主に実現され、収集装置2から、計測装置4で取得された計測データを受信する。受信部101は、受信した計測データを、書込部102に渡す。   The receiving unit 101 is mainly realized by the processing of the CPU 11 and the NIC 15 illustrated in FIG. 3, and receives measurement data acquired by the measurement device 4 from the collection device 2. The receiving unit 101 passes the received measurement data to the writing unit 102.

なお、受信部101は、例えば、図5に示される構成を有する計測データを受信することができる。図5に示される計測データは、識別番号と、日時と、計測値を含む。識別番号は、計測装置4に対応する番号又は識別子である。日時は、計測装置4が計測データを取得した日時を表す。計測値は、計測装置4が取得した値を表す。図5の例では、識別番号は0−9999999の範囲にあり、計測値は0−999の範囲にあるが、この例に限られず、任意の数の識別番号及び計測値が用いられても良い。   In addition, the receiving part 101 can receive the measurement data which has the structure shown by FIG. 5, for example. The measurement data shown in FIG. 5 includes an identification number, a date and time, and a measurement value. The identification number is a number or identifier corresponding to the measuring device 4. The date and time represents the date and time when the measurement device 4 acquired measurement data. The measurement value represents a value acquired by the measurement device 4. In the example of FIG. 5, the identification number is in the range of 0-9999999 and the measurement value is in the range of 0-999. However, the present invention is not limited to this example, and an arbitrary number of identification numbers and measurement values may be used. .

書込部102は、図3に示されるCPU11の処理により実現され、受信部101から受け取った計測データを、一時記憶部103に書き込む。図6は、書込部102が、一時記憶部103において、計測データを記憶するためのデータ構造を示す。書込部102は、計測データが後に格納されるファイルのファイル番号(「File0」〜「File999」)に分類して、一時記憶部103に書き込む。そのために、書込部102は、計測データに含まれる識別番号を、一のファイルに格納されるデータの単位時間あたり(ここでは、1時間)の格納数である、「10000」で割ることにより求めた商の値を、計測データを書き込むファイルのファイル番号とする。   The writing unit 102 is realized by the processing of the CPU 11 illustrated in FIG. 3, and writes the measurement data received from the receiving unit 101 to the temporary storage unit 103. FIG. 6 shows a data structure for the writing unit 102 to store measurement data in the temporary storage unit 103. The writing unit 102 classifies the measurement data into file numbers (“File0” to “File999”) of files to be stored later, and writes them into the temporary storage unit 103. For this purpose, the writing unit 102 divides the identification number included in the measurement data by “10000”, which is the number of data stored in one file per unit time (here, one hour). The obtained quotient value is used as the file number of the file to which the measurement data is written.

図6が示すように、構造体61は、各ファイル番号ごとに、日付(年月日)ごとの計測データを管理する構造体62へのポインタ(アドレス)を保持する。構造体62は、次の日のファイルへのポインタと、データ年月日と、時刻データリンク(ポインタ)を有する。また、時刻データリンクは、実際の計測データを格納する構造体63を参照している。構造体63は、次の時刻データへのポインタと、格納する計測データの時刻(ここでは、1−24)と、上述した格納数「10000」の計測データブロック64を有する。計測データブロック64は、さらに、計測データが格納されたことを表すフラグと、計測値とを含む。   As shown in FIG. 6, the structure 61 holds a pointer (address) to the structure 62 that manages measurement data for each date (year / month / day) for each file number. The structure 62 includes a pointer to the file of the next day, a data date, and a time data link (pointer). The time data link refers to a structure 63 that stores actual measurement data. The structure 63 includes a pointer to the next time data, the time of measurement data to be stored (here, 1-24), and the above-described measurement data block 64 having the stored number “10000”. The measurement data block 64 further includes a flag indicating that the measurement data is stored and a measurement value.

書込部102は、受信部101から受け取った計測データの日時のうち、日付を参照して、計測データを記憶すべき構造体62(を特定する。次に、書込部102は、受信部101から受け取った計測データの日時のうち、時刻(ここでは、1−24)を参照して、計測データを書き込むべき構造体63を特定する。次に、書込部102は、計測データの識別番号を、上述した格納数「10000」で割ることにより求めた剰余の値を用いて、構造体63の計測データブロックにおける、計測値の書込位置を特定する。そして、書込部102は、特定した格納位置に、計測値を書き込み、対応するフラグを有効(例えば、0を1にする)にする。   The writing unit 102 refers to the date among the date and time of the measurement data received from the reception unit 101, and specifies the structure 62 (to store the measurement data. Next, the writing unit 102 receives the reception unit 101. The structure 63 to which the measurement data is to be written is specified with reference to the time (here, 1-24) of the date and time of the measurement data received from 101. Next, the writing unit 102 identifies the measurement data. Using the remainder value obtained by dividing the number by the above-mentioned storage number “10000”, the measurement value writing position in the measurement data block of the structure 63 is specified. The measured value is written in the specified storage position, and the corresponding flag is enabled (for example, 0 is set to 1).

なお、書込部102は、計測データを処理する前に、構造体61を予め準備してもよい。また、書込部102は、計測データを受信した後に、その計測データの日時に対応する構造体62、63がメモリ上に存在しない場合、これらの構造体62、63をメモリ上に生成しても良い。   Note that the writing unit 102 may prepare the structure 61 in advance before processing the measurement data. In addition, after receiving the measurement data, the writing unit 102 generates these structures 62 and 63 on the memory when the structures 62 and 63 corresponding to the date and time of the measurement data do not exist on the memory. Also good.

一時記憶部103は、図3に示されるRAM13により実現され、図6に例示されるデータ構造を記憶する。   The temporary storage unit 103 is realized by the RAM 13 shown in FIG. 3, and stores the data structure exemplified in FIG.

書出部104は、図3に示されるCPU11の処理により主に実現され、格納部105に予め用意されたファイルを読み込み、一時記憶部103から読み込んだ、対応する日時の計測データの計測値で上書きした後に、その内容をファイルへと書き出す。書出部104は、一定時間おき(例えば、1時間おき)に、上述したファイル書出処理を実行することができる。   The writing unit 104 is realized mainly by the processing of the CPU 11 shown in FIG. 3, reads a file prepared in advance in the storage unit 105, and uses the measurement value of the measurement data of the corresponding date and time read from the temporary storage unit 103. After overwriting, write the contents to a file. The writing unit 104 can execute the file writing process described above at regular intervals (for example, every hour).

図7は、書出部104が、計測値を書き出したファイル70の構造の例を示す。図7に示されるように、ファイル70は、ファイル番号と年月日とを含むファイル名(例えば、「File1_2012_1_13」)を有し、時刻(1−24)ごとに分類された、フラグと計測値との組を1万個格納する。   FIG. 7 shows an example of the structure of the file 70 in which the writing unit 104 writes measurement values. As illustrated in FIG. 7, the file 70 has a file name (for example, “File1_2012_1_13”) including a file number and a date, and is classified by time (1-24) and flags and measurement values. 10,000 pairs are stored.

なお、書出部104は、一時記憶部103に記憶された計測データのうち、フラグが有効となっている計測値のみを読み込んでもよい。   Note that the writing unit 104 may read only the measurement values for which the flag is valid among the measurement data stored in the temporary storage unit 103.

図8は、書出部104の処理を説明する図である。ここでは、書出部104は、ファイル番号が「File1」であり、日付が「2012/1/13」のファイルへの書き出しを行う。図8は、書出部104が、2時と3時の計測データを書き出す例を示している。まず、書出部104は、格納部105に格納されたファイル「File1_2012_1_13」のうち、「2時」の計測データを格納する領域を読み込む(1)。次に、書出部104は、一時記憶部103に記憶された、2時の計測データを格納する構造体63の時刻データブロックを参照し、フラグが「1」となっている計測値を用いて、ファイルから読み込んだ計測値を上書きする(2)。そして、書出部104は、上書きしたデータを、ファイルの読み込んだ領域へと書き込む(3)。同様に、書出部104は、「3時」の計測データを処理する(4)〜(6)。書出部104は、すべての時刻(ここでは、1〜24)に対して、同様の処理を行う。   FIG. 8 is a diagram for explaining the processing of the writing unit 104. Here, the writing unit 104 writes the file number “File1” and the date “2012/1/13”. FIG. 8 shows an example in which the writing unit 104 writes measurement data at 2 o'clock and 3 o'clock. First, the writing unit 104 reads an area for storing measurement data of “2 o'clock” in the file “File1_2012_1_13” stored in the storage unit 105 (1). Next, the writing unit 104 refers to the time data block of the structure 63 storing the 2 o'clock measurement data stored in the temporary storage unit 103, and uses the measurement value whose flag is “1”. The measured value read from the file is overwritten (2). Then, the writing unit 104 writes the overwritten data into the read area of the file (3). Similarly, the writing unit 104 processes measurement data at “3 o'clock” (4) to (6). The writing unit 104 performs the same process for all times (here, 1 to 24).

格納部105は、図3に示されるHDD/SSD14により主に実現され、図7に例示されるファイルや、後述する、変更部106により変更されたファイルを格納する。   The storage unit 105 is mainly realized by the HDD / SSD 14 illustrated in FIG. 3, and stores a file illustrated in FIG. 7 and a file changed by the changing unit 106 described later.

変更部106は、図3に示されるCPU11の処理により主に実現され、書出部104により書き出されたファイル内のフラグ及び計測値の組の順序を変更して、格納部105の別のファイルに書き出す。具体的には、変更部106は、図9に示されるように、同一の計測装置4についてのフラグ及び計測値が互いに隣接して配置されるよう、その順序を変更して、新たなファイル90に書き出す。なお、変更部106は、新たなファイル90には、ファイル70のファイル名の先頭に「X」を付し、例えば「XFile1_2012_1_13」のようなファイル名を用いて、ファイル90に書き出す。   The changing unit 106 is mainly realized by the processing of the CPU 11 shown in FIG. 3, changes the order of the flag and measurement value pairs in the file written by the writing unit 104, and changes the storage unit 105. Export to file. Specifically, as shown in FIG. 9, the changing unit 106 changes the order so that flags and measurement values for the same measuring device 4 are arranged adjacent to each other, and creates a new file 90. Export to The changing unit 106 adds “X” to the head of the file name of the file 70 in the new file 90 and writes the new file 90 in the file 90 using a file name such as “XFile1_2012_1_13”.

図10を用いて、変更部106による変更処理の利点を説明する。図10(A)は、変更部106による変更処理が施されたファイル90から、ある計測装置4の24時間分の計測値を読み込む際の処理を表している。また、図10(B)は、変更部106による変更処理が施されないファイル70から、同様に、24時間分の計測値を読み込んだ場合の処理を表している。図10(B)に示されるように、変換前のファイル70では、24のブロックに計測値が点在するため、24回のファイル読込みが必要となるが、図10(A)に示されるように、変換後のファイル90では、1回のファイル参照で済む。この利点は、一度に多数の計算値を参照する場合、特に有効である。例えば、30日分の計測値を参照する場合、ファイル70の場合には、30ファイル×24回=720回のファイル読み込みが発生するのに対して、ファイル90の場合には、30ファイル×1回=30回となる。このように、変更部106の処理により、ファイル読み込みに係る処理時間の大幅な短縮が可能となる。   The advantage of the changing process by the changing unit 106 will be described with reference to FIG. FIG. 10A shows processing when reading measurement values for 24 hours of a certain measuring device 4 from a file 90 subjected to change processing by the changing unit 106. FIG. 10B shows the process when the measurement values for 24 hours are similarly read from the file 70 that is not changed by the changing unit 106. As shown in FIG. 10 (B), in the file 70 before conversion, measurement values are scattered in 24 blocks. Therefore, the file needs to be read 24 times, but as shown in FIG. 10 (A). In addition, the converted file 90 needs only one file reference. This advantage is particularly effective when referring to a large number of calculated values at once. For example, when referring to the measurement values for 30 days, in the case of the file 70, 30 files × 24 times = 720 times of file reading occurs, whereas in the case of the file 90, 30 files × 1. Times = 30 times. As described above, the processing by the changing unit 106 can significantly reduce the processing time related to file reading.

読出部107は、図3に示されるCPU11の処理により主に実現され、ユーザからの指示又は外部のシステムからの要求等に応じて、計測装置4ごとに、ファイルに格納された計測データを読み出す。具体的には、読出部107は、ユーザ等から、読み出し対象となる計測装置4の識別番号と、期間(日時)とを受け取る。読出部107は、指定された識別番号を、上述した格納数で割った商によりファイル番号を特定する。また、読出部107は、指定された期間に対応する年月日を特定する。これにより、読出部107は、読み込むべきファイル90のファイル名を特定することができる。次いで、読出部107は、特定されたファイル90のうち、指定された識別番号を、上述した格納数で割ることにより求まる剰余の値の示す位置から、指定された期間に対応する時刻のデータを読み込む。図10(A)は、ファイル番号が「File1」であり、期間が「2012/1/13 1:00-24:00」である計測値を読み出す例を表している。   The reading unit 107 is mainly realized by the processing of the CPU 11 illustrated in FIG. 3, and reads measurement data stored in a file for each measurement device 4 in response to an instruction from a user or a request from an external system. . Specifically, the reading unit 107 receives an identification number and a period (date and time) of the measuring device 4 to be read from a user or the like. The reading unit 107 specifies a file number by a quotient obtained by dividing the designated identification number by the number of storages described above. Further, the reading unit 107 specifies the date corresponding to the designated period. Thereby, the reading unit 107 can specify the file name of the file 90 to be read. Next, the reading unit 107 obtains the data of the time corresponding to the specified period from the position indicated by the value of the remainder obtained by dividing the specified identification number in the specified file 90 by the number of storages described above. Read. FIG. 10A shows an example of reading a measurement value whose file number is “File1” and whose period is “2012/1/13 1: 00-24: 00”.

≪ 4.動作例 ≫
次に、図11−図15を用いて、本発明の一実施形態における管理装置1の処理フローと、管理装置1の動作例を説明する。
<< 4. Example of operation ≫
Next, a processing flow of the management apparatus 1 and an operation example of the management apparatus 1 according to an embodiment of the present invention will be described with reference to FIGS.

図11は、本発明の一実施形態における管理装置1の受信部101及び書込部102の処理の流れを表すフローチャートである。   FIG. 11 is a flowchart showing a processing flow of the receiving unit 101 and the writing unit 102 of the management apparatus 1 according to an embodiment of the present invention.

まず、受信部101は、収集装置2から、計測装置4で取得された計測データを受信する(ステップS101)。次いで、書込部102は、計測データに含まれる識別番号を、一のファイルに格納されるデータの単位時間あたり(ここでは、1時間)の格納数である、「10000」で割った商の値を、計測データを書き込むファイル番号とする(ステップS102)。同時に、書込部102は、識別番号を上述の格納数で割ることにより求めた剰余の値を、計測データを書き込む、計測データブロック(図6の構造体63参照)内の書込位置とする。   First, the receiving unit 101 receives measurement data acquired by the measurement device 4 from the collection device 2 (step S101). Next, the writing unit 102 divides the identification number included in the measurement data by “10000”, which is the number of data stored in one file per unit time (here, 1 hour). The value is set as a file number for writing measurement data (step S102). At the same time, the writing unit 102 sets the remainder value obtained by dividing the identification number by the number of storages described above as the writing position in the measurement data block (see the structure 63 in FIG. 6) in which the measurement data is written. .

次に、書込部102は、計測データの日時(年月日及び時刻)を参照して、一時記憶部103上の、計測データを書き込む書込領域(図6の構造体63)を探索する(ステップS103)。ステップS103において、一時記憶部103に、対応する書込領域が存在する場合には(ステップS104のYes)、書込部102は、計測データの計測値を、ステップS102で算出した計測位置に書き込む(ステップS105)。そして、書込部102は、書き込んだ測定値に対応するフラグを有効化にする(ステップS106)。   Next, the writing unit 102 refers to the date and time (year / month / day and time) of the measurement data, and searches for a writing area (structure 63 in FIG. 6) in the temporary storage unit 103 in which the measurement data is written. (Step S103). In step S103, when the corresponding writing area exists in the temporary storage unit 103 (Yes in step S104), the writing unit 102 writes the measurement value of the measurement data in the measurement position calculated in step S102. (Step S105). Then, the writing unit 102 validates the flag corresponding to the written measurement value (step S106).

一方、ステップS103において、一時記憶部103に、対応する書込領域が存在しない場合には(ステップS104のNo)、書込部102は、書込領域を作成する(ステップS107)。その後、ステップS105、S106が実行される。   On the other hand, if there is no corresponding writing area in the temporary storage unit 103 in step S103 (No in step S104), the writing unit 102 creates a writing area (step S107). Thereafter, steps S105 and S106 are executed.

図12は、本発明の一実施形態における管理装置1の書出部104の処理の流れを表すフローチャートである。   FIG. 12 is a flowchart showing a process flow of the writing unit 104 of the management apparatus 1 according to the embodiment of the present invention.

書出部104は、まず、現在の日時を取得する(ステップS201)。次に、書出部104が、前回ファイルへの書出処理を行った日時から、一定時間が経過している場合には(ステップS202のYes)、格納部105に書き出された所定の日付(例えば、当日又は前日)のファイルを読み込む(ステップS203)。一方、一定時間が経過していない場合には(ステップS202のNo)、処理を終了する。   The writing unit 104 first acquires the current date and time (step S201). Next, when a predetermined time has elapsed from the date and time when the writing unit 104 performed the writing process to the previous file (Yes in step S202), the predetermined date written in the storage unit 105 A file (for example, the current day or the previous day) is read (step S203). On the other hand, when the fixed time has not elapsed (No in step S202), the process is terminated.

次に、書出部104は、読み込んだファイルのファイル番号及び年月日に対応する計測データを、一時記憶部103から読み込み、当該計測データで、ステップS203で読み込んだデータを上書きする(ステップS204)。そして、書出部104は、上書きしたデータを、格納部105のファイルに書き出す(ステップS205)。   Next, the writing unit 104 reads the measurement data corresponding to the file number and date of the read file from the temporary storage unit 103, and overwrites the data read in step S203 with the measurement data (step S204). ). Then, the writing unit 104 writes the overwritten data in a file in the storage unit 105 (step S205).

書出部104は、例えば、図12に示される処理を、その日の日付を有するすべてのファイルに対して、1時間ごとに繰り返し実行することができる。   For example, the writing unit 104 can repeatedly execute the processing shown in FIG. 12 every hour for all files having the date of the day.

図13は、本発明の一実施形態における管理装置1の変更部106の処理の流れを表すフローチャートである。   FIG. 13 is a flowchart showing a process flow of the changing unit 106 of the management apparatus 1 according to the embodiment of the present invention.

変更部106は、まず、現在の日時を取得する(ステップS301)。次に、変更部106が、前回変更処理を行った日時から、一定時間が経過している場合には(ステップS302のYes)、格納部105に書き出されたファイルを読み込む(ステップS303)。ここで、変更部106は、書出部104によって書き出されたファイル70を読み込む。一方、一定時間が経過していない場合には(ステップS302のNo)、処理を終了する。   The changing unit 106 first acquires the current date and time (step S301). Next, when a predetermined time has elapsed from the date and time when the change unit 106 performed the previous change process (Yes in step S302), the file written in the storage unit 105 is read (step S303). Here, the changing unit 106 reads the file 70 written by the writing unit 104. On the other hand, when the predetermined time has not elapsed (No in step S302), the process is terminated.

次に、変更部106は、同一の計測装置4についてのフラグ及び計測値が、一のブロックとしてまとまって格納されるよう、計測値の順序を変更する(ステップS304)。そして、変更部106は、順序を変更した計測データを、格納部105の新たなファイルに書き出す(ステップS305)。   Next, the changing unit 106 changes the order of measurement values so that flags and measurement values for the same measurement device 4 are stored together as one block (step S304). Then, the change unit 106 writes the measurement data whose order has been changed to a new file in the storage unit 105 (step S305).

変更部106は、例えば、図13に示される処理を、その日(又はその前日)の日付を有するすべてのファイルに対して、1日ごとに繰り返し実行することができる。   For example, the changing unit 106 can repeatedly execute the process shown in FIG. 13 for every file having the date of the day (or the day before), every day.

図14は、本発明の一実施形態における管理装置1の読出部107の処理の流れを表すフローチャートである。   FIG. 14 is a flowchart showing a process flow of the reading unit 107 of the management apparatus 1 according to the embodiment of the present invention.

読出部107は、ユーザ等から、読み出し対象となる計測装置4の識別番号と、期間(日時)とを受信する(ステップS401)。次に、読出部107は、指定された識別番号を格納数で割った商によりファイル番号を特定し、そのファイル番号と期間(日時)とを用いて、読み出すファイルのファイル名を特定する(ステップS402)。同時に、読出部107は、指定された識別番号を格納数で割った剰余により、ファイル内の、指定された計測装置4のフラグ及び計測値の格納位置を特定する。   The reading unit 107 receives an identification number and a period (date and time) of the measuring device 4 to be read from the user or the like (step S401). Next, the reading unit 107 specifies the file number by the quotient obtained by dividing the specified identification number by the number of stored items, and specifies the file name of the file to be read using the file number and the period (date and time) (Step S107). S402). At the same time, the reading unit 107 specifies the storage position of the flag and measurement value of the specified measurement device 4 in the file by the remainder obtained by dividing the specified identification number by the number of storages.

次に、読出部107は、ステップS402で特定したファイル名を有するファイルのうち、ステップS402で特定した位置から、指定された期間の計測値を読み出す(ステップS403)。そして、指定された期間内のすべてのファイルから計測値を読み出した場合には(ステップS404のYes)、処理を終了する。そうでない場合には、ステップS403に戻り、残りのファイルから指定された期間の計測値を読み出す。   Next, the reading unit 107 reads the measurement value for the specified period from the position specified in step S402 among the files having the file name specified in step S402 (step S403). Then, when the measurement values are read from all the files within the designated period (Yes in step S404), the process ends. Otherwise, the process returns to step S403, and the measurement values for the specified period are read from the remaining files.

図15は、本発明の一実施形態における管理装置1の動作例を表すシーケンス図である。本実施形態における管理装置1は、1時間ごとに1000万個の計測データを受信し、各計測データを、1000個のファイルに分類して記録するものとする。すなわち、各ファイルは、1時間あたり1万個の計測データを格納する。また、各ファイルは、合計24時間分の計測データを格納するものとする。   FIG. 15 is a sequence diagram illustrating an operation example of the management apparatus 1 according to the embodiment of the present invention. The management apparatus 1 in the present embodiment receives 10 million pieces of measurement data every hour, and classifies and records each piece of measurement data into 1000 files. That is, each file stores 10,000 pieces of measurement data per hour. Each file stores measurement data for a total of 24 hours.

まず、受信部101は、収集装置2から、計測装置4で取得された計測データを受信する(ステップS501)。ここでは、受信部101は、以下の情報を含む計測データを受信したものとする。なお、計測データの構成の例は、図5に示した通りである。
−識別番号:15001
−日時 :2012/1/13 2:00
−計測値 :150
受信部101は、受信した計測データを、書込部102に渡す(ステップS502)。
First, the receiving unit 101 receives measurement data acquired by the measurement device 4 from the collection device 2 (step S501). Here, it is assumed that the receiving unit 101 has received measurement data including the following information. An example of the configuration of the measurement data is as shown in FIG.
-Identification number: 15001
-Date and time: 2012/1/13 2:00
-Measured value: 150
The receiving unit 101 passes the received measurement data to the writing unit 102 (step S502).

次いで、書込部102は、計測データに含まれる識別番号「15001」を、一のファイルに格納される1時間あたりの格納数である、「10000」で割ることにより、商「1」と剰余「1」とを算出する(ステップS503)。これにより、書込部102は、計測データを書き込むファイルのファイル番号「1」と、計測値の書込み位置「1」とを算出することができる。   Next, the writing unit 102 divides the identification number “15001” included in the measurement data by “10000”, which is the number of storages per hour stored in one file, to obtain the quotient “1” and the remainder. “1” is calculated (step S503). Thereby, the writing unit 102 can calculate the file number “1” of the file to which the measurement data is written and the writing position “1” of the measurement value.

次いで、書込部102は、一時記憶部103のデータ構造(図6)を参照し、ファイル番号「1」に対応する、データ年月日が「2012/1/13」である構造体62を探索し、さらに、時刻が「2」である構造体63を探索する(ステップS504)。そして、書込部102は、特定した構造体63の計測データブロック内の、先頭(「0」番目)から「1」番目の位置にある領域に、計測値「150」を書き込む(ステップS505)。   Next, the writing unit 102 refers to the data structure of the temporary storage unit 103 (FIG. 6), and reads the structure 62 corresponding to the file number “1” whose data date is “2012/1/13”. Search is performed, and further, the structure 63 whose time is “2” is searched (step S504). Then, the writing unit 102 writes the measurement value “150” in the region located at the “1” -th position from the head (“0” -th) in the measurement data block of the specified structure 63 (step S505). .

その後、上述したステップS501−S505と同様に、他の識別番号を有する計測データが受信され、対応する書込領域に書き込まれる(ステップS506−S510)。   Thereafter, similarly to steps S501 to S505 described above, measurement data having another identification number is received and written in the corresponding writing area (steps S506 to S510).

書出部104は、前回実行した書出処理から1時間が経過したことを検知して、格納部105に格納されたファイルのうち、本日の日付をファイル名に含むファイルを読み出す(ステップS511)。ここでは、書出部104が、ファイル「File1_2012_1_13」が読み出したものとする。次に、書出部104は、読み込んだファイルのファイル番号「1」及び年月日「2012/1/13」に対応する計測データを、一時記憶部103から読み込み、当該計測データを、ステップS511で読み出したデータに上書きする(ステップS513)。そして、書出部104は、上書きしたデータを、格納部105のファイルに書き出す(ステップS514)。書出部104は、ステップS511−S514の処理を、すべてのファイル番号に対して実行する。   The writing unit 104 detects that one hour has passed since the writing process executed last time, and reads a file containing the current date in the file name among the files stored in the storage unit 105 (step S511). . Here, it is assumed that the writing unit 104 reads the file “File1_2012_1_13”. Next, the writing unit 104 reads the measurement data corresponding to the file number “1” and the date “2012/1/13” of the read file from the temporary storage unit 103, and the measurement data is read in step S511. The data read out at step S513 is overwritten (step S513). Then, the writing unit 104 writes the overwritten data in a file in the storage unit 105 (step S514). The writing unit 104 executes the processing of steps S511-S514 for all file numbers.

変更部106は、前回実行した変更処理から1日が経過したことを検知して、格納部105に格納されたファイルのうち、本日の日付をファイル名に含むファイルを読み出す(ステップS515)。次に、変更部106は、書出部104によって書き出されたファイル70を、同一の計測装置4により取得された計測値がまとまって記録されるよう、計測値の並び順を変更する(ステップS516)。並び順の変更手順は、図9を用いて説明した通りである。変更部106は、順序を変更した計測データを、格納部105の新たなファイルに書き出す(ステップS517)。   The change unit 106 detects that one day has passed since the change process executed last time, and reads a file that includes today's date in the file name among the files stored in the storage unit 105 (step S515). Next, the change unit 106 changes the arrangement order of the measurement values so that the measurement values acquired by the same measurement device 4 are recorded together in the file 70 written by the writing unit 104 (step S1). S516). The procedure for changing the arrangement order is as described with reference to FIG. The changing unit 106 writes the measurement data whose order has been changed to a new file in the storage unit 105 (step S517).

その後、読出部107は、ユーザ等から、読み出し対象となる計測装置4の識別番号「15001」と、期間「2012/1/13−2012/2/12」とを受信する(ステップS518)。読出部107は、指定された識別番号「15001」を格納数「10000」で割り、その商「1」によりファイル番号「1」を特定し、その剰余「1」により計測値の位置を特定する(ステップS519)。すなわち、読出部107は、以下のファイルを特定する。
−「XFile1_2012_1_13」、「XFile1_2012_1_14」、・・・、「XFile1_2012_2_12」
次いで、読出部107は、各ファイルに含まれる、「1」番目の計測装置の24時間分の計測値を読み出す(ステップS520)。
Thereafter, the reading unit 107 receives the identification number “15001” of the measurement device 4 to be read and the period “2012/1 / 13-2012 / 2/12” from the user or the like (step S518). The reading unit 107 divides the specified identification number “15001” by the storage number “10000”, specifies the file number “1” by the quotient “1”, and specifies the position of the measurement value by the remainder “1”. (Step S519). That is, the reading unit 107 specifies the following file.
-"XFile1_2012_1_13", "XFile1_2012_1_14", ..., "XFile1_2012_2_12"
Next, the reading unit 107 reads the measurement values for 24 hours of the “1” -th measurement device included in each file (step S520).

以上の処理によって、本実施形態における管理装置1は、所定時間内に膨大な量の計測データが受信される場合であっても、これらの計測データを効率的にファイルに書き出すことが可能になる。また、管理装置1は、ファイルに書き出された膨大な計測値を効率よく読み出すことが可能になる。   With the above processing, the management apparatus 1 according to the present embodiment can efficiently write these measurement data to a file even when a huge amount of measurement data is received within a predetermined time. . In addition, the management device 1 can efficiently read a large amount of measurement values written in a file.

なお、上記の実施例で用いた、計測データを書き出すファイルの数や、一つのファイルに計測データが格納される測定装置の数は、任意に決定することができる。また、上記の実施例では、1日ごとに異なるファイルを生成する例を用いたが、任意の時間(例えば、半日、2日等)ごとに異なるファイルを生成してもよい。   Note that the number of files for writing measurement data and the number of measurement devices in which measurement data is stored in one file used in the above embodiment can be arbitrarily determined. In the above-described embodiment, an example in which a different file is generated every day is used. However, a different file may be generated every arbitrary time (for example, half day, two days, etc.).

1 管理装置
101 受信部
102 書込部
103 一時記憶部
104 書出部
105 格納部
106 変更部
107 読出部
DESCRIPTION OF SYMBOLS 1 Management apparatus 101 Receiving part 102 Writing part 103 Temporary storage part 104 Writing part 105 Storage part 106 Changing part 107 Reading part

Claims (8)

複数の計測装置から、該計測装置において随時取得されるデータを受信する管理装置であって、
受信した前記データを所定の数に分類して記憶部に書き込む書込部と、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出部と、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更部と、
を有する、管理装置。
A management device that receives data acquired from time to time in a plurality of measurement devices,
A writing unit that classifies the received data into a predetermined number and writes the data to the storage unit;
A writing unit for writing the data written in the storage unit to a different file according to the classification;
A changing unit that changes the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacently;
A management device.
前記データは、前記計測装置に割り当てられた識別番号を含み、
前記書込部は、前記識別番号を前記ファイルに格納されるデータの単位時間あたりの格納数で割ることにより求まる商の値を用いて、前記データを分類する、
請求項1に記載の管理装置。
The data includes an identification number assigned to the measuring device,
The writing unit classifies the data using a quotient value obtained by dividing the identification number by the number of data stored in the file per unit time.
The management apparatus according to claim 1.
前記データは、前記計測装置が取得した計測値を含み、
前記書出部は、前記ファイルのうち、前記識別番号を前記格納数で割ることにより求まる剰余の値の示す位置に、該識別番号の割り当てられた前記計測装置の取得した前記計測値を書き出す、
請求項2に記載の管理装置。
The data includes a measurement value acquired by the measurement device,
The writing unit writes the measurement value acquired by the measuring device to which the identification number is assigned, at a position indicated by a remainder value obtained by dividing the identification number by the stored number in the file.
The management device according to claim 2.
指定された識別番号を前記格納数で割ることにより求まる商の値を用いて前記ファイルを特定し、さらに、前記指定された識別番号を前記格納数で割ることにより求まる剰余の位置を特定することにより、所定の期間のデータを読み出す読出部
をさらに有する、請求項3に記載の管理装置。
Identifying the file using the value of the quotient obtained by dividing the specified identification number by the stored number, and further specifying the position of the remainder obtained by dividing the specified identification number by the stored number The management apparatus according to claim 3, further comprising: a reading unit that reads data for a predetermined period.
前記書込部は、受信した前記データを、該データの取得時刻にさらに分類して前記記憶部に書き込み、
前記書出部は、前記記憶部に書き込まれた前記データを、前記ファイルに、前記取得時刻ごとに書き出す、
請求項1ないし4何れか一項に記載の管理装置。
The writing unit further classifies the received data into the data acquisition time and writes the data to the storage unit,
The writing unit writes the data written in the storage unit to the file at each acquisition time;
The management apparatus as described in any one of Claims 1 thru | or 4.
前記計測装置は電力計であり、
前記管理装置は、複数の前記電力計の取得したデータを収集する収集装置から、前記データを受信する、
請求項1ないし5何れか一項に記載の管理装置。
The measuring device is a wattmeter;
The management device receives the data from a collection device that collects data acquired by the plurality of power meters;
The management apparatus as described in any one of Claims 1 thru | or 5.
コンピュータが行う管理方法であって、
複数の計測装置から、該計測装置において随時取得されるデータを受信する受信ステップと、
受信した前記データを所定の数に分類して記憶部に書き込む書込ステップと、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出ステップと、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更ステップと、
を有する、管理方法。
A management method performed by a computer,
A receiving step of receiving data acquired at any time in the measuring device from a plurality of measuring devices;
A writing step of classifying the received data into a predetermined number and writing it in the storage unit;
A writing step of writing the data written in the storage unit to a different file according to the classification;
A change step of changing the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacent to the file;
A management method.
コンピュータに管理方法を実行させるプログラムであって、前記管理方法は、
複数の計測装置から、該計測装置において随時取得されるデータを受信する受信ステップと、
受信した前記データを所定の数に分類して記憶部に書き込む書込ステップと、
前記記憶部に書き込まれた前記データを、前記分類に応じて異なるファイルに書き出す書出ステップと、
一の前記計測装置から受信したデータが隣接して配置されるように、前記ファイルに書き出された前記データの順序を変更する変更ステップと、
を有する、プログラム。
A program for causing a computer to execute a management method, the management method comprising:
A receiving step of receiving data acquired at any time in the measuring device from a plurality of measuring devices;
A writing step of classifying the received data into a predetermined number and writing it in the storage unit;
A writing step of writing the data written in the storage unit to a different file according to the classification;
A change step of changing the order of the data written to the file so that the data received from one of the measuring devices is arranged adjacent to the file;
Having a program.
JP2014013655A 2014-01-28 2014-01-28 Management device, management method, and program Active JP6331422B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014013655A JP6331422B2 (en) 2014-01-28 2014-01-28 Management device, management method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014013655A JP6331422B2 (en) 2014-01-28 2014-01-28 Management device, management method, and program

Publications (2)

Publication Number Publication Date
JP2015141087A true JP2015141087A (en) 2015-08-03
JP6331422B2 JP6331422B2 (en) 2018-05-30

Family

ID=53771534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014013655A Active JP6331422B2 (en) 2014-01-28 2014-01-28 Management device, management method, and program

Country Status (1)

Country Link
JP (1) JP6331422B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017167977A (en) * 2016-03-17 2017-09-21 株式会社東芝 Sensor data management device, sensor data management method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6383820A (en) * 1986-09-29 1988-04-14 Shimadzu Corp Data compiling device
JPH09113308A (en) * 1995-10-16 1997-05-02 Sanyo Electric Co Ltd Measurement data processor
JP2001222785A (en) * 2000-02-07 2001-08-17 Toyo Tekku Kk Radio meter inspection system
JP2013225317A (en) * 2013-05-28 2013-10-31 Omron Corp Data collection device, and control method and control program for the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6383820A (en) * 1986-09-29 1988-04-14 Shimadzu Corp Data compiling device
JPH09113308A (en) * 1995-10-16 1997-05-02 Sanyo Electric Co Ltd Measurement data processor
JP2001222785A (en) * 2000-02-07 2001-08-17 Toyo Tekku Kk Radio meter inspection system
JP2013225317A (en) * 2013-05-28 2013-10-31 Omron Corp Data collection device, and control method and control program for the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017167977A (en) * 2016-03-17 2017-09-21 株式会社東芝 Sensor data management device, sensor data management method, and program
US10552460B2 (en) 2016-03-17 2020-02-04 Kabushiki Kaisha Toshiba Sensor data management apparatus, sensor data management method, and computer program product

Also Published As

Publication number Publication date
JP6331422B2 (en) 2018-05-30

Similar Documents

Publication Publication Date Title
Yang et al. On construction of an energy monitoring service using big data technology for the smart campus
EP3070591A1 (en) Cold and hot data identification threshold calculation method, apparatus and system
CN104317800A (en) Hybrid storage system and method for mass intelligent power utilization data
McHann Grid analytics: How much data do you really need?
EP3062284A1 (en) System and method for data organization
CN104113605A (en) Enterprise cloud application development monitoring processing method
CN104536908B (en) A kind of magnanimity small records efficient storage management method towards unit
CN108768790A (en) Distributed search cluster monitoring method and device, computing device, storage medium
US10620683B2 (en) System and method for representing power system information
JP2016062506A (en) Monitoring system, monitor and monitoring method
Prakash et al. A comprehensive analytical exploration and customer behaviour analysis of smart home energy consumption data with a practical case study
JP6331422B2 (en) Management device, management method, and program
McDonald Ethereum emissions: A bottom-up estimate
Wu et al. A new data-grouping-aware dynamic data placement method that take into account jobs execute frequency for Hadoop
JP2016024486A (en) Data utilization system and control method therefor
US20110179095A1 (en) Device and method for storing file
WO2015029969A1 (en) Data processing device, and data processing method and program
CN105930504B (en) A kind of network management timing file cocurrent processing system and concurrent processing method
Yang et al. On construction of the air pollution monitoring service with a hybrid database converter
CN102855327A (en) Small embedded file storage management system
CN103678241B (en) memory management control system and memory management control method
WO2015008361A1 (en) Information management system, information management device, information management method, and program
CN109959842A (en) A kind of method, apparatus and distribution terminal of fault detection
CN113688009A (en) Cloud host monitoring data acquisition method, system and equipment of cloud platform
JP4946002B2 (en) Information analysis processing apparatus, information analysis processing method, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170919

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171110

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180403

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180416

R150 Certificate of patent or registration of utility model

Ref document number: 6331422

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250