|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectohymosj.OhDataPack
データ時刻とデータのペアから成るデータパック型を作成するための抽象データ型モデルです。
このクラス OhDataPack では、
各モデルが授受するデータのモデルは、このクラス OhDataPack を継承して作成して下さい。
OhDataPack; abstract class for treating a pair of data time and data value which we call datapack.
In hydrologic simulations in which the states are updated dynamically, the data which are sent and received by elements, subsytems, and total sytem of the hydrologic system are pairs of data value(s) and a "data time". Here, "data time" means the time to which the data are related.
For example, suppose we have the value of discharge Q at time t at some stream point. Then, we call the value of discharge Q "data value" and time t "data time".
We call a pair of data time and data value "datapack," and we prepare class OhDataPack, which is an abstract class used as a base class from which various datapack classes are derived.
..... "datapack" = "data time" + "data value" ....Because there are various data types for data value, there could be various datapack classes.
Class OhDataPack is a base class from which various datapack classes are derived.
フィールドの概要 | |
protected OhTimePoint |
_dataTime
|
protected static java.lang.String |
NEWLINE
|
コンストラクタの概要 | |
OhDataPack()
|
メソッドの概要 | |
void |
copy(OhDataPack aDp)
|
abstract java.lang.String |
dataType()
|
abstract void |
dpack2File(java.io.PrintWriter os)
|
abstract void |
dpack2Ofile(java.io.PrintWriter os)
|
OhTimePoint |
getDataTime()
|
void |
setDataTime(OhTimePoint aDataTime)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected OhTimePoint _dataTime
The time when the data was recorded. It is of type OhTimePoint.
protected static java.lang.String NEWLINE
New Line.
コンストラクタの詳細 |
public OhDataPack()
デフォルトコンストラクタ OhDataPack() は、 メンバ変数 _dataTime を OhTimePoint に初期化します。
OhDataPack() initializes _dataTime to OhTimePoint().
メソッドの詳細 |
public abstract java.lang.String dataType()
例えば、受信データが int 型なら "int" を返すように定義します。
This method returns the data type.
String
valuepublic abstract void dpack2File(java.io.PrintWriter os)
抽象メソッドです。
A data pack is written out to a file by the format for internal processing.
os
- a PrintWriter
valuepublic abstract void dpack2Ofile(java.io.PrintWriter os)
抽象メソッドです。
A data pack is written out to a file by simple format.
os
- a PrintWriter
valuepublic void copy(OhDataPack aDp)
Copy method.
aDp
- an OhDataPack
valuepublic OhTimePoint getDataTime()
This method returns the data time.
OhTimePoint
valuepublic void setDataTime(OhTimePoint aDataTime)
This method sets the data time.
aDataTime
- an OhTimePoint
value
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |