net.trialpc.sticktools.model
クラス WrapDocument<T extends LangModel>

java.lang.Object
  上位を拡張 net.trialpc.sticktools.model.AbstractLangModel
      上位を拡張 net.trialpc.sticktools.model.WrapModel<T>
          上位を拡張 net.trialpc.sticktools.model.WrapDocument<T>
型パラメータ:
T -
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<DocumentModel>, java.lang.Iterable<T>, java.util.EventListener, DocumentModel, LangModel, StateChangeListener, StateChangeObservable
直系の既知のサブクラス:
SentenceWrappedDocument

public class WrapDocument<T extends LangModel>
extends WrapModel<T>
implements DocumentModel, StateChangeObservable, java.lang.Iterable<T>, java.lang.Comparable<DocumentModel>, java.io.Serializable

複数の言語モデルを基にした文書モデルを示すクラスです。

作成者:
tetsu
関連項目:
直列化された形式

フィールドの概要
 
クラス net.trialpc.sticktools.model.WrapModel から継承されたフィールド
listeners
 
コンストラクタの概要
WrapDocument(java.lang.String id)
          文書 ID を指定して、文書モデルを生成します。
 
メソッドの概要
 int compareTo(DocumentModel o)
           
protected  java.util.Set<T> getChildrenModels()
          ラッピングしている言語モデルのセットを返します。
 java.lang.String getDocumentId()
          文書 ID を返します。
 java.util.Iterator<T> iterator()
           
 
クラス net.trialpc.sticktools.model.WrapModel から継承されたメソッド
addChildModel, addChildModelAll, addListener, castCollection, equals, getVocabulary, hashCode, isModifiable, numOfTerms, stateChanged, termCount
 
クラス net.trialpc.sticktools.model.AbstractLangModel から継承されたメソッド
containsTerm, containsTerms, contaisQueries, numOfVocabulary, termFrequency, toString
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース net.trialpc.sticktools.model.LangModel から継承されたメソッド
containsTerm, containsTerms, getVocabulary, isModifiable, numOfTerms, numOfVocabulary, termCount, termFrequency
 
インタフェース net.trialpc.sticktools.model.StateChangeObservable から継承されたメソッド
addListener
 

コンストラクタの詳細

WrapDocument

public WrapDocument(java.lang.String id)
文書 ID を指定して、文書モデルを生成します。

パラメータ:
id - 文書 ID
例外:
java.lang.NullPointerException - idnull である場合
メソッドの詳細

getDocumentId

public java.lang.String getDocumentId()
インタフェース DocumentModel の記述:
文書 ID を返します。 文書 ID が設定されていない場合は、空文字か代替文字が返されます。

定義:
インタフェース DocumentModel 内の getDocumentId
戻り値:
文書 ID

getChildrenModels

protected java.util.Set<T> getChildrenModels()
クラス WrapModel の記述:
ラッピングしている言語モデルのセットを返します。 ラッピングの対象がない場合でも、空のセットを返すように実装されるべきです。

定義:
クラス WrapModel<T extends LangModel> 内の getChildrenModels
戻り値:
ラッピングの対象となる言語モデルのセット

iterator

public java.util.Iterator<T> iterator()
定義:
インタフェース java.lang.Iterable<T extends LangModel> 内の iterator

compareTo

public int compareTo(DocumentModel o)
定義:
インタフェース java.lang.Comparable<DocumentModel> 内の compareTo
パラメータ:
o -