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 void
addMapping(IOAVState state, Tuple key, java.lang.Object value)
Add a mapping for the key to the memory.java.util.Set
getMappings(Tuple key)
Get the mappings for a given key.boolean
isDelay()
Get the delay flag.boolean
removeMapping(Tuple key, java.lang.Object value)
Remove a mapping for the key from the memory.void
removeMappings(Tuple key)
Remove all mappings of the tuple from memoryvoid
setDelay(boolean delay)
Set the delay flag.int
size()
Get the size of the memory.java.lang.String
toString()
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:
size
in 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:
toString
in classBetaMemory
- Returns:
- The string representation.
-
-