站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

FixedDuration (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule
Class FixedDuration

java.lang.Object
  extended by org.drools.rule.FixedDuration
All Implemented Interfaces:
Serializable, Duration

public class FixedDuration
extends Object
implements Duration

A fixed truthness duration.

Version:
$Id: FixedDuration.java,v 1.2 2005/08/14 22:34:41 mproctor Exp $
Author:
bob mcwhirter
See Also:
Rule.setDuration(long), Rule.getDuration(), Serialized Form

Constructor Summary
FixedDuration()
          Construct.
FixedDuration(long ms)
          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 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
 

Constructor Detail

FixedDuration

public FixedDuration()
Construct.


FixedDuration

public FixedDuration(long ms)
Construct.

Parameters:
seconds - Number of seconds.
Method Detail

addSeconds

public void addSeconds(long seconds)
Add seconds.

Parameters:
seconds - Number of seconds.

addMinutes

public void addMinutes(long minutes)
Add minutes.

Parameters:
minutes - Number of minutes.

addHours

public void addHours(long hours)
Add hours.

Parameters:
hours - Number of hours.

addDays

public void addDays(long days)
Add days.

Parameters:
days - Number of days.

addWeeks

public void addWeeks(long weeks)
Add weeks.

Parameters:
weeks - Number of weeks.

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
Returns:
the duration
See Also:
Duration


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.