Fairness.Nodes.NodeBehaviors
Class RefuseForwardBehavior

java.lang.Object
  extended by Fairness.Nodes.NodeBehaviors.SimpleNodeBehavior
      extended by Fairness.Nodes.NodeBehaviors.RefuseForwardBehavior
All Implemented Interfaces:
NodeBehavior

public class RefuseForwardBehavior
extends SimpleNodeBehavior

RefuseForwardBehavior inherits the SimpleNodeBehavior and refuses to forward the contents to its child. It has the allow forward flag set as false


Constructor Summary
RefuseForwardBehavior()
           
 
Method Summary
 boolean allowForward(Node myNode, Node target)
          Returns true if this node behavior is currently allowing the Node to send to the given target.
 
Methods inherited from class Fairness.Nodes.NodeBehaviors.SimpleNodeBehavior
allowChild, getConfidence, getDebtLevel, hasConfidenceInformation, hasDebtLevelInformation, receivedPacket, sentPacket, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefuseForwardBehavior

public RefuseForwardBehavior()
Method Detail

allowForward

public boolean allowForward(Node myNode,
                            Node target)
Returns true if this node behavior is currently allowing the Node to send to the given target.

Specified by:
allowForward in interface NodeBehavior
Overrides:
allowForward in class SimpleNodeBehavior
Parameters:
myNode - non-null Node to which this behavior belongs.
target - non-null Node that is not equal to myNode.