Paket | org.osmf.net.metrics |
Klass | public class MetricBase |
Arv | MetricBase Object |
Underklasser | ActualBitrateMetric, AvailableQualityLevelsMetric, BandwidthMetric, BufferFragmentsMetric, BufferLengthMetric, BufferOccupationRatioMetric, CurrentStatusMetric, DroppedFPSMetric, EmptyBufferMetric, FPSMetric, FragmentCountMetric, RecentSwitchMetric |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
MetricBase is a base class for metrics used for Adaptive Bitrate. A metric's value is computed based on QoSInfoHistory. A metric is identified by its type.
The base class handles the caching of the computed value. The subclasses should only implement the actual computation.
All subclasses should have qosInfoHistory
as the first parameter in the constructor.
All subclasses must set the _type
in the constructor.
Relaterade API-element
org.osmf.net.abr.MetricValue
org.osmf.net.abr.QoSInfoHistory
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
type : String [skrivskyddad]
The type of the metric
| MetricBase | ||
value : MetricValue [skrivskyddad]
The value of this metric
If the value has already been computed for the most recent QoSInfo,
return the cached result. | MetricBase |
Egenskap | Definieras med | ||
---|---|---|---|
qosInfoHistory : QoSInfoHistory [skrivskyddad]
The QoSInfoHistory object used to compute the metric. | MetricBase |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | MetricBase | ||
The value of this metric
If the value has already been computed for the most recent QoSInfo,
return the cached result.
This method is internal so it can be overriden by metric mockers,
for testing purposes
| MetricBase | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
Metod | Definieras med | ||
---|---|---|---|
Computes the value of this metric
Subclasses must override to provide a specific implementation. | MetricBase |
qosInfoHistory | egenskap |
qosInfoHistory:QoSInfoHistory
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The QoSInfoHistory object used to compute the metric. It is only accessible to sublcasses.
Implementering
protected function get qosInfoHistory():QoSInfoHistory
type | egenskap |
value | egenskap |
value:MetricValue
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The value of this metric If the value has already been computed for the most recent QoSInfo, return the cached result.
Implementering
public function get value():MetricValue
MetricBase | () | Konstruktor |
public function MetricBase(qosInfoHistory:QoSInfoHistory, type:String)
Constructor.
ParametrarqosInfoHistory:QoSInfoHistory — The QoSInfoHistory to be used for computing the metric
| |
type:String — The type of the metric
|
getValue | () | metod |
public function getValue():MetricValue
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The value of this metric If the value has already been computed for the most recent QoSInfo, return the cached result. This method is internal so it can be overriden by metric mockers, for testing purposes
ReturnerarMetricValue |
getValueForced | () | metod |
protected function getValueForced():MetricValue
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Computes the value of this metric Subclasses must override to provide a specific implementation.
ReturnerarMetricValue — The MetricValue result of the computation
|
Tue Jun 12 2018, 01:40 PM Z