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 RuleSets it contains.

Version:
$Id: RuleBase.java,v 1.26 2003/12/02 23:12:40 bob Exp $
Author:
bob mcwhirter
See Also:
WorkingMemory

Method Summary
 ConflictResolver getConflictResolver()
          Retrieve the ConflictResolver.
 RuleSet[] getRuleSets()
          Retrieve the contained RuleSets.
 WorkingMemory newWorkingMemory()
          Create a new WorkingMemory session for this RuleBase.
 

Method Detail

newWorkingMemory

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

The created WorkingMemory uses only a simple salience-based conflict resolution strategy.

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

getRuleSets

public RuleSet[] getRuleSets()
Retrieve the contained RuleSets.

Returns:
The rule sets.

getConflictResolver

public ConflictResolver getConflictResolver()
Retrieve the ConflictResolver.

Returns:
The conflict resolution strategy.