|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.jsr94.rules.admin.RuleExecutionSetImpl
public class RuleExecutionSetImpl
The Drools implementation of the RuleExecutionSet
interface
which defines a named set of executable Rule
instances. A
RuleExecutionSet
can be executed by a rules engine via the
RuleSession
interface.
RuleExecutionSet
,
Serialized FormConstructor Summary | |
---|---|
RuleExecutionSetImpl(RuleSet ruleSet,
Map properties)
Instances of this class should be obtained from the LocalRuleExecutionSetProviderImpl . |
Method Summary | |
---|---|
String |
getDefaultObjectFilter()
Returns the default ObjectFilter class name associated with this rule execution set. |
String |
getDescription()
Get a description of this rule execution set. |
String |
getName()
Get the name of this rule execution set. |
ObjectFilter |
getObjectFilter()
Get an instance of the default filter, or null. |
Object |
getProperty(Object key)
Get a user-defined or Drools-defined property. |
List |
getRules()
Return a list of all Rule s that are part of the
RuleExecutionSet . |
WorkingMemory |
newWorkingMemory()
Returns a new WorkingMemory object. |
void |
setDefaultObjectFilter(String objectFilterClassname)
Set the default ObjectFilter class. |
void |
setProperty(Object key,
Object value)
Set a user-defined or Drools-defined property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RuleExecutionSetImpl(RuleSet ruleSet, Map properties) throws RuleIntegrationException, RuleSetIntegrationException
LocalRuleExecutionSetProviderImpl
. Each
RuleExecutionSetImpl
corresponds with an
org.drools.RuleSet
object.
ruleSet
- The RuleSet
to associate with this
RuleExecutionSet
.properties
- A Map
of user-defined and
Drools-defined properties. May be null
.
RuleIntegrationException
- if an error occurs integrating
a Rule
or RuleSet
into the RuleBase
RuleSetIntegrationException
- if an error occurs integrating
a Rule
or RuleSet
into the RuleBase
Method Detail |
---|
public ObjectFilter getObjectFilter()
public WorkingMemory newWorkingMemory()
public String getName()
getName
in interface RuleExecutionSet
public String getDescription()
getDescription
in interface RuleExecutionSet
public Object getProperty(Object key)
getProperty
in interface RuleExecutionSet
key
- the key to use to retrieve the property
public void setProperty(Object key, Object value)
setProperty
in interface RuleExecutionSet
key
- the key for the property valuevalue
- the value to associate with the keypublic void setDefaultObjectFilter(String objectFilterClassname)
ObjectFilter
class. This class is
instantiated at runtime and used to filter result objects unless
another filter is specified using the available APIs in the runtime
view of a rule engine.
Setting the class name to null removes the default
ObjectFilter
.
setDefaultObjectFilter
in interface RuleExecutionSet
objectFilterClassname
- the default ObjectFilter
classpublic String getDefaultObjectFilter()
getDefaultObjectFilter
in interface RuleExecutionSet
public List getRules()
Rule
s that are part of the
RuleExecutionSet
.
getRules
in interface RuleExecutionSet
Rule
s that are part of the
RuleExecutionSet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |