org.drools.reteoo
Interface Rete

All Known Implementing Classes:
ReteImpl

public interface Rete

A Rete-OO network.

Author:
bob mcwhirter

Method Summary
 void assertObject(java.lang.Object object, WorkingMemory workingMemory)
          Assert a new fact object into this RuleBase and the specified WorkingMemory.
 void modifyObject(java.lang.Object object, WorkingMemory workingMemory)
          Modify a fact object in this RuleBase and the specified WorkingMemory.
 void retractObject(java.lang.Object object, WorkingMemory workingMemory)
          Retract a fact object from this RuleBase and the specified WorkingMemory.
 

Method Detail

assertObject

public void assertObject(java.lang.Object object,
                         WorkingMemory workingMemory)
                  throws AssertionException
Assert a new fact object into this RuleBase and the specified WorkingMemory.
Parameters:
object - The object to assert.
workingMemory - The working memory session.
Throws:
AssertionException - if an error occurs during assertion.

retractObject

public void retractObject(java.lang.Object object,
                          WorkingMemory workingMemory)
                   throws RetractionException
Retract a fact object from this RuleBase and the specified WorkingMemory.
Parameters:
object - The object to retract.
workingMemory - The working memory session.
Throws:
RetractionException - if an error occurs during retraction.

modifyObject

public void modifyObject(java.lang.Object object,
                         WorkingMemory workingMemory)
                  throws FactException
Modify a fact object in this RuleBase and the specified WorkingMemory. With the exception of time-based nodes, modification of a fact object is semantically equivelent to retracting and re-asserting it.
Parameters:
object - The object to modify.
workingMemory - The working memory session.
Throws:
FactException - if an error occurs during modification.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.