public class SpeedCalculator
- extends Calculator
Quantify how fast the peer is - how fast they respond to our requests, how fast
they pass messages on, etc. This should be affected both by their bandwidth/latency,
as well as their load.
This code has been through many iterations, and some versions were quite complex.
If you are considering changes, review the change control history, and
see the previous versions in change control to get 400+ lines of old code.
Evaluate the profile according to the current metric
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SpeedCalculator(RouterContext context)
public double calc(PeerProfile profile)
- Description copied from class:
- Evaluate the profile according to the current metric
calc in class