Lightweight Bartering Grid

lbg.peer.strategy.ranking
Class ReliableMLConsumptionRanking

java.lang.Object
  extended by lbg.peer.strategy.ranking.CommonRanking
      extended by lbg.peer.strategy.ranking.ReliableMLConsumptionRanking
All Implemented Interfaces:
Ranking

public class ReliableMLConsumptionRanking
extends CommonRanking

ReliableMLConsumptionRanking ranks Grantors (i.e. potential Supplier Peers who sent Consumption Grants) by decreasing predicted reliablity that is computed using ML techniques.

Author:
Cyril Briquet

Constructor Summary
ReliableMLConsumptionRanking(ConsumptionGrantsContainer c_g, Task t)
           
ReliableMLConsumptionRanking(ConsumptionGrantsContainer c_g, Task t, boolean keep_only_best_tsc)
           
 
Method Summary
 int getBlacklistedPeerCount()
          Ranking implementation.
 int getRankedPeerCount()
          Ranking implementation.
 int getUnrankedPeerCount()
          Ranking implementation.
 TaskSchedulingContext[] peersPrediction()
           
 int[] peersRanking()
          Ranking implementation.
 java.lang.String toString()
          Ranking implementation.
 
Methods inherited from class lbg.peer.strategy.ranking.CommonRanking
getBlacklistedPeerRatio, getPeerCount, getRankedPeerRatio, getUnrankedPeerRatio
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReliableMLConsumptionRanking

public ReliableMLConsumptionRanking(ConsumptionGrantsContainer c_g,
                                    Task t)
                             throws GridException
Throws:
GridException

ReliableMLConsumptionRanking

public ReliableMLConsumptionRanking(ConsumptionGrantsContainer c_g,
                                    Task t,
                                    boolean keep_only_best_tsc)
                             throws GridException
Throws:
GridException
Method Detail

toString

public java.lang.String toString()
Description copied from class: CommonRanking
Ranking implementation.

Specified by:
toString in interface Ranking
Overrides:
toString in class CommonRanking

peersPrediction

public TaskSchedulingContext[] peersPrediction()

peersRanking

public int[] peersRanking()
Ranking implementation.

Specified by:
peersRanking in interface Ranking
Specified by:
peersRanking in class CommonRanking
Returns:
Peers ranking, or null if no Peers can be ranked

getRankedPeerCount

public int getRankedPeerCount()
Ranking implementation.

Specified by:
getRankedPeerCount in interface Ranking
Specified by:
getRankedPeerCount in class CommonRanking

getUnrankedPeerCount

public int getUnrankedPeerCount()
Ranking implementation.

Specified by:
getUnrankedPeerCount in interface Ranking
Specified by:
getUnrankedPeerCount in class CommonRanking

getBlacklistedPeerCount

public int getBlacklistedPeerCount()
Ranking implementation.


Lightweight Bartering Grid

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