maspack.graph
Class BiNode<A,B>

java.lang.Object
  extended by maspack.graph.Node<A>
      extended by maspack.graph.BiNode<A,B>

public class BiNode<A,B>
extends Node<A>

Represents a node of the Tree class. Has an extra "value" element of type B.


Constructor Summary
BiNode()
          Default constructor.
BiNode(A data, B value)
          Convenience constructor.
 
Method Summary
 B getValue()
           
 void setData(A data, B value)
           
 java.lang.String toString()
           
 
Methods inherited from class maspack.graph.Node
addChild, addChildren, clear, consolidate, detachFromParent, detachFromParents, getChild, getChildren, getData, getNumberOfChildren, getNumberOfParents, getParent, getParents, insertChildAt, removeAllChildren, removeChild, removeChild, setChildren, setData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BiNode

public BiNode()
Default constructor.


BiNode

public BiNode(A data,
              B value)
Convenience constructor.

Parameters:
data - the regular node data
value - the extra value entity
Method Detail

getValue

public B getValue()

setData

public void setData(A data,
                    B value)

toString

public java.lang.String toString()
Overrides:
toString in class Node<A>