org.commonreality.time
Interface IClock

All Known Subinterfaces:
INetworkedClock, IOwnableClock<T>, ISetableClock
All Known Implementing Classes:
BasicClock, MasterClock, NetworkedMasterClock, NetworkedSetableClock, NetworkedSlaveClock, OwnedClock, RealTimeClock, SharedClock

public interface IClock

central clock interface for controlling time.

Author:
developer

Method Summary
 double getTime()
           
 double waitForChange()
          wait for any change of time
 double waitForTime(double time)
          wait for this time to be reached, returning the current time
 

Method Detail

getTime

double getTime()
Returns:
the current time

waitForTime

double waitForTime(double time)
                   throws java.lang.InterruptedException
wait for this time to be reached, returning the current time

Parameters:
time -
Returns:
Throws:
java.lang.InterruptedException

waitForChange

double waitForChange()
                     throws java.lang.InterruptedException
wait for any change of time

Throws:
java.lang.InterruptedException