|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.RuleBaseBuilder
public class RuleBaseBuilder
Factory for constructing a RuleBase
.
The RuleBaseBuilder
integrates the added RuleSet
s into the Rete network. A
RuleBaseBuilder
may be re-used after building a RuleBase
but it may not be used to
build multiple RuleBase
s simultaneously by multiple threads.
RuleBaseBuilder.build()
,
RuleSet
,
RuleBase
Constructor Summary | |
---|---|
RuleBaseBuilder()
Construct a RuleBaseBuilder with no parameters. |
|
RuleBaseBuilder(RuleBaseContext ruleBaseContext)
Construct a RuleBaseBuilder specify a RuleBaseContext |
Method Summary | |
---|---|
void |
addRuleSet(RuleSet ruleSet)
Add a RuleSet . |
RuleBase |
build()
Build the RuleBase . |
void |
setConflictResolver(ConflictResolver conflictResolver)
By default a RuleBase will use the DefaultConflictResolver This enables a custom ConflictResolver
to be specified for the RuleBase s being built. |
void |
setFactHandleFactory(FactHandleFactory factHandleFactory)
Drools currently supports two FactHandleFactories . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleBaseBuilder()
RuleBaseBuilder
with no parameters.
public RuleBaseBuilder(RuleBaseContext ruleBaseContext)
RuleBaseBuilder
specify a RuleBaseContext
RuleBaseContext
Method Detail |
---|
public void addRuleSet(RuleSet ruleSet) throws RuleSetIntegrationException, RuleIntegrationException
RuleSet
.
RuleIntegrationException
- If an error occurs while attempting to integrate the rules into the Rete network..
RuleSetIntegrationException
ruleSet
- The rule-set to add.RuleSet
public RuleBase build()
RuleBase
.
Builds the RuleBase
based upon all previously added RuleSet
s.
RuleBaseBuilder.addRuleSet(org.drools.rule.RuleSet)
public void setFactHandleFactory(FactHandleFactory factHandleFactory)
FactHandleFactories
. The default and JSR94 implementation This sets
the factory used to generate FactHandle
s
factHandleFactory
- FactHandle
public void setConflictResolver(ConflictResolver conflictResolver)
DefaultConflictResolver
This enables a custom ConflictResolver
to be specified for the RuleBase
s being built.
conflictResolver
- org.drools.ConflictResolver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |