public class NAryTreeEmptyTail extends java.lang.Object implements nl.tue.astar.Tail, nl.tue.astar.impl.memefficient.TailInflater<NAryTreeEmptyTail>, nl.tue.storage.Deflater<NAryTreeEmptyTail>
Modifier and Type | Field and Description |
---|---|
static NAryTreeEmptyTail |
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(NAryTreeEmptyTail 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 h)
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.
|
NAryTreeEmptyTail |
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,NAryTreeEmptyTail> delegate,
H head,
java.io.InputStream stream) |
java.lang.String |
toString() |
public static final NAryTreeEmptyTail 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 h)
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(NAryTreeEmptyTail object, java.io.OutputStream stream) throws java.io.IOException
nl.tue.storage.Deflater
deflate
in interface nl.tue.storage.Deflater<NAryTreeEmptyTail>
java.io.IOException
public NAryTreeEmptyTail inflate(java.io.InputStream stream) throws java.io.IOException
nl.tue.storage.Inflater
inflate
in interface nl.tue.storage.Inflater<NAryTreeEmptyTail>
java.io.IOException
public int getMaxByteCount()
nl.tue.storage.Deflater
getMaxByteCount
in interface nl.tue.storage.Deflater<NAryTreeEmptyTail>
public java.lang.String toString()
toString
in class java.lang.Object
public <H extends nl.tue.astar.Head> int inflateEstimate(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,NAryTreeEmptyTail> delegate, H head, java.io.InputStream stream) throws java.io.IOException
inflateEstimate
in interface nl.tue.astar.impl.memefficient.TailInflater<NAryTreeEmptyTail>
java.io.IOException