org.drools.semantics.base
Class BaseDuration
java.lang.Object
org.drools.semantics.base.BaseDuration
- All Implemented Interfaces:
- Duration
- public class BaseDuration
- extends Object
- implements Duration
Method Summary |
long |
getDuration(Tuple tuple)
Retrieve the duration for which the conditions of this Tuple
must remain true before the rule will fire. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDuration
public BaseDuration(long seconds)
getDuration
public long getDuration(Tuple tuple)
- Description copied from interface:
Duration
Retrieve 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
-
- Returns:
- the duration
Copyright © 2001-2004 The Codehaus. All Rights Reserved.