| java.lang.Object org.drools.base.BaseDuration
BaseDuration | public class BaseDuration implements Duration(Code) | | Implementation of the Duration interface
for specifying truthness duration.
|
Method Summary | |
public long | getDuration(Tuple tuple) Retrieves the duration for which the conditions of this
Tuple must remain true before the rule will fire. | public Rule | getRule() |
BaseDuration | public BaseDuration(Rule rule, long seconds)(Code) | | Constructor.
Parameters: seconds - the number of seconds of the duration |
getDuration | public long getDuration(Tuple tuple)(Code) | | Retrieves the duration for which the conditions of this
Tuple must remain true before the rule will fire.
Parameters: tuple - the Tuple the duration in seconds |
|
|