SciLib.AI.Search
Class binNode

java.lang.Object
  extended by SciLib.AI.Search.Node
      extended by SciLib.AI.Search.binNode

public class binNode
extends Node

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

left

protected binNode left

right

protected binNode right
Constructor Detail

binNode

public binNode()

binNode

public binNode(java.lang.Object data)
Method Detail

getLeft

public binNode getLeft()
get the left node

Returns:
the left node, a binNode

getRight

public binNode getRight()
get the right node

Returns:
the right node, a binNode

setLeft

public void setLeft(binNode n)
set the left node

Parameters:
n - the left node, a binNode

setRight

public void setRight(binNode n)
set the right node

Parameters:
n - the right node, a binNode

toString

public java.lang.String toString()
represent data in a String

Specified by:
toString in class Node