public final class JavaCollectionStorageHandlerConcurrent<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
extends java.lang.Object
implements nl.tue.astar.impl.AbstractAStarThread.StorageHandler<H,T>
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.ConcurrentMap<H,java.lang.Integer> |
keyMap |
protected java.util.concurrent.ConcurrentMap<java.lang.Integer,nl.tue.astar.impl.State<H,T>> |
reverseMap |
Constructor and Description |
---|
JavaCollectionStorageHandlerConcurrent(nl.tue.astar.Delegate<H,T> delegate) |
Modifier and Type | Method and Description |
---|---|
int |
getEstimate(H head,
long index)
return the estimate of the tail for the given head.
|
long |
getIndexOf(H head) |
nl.tue.astar.impl.State<H,T> |
getStoredState(nl.tue.astar.Record rec) |
T |
getStoredTail(T tail,
long index,
int modelMove,
int movedEvent,
int logMove) |
<TT extends nl.tue.astar.FastLowerBoundTail> |
reComputeFastLowerboundTail(nl.tue.astar.Record rec,
TT tail,
H head,
int storedEstimate)
implementations may assume that TT == T
|
void |
storeStateForRecord(nl.tue.astar.impl.State<H,T> val,
nl.tue.astar.Record newRec) |
protected final java.util.concurrent.ConcurrentMap<H extends nl.tue.astar.Head,java.lang.Integer> keyMap
public T getStoredTail(T tail, long index, int modelMove, int movedEvent, int logMove)
public void storeStateForRecord(nl.tue.astar.impl.State<H,T> val, nl.tue.astar.Record newRec)
public long getIndexOf(H head)
public int getEstimate(H head, long index)
nl.tue.astar.impl.AbstractAStarThread.StorageHandler
public <TT extends nl.tue.astar.FastLowerBoundTail> void reComputeFastLowerboundTail(nl.tue.astar.Record rec, TT tail, H head, int storedEstimate) throws nl.tue.astar.AStarException
nl.tue.astar.impl.AbstractAStarThread.StorageHandler