Drools :: Core 6.1.0.Beta1

org.drools.core.common
Interface NodeMemories

All Known Implementing Classes:
ConcurrentNodeMemories

public interface NodeMemories

An interface for node memories implementation


Method Summary
 void clear()
           
 void clearNodeMemory(MemoryFactory node)
           
 Memory getNodeMemory(MemoryFactory node, InternalWorkingMemory wm)
           
 int length()
          Returns the number of positions in this memory
 Memory peekNodeMemory(int nodeId)
          Peeks at the content of the node memory for the given node ID.
 void setRuleBaseReference(InternalRuleBase ruleBase)
           
 

Method Detail

getNodeMemory

Memory getNodeMemory(MemoryFactory node,
                     InternalWorkingMemory wm)

clearNodeMemory

void clearNodeMemory(MemoryFactory node)

setRuleBaseReference

void setRuleBaseReference(InternalRuleBase ruleBase)

clear

void clear()

peekNodeMemory

Memory peekNodeMemory(int nodeId)
Peeks at the content of the node memory for the given node ID. This method has no side effects, so if the given memory slot for the given node ID is null, it will return null.

Parameters:
nodeId -
Returns:

length

int length()
Returns the number of positions in this memory

Returns:

Drools :: Core 6.1.0.Beta1

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