JMSL behavioral SequentialCollection Demo


Two MusicJobs in a sequential collection. The collection acts "behaviorally" instead of sequentially. Instead of launching each child in a strict sequential order, it uses a user-defined BehaviorFunction to choose which child to launch each time the collection repeats. This collection uses the DefaultBehaviorFunction which simply chooses a child with a uniform random distribution (ie in the case of two children, it's a coin flip)
You need a Java-enabled browser to view this applet.

source code
(C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved
JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.
JMSL Home