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.BetaMemory
BetaMemory.IndexedConstraintMemory
-
-
Method Summary
All 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.BetaMemory
addObject, addResultTuple, addTuple, getIndexedMemory, getObjects, getResultMemory, getTuples, removeObject, removeResultTuple, removeTuple
-
-
-
-
Constructor Detail
-
NotMemory
public NotMemory(IOAVState state)
Create a new not memory.
-
-
Method Detail
-
addMapping
public 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.
-
removeMapping
public 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.
-
removeMappings
public void removeMappings(Tuple key)
Remove all mappings of the tuple from memory
-
getMappings
public java.util.Set getMappings(Tuple key)
Get the mappings for a given key.
-
size
public int size()
Get the size of the memory.- Overrides:
sizein classBetaMemory- Returns:
- The size.
-
setDelay
public void setDelay(boolean delay)
Set the delay flag.
-
isDelay
public boolean isDelay()
Get the delay flag.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classBetaMemory- Returns:
- The string representation.
-
-