Package Fairness.Nodes.NodeBehaviors

Interface Summary
NodeBehavior NodeBehavior class provides an interface for the different node behaviors such as allowing to forward and receive packets and also contains information about the debts and confidence of nodes.
 

Class Summary
AncestorRatingBehavior AncestorRatingBehavior keeps track of confidence values and increases/decreases the confidence levels of nodes for sending and receiving the packets respectively.
DebtMaintenanceBehavior DebtMaintenanceBehavior applies debts to children who receives a packet and applies credits to its immediate parent
RefuseForwardBehavior RefuseForwardBehavior inherits the SimpleNodeBehavior and refuses to forward the contents to its child.
SimpleNodeBehavior SimpleNodeBehavior is a NodeBehavior that always accepts children, always allows forwarding, and does nothing in receivePacket.