|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.id.pbw.hyfo.hyph.BigTernaryTree.TernaryTreeWalker
public class BigTernaryTree.TernaryTreeWalker
This process walks the tree and feeds TreeElement
s into a
blocking queue for reading by an Iterator
.
Constructor Summary | |
---|---|
BigTernaryTree.TernaryTreeWalker(Thread consumer,
ArrayBlockingQueue<TreeElement> queue)
Constructs a new tree walker. |
Method Summary | |
---|---|
int[] |
get_key()
Constructs the key from the series of entries in the key codepoint stack. |
void |
run()
The run method of the Runnable interface. |
void |
walk(int node)
Walks the tree in in-order sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BigTernaryTree.TernaryTreeWalker(Thread consumer, ArrayBlockingQueue<TreeElement> queue)
consumer
- the thread that consumes the output of this wlaker.queue
- the blocking queue through which tree elements are fed
to the consumer.Method Detail |
---|
public void run()
run
method of the Runnable
interface.
run
in interface Runnable
public void walk(int node) throws InterruptedException
TreeElement
detailing the node is appended to a queue.
node
- the starting node.
InterruptedException
- if the method is
interrupted.public int[] get_key()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |