|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.RuleBase
Collection of Rule
s.
Rule
,
RuleSet
Constructor Summary | |
RuleBase()
Construct. |
Method Summary | |
void |
addRule(Rule rule)
Add a Rule to this RuleBase . |
void |
addRuleSet(RuleSet ruleSet)
Add a RuleSet of Rules to this RuleBase . |
TransactionalWorkingMemory |
createTransactionalWorkingMemory()
Create a TransactionalWorkingMemory session for
this RuleBase . |
WorkingMemory |
createWorkingMemory()
Create a WorkingMemory session for
this RuleBase . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleBase()
Method Detail |
public void addRuleSet(RuleSet ruleSet) throws RuleIntegrationException
RuleSet
of Rules
to this RuleBase
.
A RuleSet
may be added to multiple RuleBases
.
Any changes to a RuleSet
or its component Rule
once it has been added are ignored.
ruleSet
- The RuleSet
to add.
RuleIntegrationException
- If a member rule does not allow for
complete and correct integration into the underlying Rete network.public void addRule(Rule rule) throws RuleIntegrationException
Rule
to this RuleBase
.
A Rule
may be added to multiple RuleBases
.
Any changes to a Rule
once it has been added are ignored.
rule
- The rule to add.
RuleIntegrationException
- If the rule does not allow for
complete and correct integration into the underlying Rete
network.public WorkingMemory createWorkingMemory()
WorkingMemory
session for
this RuleBase
.
WorkingMemory
.WorkingMemory
public TransactionalWorkingMemory createTransactionalWorkingMemory()
TransactionalWorkingMemory
session for
this RuleBase
.
TransactionalWorkingMemory
.TransactionalWorkingMemory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |