org.drools.spi
Interface Duration

All Known Implementing Classes:
BaseDuration, FixedDuration

public interface Duration

Interface for specifying truthness duration.

Author:
bob mcwhirter
See Also:
Rule.setDuration(long), Rule.getDuration()

Method Summary
 long getDuration(Tuple tuple)
           Retrieve the duration for which the conditions of this Tuple must remain true before the rule will fire.
 

Method Detail

getDuration

public long getDuration(Tuple tuple)

Retrieve the duration for which the conditions of this Tuple must remain true before the rule will fire.

Parameters:
tuple -
Returns:
the duration


Copyright © 2001-2004 The Codehaus. All Rights Reserved.