    Contents  Index  Topic Contents
    Previous Topic: BvrCallback Interface
    Next Topic: CameraBvr Class

> ## BvrsToRun Class

>     public class BvrsToRun extends java.lang.Object {
>          // Methods
>          public int add(Behavior bvrToAdd);
>          public void remove (int id);
>     }

> A BvrsToRun object is an abstract list used to explicitly run behaviors that are not part of the model. To add these extra behaviors, use the add method. To remove these behaviors, use the remove method.

> These behaviors will either be run at the same time as the behaviors included in the model (local time = 0) or when an event occurs.

> An example of running a behavior that is not part of the model is a movie with both an English and a Spanish soundtrack. Perhaps, initially, the English soundtrack is played but the Spanish soundtrack can be selected at any time. This means it must have the same start time as the English soundtrack so that it is also in sync with the movie.

> ### BvrsToRun Methods

> add

> remove

> ####

> add

> BvrsToRun Class

> Adds behaviors that are not a part of the model. When the system starts the model, it retrieves these additional behaviors and runs them with the same start time as the behaviors included in the model.

> public int add(
> Behavior extraBvrToRun
> );

> ##### Parameters

> extraBvrToRun
>   The additional behaviors to run.

> ##### Return Values

> Returns an integer ID that identifies the behavior.

> ####

> remove

> BvrsToRun Class

> Removes behaviors that are not a part of the model. To remove a behavior, save the BvrToRun object and use the ID returned by the BvrsToRun.add method.

> public void remove (
> int id
> );

> ##### Parameters

> id
>   The integer identifying the added behavior.

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

> Top of Page