Package nl.tue.astar.impl
Class JavaCollectionStorageHandler<H extends Head,T extends Tail>
- java.lang.Object
-
- nl.tue.astar.impl.JavaCollectionStorageHandler<H,T>
-
- All Implemented Interfaces:
AbstractAStarThread.StorageHandler<H,T>
public class JavaCollectionStorageHandler<H extends Head,T extends Tail> extends java.lang.Object implements AbstractAStarThread.StorageHandler<H,T>
-
-
Method Summary
All Methods Instance Methods Concrete 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)TgetStoredTail(T tail, long index, int modelMove, int movedEvent, int logMove)<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
-
getStoredTail
public T getStoredTail(T tail, long index, int modelMove, int movedEvent, int logMove)
-
storeStateForRecord
public void storeStateForRecord(State<H,T> state, Record newRec)
- Specified by:
storeStateForRecordin interfaceAbstractAStarThread.StorageHandler<H extends Head,T extends Tail>
-
getIndexOf
public long getIndexOf(H head)
- Specified by:
getIndexOfin interfaceAbstractAStarThread.StorageHandler<H extends Head,T extends Tail>
-
getStoredState
public State<H,T> getStoredState(Record rec)
- Specified by:
getStoredStatein interfaceAbstractAStarThread.StorageHandler<H extends Head,T extends Tail>
-
getEstimate
public int getEstimate(H head, long index)
Description copied from interface:AbstractAStarThread.StorageHandlerreturn the estimate of the tail for the given head. The head is stored at the given index.- Specified by:
getEstimatein interfaceAbstractAStarThread.StorageHandler<H extends Head,T extends Tail>- Returns:
-
reComputeFastLowerboundTail
public <TT extends FastLowerBoundTail> void reComputeFastLowerboundTail(Record rec, TT tail, H head, int storedEstimate) throws AStarException
Description copied from interface:AbstractAStarThread.StorageHandlerimplementations may assume that TT == T- Specified by:
reComputeFastLowerboundTailin interfaceAbstractAStarThread.StorageHandler<H extends Head,T extends Tail>- Throws:
AStarException
-
-