|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.rule.FixedDuration
A fixed truthness duration.
Rule.setDuration(long)
,
Rule.getDuration()
Constructor Summary | |
FixedDuration()
Construct. |
|
FixedDuration(long seconds)
Construct. |
Method Summary | |
void |
addDays(long days)
Add days. |
void |
addHours(long hours)
Add hours. |
void |
addMinutes(long minutes)
Add minutes. |
void |
addSeconds(long seconds)
Add seconds. |
void |
addWeeks(long weeks)
Add weeks. |
long |
getDuration(Tuple tuple)
Retrieve the truthness duration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixedDuration()
public FixedDuration(long seconds)
seconds
- Number of seconds.Method Detail |
public void addSeconds(long seconds)
seconds
- Number of seconds.public void addMinutes(long minutes)
minutes
- Number of minutes.public void addHours(long hours)
hours
- Number of hours.public void addDays(long days)
days
- Number of days.public void addWeeks(long weeks)
weeks
- Number of weeks.public long getDuration(Tuple tuple)
Duration
getDuration
in interface Duration
tuple
- The tuple.
Duration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |