org.drools.common
Interface NodeMemories

All Known Implementing Classes:
ConcurrentNodeMemories

public interface NodeMemories

An interface for node memories implementation


Method Summary
 void clear()
           
 void clearNodeMemory(NodeMemory node)
           
 Memory getNodeMemory(NodeMemory node)
           
 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(NodeMemory node)

clearNodeMemory

void clearNodeMemory(NodeMemory 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:


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