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.
For relevant methods from the Statics class, see Statics Methods Relevant to TupleBvr Objects.
TupleBvr Methods
length Determines the length of a tuple behavior. nth Selects a Behavior object based on the value of i. newUninitBvr Enables you to refer to a Transform3Bvr behavior before that behavior has been defined. TupleBvr Constructs the TupleBvr object.
Determines the length of a tuple behavior.
Syntax
public int length( );
Return Value
Returns an integer. For more information about integers, consult a Java reference.
Selects a Behavior object based on the value of i.
Syntax
public Behavior nth( int i );
Parameters
- i
- Index into the TupleBvr object. Note that this is not a time-varying index.
Enables you to refer to a 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.
Syntax
public static TupleBvr newUninitBvr( TupleBvr tuple );
Parameters
- tuple
- Used to establish the type the tuple holds.
Return Value
Returns the TupleBvr object.
Constructs the TupleBvr object.
Syntax
public TupleBvr( Behavior behaviors[] );
Parameters
- behaviors
- Behaviors to be included in the TupleBvr.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.