public class PNaiveTail extends java.lang.Object implements nl.tue.astar.Tail, nl.tue.storage.Deflater<PNaiveTail>, nl.tue.astar.impl.memefficient.TailInflater<PNaiveTail>
Modifier and Type | Field and Description |
---|---|
static PNaiveTail |
EMPTY |
Modifier and Type | Method and Description |
---|---|
boolean |
canComplete()
returns true if and only if the replay can finish according to this tail,
i.e.
|
void |
deflate(PNaiveTail object,
java.io.OutputStream stream)
deflate the given object into the provided stream.
|
int |
getEstimatedCosts(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d,
nl.tue.astar.Head head)
get an estimate of the remaining distance to the target state in the
search.
|
int |
getMaxByteCount()
the method is called before each call to deflate.
|
nl.tue.astar.Tail |
getNextTail(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d,
nl.tue.astar.Head oldHead,
int modelMove,
int logMove,
int activity)
constructs the new tail based on the two operations from the old head.
|
<S> nl.tue.astar.Tail |
getNextTailFromStorage(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d,
nl.tue.storage.CompressedStore<S> store,
long index,
int modelMove,
int logMove,
int activity)
constructs the new tail based on the two operations from the old state,
which is stored in the given store at the given index.
|
PNaiveTail |
inflate(java.io.InputStream stream)
read an object from a stream.
|
<H extends nl.tue.astar.Head> |
inflateEstimate(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,PNaiveTail> delegate,
H head,
java.io.InputStream stream) |
public static final PNaiveTail EMPTY
public nl.tue.astar.Tail getNextTail(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d, nl.tue.astar.Head oldHead, int modelMove, int logMove, int activity)
nl.tue.astar.Tail
getNextTail
in interface nl.tue.astar.Tail
public <S> nl.tue.astar.Tail getNextTailFromStorage(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d, nl.tue.storage.CompressedStore<S> store, long index, int modelMove, int logMove, int activity) throws java.io.IOException
nl.tue.astar.Tail
getNextTailFromStorage
in interface nl.tue.astar.Tail
java.io.IOException
public int getEstimatedCosts(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d, nl.tue.astar.Head head)
nl.tue.astar.Tail
getEstimatedCosts
in interface nl.tue.astar.Tail
public boolean canComplete()
nl.tue.astar.Tail
canComplete
in interface nl.tue.astar.Tail
public void deflate(PNaiveTail object, java.io.OutputStream stream) throws java.io.IOException
nl.tue.storage.Deflater
deflate
in interface nl.tue.storage.Deflater<PNaiveTail>
java.io.IOException
public PNaiveTail inflate(java.io.InputStream stream) throws java.io.IOException
nl.tue.storage.Inflater
inflate
in interface nl.tue.storage.Inflater<PNaiveTail>
java.io.IOException
public int getMaxByteCount()
nl.tue.storage.Deflater
getMaxByteCount
in interface nl.tue.storage.Deflater<PNaiveTail>
public <H extends nl.tue.astar.Head> int inflateEstimate(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,PNaiveTail> delegate, H head, java.io.InputStream stream) throws java.io.IOException
inflateEstimate
in interface nl.tue.astar.impl.memefficient.TailInflater<PNaiveTail>
java.io.IOException