|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.semantics.base.BaseDuration
public class BaseDuration
Implementation of the Duration
interface
for specifying truthness duration.
Constructor Summary | |
---|---|
BaseDuration(Rule rule,
long seconds)
Constructor. |
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 |
Constructor Detail |
---|
public BaseDuration(Rule rule, long seconds)
seconds
- the number of seconds of the durationMethod Detail |
---|
public long getDuration(Tuple tuple)
Tuple
must remain true before the rule will fire.
getDuration
in interface Duration
tuple
- the Tuple
public Rule getRule()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |