Class ReteMemory
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.ReteMemory
 
- 
 public class ReteMemory extends java.lang.ObjectThe rete memory for all nodes.
- 
- 
Constructor SummaryConstructors Constructor Description ReteMemory(IOAVState state)Create a new rete memory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetNodeMemory(INode node)Get the memory for a node.intgetTotalMemorySize()Get the total memory sizeTuplegetTuple(IOAVState state, Tuple left, java.lang.Object right)Get a tuple.booleanhasNodeMemory(INode node)Test if there is a memory for a node.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
memoryprotected java.util.Map memory The memory.
 - 
stateprotected IOAVState state The state.
 
- 
 - 
Constructor Detail- 
ReteMemorypublic ReteMemory(IOAVState state) Create a new rete memory.
 
- 
 - 
Method Detail- 
hasNodeMemorypublic boolean hasNodeMemory(INode node) Test if there is a memory for a node.- Parameters:
- node- The node.
- Returns:
- True, if there is a memory.
 
 - 
getNodeMemorypublic java.lang.Object getNodeMemory(INode node) Get the memory for a node.- Parameters:
- node- The node.
- Returns:
- The memory.
 
 - 
getTuplepublic Tuple getTuple(IOAVState state, Tuple left, java.lang.Object right) Get a tuple. Returns an existing tuple from the cache, if present. Otherwise a new one is created.
 - 
getTotalMemorySizepublic int getTotalMemorySize() Get the total memory size- Returns:
- The memory size.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-