|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Nodes.NodeBehaviors.SimpleNodeBehavior
Fairness.Nodes.NodeBehaviors.RefuseForwardBehavior
public class RefuseForwardBehavior
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 |
---|
public RefuseForwardBehavior()
Method Detail |
---|
public boolean allowForward(Node myNode, Node target)
allowForward
in interface NodeBehavior
allowForward
in class SimpleNodeBehavior
myNode
- non-null Node to which this behavior belongs.target
- non-null Node that is not equal to myNode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |