maslab.data
Interface ClockEventSource


public interface ClockEventSource


Method Summary
 void timeChanged(double theTime)
          Called to indicate the passage of time.
 double timeOfNextEvent()
          Called to find out the next discrete event that this source knows about.
 

Method Detail

timeOfNextEvent

double timeOfNextEvent()
Called to find out the next discrete event that this source knows about. Return < 0 to indicate that there are no more events and that this source should be removed from the queue.


timeChanged

void timeChanged(double theTime)
Called to indicate the passage of time. Try to avoid doing computation. You must NOT call ErpWorld.sleep.