org.drools.spi
Interface Duration

All Superinterfaces:
Serializable
All Known Implementing Classes:
FixedDuration

public interface Duration
extends Serializable

Interface for specifying truthness duration.

See Also:
org.drools.rule.Rule#setDuration, org.drools.rule.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

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-2012 JBoss by Red Hat. All Rights Reserved.