|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--unot.Pattern
Pattern.java このクラスは UNOT パターンのデータ構造を表現する. (trcs216.pdf pp.8 Fig.4) Created: Thu Aug 7 20:34:14 2003
フィールドの概要 | |
private static int |
_freePatId
Pattern の通し番号 ID |
protected unot.DLpair[] |
code
(depth, label) 対の列 |
(パッケージプライベート) static unot.DocSet |
docSet
木の清書出力用のdocsetオブジェクト |
protected int |
id
パターンの通し番号. |
static int |
INFTY_INDEX
Infinity Node への仮想インデックス. |
(パッケージプライベート) static unot.PatternReader |
reader
木の清書入力手続き |
protected int[] |
right
code における右木への添字インデックス値の配列 |
protected int |
rootCount
根出現となるノードのリスト.オプション |
protected unot.NodeList |
rootList
根出現となるノードのリスト.オプション |
(パッケージプライベート) static unot.PatternWriter |
writer
木の清書出力手続き |
コンストラクタの概要 | |
Pattern()
Creates a new Pattern instance. |
|
Pattern(unot.DLpair[] code,
int[] right)
Creates a new Pattern instance. |
|
Pattern(int rootLabel)
Returns a Pattern 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 |
getId()
|
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. |
(パッケージプライベート) static int |
getPatId()
|
static unot.PatternWriter |
getPatternWriter()
パターン出力ルーチンを返す. |
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. |
boolean |
isInftyNode(int depth)
Distinguish whether the depth node is Infinity Node or not. |
unot.Pattern |
rightmostExpand(unot.Pattern oldPattern,
unot.DLpair newNode,
int succCopyDepth)
Returns a Pattern which is expanded with the Rightmost Expantion. |
void |
setId(int id)
|
static void |
setPatternReader(unot.PatternReader reader)
パターン入力ルーチンを設定する. |
static void |
setPatternWriter(unot.PatternWriter writer)
パターン出力ルーチンを設定する. |
void |
setRootCount(int rootCount)
|
void |
setRootList(unot.NodeList list)
|
java.lang.String |
toString()
Retrieves a String representation of the object. |
java.lang.String |
writeToString()
Retrieve a tree like String representation of the object. |
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
private static int _freePatId
static unot.DocSet docSet
static unot.PatternReader reader
static unot.PatternWriter writer
public static final int INFTY_INDEX
protected unot.DLpair[] code
protected int[] right
protected int id
protected unot.NodeList rootList
protected int rootCount
コンストラクタの詳細 |
public Pattern()
Pattern
instance.
public Pattern(int rootLabel)
rootLabel
- an int
valuepublic Pattern(unot.DLpair[] code, int[] right)
Pattern
instance.
code
- a DLpair[]
valueright
- an int[]
valueメソッドの詳細 |
static int getPatId()
public static void setPatternReader(unot.PatternReader reader)
public static void setPatternWriter(unot.PatternWriter writer)
public static unot.PatternWriter getPatternWriter()
public int getCodeSize()
size
of the patternpublic unot.DLpair getNodeAt(int i)
(depth, label)
public int[] getRight()
public unot.NodeList getRootList()
public int getRootCount()
public void setRootCount(int rootCount)
public void setRootList(unot.NodeList list)
public int getId()
public void setId(int id)
public int getTopDepth()
int
valuepublic int getTopIndex()
int
valuepublic int getNodeIndex(int depth)
depth
- an int
value
int
valuepublic int getNodeLabel(int depth)
depth
- an int
value
int
valuepublic int getRightIndex(int depth)
depth
- an int
value
int
valuepublic boolean isInftyNode(int depth)
depth
- an int
value
boolean
valuepublic unot.Pattern rightmostExpand(unot.Pattern oldPattern, unot.DLpair newNode, int succCopyDepth)
oldPattern
- an Pattern
valuenewNode
- a DLpair
valuesuccCopyDepth
- an int
value
Pattern
valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.Object
内の clone
Object
value
java.lang.CloneNotSupportedException
- if an error occurspublic java.lang.String toString()
java.lang.Object
内の toString
String
representation of this object.Object.toString()
public java.lang.String writeToString()
String
value
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |