Package | org.osmf.net.metrics |
Class | public class MetricRepository |
Inheritance | MetricRepository Object |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Related API Elements
org.osmf.net.abr.MetricFactory
Public Properties
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
metricFactory : MetricFactory [read-only]
The MetricFactory object to be used for creating new metrics. | MetricRepository |
Public Methods
Method | Defined By | ||
---|---|---|---|
MetricRepository(metricFactory:MetricFactory)
Constructor. | MetricRepository | ||
Returns a reference to a MetricBase of the specified type,
with the specified arguments. | MetricRepository | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Property Detail
metricFactory | property |
metricFactory:MetricFactory
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The MetricFactory object to be used for creating new metrics.
Implementation
public function get metricFactory():MetricFactory
Constructor Detail
MetricRepository | () | Constructor |
public function MetricRepository(metricFactory:MetricFactory)
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor. Initializes the dictionary meant to hold the metrics.
ParametersmetricFactory:MetricFactory — The MetricFactory object to be used for creating new metrics.
|
Method Detail
getMetric | () | method |
public function getMetric(type:String, ... args):MetricBase
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns a reference to a MetricBase of the specified type, with the specified arguments.
Parameters
type:String — The type of the metric
| |
... args — The arguments to be passed to the metric's constructor
|
MetricBase |
Thu Dec 6 2018, 01:12 PM -08:00