|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.engine.IlrPropertyFilter
public class IlrPropertyFilter
This class implements an agenda filter. The filter is based on the value of a rule property. Using this filter, the rule instances which have been assigned the specified value will be fired.
Constructor Summary | |
---|---|
IlrPropertyFilter(String propertyKey,
Object propertyValue)
Creates an IlrPropertyFilter . |
Method Summary | |
---|---|
boolean |
toFire(IlrRuleInstance instance)
This method tests whether a rule instance will be fired based on its specified property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrPropertyFilter(String propertyKey, Object propertyValue)
Creates an IlrPropertyFilter
. This object will fire the rule instances
whose specified property has the given value.
propertyKey
- The property's name.propertyValue
- The property's value.Method Detail |
---|
public boolean toFire(IlrRuleInstance instance)
This method tests whether a rule instance will be fired based on its specified property value.
The filter tests whether the specified property of the rule has a given
value. It uses the equals
method to test the
equality of the values. A rule instance whose rule has not defined
the property will not be fired.
toFire
in interface IlrAgendaFilter
instance
- The rule instance to be filtered.
true
if the rule defines the property and the property
is assigned the specified value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |