com.jake
Class ArtificialClock

java.lang.Object
  extended by com.jake.ArtificialClock

public class ArtificialClock
extends java.lang.Object

A simulated "clock" that keeps track of how much time has passed during calls to the methods described in the Collection12 interface. The current "time value" is specified in "ticks"; the current value can be queried using the getNumTicks method.


Constructor Summary
ArtificialClock()
           
 
Method Summary
static long getNumTicks()
          Returns the current "time" according to the simulated clock, expressed in "ticks".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtificialClock

public ArtificialClock()
Method Detail

getNumTicks

public static long getNumTicks()
Returns the current "time" according to the simulated clock, expressed in "ticks".

Returns:
the current time expressed in "ticks" (an artificial unit).