    Contents  Index  Topic Contents
    Previous Topic: Transform3Bvr Class
    Next Topic: UntilNotifier Interface

> ## TupleBvr Class

>     public class TupleBvr extends Behavior
>          //Constructor
>          public TupleBvr(Behavior[] tuple);

>          //Methods
>          public Behavior nth(int i);
>          public int length();

>          public static TupleBvr newUninitBvr(TupleBvr tuple);
>     }

> A TupleBvr object is similar to an array. It can, however, accept heterogeneous types. The two methods included in this class are convenience utilities. Any number of members can be included in a TupleBvr object.

> - TupleBvr Constructor
> - TupleBvr Methods
> - Relevant Methods from the Statics Class

> ###

> TupleBvr Constructor

> TupleBvr Class

> Constructs the TupleBvr object.

> public TupleBvr(
> Behavior behaviors[]
> );

> ##### Parameters

> behaviors
>   The behaviors to be included in the TupleBvr.

> ### TupleBvr Methods

> length

> nth

> newUninit

> ####

> length

> TupleBvr Class

> Determines the length of a tuple behavior.

> public int length( );

> ##### Return Values

> Returns an integer. For more information about integers, consult a Java reference.

> ####

> nth

> TupleBvr Class

> Selects a Behavior object based on the value of i.

> public Behavior nth(
> int i
> );

> ##### Parameters

> i
>   The index into the TupleBvr object. Note that this is not a time-varying index.

> ####

> newUninit

> TupleBvr Class

> Allows you to refer to an Transform3Bvr 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 TupleBvr newUninitBvr(
> TupleBvr tuple
> );

> ##### Parameters

> tuple
>   Used to establish the type the tuple holds.

> ##### Return Values

> Returns the TupleBvr object.

> ### Relevant Methods from the Statics Class

> The following methods are defined in the Statics and are most relevant to objects of type TupleBvr.

> public static TupleBvr pairBvr(Behavior first, Behavior second);

> public static TupleBvr tripleBvr(Behavior first, Behavior second, Behavior third);

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

> Top of Page