unot
クラス MatchPattern

java.lang.Object
  |
  +--unot.Pattern
        |
        +--unot.MatchPattern
すべての実装インタフェース:
java.lang.Cloneable

public class MatchPattern
extends Pattern

MatchPattern.java このクラスは UNOT パターンのデータ構造を表現する. (trcs216.pdf pp.8 Fig.4) Created: Thu Aug 7 20:34:14 2003


フィールドの概要
private  unot.DLpairList code
          (depth, label) 対の列
protected  unot.IndexList right
          code における右木への添字インデックス値の配列
protected  int rootCount
          根出現となるノードのリスト.オプション
protected  unot.NodeList rootList
          根出現となるノードのリスト.オプション
 
クラス unot.Pattern から継承したフィールド
docSet, id, INFTY_INDEX, reader, writer
 
コンストラクタの概要
MatchPattern()
          Creates a new MatchPattern instance.
MatchPattern(int rootLabel)
          Returns a MatchPattern object that has only root node.
 
メソッドの概要
 void add(unot.DLpair pair)
          Returns a MatchPattern which is expanded with the Rightmost Expantion.
 java.lang.Object clone()
          Returns a cloned object.
 int getCodeSize()
          Get the code size (= the number of nodes).
 unot.DLpair getNodeAt(int i)
          Get the depth-label pair for the i-th node.
 int getNodeIndex(int depth)
          Gets the index of the node on the `code' array of this object.
 int getNodeLabel(int depth)
          Gets the label of the rightmost branch node at the depth.
 int getRightIndex(int depth)
          Gets the index of the depth in the rightmost branch.
 int getTopDepth()
          Get the top depth of the rightmost branch.
 int getTopIndex()
          Gets the top index of the `code' array of this object.
 java.lang.String toString()
          Retrieves a String representation of the object.
 java.lang.String writeToString()
          Retrieve a tree like String representation of the object.
 
クラス unot.Pattern から継承したメソッド
getId, getPatId, getPatternWriter, getRight, getRootCount, getRootList, isInftyNode, rightmostExpand, setId, setPatternReader, setPatternWriter, setRootCount, setRootList
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

code

private unot.DLpairList code
(depth, label) 対の列


right

protected unot.IndexList right
code における右木への添字インデックス値の配列


rootList

protected unot.NodeList rootList
根出現となるノードのリスト.オプション


rootCount

protected int rootCount
根出現となるノードのリスト.オプション

コンストラクタの詳細

MatchPattern

public MatchPattern()
Creates a new MatchPattern instance.


MatchPattern

public MatchPattern(int rootLabel)
Returns a MatchPattern object that has only root node.

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

getCodeSize

public int getCodeSize()
Get the code size (= the number of nodes).

オーバーライド:
クラス Pattern 内の getCodeSize
戻り値:
an size of the pattern

getNodeAt

public unot.DLpair getNodeAt(int i)
Get the depth-label pair for the i-th node.

オーバーライド:
クラス Pattern 内の getNodeAt
戻り値:
a DLpair (depth, label)

getTopDepth

public int getTopDepth()
Get the top depth of the rightmost branch.

オーバーライド:
クラス Pattern 内の getTopDepth
戻り値:
an int value

getTopIndex

public int getTopIndex()
Gets the top index of the `code' array of this object.

オーバーライド:
クラス Pattern 内の getTopIndex
戻り値:
an int value

getNodeIndex

public int getNodeIndex(int depth)
Gets the index of the node on the `code' array of this object.

オーバーライド:
クラス Pattern 内の getNodeIndex
パラメータ:
depth - an int value
戻り値:
an int value

getNodeLabel

public int getNodeLabel(int depth)
Gets the label of the rightmost branch node at the depth.

オーバーライド:
クラス Pattern 内の getNodeLabel
パラメータ:
depth - an int value
戻り値:
an int value

getRightIndex

public int getRightIndex(int depth)
Gets the index of the depth in the rightmost branch.

オーバーライド:
クラス Pattern 内の getRightIndex
パラメータ:
depth - an int value
戻り値:
an int value

add

public void add(unot.DLpair pair)
Returns a MatchPattern which is expanded with the Rightmost Expantion.

戻り値:
an MatchPattern value

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a cloned object.

オーバーライド:
クラス Pattern 内の clone
戻り値:
an Object value
例外:
java.lang.CloneNotSupportedException - if an error occurs

toString

public java.lang.String toString()
Retrieves a String representation of the object.

オーバーライド:
クラス Pattern 内の toString
戻り値:
a String representation of this object.
関連項目:
Object.toString()

writeToString

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

オーバーライド:
クラス Pattern 内の writeToString
戻り値:
a String value