Paket | org.osmf.net.metrics |
Klass | public class MetricFactory |
Arv | MetricFactory Object |
Underklasser | DefaultMetricFactory |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The factory operation produces a MetricBase as output.
The MetricFactory maintains a list of MetricFactoryItem objects, each of which encapsulates all the information necessary to create a specific metric.
Relaterade API-element
org.osmf.net.abr.DefaultMetricFactory
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
numItems : Number [skrivskyddad]
The number of items
| MetricFactory |
Metod | Definieras med | ||
---|---|---|---|
MetricFactory(qosInfoHistory:QoSInfoHistory)
Constructor. | MetricFactory | ||
Adds the specified MetricFactoryItem to the factory. | MetricFactory | ||
Produces a MetricBase. | MetricFactory | ||
The item corresponding to the specified metric type
| MetricFactory | ||
The registered items
| MetricFactory | ||
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 | ||
Removes the specified MetricFactoryItem from the factory. | MetricFactory | ||
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 |
numItems | egenskap |
MetricFactory | () | Konstruktor |
public function MetricFactory(qosInfoHistory:QoSInfoHistory)
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
ParametrarqosInfoHistory:QoSInfoHistory |
addItem | () | metod |
public function addItem(item:MetricFactoryItem):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Adds the specified MetricFactoryItem to the factory. If a MetricFactoryItem with the same ID already exists in this factory, the new MetricFactoryItem object replaces it.
Parametrar
item:MetricFactoryItem — The MetricFactoryItem to add.
|
Utlöser
ArgumentError — If the argument is null or if the argument
has a null type field.
|
buildMetric | () | metod |
public function buildMetric(type:String, ... args):MetricBase
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Produces a MetricBase.
Parametrar
type:String — The type of the metric to create.
| |
... args — The arguments to be passed to the metric's constructor (except the qosInfoHistory)
|
MetricBase — A new MetricBase of the desired type with the specified parameters
|
Utlöser
Error — If the type is not registered with any MetricFactoryItem.
|
getItem | () | metod |
public function getItem(type:String):MetricFactoryItem
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The item corresponding to the specified metric type
Parametrar
type:String |
MetricFactoryItem — The item corresponding to the specified type or null if no such item exists
|
getItems | () | metod |
public function getItems():Vector.<MetricFactoryItem>
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The registered items
ReturnerarVector.<MetricFactoryItem> — A new Vector.<MetricFactoryItem> containing the registered items
|
removeItem | () | metod |
public function removeItem(item:MetricFactoryItem):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 2.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes the specified MetricFactoryItem from the factory. If no such MetricFactoryItem exists in this factory, does nothing.
Parametrar
item:MetricFactoryItem — The MetricFactoryItem to remove.
|
Utlöser
ArgumentError — If the argument is null or if the argument
has a null type field.
|
Tue Jun 12 2018, 01:40 PM Z