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)
GrainSchedulernextDuration in interface GrainSchedulerpublic double nextGap(double duration,
double density)
GrainSchedulernextGap in interface GrainScheduler