public class StochasticGrainScheduler extends java.lang.Object implements GrainScheduler
Constructor and Description |
---|
StochasticGrainScheduler() |
Modifier and Type | Method and Description |
---|---|
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.
|
public double nextDuration(double duration)
GrainScheduler
nextDuration
in interface GrainScheduler
public double nextGap(double duration, double density)
GrainScheduler
nextGap
in interface GrainScheduler