Interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
-
- Type Parameters:
H-T-
- All Known Implementing Classes:
JavaCollectionStorageHandlerNoModelMoves,MemoryEfficientStorageHandlerNoModelMoves
- Enclosing class:
- AbstractAStarThreadNoModelMoves<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
public static interface AbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>The storageHandler handles the storing and retrieving of elements from the statespace searched by the AStar algorithm- Author:
- bfvdonge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetIndexOf(H head)nl.tue.astar.impl.State<H,T>getStoredState(nl.tue.astar.Record rec)voidstoreStateForRecord(nl.tue.astar.impl.State<H,T> state, nl.tue.astar.Record newRec)return the estimate of the tail for the given head.
-
-
-
Method Detail
-
storeStateForRecord
void storeStateForRecord(nl.tue.astar.impl.State<H,T> state, nl.tue.astar.Record newRec) throws nl.tue.astar.AStarException
return the estimate of the tail for the given head. The head is stored at the given index.- Parameters:
head-index-- Throws:
nl.tue.astar.AStarException
-
getIndexOf
long getIndexOf(H head) throws nl.tue.astar.AStarException
- Throws:
nl.tue.astar.AStarException
-
-