public class MemoryEfficientStorageHandlerNoModelMoves<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> extends java.lang.Object implements AbstractAStarThreadNoModelMoves.StorageHandler<H,T>
Modifier and Type | Field and Description |
---|---|
protected MemoryEfficientAStarAlgorithm<H,T> |
algorithm |
protected nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,T> |
delegate |
protected java.util.concurrent.locks.ReentrantReadWriteLock |
lock |
protected nl.tue.storage.CompressedHashSet<nl.tue.astar.impl.State<H,T>> |
statespace |
protected nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>> |
store |
Constructor and Description |
---|
MemoryEfficientStorageHandlerNoModelMoves(MemoryEfficientAStarAlgorithm<H,T> algorithm) |
Modifier and Type | Method and Description |
---|---|
long |
getIndexOf(H head) |
nl.tue.astar.impl.State<H,T> |
getStoredState(nl.tue.astar.Record rec) |
void |
storeStateForRecord(nl.tue.astar.impl.State<H,T> state,
nl.tue.astar.Record newRec)
return the estimate of the tail for the given head.
|
protected final MemoryEfficientAStarAlgorithm<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> algorithm
protected final nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>> store
protected final nl.tue.storage.CompressedHashSet<nl.tue.astar.impl.State<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>> statespace
protected final nl.tue.astar.impl.memefficient.StorageAwareDelegate<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> delegate
protected final java.util.concurrent.locks.ReentrantReadWriteLock lock
public MemoryEfficientStorageHandlerNoModelMoves(MemoryEfficientAStarAlgorithm<H,T> algorithm)
public void storeStateForRecord(nl.tue.astar.impl.State<H,T> state, nl.tue.astar.Record newRec) throws nl.tue.astar.AStarException
AbstractAStarThreadNoModelMoves.StorageHandler
storeStateForRecord
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
nl.tue.astar.AStarException
public long getIndexOf(H head) throws nl.tue.astar.AStarException
getIndexOf
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
nl.tue.astar.AStarException
public nl.tue.astar.impl.State<H,T> getStoredState(nl.tue.astar.Record rec) throws nl.tue.astar.AStarException
getStoredState
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
nl.tue.astar.AStarException