com.jsyn.unitgen
Interface GrainScheduler

All Known Implementing Classes:
StochasticGrainScheduler

public interface GrainScheduler


Method Summary
 double nextDuration(double suggestedDuration)
          Calculate duration in seconds for the next grains.
 double nextGap(double duration, double density)
          Calculate time in seconds for the next gap between grains.
 

Method Detail

nextGap

double nextGap(double duration,
               double density)
Calculate time in seconds for the next gap between grains.

Parameters:
duration -
density -
Returns:

nextDuration

double nextDuration(double suggestedDuration)
Calculate duration in seconds for the next grains.

Parameters:
suggestedDuration -
Returns:
duration