unot
クラス UnotNode

java.lang.Object
  |
  +--unot.UnotNode

public class UnotNode
extends java.lang.Object

The class for nodes of a data tree. UnotNode.java Created: Sun Dec 28 22:47:51 2003


フィールドの概要
protected  int catId
          カテゴリーID
protected  unot.NodeList children
          このノードの隣接リスト (隣接リスト表現)
protected  int docId
          このノードが所属するドキュメントのID
protected  int labelId
          このノードのラベルID
protected  unot.UnotNode leftMostChild
          このノードの最左子供 (LeftMostChild-NextSibling 表現)
protected  unot.UnotNode nextSibling
          このノードの次弟 (LeftMostChild-NextSibling 表現)
protected  int nodeId
          このノードのID
protected  unot.UnotNode parent
           
static int UNDEF_ID
          未定義 ID を示す値
 
コンストラクタの概要
UnotNode()
          Creates a new UnotNode instance.
UnotNode(int nodeId)
          Creates a new UnotNode instance.
UnotNode(int docId, int nodeId)
          Creates a new UnotNode instance.
UnotNode(int docId, int nodeId, int labelId)
          Creates a new UnotNode instance.
 
メソッドの概要
 void addChildAtLast(unot.UnotNode child)
          子ノードリストの末尾に与えられた子ノードを追加する.
 int getCatId()
          Gets the value of nodeId
 unot.NodeList getChildren()
          Describe getChildren method here.
 int getDocId()
          Gets the value of nodeId
 int getLabelId()
          Gets the value of labelId
 unot.UnotNode getLeftMostChild()
          Not used.
 unot.UnotNode getNextSibling()
          Not used.
 int getNodeId()
          Gets the value of nodeId
 unot.UnotNode getParent()
          Describe getParent method here.
protected  void setCatId(int id)
          ノードのカテゴリーIDを設定する.
protected  void setChildren(unot.NodeList children)
          Describe setChildren method here.
protected  void setDocId(int id)
          ノードの文書IDを設定する.
protected  void setLabelId(int id)
          ノードのlabelIDを設定する.
protected  void setLeftMostChild(unot.UnotNode child)
          Not used.
protected  void setNextSibling(unot.UnotNode next)
          Not used.
protected  void setNodeId(int id)
          ノードのIDを設定する.
protected  void setParent(unot.UnotNode parent)
          Describe setParent method here.
 java.lang.String toString()
          Retrieve a tree like String representation of the object.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

UNDEF_ID

public static final int UNDEF_ID
未定義 ID を示す値

関連項目:
定数フィールド値

docId

protected int docId
このノードが所属するドキュメントのID


nodeId

protected int nodeId
このノードのID


labelId

protected int labelId
このノードのラベルID


catId

protected int catId
カテゴリーID


parent

protected unot.UnotNode parent

children

protected unot.NodeList children
このノードの隣接リスト (隣接リスト表現)


leftMostChild

protected unot.UnotNode leftMostChild
このノードの最左子供 (LeftMostChild-NextSibling 表現)


nextSibling

protected unot.UnotNode nextSibling
このノードの次弟 (LeftMostChild-NextSibling 表現)

コンストラクタの詳細

UnotNode

public UnotNode()
Creates a new UnotNode instance.


UnotNode

public UnotNode(int nodeId)
Creates a new UnotNode instance.

パラメータ:
nodeId - an int value

UnotNode

public UnotNode(int docId,
                int nodeId)
Creates a new UnotNode instance.

パラメータ:
docId - an int value
nodeId - an int value

UnotNode

public UnotNode(int docId,
                int nodeId,
                int labelId)
Creates a new UnotNode instance.

パラメータ:
docId - an int value
nodeId - an int value
labelId - an int value
メソッドの詳細

getNodeId

public int getNodeId()
Gets the value of nodeId


getDocId

public int getDocId()
Gets the value of nodeId


getCatId

public int getCatId()
Gets the value of nodeId


getLabelId

public int getLabelId()
Gets the value of labelId


setLabelId

protected void setLabelId(int id)
ノードのlabelIDを設定する.


setNodeId

protected void setNodeId(int id)
ノードのIDを設定する.


setDocId

protected void setDocId(int id)
ノードの文書IDを設定する.


setCatId

protected void setCatId(int id)
ノードのカテゴリーIDを設定する.


getParent

public unot.UnotNode getParent()
Describe getParent method here.

戻り値:
an UnotNode value

setParent

protected void setParent(unot.UnotNode parent)
Describe setParent method here.

パラメータ:
parent - an UnotNode value

getChildren

public unot.NodeList getChildren()
Describe getChildren method here.

戻り値:
a UnotNode[] value

setChildren

protected void setChildren(unot.NodeList children)
Describe setChildren method here.

パラメータ:
children - a String[] value

addChildAtLast

public void addChildAtLast(unot.UnotNode child)
子ノードリストの末尾に与えられた子ノードを追加する. ただし,子ノードリストがnullのときは,正しくリストを生成したのちに追加する.


getLeftMostChild

public unot.UnotNode getLeftMostChild()
Not used. Describe getLeftMostChild method here.

戻り値:
an UnotNode value

setLeftMostChild

protected void setLeftMostChild(unot.UnotNode child)
Not used. Describe setLeftMostChild method here.

パラメータ:
child - an UnotNode value

getNextSibling

public unot.UnotNode getNextSibling()
Not used. Describe getNextSibling method here.

戻り値:
an UnotNode value

setNextSibling

protected void setNextSibling(unot.UnotNode next)
Not used. Describe setNextSibling method here.

パラメータ:
next - an UnotNode value

toString

public java.lang.String toString()
Retrieve a tree like String representation of the object.

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
a String value