org.drools
Interface RuleBase

All Superinterfaces:
java.io.Serializable

public interface RuleBase
extends java.io.Serializable

Active collection of Rules.

From a RuleBase many WorkingMemory rule sessions may be instantiated. Additionally, it may be inspected to determine which RuleSet s it contains.

See Also:
WorkingMemory
 

Method Summary
 ConflictResolver getConflictResolver()
          Retrieve the ConflictResolver.
 FactHandleFactory getFactHandleFactory()
          Retrieve the FactHandleFactory.
 RuleBaseContext getRuleBaseContext()
          Each rulebase provides a shared Context for storing information.
 java.util.List getRuleSets()
           
 WorkingMemory newWorkingMemory()
          Create a new WorkingMemory session for this RuleBase.
 

Method Detail

newWorkingMemory

WorkingMemory newWorkingMemory()
Create a new WorkingMemory session for this RuleBase.

The created WorkingMemory uses the default conflict resolution strategy.

Returns:
A newly initialized WorkingMemory.
See Also:
WorkingMemory, DefaultConflictResolver

getConflictResolver

ConflictResolver getConflictResolver()
Retrieve the ConflictResolver.

Returns:
The conflict resolution strategy.

getFactHandleFactory

FactHandleFactory getFactHandleFactory()
Retrieve the FactHandleFactory.

Returns:
The fact handle factory.

getRuleSets

java.util.List getRuleSets()
Returns:
a List of RuleSets

getRuleBaseContext

RuleBaseContext getRuleBaseContext()
Each rulebase provides a shared Context for storing information. This information is normally used in the building of a RuleBase so that it can use objects common to the nodes being build.

Returns:
The RuleBaseContext