com.bigbross.bossa
Class DeterministicTimeSource

java.lang.Object
  extended bycom.bigbross.bossa.DeterministicTimeSource
All Implemented Interfaces:
Serializable, TimeSource

public class DeterministicTimeSource
extends Object
implements TimeSource

This class implements a deterministic time source. Once the time of this time source is set, it will remain constant until it is set again.

Author:
BigBross Team
See Also:
Serialized Form

Constructor Summary
DeterministicTimeSource()
          Creates a new deterministic time source.
 
Method Summary
 Date getTime()
          Returns the current time.
 void setTime(Date time)
          Sets the time of this time source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeterministicTimeSource

public DeterministicTimeSource()
Creates a new deterministic time source.

Method Detail

setTime

public void setTime(Date time)
Sets the time of this time source.

Parameters:
time - the new time.

getTime

public Date getTime()
Description copied from interface: TimeSource
Returns the current time.

Specified by:
getTime in interface TimeSource
Returns:
the current time.
See Also:
TimeSource.getTime()


Copyright © 2003,2004 OpenBR Sistemas S/C Ltda.