org.drools.spi
Interface Duration

All Known Implementing Classes:
FixedDuration

public interface Duration

Interface for specifying truthness duration.

Author:
bob mcwhirter
See Also:
Rule.setDuration(long), Rule.getDuration(org.drools.spi.Tuple)

Method Summary
 long getDuration(Tuple tuple)
          Retrieve the truthness duration.
 

Method Detail

getDuration

public long getDuration(Tuple tuple)
Retrieve the truthness duration.
Parameters:
tuple - The tuple.
Returns:
The number of seconds the rule must hold true in order to fire.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.