Fairness.Nodes.TreeBehaviors
Interface TreeBehavior

All Known Implementing Classes:
AbstractTreeBehavior, NormalTreeBehavior

public interface TreeBehavior

TreeBehavior is an interface and is a part of the Taxation scheme which we are not implementing.


Method Summary
 void joinNextStripe(Node myNode)
          Tells the node to join another stripe.
 void partStripe(Node myNode)
          Tells this behavior to remove the Node from a stripe, to reduce its subscription level by one.
 boolean wantJoinMore(Node myNode)
          Returns true if the Node wants to join more stripes.
 

Method Detail

wantJoinMore

boolean wantJoinMore(Node myNode)
Returns true if the Node wants to join more stripes.

Parameters:
myNode - non-null Node to which this behavior belongs.
Returns:
true if the Node wants to join more stripes.

joinNextStripe

void joinNextStripe(Node myNode)
Tells the node to join another stripe.

Parameters:
myNode - non-null Node to which this behavior belongs.
Throws:
java.lang.IllegalStateException - if wantJoinMore(Fairness.Nodes.Node) returns false.

partStripe

void partStripe(Node myNode)
Tells this behavior to remove the Node from a stripe, to reduce its subscription level by one.

Parameters:
myNode - non-null Node to which this behavior belongs.