com.softsynth.jmsl
Class UniformRandomBehavior

java.lang.Object
  extended by com.softsynth.jmsl.UniformRandomBehavior
All Implemented Interfaces:
Behavior, java.io.Serializable

public class UniformRandomBehavior
extends java.lang.Object
implements Behavior, java.io.Serializable

UniformRandomBehavior.java Choose a child to launch with a uniformly distributed random selection. Example: mySequenctialCollection.setBehavior(new UniformRandomBehavior())

Author:
Phil Burk and Nick Didkovsky
See Also:
Serialized Form

Constructor Summary
UniformRandomBehavior()
           
 
Method Summary
 Composable choose(SequentialCollection col)
          Choose a child to launch with a uniformly distributed random selection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformRandomBehavior

public UniformRandomBehavior()
Method Detail

choose

public Composable choose(SequentialCollection col)
Choose a child to launch with a uniformly distributed random selection.

Specified by:
choose in interface Behavior
Returns:
next Composable child to launch.