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.TailgetNextTail in interface nl.tue.astar.Tailpublic <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.TailgetNextTailFromStorage in interface nl.tue.astar.Tailjava.io.IOExceptionpublic 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.TailgetEstimatedCosts in interface nl.tue.astar.Tailpublic boolean canComplete()
nl.tue.astar.TailcanComplete in interface nl.tue.astar.Tailpublic void deflate(PNaiveTail object, java.io.OutputStream stream) throws java.io.IOException
nl.tue.storage.Deflaterdeflate in interface nl.tue.storage.Deflater<PNaiveTail>java.io.IOExceptionpublic PNaiveTail inflate(java.io.InputStream stream) throws java.io.IOException
nl.tue.storage.Inflaterinflate in interface nl.tue.storage.Inflater<PNaiveTail>java.io.IOExceptionpublic int getMaxByteCount()
nl.tue.storage.DeflatergetMaxByteCount 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