public class StateCompressor<H extends nl.tue.astar.Head,T extends nl.tue.astar.Tail>
extends java.lang.Object
implements nl.tue.storage.Inflater<nl.tue.astar.impl.State<H,T>>, nl.tue.storage.Deflater<nl.tue.astar.impl.State<H,T>>, nl.tue.storage.EqualOperation<nl.tue.astar.impl.State<H,T>>, nl.tue.storage.HashOperation<nl.tue.astar.impl.State<H,T>>
Constructor and Description |
---|
StateCompressor(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
deflate(nl.tue.astar.impl.State<H,T> object,
java.io.OutputStream stream)
deflate the given object into the provided stream.
|
boolean |
equals(nl.tue.astar.impl.State<H,T> object,
nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>> store,
long l)
Check for equality between a given object and a location in the store.
|
int |
getHashCode(nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>> store,
long l)
Returns the hashCode of the object stored in the store at index l.
|
int |
getHashCode(nl.tue.astar.impl.State<H,T> state)
Returns the hashCode of the given object.
|
int |
getMaxByteCount()
the method is called before each call to deflate.
|
nl.tue.astar.impl.State<H,T> |
inflate(java.io.InputStream stream)
read an object from a stream.
|
public int getHashCode(nl.tue.astar.impl.State<H,T> state)
nl.tue.storage.HashOperation
public int getHashCode(nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>> store, long l) throws nl.tue.storage.StorageException
nl.tue.storage.HashOperation
public boolean equals(nl.tue.astar.impl.State<H,T> object, nl.tue.storage.CompressedStore<nl.tue.astar.impl.State<H,T>> store, long l) throws nl.tue.storage.StorageException, java.io.IOException
nl.tue.storage.EqualOperation
public void deflate(nl.tue.astar.impl.State<H,T> object, java.io.OutputStream stream) throws java.io.IOException
nl.tue.storage.Deflater
public nl.tue.astar.impl.State<H,T> inflate(java.io.InputStream stream) throws java.io.IOException
nl.tue.storage.Inflater
public int getMaxByteCount()
nl.tue.storage.Deflater