maspack.graph
Class BiNode<A,B>
java.lang.Object
maspack.graph.Node<A>
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. |
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 |
BiNode
public BiNode()
- Default constructor.
BiNode
public BiNode(A data,
B value)
- Convenience constructor.
- Parameters:
data
- the regular node datavalue
- the extra value entity
getValue
public B getValue()
setData
public void setData(A data,
B value)
toString
public java.lang.String toString()
- Overrides:
toString
in class Node<A>