当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
BaseDuration (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.base
Class BaseDuration
java.lang.Object
org.drools.base.BaseDuration
- All Implemented Interfaces:
- Serializable, Duration
public class BaseDuration
- extends Object
- implements Duration
Implementation of the Duration
interface
for specifying truthness duration.
- See Also:
- Serialized Form
Method Summary |
long |
getDuration(Tuple tuple)
Retrieves the duration for which the conditions of this
Tuple must remain true before the rule will fire. |
Rule |
getRule()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDuration
public BaseDuration(Rule rule,
long seconds)
- Constructor.
- Parameters:
seconds
- the number of seconds of the duration
getDuration
public long getDuration(Tuple tuple)
- Retrieves the duration for which the conditions of this
Tuple
must remain true before the rule will fire.
- Specified by:
getDuration
in interface Duration
- Parameters:
tuple
- the Tuple
- Returns:
- the duration in seconds
getRule
public Rule getRule()
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.