| Modifier and Type | Field and Description |
|---|---|
protected TupleMask |
mask
The mask used to index the matchings
|
protected java.util.Map<Tuple,java.lang.Object> |
matchings
Maps a signature tuple to the bucket of tuples with the given signature.
|
protected Node |
owner
The node owning this memory.
|
| Constructor and Description |
|---|
MaskedTupleMemory(TupleMask mask)
Deprecated.
|
MaskedTupleMemory(TupleMask mask,
Node owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Tuple ps)
Adds a pattern occurence to the memory
|
boolean |
add(Tuple ps,
Tuple signature)
Adds a pattern occurence to the memory, with given signature
|
void |
clear()
Clear all partial matchings stored in memory
|
java.util.Collection<Tuple> |
get(Tuple signature)
Retrieves entries that have the specified signature
|
int |
getKeysetSize() |
Node |
getOwner()
The node owning this memory.
|
java.util.Collection<Tuple> |
getSignatures()
Retrieves a read-only collection of exactly those signatures for which at least one tuple is stored
|
int |
getTotalSize() |
java.util.Iterator<Tuple> |
iterator() |
boolean |
remove(Tuple ps)
Removes a pattern occurence from the memory
|
boolean |
remove(Tuple ps,
Tuple signature)
Removes a pattern occurence from the memory, with given signature
|
java.lang.String |
toString() |
protected java.util.Map<Tuple,java.lang.Object> matchings
Invariant: Value is either
Tuple if there is only that one tuple in the bucket, or CollectionsFactory.MarkedSet if there are 2 or more tuples in the in the bucket.protected TupleMask mask
protected Node owner
@Deprecated public MaskedTupleMemory(TupleMask mask)
MaskedTupleMemory(TupleMask, Node)mask - The mask used to index the matchingspublic boolean add(Tuple ps)
ps - public boolean add(Tuple ps, Tuple signature)
ps - signature - public boolean remove(Tuple ps)
public boolean remove(Tuple ps, Tuple signature)
public java.util.Collection<Tuple> get(Tuple signature)
public void clear()
Clearablepublic java.util.Collection<Tuple> getSignatures()
public java.util.Iterator<Tuple> iterator()
iterator in interface java.lang.Iterable<Tuple>public java.lang.String toString()
toString in class java.lang.Objectpublic int getTotalSize()
public int getKeysetSize()
public Node getOwner()