|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.peer.strategy.ranking.CommonRanking
lbg.peer.strategy.ranking.MCoSConsumptionRanking
public class MCoSConsumptionRanking
MCoSConsumptionRanking ranks Grantors (i.e. potential Supplier Peers who sent Consumption Grants) first by decreasing mean Consumption completion stride, then by decreasing (mean,current) normalized stride distance between the current and the mean Consumption completion stride.
| Constructor Summary | |
|---|---|
MCoSConsumptionRanking(ConsumptionGrantsContainer c_g,
JobConsumptionOutcomeTracker jcot,
boolean do_blacklist)
|
|
| Method Summary | |
|---|---|
int |
getBlacklistedPeerCount()
Ranking implementation. |
int |
getRankedPeerCount()
Ranking implementation. |
int |
getUnrankedPeerCount()
Ranking implementation. |
static double |
normalizedStrideDistance(PeerBarteringProfile peer_bp)
Computes the normalized difference between the mean and the most recent Consumption Completion Stride of target Supplier. |
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 |
|---|
public MCoSConsumptionRanking(ConsumptionGrantsContainer c_g,
JobConsumptionOutcomeTracker jcot,
boolean do_blacklist)
throws GridException
GridException| Method Detail |
|---|
public java.lang.String toString()
CommonRanking
toString in interface RankingtoString in class CommonRankingpublic int[] peersRanking()
peersRanking in interface RankingpeersRanking in class CommonRankingpublic int getRankedPeerCount()
getRankedPeerCount in interface RankinggetRankedPeerCount in class CommonRankingpublic int getUnrankedPeerCount()
getUnrankedPeerCount in interface RankinggetUnrankedPeerCount in class CommonRankingpublic int getBlacklistedPeerCount()
public static double normalizedStrideDistance(PeerBarteringProfile peer_bp)
throws GridException
A high normalized stride distance, i.e. close to 1.0, indicates a high probability of success of a Consumption Task submitted right now to the target Supplier.
peer_bp - target Supplier Bartering Profile
GridException - if a parameter is illegal
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.