Class SpeedManagerPingMapperImpl.limitEstimate
java.lang.Object
com.biglybt.core.speedmanager.impl.SpeedManagerPingMapperImpl.limitEstimate
- All Implemented Interfaces:
SpeedManagerLimitEstimate
,Cloneable
- Enclosing class:
- SpeedManagerPingMapperImpl
private static class SpeedManagerPingMapperImpl.limitEstimate
extends Object
implements SpeedManagerLimitEstimate, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private final int
private float
private final int[][]
private int
private final long
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
ConstructorsModifierConstructorDescriptionprotected
limitEstimate
(int _speed, double _estimate_type, double _metric_rating, int _hits, long _when, int[][] _segs) -
Method Summary
Modifier and TypeMethodDescriptionint
getClone()
float
One of the above constantsprotected int
getHits()
float
For estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric <1 x > -1 = relative goodness of metricint[][]
long
getWhen()
protected void
setBytesPerSec
(int s) void
setEstimateType
(float et) protected void
setMetricRating
(float mr)
-
Field Details
-
speed
private int speed -
estimate_type
private float estimate_type -
metric_rating
private float metric_rating -
when
private final long when -
hits
private final int hits -
segs
private final int[][] segs
-
-
Constructor Details
-
limitEstimate
protected limitEstimate(int _speed, double _estimate_type, double _metric_rating, int _hits, long _when, int[][] _segs)
-
-
Method Details
-
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
-
getString
- Specified by:
getString
in interfaceSpeedManagerLimitEstimate
-