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.
Constructs the TupleBvr object.
public TupleBvr(
Behavior behaviors[]
);
Determines the length of a tuple behavior.
public int length( );
Returns an integer. For more information about integers, consult a Java reference.
Selects a Behavior object based on the value of i.
public Behavior nth(
int i
);
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
);
Returns the TupleBvr object.
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);
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.