org.drools.time
Interface SessionPseudoClock

All Superinterfaces:
org.drools.time.SessionClock
All Known Implementing Classes:
PseudoClockScheduler

public interface SessionPseudoClock
extends org.drools.time.SessionClock

A clock interface for the implementation of pseudo clocks, that are clocks where the user have control over the actual clock working. Pseudo clocks are particularly useful for simulations, "what if" scenario runs, and for tests.


Method Summary
 long advanceTime(long amount, TimeUnit unit)
          Advances the clock time in the specified unit amount.
 
Methods inherited from interface org.drools.time.SessionClock
getCurrentTime
 

Method Detail

advanceTime

long advanceTime(long amount,
                 TimeUnit unit)
Advances the clock time in the specified unit amount.

Parameters:
amount - the amount of units to advance in the clock
unit - the used time unit
Returns:
the current absolute timestamp


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.