org.drools.semantics.base
Class BaseDuration

java.lang.Object
  |
  +--org.drools.semantics.base.BaseDuration
All Implemented Interfaces:
Duration

public class BaseDuration
extends java.lang.Object
implements Duration


Constructor Summary
BaseDuration(long seconds)
           
 
Method Summary
 long getDuration(Tuple tuple)
          Retrieve the truthness duration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDuration

public BaseDuration(long seconds)
Method Detail

getDuration

public long getDuration(Tuple tuple)
Description copied from interface: Duration
Retrieve the truthness duration.

Specified by:
getDuration in interface Duration
Parameters:
tuple - The tuple.
Returns:
The number of seconds the rule must hold true in order to fire.