Class UniformRandomBehavior

java.lang.Object
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

    Constructors
    Constructor Description
    UniformRandomBehavior()  
  • Method Summary

    Modifier and Type Method Description
    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 Details

    • UniformRandomBehavior

      public UniformRandomBehavior()
  • Method Details

    • 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.