Package nl.tue.astar.impl
Interface AbstractAStarThread.StorageHandler<H extends Head,T extends Tail>
-
- Type Parameters:
H-T-
- All Known Implementing Classes:
JavaCollectionStorageHandler,MemoryEfficientStorageHandler
- Enclosing class:
- AbstractAStarThread<H extends Head,T extends Tail>
public static interface AbstractAStarThread.StorageHandler<H extends Head,T extends 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 intgetEstimate(H head, long index)return the estimate of the tail for the given head.longgetIndexOf(H head)State<H,T>getStoredState(Record rec)<TT extends FastLowerBoundTail>
voidreComputeFastLowerboundTail(Record rec, TT tail, H head, int storedEstimate)implementations may assume that TT == TvoidstoreStateForRecord(State<H,T> state, Record newRec)
-
-
-
Method Detail
-
getEstimate
int getEstimate(H head, long index) throws AStarException
return the estimate of the tail for the given head. The head is stored at the given index.- Parameters:
head-index-- Returns:
- Throws:
AStarException
-
storeStateForRecord
void storeStateForRecord(State<H,T> state, Record newRec) throws AStarException
- Throws:
AStarException
-
getIndexOf
long getIndexOf(H head) throws AStarException
- Throws:
AStarException
-
getStoredState
State<H,T> getStoredState(Record rec) throws AStarException
- Throws:
AStarException
-
reComputeFastLowerboundTail
<TT extends FastLowerBoundTail> void reComputeFastLowerboundTail(Record rec, TT tail, H head, int storedEstimate) throws AStarException
implementations may assume that TT == T- Type Parameters:
TT-- Parameters:
rec-tail-head-storedEstimate-- Throws:
AStarException
-
-