com.bigbross.bossa
Interface TimeSource

All Superinterfaces:
Serializable
All Known Implementing Classes:
DeterministicTimeSource, RealTimeSource

public interface TimeSource
extends Serializable

This interface represents a time source used by the Bossa engine. A suitable implementation of this interface allows Bossa to behave deterministically with respect to time as an external agent.

If an instance of Bossa is persistent, it will use its own internal implementation of this interface in a way that is consistent with the underlaying prevalent mechanism.

If an instance of Bossa is transient, the client can provide an implementation of this interface that is consistent with the persistence mechanism employed, if any. If there is no need for the Bossa engine to treat time in a controlled way (for example, being deterministic), it is not necessary to provide an implementation of this interface.

Author:
BigBross Team

Method Summary
 Date getTime()
          Returns the current time.
 

Method Detail

getTime

public Date getTime()
Returns the current time.

Returns:
the current time.


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