public class JavaCollectionStorageHandlerNoModelMoves<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 gnu.trove.map.TObjectIntMap<H> |
head2int |
protected java.util.List<nl.tue.astar.impl.State<H,T>> |
stateList |
Constructor and Description |
---|
JavaCollectionStorageHandlerNoModelMoves(nl.tue.astar.Delegate<H,T> delegate,
gnu.trove.map.TObjectIntMap<H> head2int,
java.util.List<nl.tue.astar.impl.State<H,T>> stateList) |
Modifier and Type | Method and Description |
---|---|
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) |
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 gnu.trove.map.TObjectIntMap<H extends nl.tue.astar.Head> head2int
public T getStoredTail(T tail, long index, int modelMove, int movedEvent, int logMove)
public void storeStateForRecord(nl.tue.astar.impl.State<H,T> state, nl.tue.astar.Record newRec)
AbstractAStarThreadNoModelMoves.StorageHandler
storeStateForRecord
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
public long getIndexOf(H head)
getIndexOf
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
public nl.tue.astar.impl.State<H,T> getStoredState(nl.tue.astar.Record rec)
getStoredState
in interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>