Lightweight Bartering Grid

lbg.peer.strategy.negotiation.supplying
Class FavorsSupplyingNegotiation

java.lang.Object
  extended by lbg.peer.strategy.negotiation.supplying.FavorsSupplyingNegotiation
All Implemented Interfaces:
SupplyingNegotiationPolicy

public class FavorsSupplyingNegotiation
extends java.lang.Object
implements SupplyingNegotiationPolicy

Favors-ranked distribution of Consumption Grants.

Author:
Cyril Briquet

Constructor Summary
FavorsSupplyingNegotiation(Peer managed_peer)
           
 
Method Summary
 void evaluateSupplyingRequests()
          Implementation of Resource Supplying follows Andrade's initial Network of Favors paper: available capacity is distributed first to Peers with highest Favors balance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FavorsSupplyingNegotiation

public FavorsSupplyingNegotiation(Peer managed_peer)
                           throws GridException
Throws:
GridException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

evaluateSupplyingRequests

public void evaluateSupplyingRequests()
                               throws GridException
Implementation of Resource Supplying follows Andrade's initial Network of Favors paper: available capacity is distributed first to Peers with highest Favors balance.

Specified by:
evaluateSupplyingRequests in interface SupplyingNegotiationPolicy
Throws:
GridException

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.