Class MemoryEfficientStorageHandlerNoModelMoves<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
- java.lang.Object
-
- org.processmining.lpm.adjustedalignments.MemoryEfficientStorageHandlerNoModelMoves<H,T>
-
- All Implemented Interfaces:
AbstractAStarThreadNoModelMoves.StorageHandler<H,T>
public class MemoryEfficientStorageHandlerNoModelMoves<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> extends java.lang.Object implements AbstractAStarThreadNoModelMoves.StorageHandler<H,T>
-
-
Field Summary
Fields Modifier and Type Field Description protected MemoryEfficientAStarAlgorithm<H,T>algorithmprotected nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,T>delegateprotected java.util.concurrent.locks.ReentrantReadWriteLocklockprotected nl.tue.storage.CompressedHashSet<nl.tue.astar.impl.State<H,T>>statespaceprotected nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>>store
-
Constructor Summary
Constructors Constructor Description MemoryEfficientStorageHandlerNoModelMoves(MemoryEfficientAStarAlgorithm<H,T> algorithm)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
algorithm
protected final MemoryEfficientAStarAlgorithm<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> algorithm
-
store
protected final nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>> store
-
statespace
protected final nl.tue.storage.CompressedHashSet<nl.tue.astar.impl.State<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>> statespace
-
delegate
protected final nl.tue.astar.impl.memefficient.StorageAwareDelegate<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail> delegate
-
lock
protected final java.util.concurrent.locks.ReentrantReadWriteLock lock
-
-
Constructor Detail
-
MemoryEfficientStorageHandlerNoModelMoves
public MemoryEfficientStorageHandlerNoModelMoves(MemoryEfficientAStarAlgorithm<H,T> algorithm)
-
-
Method Detail
-
storeStateForRecord
public void storeStateForRecord(nl.tue.astar.impl.State<H,T> state, nl.tue.astar.Record newRec) throws nl.tue.astar.AStarException
Description copied from interface:AbstractAStarThreadNoModelMoves.StorageHandlerreturn the estimate of the tail for the given head. The head is stored at the given index.- Specified by:
storeStateForRecordin interfaceAbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>- Throws:
nl.tue.astar.AStarException
-
getIndexOf
public long getIndexOf(H head) throws nl.tue.astar.AStarException
- Specified by:
getIndexOfin interfaceAbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>- Throws:
nl.tue.astar.AStarException
-
getStoredState
public nl.tue.astar.impl.State<H,T> getStoredState(nl.tue.astar.Record rec) throws nl.tue.astar.AStarException
- Specified by:
getStoredStatein interfaceAbstractAStarThreadNoModelMoves.StorageHandler<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>- Throws:
nl.tue.astar.AStarException
-
-