Class NotMemory
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.BetaMemory
- 
- jadex.rules.rulesystem.rete.nodes.NotMemory
 
 
- 
 public class NotMemory extends BetaMemory Node memory for not nodes.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.rules.rulesystem.rete.nodes.BetaMemoryBetaMemory.IndexedConstraintMemory
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMapping(IOAVState state, Tuple key, java.lang.Object value)Add a mapping for the key to the memory.java.util.SetgetMappings(Tuple key)Get the mappings for a given key.booleanisDelay()Get the delay flag.booleanremoveMapping(Tuple key, java.lang.Object value)Remove a mapping for the key from the memory.voidremoveMappings(Tuple key)Remove all mappings of the tuple from memoryvoidsetDelay(boolean delay)Set the delay flag.intsize()Get the size of the memory.java.lang.StringtoString()Get the string representation.- 
Methods inherited from class jadex.rules.rulesystem.rete.nodes.BetaMemoryaddObject, addResultTuple, addTuple, getIndexedMemory, getObjects, getResultMemory, getTuples, removeObject, removeResultTuple, removeTuple
 
- 
 
- 
- 
- 
Constructor Detail- 
NotMemorypublic NotMemory(IOAVState state) Create a new not memory.
 
- 
 - 
Method Detail- 
addMappingpublic void addMapping(IOAVState state, Tuple key, java.lang.Object value) Add a mapping for the key to the memory. Multiples mappings for the same key will be stored in a set.
 - 
removeMappingpublic boolean removeMapping(Tuple key, java.lang.Object value) Remove a mapping for the key from the memory. The value will be stored in a set.
 - 
removeMappingspublic void removeMappings(Tuple key) Remove all mappings of the tuple from memory
 - 
getMappingspublic java.util.Set getMappings(Tuple key) Get the mappings for a given key.
 - 
sizepublic int size() Get the size of the memory.- Overrides:
- sizein class- BetaMemory
- Returns:
- The size.
 
 - 
setDelaypublic void setDelay(boolean delay) Set the delay flag.
 - 
isDelaypublic boolean isDelay() Get the delay flag.
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- BetaMemory
- Returns:
- The string representation.
 
 
- 
 
-