|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Nodes.TreeInfo
public class TreeInfo
TreeInfo contains information on a Node
's participation in a single stripe tree.
Constructor Summary | |
---|---|
TreeInfo(int stripeId)
Constructs a new TreeInfo |
Method Summary | |
---|---|
void |
addChild(Node child)
Adds the given child to this node for this TreeInfo's stripe. |
java.util.Set<Node> |
getChildren()
Return a set of all current children of the node for this stripe. |
Node |
getParent()
Returns the parent of the node in this stripe. |
int |
getStripeId()
|
void |
removeChild(Node child)
Removes the given child from this node for this TreeInfo's stripe, if the given node is actually a child. |
void |
setParent(Node parent)
Sets the Node's parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeInfo(int stripeId)
stripeId
- stripe ID this information is forMethod Detail |
---|
public int getStripeId()
public Node getParent()
public void addChild(Node child)
child
- non-null Nodepublic void removeChild(Node child)
child
- non-null Nodepublic void setParent(Node parent)
public java.util.Set<Node> getChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |