ohymosj
クラス DataConnectionType

java.lang.Object
  拡張ohymosj.DataConnectionType
すべての実装インタフェース:
java.io.Serializable

public final class DataConnectionType
extends java.lang.Object
implements java.io.Serializable

データ補間型を表すクラスです。

型に安全な定数のクラスです。

DataConnectionType; Class to express DataConnectionType.

The following data connection types are defined.

  :BROKENLINE
    The data are connected with broken line.
  :STEP
    The value is taken constant and equal to the current data value
    from the previous data time till the current time.
  :PULSE
    The value between data times is taken to be zero.
  :NOINTP
    No interpolation.
 

バージョン:
$Revision: 1.20 $ $Date: 2004/02/12 05:35:33 $
作成者:
satoh
関連項目:
直列化された形式

フィールドの概要
static DataConnectionType BROKENLINE
           折れ線を表す型に安全な定数です。
static DataConnectionType NOINTP
           補間できないことを表す型に安全な定数です。
static DataConnectionType PULSE
           パルスデータを表す型に安全な定数です。
static DataConnectionType STEP
           ステップデータを表す型に安全な定数です。
 
メソッドの概要
static DataConnectionType getDctType(int k)
           引数の値にしたがって以下のように DataConnectionType 型を返します。
static java.lang.String getDctTypeStr(int k)
           引数の値にしたがって以下のようにデータ補間型を表す文字列を返します。
static int getNumOfDCT()
           型に安全な定数の個数である 4 を返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

BROKENLINE

public static final DataConnectionType BROKENLINE
折れ線を表す型に安全な定数です。

BROKENLINE : The data are connected with broken line.


STEP

public static final DataConnectionType STEP
ステップデータを表す型に安全な定数です。

STEP: The value is taken constant and equal to the current data value from the previous data time till the current time.


PULSE

public static final DataConnectionType PULSE
パルスデータを表す型に安全な定数です。

PULSE : The value between data times is taken to be zero.


NOINTP

public static final DataConnectionType NOINTP
補間できないことを表す型に安全な定数です。

NOINTP : No interpolation.

メソッドの詳細

getNumOfDCT

public static int getNumOfDCT()
型に安全な定数の個数である 4 を返します。

戻り値:
an int value

getDctType

public static DataConnectionType getDctType(int k)
引数の値にしたがって以下のように DataConnectionType 型を返します。
  • 1 : BROKENLINE
  • 2 : STEP
  • 3 : PULSE
  • 4 : NOINTP
これ以外の int 値の場合は、 例外 ArrayIndexOutOfBoundsException が投げられます。

パラメータ:
k - an int value
戻り値:
a DataConnectionType value

getDctTypeStr

public static java.lang.String getDctTypeStr(int k)
引数の値にしたがって以下のようにデータ補間型を表す文字列を返します。
  • 1 : BROKENLINE
  • 2 : STEP
  • 3 : PULSE
  • 4 : NOINTP
これ以外の int 値の場合は、 例外 ArrayIndexOutOfBoundsException が投げられます。

パラメータ:
k - an int value
戻り値:
a String value