org.commonreality.time.impl
Class MasterClock

java.lang.Object
  extended by org.commonreality.time.impl.BasicClock
      extended by org.commonreality.time.impl.OwnedClock<IIdentifier>
          extended by org.commonreality.time.impl.MasterClock
All Implemented Interfaces:
IClock, IOwnableClock<IIdentifier>, ISetableClock
Direct Known Subclasses:
NetworkedMasterClock

public abstract class MasterClock
extends OwnedClock<IIdentifier>

tracks a series of potential clock owners (if shared), takes their recommendations for a time change. Once it has heard from all of the owners, it will update the time to the smallest requested time.

Author:
developer

Constructor Summary
MasterClock()
           
 
Method Summary
 
Methods inherited from class org.commonreality.time.impl.OwnedClock
addOwner, getOwners, isOwner, removeOwner, setTime, setTime
 
Methods inherited from class org.commonreality.time.impl.BasicClock
await, getTime, waitForChange, waitForTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.commonreality.time.IClock
getTime, waitForChange, waitForTime
 

Constructor Detail

MasterClock

public MasterClock()