|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--unot.Pattern | +--unot.UnotPattern
UnotPattern.java このクラスは UNOT パターンのデータ構造を表現する. (trcs216.pdf pp.8 Fig.4) Created: Thu Aug 7 20:34:14 2003
フィールドの概要 | |
private unot.DLpair[] |
code
(depth, label) 対の列 |
private int |
copydepth
コピー深さの値. |
static int |
INFTY_DEPTH
Infinity Node の仮想 depth |
protected static unot.DLpair |
inftyNode
Infinity Node を表現する static なノード. |
private int[] |
lcp
最右枝上の各高さにおける右木のコードが, 左木のコードと何文字一致しているかを示す値の配列 |
private int[] |
left
code における左木への添字インデックス値の配列 |
private int |
rootCount
根出現となるノードのリスト.オプション |
private unot.NodeList |
rootList
根出現となるノードのリスト.オプション |
クラス unot.Pattern から継承したフィールド |
docSet, id, INFTY_INDEX, reader, right, writer |
コンストラクタの概要 | |
UnotPattern()
Creates a new UnotPattern instance. |
|
UnotPattern(unot.DLpair[] code,
int[] left,
int[] right,
int[] lcp,
int copydepth)
Creates a new UnotPattern instance. |
|
UnotPattern(int rootLabel)
Returns a UnotPattern object that has only root node. |
メソッドの概要 | |
java.lang.Object |
clone()
Returns a cloned object. |
int |
getCodeSize()
Get the code size (= the number of nodes). |
int |
getCopyDepth()
|
int |
getDisagreeNodeDepth(int depth)
Gets the disagreement node depth. |
int |
getDisagreeNodeLabel(int depth)
Gets the disagreement node label. |
int[] |
getLcp()
|
int[] |
getLeft()
|
int |
getLeftIndex(int depth)
Gets the index of the left node at the depth in the rightmost branch. |
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[] |
getRight()
|
int |
getRightIndex(int depth)
Gets the index of the depth in the rightmost branch. |
int |
getRootCount()
|
unot.NodeList |
getRootList()
|
int |
getTopDepth()
Get the top depth of the rightmost branch. |
int |
getTopIndex()
Gets the top index of the `code' array of this object. |
static unot.UnotPatternWriter |
getUnotPatternWriter()
パターン出力ルーチンを返す. |
static void |
initialize(int numOfLabels,
unot.DocSet docset)
Infinity Node を初期化する. |
boolean |
isBalanced(int depth)
Compares the left with the right in the node at the depth. |
boolean |
isInftyNode(int depth)
Distinguish whether the depth node is Infinity Node or not. |
unot.UnotPattern |
rightmostExpand(unot.UnotPattern oldPattern,
unot.DLpair newNode,
int succCopyDepth)
Returns a UnotPattern which is expanded with the Rightmost Expantion. |
static void |
setMaxLabel(int numOfLabels)
Infinity Node を初期化する. |
void |
setRootCount(int rootCount)
|
void |
setRootNodeList(unot.NodeList list)
|
static void |
setUnotPatternWriter(unot.UnotPatternWriter writer)
パターン出力ルーチンを設定する. |
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, rightmostExpand, setId, setPatternReader, setPatternWriter, setRootList |
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected static unot.DLpair inftyNode
public static final int INFTY_DEPTH
private unot.DLpair[] code
private int[] left
private int[] lcp
private int copydepth
private unot.NodeList rootList
private int rootCount
コンストラクタの詳細 |
public UnotPattern()
UnotPattern
instance.
public UnotPattern(int rootLabel)
rootLabel
- an int
valuepublic UnotPattern(unot.DLpair[] code, int[] left, int[] right, int[] lcp, int copydepth)
UnotPattern
instance.
code
- a DLpair[]
valueleft
- an int[]
valueright
- an int[]
valuelcp
- an int[]
valuecopydepth
- an int
valueメソッドの詳細 |
public static void setMaxLabel(int numOfLabels)
numOfLabels
- an int
valuepublic static void initialize(int numOfLabels, unot.DocSet docset)
numOfLabels
- an int
valuepublic static void setUnotPatternWriter(unot.UnotPatternWriter writer)
public static unot.UnotPatternWriter getUnotPatternWriter()
public int getCodeSize()
Pattern
内の getCodeSize
size
of the patternpublic unot.DLpair getNodeAt(int i)
Pattern
内の getNodeAt
(depth, label)
public int[] getRight()
Pattern
内の getRight
public int[] getLeft()
public int[] getLcp()
public int getCopyDepth()
public unot.NodeList getRootList()
Pattern
内の getRootList
public int getRootCount()
Pattern
内の getRootCount
public void setRootCount(int rootCount)
Pattern
内の setRootCount
public void setRootNodeList(unot.NodeList list)
public int getTopDepth()
Pattern
内の getTopDepth
int
valuepublic int getTopIndex()
Pattern
内の getTopIndex
int
valuepublic int getNodeIndex(int depth)
Pattern
内の getNodeIndex
depth
- an int
value
int
valuepublic int getNodeLabel(int depth)
Pattern
内の getNodeLabel
depth
- an int
value
int
valuepublic int getRightIndex(int depth)
Pattern
内の getRightIndex
depth
- an int
value
int
valuepublic int getLeftIndex(int depth)
depth
- an int
value
int
valuepublic boolean isInftyNode(int depth)
Pattern
内の isInftyNode
depth
- an int
value
boolean
valuepublic boolean isBalanced(int depth)
depth
- an int
value
boolean
valuepublic int getDisagreeNodeDepth(int depth)
depth
- an int
value
int
valuepublic int getDisagreeNodeLabel(int depth)
depth
- an int
value
int
valuepublic unot.UnotPattern rightmostExpand(unot.UnotPattern oldPattern, unot.DLpair newNode, int succCopyDepth)
oldPattern
- an UnotPattern
valuenewNode
- a DLpair
valuesuccCopyDepth
- an int
value
UnotPattern
valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
Pattern
内の clone
Object
value
java.lang.CloneNotSupportedException
- if an error occurspublic java.lang.String toString()
Pattern
内の toString
String
representation of this object.Object.toString()
public java.lang.String writeToString()
Pattern
内の writeToString
String
value
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |