    Contents  Index  Topic Contents
    Previous Topic: MontageBvr Class
    Next Topic: PairObject Class

> ## NumberBvr Class

>     public class NumberBvr extends Behavior {

>         // Methods
>         public Object extract();
>         public StringBvr toString(double a);
>         public StringBvr toString(NumberBvr a);

>         public static NumberBvr  newUninitBvr();
>     }

> Creates an object that represents a number behavior. At any given time, the value of the behavior is a floating point number.

> For more information about behaviors, see the Behavior class.

> - NumberBvr Methods
> - Relevant Methods from the Statics Class
> - Relevant Fields from the Statics Class

> ### NumberBvr Methods

> extract
> toString(double)
> toString(NumberBvr)
> newUninitBvr

> ####

> extract

> NumberBvr Class

> Extracts the value of behavior, returning a Java object. The behavior must have a constant value.

> public Object extract( );

> ##### Return Values

> Returns a Java object. For more information about java.lang.Object objects, consult a Java reference.

> ####

> toString

> NumberBvr Class

> Converts a double to a StringBvr.

> public StringBvr toString(
> double a
> );

> ##### Parameters

> a
>   The double representing the number of digits to use after the decimal point.

> ##### Return Values

> Returns the StringBvr object.

> ####

> toString

> NumberBvr Class

> Converts a NumberBvr to a StringBvr.

> public StringBvr toString(
> NumberBvr a
> );

> ##### Parameters

> a
>   The NumberBvr object representing the number of digits to use after the decimal point.

> ##### Return Values

> Returns the StringBvr object.

> ####

> newUninitBvr

> NumberBvr Class

> This method allows you to refer to an NumberBvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.

> public static NumberBvr newUninitBvr( );

> ##### Return Values

> Returns the NumberBvr object.

> ### Relevant Methods from the Statics Class

> The following methods are defined in the Statics class and are most relevant for objects of type NumberBvr.

> public static NumberBvr abs(NumberBvr a);

> public static NumberBvr acos(NumberBvr a);

> public static NumberBvr add(NumberBvr a, NumberBvr b);

> public static NumberBvr asin(NumberBvr a);

> public static NumberBvr atan(NumberBvr a);

> public static NumberBvr atan2(NumberBvr a, NumberBvr b);

> public static NumberBvr bSpline(int degree, NumberBvr[] knots, NumberBvr[] control_elements, NumberBvr[] weights NumberBvr evaluation);

> public static NumberBvr ceiling(NumberBvr a);

> public static NumberBvr cos(NumberBvr a);

> public static NumberBvr degreesToRadians(NumberBvr a);

> public static NumberBvr derivative(NumberBvr a);

> public static NumberBvr div(NumberBvr a, NumberBvr b);

> public static BooleanBvr eq(NumberBvr a, NumberBvr b);

> public static NumberBvr exp(NumberBvr a);

> public static NumberBvr floor(NumberBvr a);

> public static BooleanBvr gt(NumberBvr a, NumberBvr b);

> public static BooleanBvr gte(NumberBvr a, NumberBvr b);

> public static NumberBvr integral(NumberBvr a);

> public static NumberBvr interpolate(NumberBvr from, NumberBvr to, NumberBvr duration);

> public static NumberBvr ln(NumberBvr a);

> public static NumberBvr log10(NumberBvr a);

> public static BooleanBvr lt(NumberBvr a, NumberBvr b);

> public static BooleanBvr lte(NumberBvr a, NumberBvr b);

> public static NumberBvr mod(NumberBvr a, NumberBvr b);

> public static NumberBvr mul(NumberBvr a, NumberBvr b);

> public static BooleanBvr ne(NumberBvr a, NumberBvr b);

> public static NumberBvr neg(NumberBvr a);

> public static NumberBvr pow(NumberBvr a, NumberBvr b);

> public static NumberBvr radiansToDegrees(NumberBvr a);

> public static NumberBvr round(NumberBvr a);

> public static NumberBvr seededRandom(double seed);

> public static NumberBvr sin(NumberBvr a);

> public static NumberBvr slowInSlowOut(NumberBvr from, NumberBvr to, NumberBvr duration, NumberBvr acceleration)

> public static NumberBvr sqrt(NumberBvr a);

> public static NumberBvr sub(NumberBvr a, NumberBvr b);

> public static NumberBvr tan(NumberBvr a);

> public static NumberBvr toBvr(double a);

> ### Relevant Fields from the Statics Class

> The following fields are defined in the Statics class and are most relevant for objects of type NumberBvr.

> public final static NumberBvr globalTime;

> public final static NumberBvr localTime;

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page