|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.speedcontrol.decider.SimpleDecider
public class SimpleDecider
Simple implementation of Decider interface. It keep track about the download rate of the last 5 seconds and uses the average of these 5 values to compute the recommendation for the new upload limit.
Constructor Summary | |
---|---|
SimpleDecider(Configuration config)
|
Method Summary | |
---|---|
int |
getSuggestedUpRate()
get hint about suggested upload rate. |
void |
updateCurrentStatus(int currentDownRate)
updates the current download rate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDecider(Configuration config)
Method Detail |
---|
public void updateCurrentStatus(int currentDownRate)
Decider
updateCurrentStatus
in interface Decider
public int getSuggestedUpRate()
Decider
getSuggestedUpRate
in interface Decider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |