public abstract class AbstractNAryTreeLPTail
extends java.lang.Object
implements nl.tue.astar.Tail
Modifier and Type | Field and Description |
---|---|
protected int |
estimate |
static double |
PRECISION |
protected short[] |
variables |
Constructor and Description |
---|
AbstractNAryTreeLPTail(AbstractNAryTreeLPDelegate<?> delegate,
NAryTreeHead h,
int minCost) |
AbstractNAryTreeLPTail(int estimate,
short[] variables) |
Modifier and Type | Method and Description |
---|---|
boolean |
canComplete()
returns true if and only if the replay can finish according to this tail,
i.e.
|
int |
getEstimate() |
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.
|
abstract AbstractNAryTreeLPTail |
getNewTail(AbstractNAryTreeDelegate<?> delegate,
NAryTreeHead h,
int minCost) |
abstract AbstractNAryTreeLPTail |
getNewTail(int estimate,
short[] variables) |
nl.tue.astar.Tail |
getNextTail(nl.tue.astar.Delegate<? extends nl.tue.astar.Head,? extends nl.tue.astar.Tail> d,
nl.tue.astar.Head head,
int modelMove,
int logMove,
int activity)
constructs the new tail based on the two operations from the old head.
|
abstract <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.
|
short[] |
getVariables() |
java.lang.String |
toString() |
static java.lang.String |
toString(short[] a) |
protected boolean |
updateVariables(AbstractNAryTreeDelegate<?> delegate,
NAryTree tree,
byte[] state,
short[] vars,
int modelMove,
boolean syncMove) |
public static final double PRECISION
protected int estimate
protected final short[] variables
public AbstractNAryTreeLPTail(AbstractNAryTreeLPDelegate<?> delegate, NAryTreeHead h, int minCost)
public AbstractNAryTreeLPTail(int estimate, short[] variables)
public abstract AbstractNAryTreeLPTail getNewTail(int estimate, short[] variables)
public abstract AbstractNAryTreeLPTail getNewTail(AbstractNAryTreeDelegate<?> delegate, NAryTreeHead h, int minCost)
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 head, int modelMove, int logMove, int activity)
nl.tue.astar.Tail
getNextTail
in interface nl.tue.astar.Tail
protected boolean updateVariables(AbstractNAryTreeDelegate<?> delegate, NAryTree tree, byte[] state, short[] vars, int modelMove, boolean syncMove)
public abstract <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 int getEstimate()
public short[] getVariables()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(short[] a)