ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
org.osmf.net.rules 

Recommendation  - AS3 OSMF

Packageorg.osmf.net.rules
Classpublic class Recommendation
InheritanceRecommendation Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

Recommendation represents a RuleBase's recommendation.



Public Properties
 PropertyDefined By
  bitrate : Number
[read-only] The bitrate recommendation
Recommendation
  confidence : Number
[read-only] Confidence in the recommendation
Recommendation
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  ruleType : String
[read-only]
Recommendation
Public Methods
 MethodDefined By
  
Recommendation(ruleType:String, bitrate:Number, confidence:Number)
Constructor.
Recommendation
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

bitrate

property
bitrate:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

The bitrate recommendation



Implementation
    public function get bitrate():Number

confidence

property 
confidence:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

Confidence in the recommendation



Implementation
    public function get confidence():Number

ruleType

property 
ruleType:String  [read-only]



Implementation
    public function get ruleType():String
Constructor Detail

Recommendation

()Constructor
public function Recommendation(ruleType:String, bitrate:Number, confidence:Number)

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

Constructor.

Parameters
ruleType:String — The ideal bitrate to switch to (kbps; 1 kilobit = 1000 bits)
 
bitrate:Number — The confidence in the bitrate recommendation (between 0 and 1).
 
confidence:Number