Class SpeedManagerPingMapperImpl.limitEstimate
- java.lang.Object
-
- com.biglybt.core.speedmanager.impl.SpeedManagerPingMapperImpl.limitEstimate
-
- All Implemented Interfaces:
SpeedManagerLimitEstimate
,java.lang.Cloneable
- Enclosing class:
- SpeedManagerPingMapperImpl
private static class SpeedManagerPingMapperImpl.limitEstimate extends java.lang.Object implements SpeedManagerLimitEstimate, java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description private float
estimate_type
private int
hits
private float
metric_rating
private int[][]
segs
private int
speed
private long
when
-
Fields inherited from interface com.biglybt.core.speedmanager.SpeedManagerLimitEstimate
TYPE_CHOKE_ESTIMATED, TYPE_ESTIMATED, TYPE_MANUAL, TYPE_MEASURED, TYPE_MEASURED_MIN, TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
limitEstimate(int _speed, double _estimate_type, double _metric_rating, int _hits, long _when, int[][] _segs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBytesPerSec()
SpeedManagerPingMapperImpl.limitEstimate
getClone()
float
getEstimateType()
One of the above constantsprotected int
getHits()
float
getMetricRating()
For estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric <1 x > -1 = relative goodness of metricint[][]
getSegments()
java.lang.String
getString()
long
getWhen()
protected void
setBytesPerSec(int s)
void
setEstimateType(float et)
protected void
setMetricRating(float mr)
-
-
-
Method Detail
-
getBytesPerSec
public int getBytesPerSec()
- Specified by:
getBytesPerSec
in interfaceSpeedManagerLimitEstimate
-
setBytesPerSec
protected void setBytesPerSec(int s)
-
getEstimateType
public float getEstimateType()
Description copied from interface:SpeedManagerLimitEstimate
One of the above constants- Specified by:
getEstimateType
in interfaceSpeedManagerLimitEstimate
- Returns:
-
setEstimateType
public void setEstimateType(float et)
-
getMetricRating
public float getMetricRating()
Description copied from interface:SpeedManagerLimitEstimate
For estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric <1 x > -1 = relative goodness of metric- Specified by:
getMetricRating
in interfaceSpeedManagerLimitEstimate
- Returns:
-
setMetricRating
protected void setMetricRating(float mr)
-
getSegments
public int[][] getSegments()
- Specified by:
getSegments
in interfaceSpeedManagerLimitEstimate
-
getHits
protected int getHits()
-
getWhen
public long getWhen()
- Specified by:
getWhen
in interfaceSpeedManagerLimitEstimate
-
getClone
public SpeedManagerPingMapperImpl.limitEstimate getClone()
-
getString
public java.lang.String getString()
- Specified by:
getString
in interfaceSpeedManagerLimitEstimate
-
-