BvrsToRun Class

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 Adds behaviors that are not a part of the model.
remove Removes behaviors that are not a part of the model.

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.

Syntax

public int add( Behavior extraBvrToRun );

Parameters

extraBvrToRun
Additional behaviors to run.

Return Value

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.

Syntax

public void remove ( int id );

Parameters

id
Integer identifying the added behavior.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.