org.drools.reteoo
Class ReteooWorkingMemory
java.lang.Object
org.drools.common.AbstractWorkingMemory
org.drools.reteoo.ReteooWorkingMemory
- All Implemented Interfaces:
- EventSupport, InternalWorkingMemory, InternalWorkingMemoryActions, InternalWorkingMemoryEntryPoint, org.drools.event.process.ProcessEventManager, ReteooWorkingMemoryInterface, RuleBaseEventManager, org.drools.runtime.rule.WorkingMemoryEntryPoint, WorkingMemory, WorkingMemoryEventManager
- Direct Known Subclasses:
- ReteooStatefulSession
public class ReteooWorkingMemory
- extends AbstractWorkingMemory
- implements ReteooWorkingMemoryInterface
Implementation of WorkingMemory
.
Fields inherited from class org.drools.common.AbstractWorkingMemory |
__ruleBaseEventListeners, agenda, agendaEventSupport, calendars, config, dateFormats, defaultEntryPoint, discardOnLogicalOverride, entryPoints, evaluatingActionQueue, firing, globalResolver, handleFactory, id, initialFactHandle, lock, partitionManager, propagationIdCounter, ruleBase, threadPool, workingMemoryEventSupport |
Constructor Summary |
ReteooWorkingMemory()
|
ReteooWorkingMemory(int id,
InternalRuleBase ruleBase)
|
ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
FactHandleFactory handleFactory,
InternalFactHandle initialFactHandle,
long propagationContext,
SessionConfiguration config,
InternalAgenda agenda,
org.drools.runtime.Environment environment)
|
ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
SessionConfiguration config,
org.drools.runtime.Environment environment)
Construct. |
ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
SessionConfiguration config,
org.drools.runtime.Environment environment,
WorkingMemoryEventSupport workingMemoryEventSupport,
AgendaEventSupport agendaEventSupport)
|
Methods inherited from class org.drools.common.AbstractWorkingMemory |
activationFired, addEventListener, addEventListener, addEventListener, addEventListener, addLIANodePropagation, clearActivationGroup, clearAgenda, clearAgendaGroup, clearNodeMemory, clearRuleFlowGroup, createProcessInstance, dispose, endBatchExecution, endOperation, executeQueuedActions, fireAllRules, fireAllRules, fireAllRules, fireAllRules, fireUntilHalt, fireUntilHalt, getActionQueue, getActivationParameters, getActivationParameters, getAgenda, getAgendaEventListeners, getAgendaEventSupport, getCalendars, getChannels, getDateFormats, getEntryPointId, getEntryPointNode, getEntryPoints, getEnvironment, getExecutionResult, getExitPoints, getFactCount, getFactHandle, getFactHandleByIdentity, getFactHandleFactory, getGlobal, getGlobalResolver, getId, getIdleTime, getInitialFactHandle, getKnowledgeRuntime, getLastIdleTimestamp, getLock, getNextPropagationIdCounter, getNodeMemories, getNodeMemory, getObject, getObjectMarshallingStrategyStore, getObjectStore, getObjectTypeConfigurationRegistry, getPartitionTaskManager, getProcessEventListeners, getProcessInstance, getProcessInstances, getProcessRuntime, getPropagationIdCounter, getRuleBase, getRuleBaseEventListeners, getSessionClock, getSessionConfiguration, getTimerService, getTimeToNextJob, getTotalFactCount, getTruthMaintenanceSystem, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, getWorkingMemoryEventListeners, getWorkingMemoryEventSupport, getWorkItemManager, halt, insert, insert, insert, insert, insertLogical, insertLogical, isPartitionManagersActive, isSequential, iterateFactHandles, iterateFactHandles, iterateNonDefaultEntryPointObjectsToList, iterateObjects, iterateObjects, iterateObjectsToList, prepareToFireActivation, queueWorkingMemoryAction, registerChannel, registerExitPoint, removeEventListener, removeEventListener, removeEventListener, removeEventListener, reset, reset, retract, retract, setAgendaEventSupport, setAsyncExceptionHandler, setEndOperationListener, setFocus, setGlobal, setGlobalResolver, setId, setInitialFactHandle, setKnowledgeRuntime, setWorkingMemoryEventSupport, startBatchExecution, startOperation, startPartitionManagers, startProcess, startProcess, startProcessInstance, stopPartitionManagers, unregisterChannel, unregisterExitPoint, update, update, update, updateEntryPointsCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.drools.reteoo.ReteooWorkingMemoryInterface |
createProcessInstance, fireUntilHalt, fireUntilHalt, getActionQueue, getLastIdleTimestamp, getWorkingMemoryEntryPoints, registerChannel, registerExitPoint, setEndOperationListener, startProcessInstance, unregisterChannel, unregisterExitPoint |
Methods inherited from interface org.drools.common.InternalWorkingMemory |
activationFired, addLIANodePropagation, clearNodeMemory, endBatchExecution, endOperation, executeQueuedActions, getCalendars, getChannels, getDateFormats, getEntryPointNode, getEntryPoints, getExecutionResult, getExitPoints, getFactHandleByIdentity, getFactHandleFactory, getId, getIdleTime, getInitialFactHandle, getKnowledgeRuntime, getLock, getNextPropagationIdCounter, getNodeMemories, getNodeMemory, getObjectStore, getObjectTypeConfigurationRegistry, getPartitionTaskManager, getProcessRuntime, getSessionConfiguration, getTimerService, getTimeToNextJob, getTotalFactCount, getTruthMaintenanceSystem, insert, isSequential, prepareToFireActivation, queueWorkingMemoryAction, setAgendaEventSupport, setId, setKnowledgeRuntime, setWorkingMemoryEventSupport, startBatchExecution, startOperation, updateEntryPointsCache |
Methods inherited from interface org.drools.WorkingMemory |
clearActivationGroup, clearAgenda, clearAgendaGroup, clearRuleFlowGroup, fireAllRules, fireAllRules, fireAllRules, fireAllRules, getAgenda, getEnvironment, getFactHandle, getGlobal, getGlobalResolver, getObject, getProcessInstance, getProcessInstances, getRuleBase, getSessionClock, getWorkingMemoryEntryPoint, getWorkItemManager, halt, iterateFactHandles, iterateFactHandles, iterateObjects, iterateObjects, setAsyncExceptionHandler, setFocus, setGlobal, setGlobalResolver, startProcess, startProcess |
Methods inherited from interface org.drools.runtime.rule.WorkingMemoryEntryPoint |
getEntryPointId, getFactCount |
Methods inherited from interface org.drools.event.process.ProcessEventManager |
addEventListener, getProcessEventListeners, removeEventListener |
ReteooWorkingMemory
public ReteooWorkingMemory()
ReteooWorkingMemory
public ReteooWorkingMemory(int id,
InternalRuleBase ruleBase)
ReteooWorkingMemory
public ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
SessionConfiguration config,
org.drools.runtime.Environment environment)
- Construct.
- Parameters:
ruleBase
- The backing rule-base.
ReteooWorkingMemory
public ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
SessionConfiguration config,
org.drools.runtime.Environment environment,
WorkingMemoryEventSupport workingMemoryEventSupport,
AgendaEventSupport agendaEventSupport)
ReteooWorkingMemory
public ReteooWorkingMemory(int id,
InternalRuleBase ruleBase,
FactHandleFactory handleFactory,
InternalFactHandle initialFactHandle,
long propagationContext,
SessionConfiguration config,
InternalAgenda agenda,
org.drools.runtime.Environment environment)
getQueryResults
public QueryResults getQueryResults(String query)
- Specified by:
getQueryResults
in class AbstractWorkingMemory
getQueryResults
public QueryResults getQueryResults(String queryName,
Object[] arguments)
- Description copied from interface:
WorkingMemory
- Retrieve the QueryResults of the specified query and arguments
- Specified by:
getQueryResults
in interface WorkingMemory
- Parameters:
queryName
- The name of the query.arguments
- The arguments used for the query
- Returns:
- The QueryResults of the specified query.
If no results match the query it is empty.
openLiveQuery
public org.drools.runtime.rule.LiveQuery openLiveQuery(String query,
Object[] arguments,
org.drools.runtime.rule.ViewChangedEventListener listener)
- Specified by:
openLiveQuery
in interface ReteooWorkingMemoryInterface
closeLiveQuery
public void closeLiveQuery(InternalFactHandle factHandle)
getEntryPoint
public EntryPoint getEntryPoint()
- Specified by:
getEntryPoint
in interface InternalWorkingMemory
- Specified by:
getEntryPoint
in interface InternalWorkingMemoryEntryPoint
getInternalWorkingMemory
public InternalWorkingMemory getInternalWorkingMemory()
- Specified by:
getInternalWorkingMemory
in interface InternalWorkingMemoryEntryPoint
getFactHandles
public <T extends org.drools.runtime.rule.FactHandle> Collection<T> getFactHandles()
- Specified by:
getFactHandles
in interface org.drools.runtime.rule.WorkingMemoryEntryPoint
getFactHandles
public <T extends org.drools.runtime.rule.FactHandle> Collection<T> getFactHandles(org.drools.runtime.ObjectFilter filter)
- Specified by:
getFactHandles
in interface org.drools.runtime.rule.WorkingMemoryEntryPoint
getObjects
public Collection<Object> getObjects()
- Specified by:
getObjects
in interface org.drools.runtime.rule.WorkingMemoryEntryPoint
getObjects
public Collection<Object> getObjects(org.drools.runtime.ObjectFilter filter)
- Specified by:
getObjects
in interface org.drools.runtime.rule.WorkingMemoryEntryPoint
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.