Class SMConst.FilteredLimitEstimate
java.lang.Object
com.biglybt.core.speedmanager.impl.v2.SMConst.FilteredLimitEstimate
- All Implemented Interfaces:
SpeedManagerLimitEstimate
- Enclosing class:
- SMConst
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final float
(package private) final String
(package private) final float
(package 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
ConstructorsConstructorDescriptionFilteredLimitEstimate
(int _bytesPerSec, float _type, float _metric, long _when, String _name) -
Method Summary
Modifier and TypeMethodDescriptionint
float
One of the above constantsfloat
For estimated limits: -1 = estimate derived from bad metrics +1 = estimate derived from good metric <1 x > -1 = relative goodness of metricint[][]
long
getWhen()
-
Field Details
-
bytesPerSec
final int bytesPerSec -
type
final float type -
metric
final float metric -
when
final long when -
name
-
-
Constructor Details
-
FilteredLimitEstimate
public FilteredLimitEstimate(int _bytesPerSec, float _type, float _metric, long _when, String _name)
-
-
Method Details
-
getBytesPerSec
public int getBytesPerSec()- Specified by:
getBytesPerSec
in interfaceSpeedManagerLimitEstimate
-
getEstimateType
public float getEstimateType()Description copied from interface:SpeedManagerLimitEstimate
One of the above constants- Specified by:
getEstimateType
in interfaceSpeedManagerLimitEstimate
- Returns:
-
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:
-
getSegments
public int[][] getSegments()- Specified by:
getSegments
in interfaceSpeedManagerLimitEstimate
-
getWhen
public long getWhen()- Specified by:
getWhen
in interfaceSpeedManagerLimitEstimate
-
getString
- Specified by:
getString
in interfaceSpeedManagerLimitEstimate
-