com.jsyn.unitgen
Class StochasticGrainScheduler

java.lang.Object
  extended by com.jsyn.unitgen.StochasticGrainScheduler
All Implemented Interfaces:
GrainScheduler

public class StochasticGrainScheduler
extends java.lang.Object
implements GrainScheduler


Constructor Summary
StochasticGrainScheduler()
           
 
Method Summary
 double nextDuration(double duration)
          Calculate duration in seconds for the next grains.
 double nextGap(double duration, double density)
          Calculate time in seconds for the next gap between grains.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StochasticGrainScheduler

public StochasticGrainScheduler()
Method Detail

nextDuration

public double nextDuration(double duration)
Description copied from interface: GrainScheduler
Calculate duration in seconds for the next grains.

Specified by:
nextDuration in interface GrainScheduler
Returns:
duration

nextGap

public double nextGap(double duration,
                      double density)
Description copied from interface: GrainScheduler
Calculate time in seconds for the next gap between grains.

Specified by:
nextGap in interface GrainScheduler
Returns: