jp.go.aist.dmrc.platform.beans.util.statistics
クラス PFStringListBasicStatistics

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.util.statistics.PFStatistics
      上位を拡張 jp.go.aist.dmrc.platform.beans.util.statistics.PFListStatistics
          上位を拡張 jp.go.aist.dmrc.platform.beans.util.statistics.PFStringListBasicStatistics
すべての実装されたインタフェース:
java.io.Serializable, PFComponent, PFXMLSerializable, PFDataSetEventSource, PFEventSource

public class PFStringListBasicStatistics
extends PFListStatistics
implements PFXMLSerializable

文字列用の基本統計コンポーネント。
このコンポーネントから以下のイベントが発生します。

関連項目:
直列化された形式

コンストラクタの概要
PFStringListBasicStatistics()
          コンストラクタ。
PFStringListBasicStatistics(PFObjectList list)
          コンストラクタ。
 
メソッドの概要
 java.lang.String getComponentName()
          コンポーネント名称を取得する。
 int getCount()
          集計対象データの個数を返す。
 int getCountCloseInterval(java.lang.String str1, java.lang.String str2)
          集計対象データのうち、辞書順でstr1以上str2以下の文字列の個数を返す。
 int getCountEQ(java.lang.String str)
          集計対象データのうち、strに等しい文字列の個数を返す。
 int getCountGE(java.lang.String str)
          集計対象データのうち、辞書順でstr以上の文字列の個数を返す。
 int getCountGT(java.lang.String str)
          集計対象データのうち、辞書順でstrより大きい文字列の個数を返す。
 int getCountHalfOpenInterval1(java.lang.String str1, java.lang.String str2)
          集計対象データのうち、str1より大きくstr2以下の文字列の個数を返す。
 int getCountHalfOpenInterval2(java.lang.String str1, java.lang.String str2)
          集計対象データのうち、str1以上str2未満の文字列の個数を返す。
 int getCountLE(java.lang.String str)
          集計対象データのうち、辞書順でstr以下の文字列の個数を返す。
 int getCountLT(java.lang.String str)
          集計対象データのうち、辞書順でstrより小さい文字列の個数を返す。
 int getCountNE(java.lang.String str)
          集計対象データのうち、strに等しくない文字列の個数を返す。
 int getCountOpenInterval(java.lang.String str1, java.lang.String str2)
          集計対象データのうち、辞書順でstr1より大きくstr2より小さい文字列の個数を返す。
 java.lang.String getMaximum()
          辞書順での最大値を返す。
 java.lang.String getMinimum()
          辞書順での最小値を返す。
 java.lang.String getMode()
          最頻値を返す。
 PFObjectList getObjectList()
          集計対象データを返す。
 void readXML(PFXMLLoader in)
          コンポーネントのXML入力.
 void setObjectList(PFObjectList list)
          集計対象データを設定する。
 void writeXML(PFXMLGenerator out)
          コンポーネントのXML出力.
 
クラス jp.go.aist.dmrc.platform.beans.util.statistics.PFStatistics から継承されたメソッド
addPFDataSetListener, firePFDataSet, getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getPFDataSetListenerList, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, localeUpdated, removePFDataSetListener, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFStringListBasicStatistics

public PFStringListBasicStatistics()
コンストラクタ。


PFStringListBasicStatistics

public PFStringListBasicStatistics(PFObjectList list)
コンストラクタ。
listがnullの場合は何もしない。

パラメータ:
list - 集計対象データ
メソッドの詳細

getComponentName

public java.lang.String getComponentName()
コンポーネント名称を取得する。

定義:
インタフェース PFComponent 内の getComponentName
戻り値:
コンポーネント名

readXML

public void readXML(PFXMLLoader in)
コンポーネントのXML入力.

定義:
インタフェース PFXMLSerializable 内の readXML
パラメータ:
in - XML入力ユーティリティ

writeXML

public void writeXML(PFXMLGenerator out)
              throws java.io.IOException
コンポーネントのXML出力.

定義:
インタフェース PFXMLSerializable 内の writeXML
パラメータ:
out - XML出力ユーティリティ
例外:
java.io.IOException

getObjectList

public PFObjectList getObjectList()
集計対象データを返す。
返す集計対象データにnullデータは含まれていない。

