|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.AI.Search.Node
SciLib.AI.Search.binNode
public class binNode
A generic binary node used to build a binary tree.
| Field Summary | |
|---|---|
protected binNode |
left
|
protected binNode |
right
|
| Fields inherited from class SciLib.AI.Search.Node |
|---|
data |
| Constructor Summary | |
|---|---|
binNode()
|
|
binNode(java.lang.Object data)
|
|
| Method Summary | |
|---|---|
binNode |
getLeft()
get the left node |
binNode |
getRight()
get the right node |
void |
setLeft(binNode n)
set the left node |
void |
setRight(binNode n)
set the right node |
java.lang.String |
toString()
represent data in a String |
| Methods inherited from class SciLib.AI.Search.Node |
|---|
getData, print, setData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected binNode left
protected binNode right
| Constructor Detail |
|---|
public binNode()
public binNode(java.lang.Object data)
| Method Detail |
|---|
public binNode getLeft()
public binNode getRight()
public void setLeft(binNode n)
n - the left node, a binNodepublic void setRight(binNode n)
n - the right node, a binNodepublic java.lang.String toString()
toString in class Node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||