| Pakket | org.osmf.net.metrics |
| Klasse | public class MetricFactory |
| Overerving | MetricFactory Object |
| Subklassen | DefaultMetricFactory |
| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | 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.
Verwante API-elementen
org.osmf.net.abr.DefaultMetricFactory
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
![]() | constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | |
| numItems : Number [alleen-lezen]
The number of items
| MetricFactory | ||
| Methode | Gedefinieerd door | ||
|---|---|---|---|
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 | ||
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
Removes the specified MetricFactoryItem from the factory. | MetricFactory | ||
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
numItems | eigenschap |
MetricFactory | () | Constructor |
public function MetricFactory(qosInfoHistory:QoSInfoHistory)| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Constructor.
ParametersqosInfoHistory:QoSInfoHistory |
addItem | () | methode |
public function addItem(item:MetricFactoryItem):void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | 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.
Parameters
item:MetricFactoryItem — The MetricFactoryItem to add.
|
Gegenereerde uitzondering
ArgumentError — If the argument is null or if the argument
has a null type field.
|
buildMetric | () | methode |
public function buildMetric(type:String, ... args):MetricBase| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Produces a MetricBase.
Parameters
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
|
Gegenereerde uitzondering
Error — If the type is not registered with any MetricFactoryItem.
|
getItem | () | methode |
public function getItem(type:String):MetricFactoryItem| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
The item corresponding to the specified metric type
Parameters
type:String |
MetricFactoryItem — The item corresponding to the specified type or null if no such item exists
|
getItems | () | methode |
public function getItems():Vector.<MetricFactoryItem>| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
The registered items
Geretourneerde waardeVector.<MetricFactoryItem> — A new Vector.<MetricFactoryItem> containing the registered items
|
removeItem | () | methode |
public function removeItem(item:MetricFactoryItem):void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 2.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Removes the specified MetricFactoryItem from the factory. If no such MetricFactoryItem exists in this factory, does nothing.
Parameters
item:MetricFactoryItem — The MetricFactoryItem to remove.
|
Gegenereerde uitzondering
ArgumentError — If the argument is null or if the argument
has a null type field.
|
Wed Jun 13 2018, 11:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven