org.drools.semantics.base
Class BaseDurationFactory
java.lang.Object
org.drools.semantics.base.BaseDurationFactory
- All Implemented Interfaces:
- DurationFactory
public class BaseDurationFactory
- extends Object
- implements DurationFactory
An implementation of the DurationFactory
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDurationFactory
public BaseDurationFactory()
newDuration
public Duration newDuration(Rule rule,
RuleBaseContext context,
Configuration config)
- Returns a new
Duration
object configured
using the given Configuration
.
- Specified by:
newDuration
in interface DurationFactory
- Parameters:
config
- a Configuration
object containing "days",
"hours", "minutes", and/or "seconds" attributes. All attributes
are optional and the given Configuration
object
may be null
.
- Returns:
- a new
Duration
object.
Copyright © 2001-2005 The Codehaus. All Rights Reserved.