DirectX Media for Animation Java Reference Previous
Previous
Classes
Classes
Index
Index
Next
Next

TupleBvr Class

Constructor , Methods

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

     //Methods
     public Behavior nth(int i);
     public void pairBvr(Behavior first, Behavior second);
     public void tripleBvr(Behavior first, Behavior second, Behavior third);

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.


Constructor


TupleBvr

public TupleBvr(Behavior []);

Constructs the TupleBvr object.

ParameterDescription
tuple The behaviors to be included in the TupleBvr.


Methods


nth

public Behavior nth(int i);

Selects a Behavior object based on the value of i.

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


pairBvr

public void pairBvr(Behavior first, Behavior second);

A convenience utility for creating a TupleBvr object with two members.

ParameterDescription
first The first Behavior object in the TupleBvr.
second The second Behavior object in the TupleBvr.


tripleBvr

public void tripleBvr(Behavior first, Behavior second, Behavior third);

A convenience utility for creating a TupleBvr object with three members.

ParameterDescription
first The first Behavior object in the TupleBvr.
second The second Behavior object in the TupleBvr.
third The third Behavior object in the TupleBvr.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.