定義:
クラス PFListStatistics 内の getObjectList
戻り値:
集計対象データ

setObjectList

public void setObjectList(PFObjectList list)
                   throws PFComponentException
集計対象データを設定する。
設定した集計対象にnullデータが含まれている場合、そのデータは無視する。

定義:
クラス PFListStatistics 内の setObjectList
パラメータ:
list - 集計対象データ
例外:
PFComponentException - listがnullの場合

getMaximum

public java.lang.String getMaximum()
                            throws PFComponentException
辞書順での最大値を返す。

戻り値:
最大値
例外:
PFComponentException - 集計対象データが0件の場合

getMinimum

public java.lang.String getMinimum()
                            throws PFComponentException
辞書順での最小値を返す。

戻り値:
最小値
例外:
PFComponentException - 集計対象データが0件の場合

getMode

public java.lang.String getMode()
                         throws PFComponentException
最頻値を返す。
最頻値が複数存在する場合は、そのうちの一つを返す。

戻り値:
最頻値
例外:
PFComponentException - 集計対象データが0件の場合

getCount

public int getCount()
集計対象データの個数を返す。

戻り値:
個数

getCountGE

public int getCountGE(java.lang.String str)
               throws PFComponentException
集計対象データのうち、辞書順でstr以上の文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
str以上の文字列の個数
例外:
PFComponentException - strがnullの場合

getCountLE

public int getCountLE(java.lang.String str)
               throws PFComponentException
集計対象データのうち、辞書順でstr以下の文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
str以下の文字列の個数
例外:
PFComponentException - strがnullの場合

getCountGT

public int getCountGT(java.lang.String str)
               throws PFComponentException
集計対象データのうち、辞書順でstrより大きい文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
strより大きい文字列の個数
例外:
PFComponentException - strがnullの場合

getCountLT

public int getCountLT(java.lang.String str)
               throws PFComponentException
集計対象データのうち、辞書順でstrより小さい文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
strより小さい文字列の個数
例外:
PFComponentException - strがnullの場合

getCountEQ

public int getCountEQ(java.lang.String str)
               throws PFComponentException
集計対象データのうち、strに等しい文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
strに等しい文字列の個数
例外:
PFComponentException - strがnullの場合

getCountNE

public int getCountNE(java.lang.String str)
               throws PFComponentException
集計対象データのうち、strに等しくない文字列の個数を返す。

パラメータ:
str - 基準値
戻り値:
strに等しくない文字列の個数
例外:
PFComponentException - strがnullの場合

getCountCloseInterval

public int getCountCloseInterval(java.lang.String str1,
                                 java.lang.String str2)
                          throws PFComponentException
集計対象データのうち、辞書順でstr1以上str2以下の文字列の個数を返す。

パラメータ:
str1 - 基準値(小)
str2 - 基準値(大)
戻り値:
str1以上str2以下の文字列の個数
例外:
PFComponentException - str1またはstr2がnullの場合

getCountOpenInterval

public int getCountOpenInterval(java.lang.String str1,
                                java.lang.String str2)
                         throws PFComponentException
集計対象データのうち、辞書順でstr1より大きくstr2より小さい文字列の個数を返す。

パラメータ:
str1 - 基準値(小)
str2 - 基準値(大)
戻り値:
str1より大きくstr2より小さい文字列の個数
例外:
PFComponentException - str1またはstr2がnullの場合

getCountHalfOpenInterval1

public int getCountHalfOpenInterval1(java.lang.String str1,
                                     java.lang.String str2)
                              throws PFComponentException
集計対象データのうち、str1より大きくstr2以下の文字列の個数を返す。

パラメータ:
str1 - 基準値(小)
str2 - 基準値(大)
戻り値:
str1より大きくstr2以下の文字列の個数
例外:
PFComponentException - str1またはstr2がnullの場合

getCountHalfOpenInterval2

public int getCountHalfOpenInterval2(java.lang.String str1,
                                     java.lang.String str2)
                              throws PFComponentException
集計対象データのうち、str1以上str2未満の文字列の個数を返す。

パラメータ:
str1 - 基準値(小)
str2 - 基準値(大)
戻り値:
str1以上str2未満の文字列の個数
例外:
PFComponentException - str1またはstr2がnullの場合