org.drools.reteoo.beta
Class BetaMemoryFactory

java.lang.Object
  extended byorg.drools.reteoo.beta.BetaMemoryFactory

public class BetaMemoryFactory
extends java.lang.Object

MemoryFactory A factory for Beta memories, both left and right

 

Constructor Summary
protected BetaMemoryFactory()
           
 
Method Summary
static BetaLeftMemory newLeftMemory(RuleBaseConfiguration config, BetaNodeBinder binder)
          Creates and returns a new BetaLeftMemory instance.
static BetaRightMemory newRightMemory(RuleBaseConfiguration config, BetaNodeBinder binder)
          Creates and returns a new BetaRightMemory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BetaMemoryFactory

protected BetaMemoryFactory()
Method Detail

newLeftMemory

public static BetaLeftMemory newLeftMemory(RuleBaseConfiguration config,
                                           BetaNodeBinder binder)
Creates and returns a new BetaLeftMemory instance. If indexing is enabled, the returned memory will be indexed according to the constraints in the given binder.

Parameters:
binder - the binder whose constraints needs to be indexed
Returns:
the newly created BetaLeftMemory

newRightMemory

public static BetaRightMemory newRightMemory(RuleBaseConfiguration config,
                                             BetaNodeBinder binder)
Creates and returns a new BetaRightMemory instance. If indexing is enabled, the returned memory will be indexed according to the constraints in the given binder.

Parameters:
binder - the binder whose constraints needs to be indexed
Returns:
the newly created BetaRightMemory