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 floatprivate final intprivate floatprivate final int[][]private longprivate final longFields inherited from interface SpeedManagerLimitEstimate
TYPE_CHOKE_ESTIMATED, TYPE_ESTIMATED, TYPE_MANUAL, TYPE_MEASURED, TYPE_MEASURED_MIN, TYPE_UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedlimitEstimate(int _speed, double _estimate_type, double _metric_rating, int _hits, long _when, int[][] _segs) -
Method Summary
Modifier and TypeMethodDescriptionlonggetClone()floatOne of the above constantsprotected intgetHits()floatFor estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric invalid input: '<'1 x > -1 = relative goodness of metricint[][]longgetWhen()protected voidsetBytesPerSec(long s) voidsetEstimateType(float et) protected voidsetMetricRating(float mr)
-
Field Details
-
speed
private long 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 long getBytesPerSec()- Specified by:
getBytesPerSecin interfaceSpeedManagerLimitEstimate
-
setBytesPerSec
protected void setBytesPerSec(long s) -
getEstimateType
public float getEstimateType()Description copied from interface:SpeedManagerLimitEstimateOne of the above constants- Specified by:
getEstimateTypein interfaceSpeedManagerLimitEstimate- Returns:
-
setEstimateType
public void setEstimateType(float et) -
getMetricRating
public float getMetricRating()Description copied from interface:SpeedManagerLimitEstimateFor estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric invalid input: '<'1 x > -1 = relative goodness of metric- Specified by:
getMetricRatingin interfaceSpeedManagerLimitEstimate- Returns:
-
setMetricRating
protected void setMetricRating(float mr) -
getSegments
public int[][] getSegments()- Specified by:
getSegmentsin interfaceSpeedManagerLimitEstimate
-
getHits
protected int getHits() -
getWhen
public long getWhen()- Specified by:
getWhenin interfaceSpeedManagerLimitEstimate
-
getClone
-
getString
- Specified by:
getStringin interfaceSpeedManagerLimitEstimate
-