org.drools.common
Interface InternalRuleBase

All Superinterfaces:
Externalizable, RuleBase, RuleBaseEventManager, Serializable
All Known Implementing Classes:
AbstractRuleBase, ReteooRuleBase

public interface InternalRuleBase
extends RuleBase


Field Summary
 
Fields inherited from interface org.drools.RuleBase
RETEOO
 
Method Summary
 void assertObject(FactHandle handle, Object object, PropagationContext context, InternalWorkingMemory workingMemory)
          Assert a fact object.
 RuleBasePartitionId createNewPartitionId()
          Creates and allocates a new partition ID for this rulebase
 void disposeStatefulSession(StatefulSession statefulSession)
           
 void executeQueuedActions()
           
 Set<EntryPointNode> getAddedEntryNodeCache()
           
 Map getAgendaGroupRuleTotals()
           
 RuleBaseConfiguration getConfiguration()
           
 Map getGlobals()
           
 String getId()
           
 int getNodeCount()
           
 Package getPackage(String name)
           
 Map getPackagesMap()
           
 List<RuleBasePartitionId> getPartitionIds()
          Return the list of Partition IDs for this rulebase
 org.drools.definition.process.Process getProcess(String id)
           
 org.drools.definition.process.Process[] getProcesses()
           
 Set<EntryPointNode> getRemovedEntryNodeCache()
           
 Rete getRete()
           
 ReteooBuilder getReteooBuilder()
           
 org.drools.util.CompositeClassLoader getRootClassLoader()
           
 TypeDeclaration getTypeDeclaration(Class<?> clazz)
          Returns the type declaration associated to the given class
 Collection<TypeDeclaration> getTypeDeclarations()
          Returns a collection with all TypeDeclarations in this rulebase
 InternalWorkingMemory[] getWorkingMemories()
           
 boolean isEvent(Class<?> clazz)
          Returns true if clazz represents an Event class.
 FactHandleFactory newFactHandleFactory()
           
 FactHandleFactory newFactHandleFactory(int id, long counter)
           
 int nextWorkingMemoryCounter()
           
 void readLock()
          Acquires a read lock on the rulebase
 void readUnlock()
          Releases a read lock on the rulebase
 void registerAddedEntryNodeCache(EntryPointNode node)
           
 void registeRremovedEntryNodeCache(EntryPointNode node)
           
 void retractObject(FactHandle handle, PropagationContext context, ReteooWorkingMemory workingMemory)
          Retract a fact object.
 
Methods inherited from interface org.drools.RuleBase
addPackage, addPackages, getAdditionsSinceLock, getEntryPointIds, getFactType, getPackages, getRemovalsSinceLock, getStatefulSessions, lock, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatelessSession, removeFunction, removePackage, removeProcess, removeQuery, removeRule, unlock
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.drools.RuleBaseEventManager
addEventListener, getRuleBaseEventListeners, removeEventListener
 

Method Detail

getId

String getId()
Returns:
the id

nextWorkingMemoryCounter

int nextWorkingMemoryCounter()

newFactHandleFactory

FactHandleFactory newFactHandleFactory()

newFactHandleFactory

FactHandleFactory newFactHandleFactory(int id,
                                       long counter)
                                       throws IOException
Throws:
IOException

getGlobals

Map getGlobals()

getAgendaGroupRuleTotals

Map getAgendaGroupRuleTotals()

getConfiguration

RuleBaseConfiguration getConfiguration()

getPackage

Package getPackage(String name)
Specified by:
getPackage in interface RuleBase

getPackagesMap

Map getPackagesMap()

disposeStatefulSession

void disposeStatefulSession(StatefulSession statefulSession)

executeQueuedActions

void executeQueuedActions()

getReteooBuilder

ReteooBuilder getReteooBuilder()

assertObject

void assertObject(FactHandle handle,
                  Object object,
                  PropagationContext context,
                  InternalWorkingMemory workingMemory)
                  throws FactException
Assert a fact object.

Parameters:
handle - The handle.
object - The fact.
workingMemory - The working-memory.
Throws:
FactException - If an error occurs while performing the assertion.

retractObject

void retractObject(FactHandle handle,
                   PropagationContext context,
                   ReteooWorkingMemory workingMemory)
                   throws FactException
Retract a fact object.

Parameters:
handle - The handle.
workingMemory - The working-memory.
Throws:
FactException - If an error occurs while performing the retraction.

getRootClassLoader

org.drools.util.CompositeClassLoader getRootClassLoader()

getRete

Rete getRete()

getWorkingMemories

InternalWorkingMemory[] getWorkingMemories()

getProcess

org.drools.definition.process.Process getProcess(String id)

getProcesses

org.drools.definition.process.Process[] getProcesses()

isEvent

boolean isEvent(Class<?> clazz)
Returns true if clazz represents an Event class. False otherwise.

Parameters:
clazz -
Returns:

getNodeCount

int getNodeCount()

getTypeDeclaration

TypeDeclaration getTypeDeclaration(Class<?> clazz)
Returns the type declaration associated to the given class

Parameters:
clazz -
Returns:

getTypeDeclarations

Collection<TypeDeclaration> getTypeDeclarations()
Returns a collection with all TypeDeclarations in this rulebase

Returns:

createNewPartitionId

RuleBasePartitionId createNewPartitionId()
Creates and allocates a new partition ID for this rulebase

Returns:

getPartitionIds

List<RuleBasePartitionId> getPartitionIds()
Return the list of Partition IDs for this rulebase

Returns:

readLock

void readLock()
Acquires a read lock on the rulebase


readUnlock

void readUnlock()
Releases a read lock on the rulebase


registerAddedEntryNodeCache

void registerAddedEntryNodeCache(EntryPointNode node)

getAddedEntryNodeCache

Set<EntryPointNode> getAddedEntryNodeCache()

registeRremovedEntryNodeCache

void registeRremovedEntryNodeCache(EntryPointNode node)

getRemovedEntryNodeCache

Set<EntryPointNode> getRemovedEntryNodeCache()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.