|
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.PerformanceConsumptionRanking
public class PerformanceConsumptionRanking
PerformanceConsumptionRanking ranks Grantors (i.e. potential Supplier Peers who sent Consumption Grants) by decreasing expected performance, excluding those estimated to be PERF_FACTOR times slower than the managed Peer.
Field Summary | |
---|---|
static double |
PERF_FACTOR
|
Constructor Summary | |
---|---|
PerformanceConsumptionRanking(ConsumptionGrantsContainer c_g,
double estimated_mean_self_runtime,
JobConsumptionOutcomeTracker jcot,
boolean do_blacklist)
Constructs a new PerformanceConsumptionRanking. |
Method Summary | |
---|---|
int |
getBlacklistedPeerCount()
Ranking implementation. |
int |
getRankedPeerCount()
Ranking implementation. |
int |
getUnrankedPeerCount()
Ranking implementation. |
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 |
Field Detail |
---|
public static final double PERF_FACTOR
Constructor Detail |
---|
public PerformanceConsumptionRanking(ConsumptionGrantsContainer c_g, double estimated_mean_self_runtime, JobConsumptionOutcomeTracker jcot, boolean do_blacklist) throws GridException
c_g
- Consumption Grants container
GridException
- if a parameter is illegalMethod Detail |
---|
public java.lang.String toString()
CommonRanking
toString
in interface Ranking
toString
in class CommonRanking
public int[] peersRanking()
peersRanking
in interface Ranking
peersRanking
in class CommonRanking
public int getRankedPeerCount()
getRankedPeerCount
in interface Ranking
getRankedPeerCount
in class CommonRanking
public int getUnrankedPeerCount()
getUnrankedPeerCount
in interface Ranking
getUnrankedPeerCount
in class CommonRanking
public int getBlacklistedPeerCount()
|
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.