org.drools.common
Interface InternalWorkingMemory

All Superinterfaces:
RuleBaseEventManager, java.io.Serializable, WorkingMemory, WorkingMemoryEventManager
All Known Subinterfaces:
InternalWorkingMemoryActions
All Known Implementing Classes:
AbstractWorkingMemory, ReteooStatefulSession, ReteooWorkingMemory

public interface InternalWorkingMemory
extends WorkingMemory


Method Summary
 void addLIANodePropagation(LIANodePropagation liaNodePropagation)
           
 void clearNodeMemory(NodeMemory node)
           
 void executeQueuedActions()
           
 ObjectHashMap getAssertMap()
           
 ExecutorService getExecutorService()
           
 FactHandle getFactHandleByIdentity(java.lang.Object object)
          Looks for the fact handle associated to the given object by looking up the object IDENTITY (==), even if rule base is configured to AssertBehavior.EQUALITY.
 FactHandleFactory getFactHandleFactory()
           
 ObjectHashMap getFactHandleMap()
           
 long getId()
           
 Lock getLock()
           
 long getNextPropagationIdCounter()
           
 java.lang.Object getNodeMemory(NodeMemory node)
           
 TruthMaintenanceSystem getTruthMaintenanceSystem()
           
 boolean isSequential()
           
 void queueWorkingMemoryAction(WorkingMemoryAction action)
           
 void removeLogicalDependencies(Activation activation, PropagationContext context, Rule rule)
           
 void retract(FactHandle factHandle, boolean removeLogical, boolean updateEqualsMap, Rule rule, Activation activation)
           
 void setAgendaEventSupport(AgendaEventSupport agendaEventSupport)
           
 void setExecutorService(ExecutorService executor)
           
 void setId(long id)
           
 void setRuleBase(InternalRuleBase ruleBase)
           
 void setRuleFlowEventSupport(RuleFlowEventSupport ruleFlowEventSupport)
           
 void setWorkingMemoryEventSupport(WorkingMemoryEventSupport workingMemoryEventSupport)
           
 
Methods inherited from interface org.drools.WorkingMemory
clearActivationGroup, clearAgenda, clearAgendaGroup, clearRuleFlowGroup, fireAllRules, fireAllRules, fireAllRules, fireAllRules, getAgenda, getFactHandle, getFocus, getGlobal, getGlobalResolver, getObject, getQueryResults, getQueryResults, getRuleBase, halt, insert, insert, iterateFactHandles, iterateFactHandles, iterateObjects, iterateObjects, modifyInsert, modifyRetract, retract, setAsyncExceptionHandler, setFocus, setFocus, setGlobal, setGlobalResolver, startProcess, update
 
Methods inherited from interface org.drools.WorkingMemoryEventManager
addEventListener, addEventListener, addEventListener, getAgendaEventListeners, getRuleFlowEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener, removeEventListener
 
Methods inherited from interface org.drools.RuleBaseEventManager
addEventListener, getRuleBaseEventListeners, removeEventListener
 

Method Detail

getId

long getId()

setId

void setId(long id)

setRuleBase

void setRuleBase(InternalRuleBase ruleBase)

setWorkingMemoryEventSupport

void setWorkingMemoryEventSupport(WorkingMemoryEventSupport workingMemoryEventSupport)

getAssertMap

ObjectHashMap getAssertMap()

setAgendaEventSupport

void setAgendaEventSupport(AgendaEventSupport agendaEventSupport)

setRuleFlowEventSupport

void setRuleFlowEventSupport(RuleFlowEventSupport ruleFlowEventSupport)

getNodeMemory

java.lang.Object getNodeMemory(NodeMemory node)

clearNodeMemory

void clearNodeMemory(NodeMemory node)

getNextPropagationIdCounter

long getNextPropagationIdCounter()

getFactHandleMap

ObjectHashMap getFactHandleMap()

getTruthMaintenanceSystem

TruthMaintenanceSystem getTruthMaintenanceSystem()

executeQueuedActions

void executeQueuedActions()

queueWorkingMemoryAction

void queueWorkingMemoryAction(WorkingMemoryAction action)

getFactHandleFactory

FactHandleFactory getFactHandleFactory()

getFactHandleByIdentity

FactHandle getFactHandleByIdentity(java.lang.Object object)
Looks for the fact handle associated to the given object by looking up the object IDENTITY (==), even if rule base is configured to AssertBehavior.EQUALITY.

Parameters:
object -
Returns:
null if fact handle not found

removeLogicalDependencies

void removeLogicalDependencies(Activation activation,
                               PropagationContext context,
                               Rule rule)
                               throws FactException
Throws:
FactException

retract

void retract(FactHandle factHandle,
             boolean removeLogical,
             boolean updateEqualsMap,
             Rule rule,
             Activation activation)
             throws FactException
Throws:
FactException

getLock

Lock getLock()

isSequential

boolean isSequential()

addLIANodePropagation

void addLIANodePropagation(LIANodePropagation liaNodePropagation)

getExecutorService

ExecutorService getExecutorService()

setExecutorService

void setExecutorService(ExecutorService executor)