|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Trie.PersistentTreeNode
public class PersistentTreeNode
This class creates an object of persistent tree node.
History:
| Constructor Summary | |
|---|---|
PersistentTreeNode()
Create an object of persistent tree node (defualt). |
|
PersistentTreeNode(int level,
long parent,
long next,
long child,
long address)
Create an object of persistent tree node, using an address, next address, parent address, child address in a random access file and level at the persistent tree. |
|
PersistentTreeNode(long address)
Create an object of persistent tree node, using an address in a random access file. |
|
| Method Summary | |
|---|---|
long |
GetAddress()
Get the address of current persistent tree node at a tree. |
long |
GetChild()
Get the child's address of current persistent tree node at a tree. |
int |
GetLevel()
Get the level of current persistent tree node at a tree. |
long |
GetNext()
Get the next address of current persistent tree node at a tree. |
static PersistentTreeNode |
GetNode(java.io.RandomAccessFile raf,
long address)
Get the current persistent tree node from a specified binary file at a specified address. |
long |
GetParent()
Get the parent's address of current persistent tree node at a tree. |
static void |
PrintNode(java.io.RandomAccessFile raf,
long address)
Print all sub tree (list) for a persistent tree node at a specific address of a specific binary file. |
void |
ReadData(java.io.RandomAccessFile raf)
Read data from the random access file. |
void |
SetAddress(long address)
Set the address of current persistent tree node at a tree. |
void |
SetChild(long child)
Set the child's address of current persistent tree node at a tree. |
void |
SetLevel(int level)
Set the level of current persistent tree node at a tree. |
void |
SetNext(long next)
Set the next address of current persistent tree node at a tree. |
void |
SetParent(long parent)
Set the parent's address of current persistent tree node at a tree. |
void |
WriteData(java.io.RandomAccessFile raf)
Write data to the random access file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentTreeNode()
public PersistentTreeNode(long address)
public PersistentTreeNode(int level,
long parent,
long next,
long child,
long address)
| Method Detail |
|---|
public int GetLevel()
public void SetLevel(int level)
level - of current persistent tree node at a treepublic long GetParent()
public void SetParent(long parent)
parent - parent's address of current persistent tree node at a treepublic long GetNext()
public void SetNext(long next)
next - address of current persistent tree node at a treepublic long GetChild()
public void SetChild(long child)
child - child's address of current persistent tree node at a treepublic void SetAddress(long address)
address - of current persistent tree node at a treepublic long GetAddress()
public void WriteData(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - the random access file that data will be written to
java.io.IOException - if problems happen when accessing the random
access file.
public void ReadData(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - the random access file that data will be read from
java.io.IOException - if problems happen when accessing the random
access file.
public static PersistentTreeNode GetNode(java.io.RandomAccessFile raf,
long address)
throws java.io.IOException
raf - the binary file that the persistent node will be retrieved
fromaddress - the address in the binary file that the persistent
node will be retrieved from
java.io.IOException - if problems happen when accessing the random
access file.
public static void PrintNode(java.io.RandomAccessFile raf,
long address)
throws java.io.IOException
raf - the binary file that the persistent node will be printed
outaddress - the address in the binary file that the persistent
node will be printed out
java.io.IOException - if problems happen when accessing the random
access file.
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||