public class NAryTreeHistoryAwareMovementSequence<S extends NAryTreeHistoryAwareState> extends NAryTreeMoveList implements HistoryAwareMovementSequence<S,NAryTreeLabel,NAryTreeNode>
cost, moves, NOMOVE| Constructor and Description |
|---|
NAryTreeHistoryAwareMovementSequence(S toState,
java.util.List<MoveImpl<NAryTreeLabel,NAryTreeNode>> moves) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
NAryTreeLabel |
getLastLogMove() |
NAryTreeNode |
getLastModelMove() |
S |
getToState()
return the state that is the result of executing this movement sequence.
|
int |
getTotalCost()
return the total cost of this movement sequence, including the last move
|
int |
hashCode() |
java.lang.String |
toString() |
get, getMovementSequence, makeMove, setMoves, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMovementSequencepublic NAryTreeHistoryAwareMovementSequence(S toState, java.util.List<MoveImpl<NAryTreeLabel,NAryTreeNode>> moves)
public int getTotalCost()
MovementSequencegetTotalCost in interface MovementSequence<S extends NAryTreeHistoryAwareState,NAryTreeLabel,NAryTreeNode>public NAryTreeLabel getLastLogMove()
public NAryTreeNode getLastModelMove()
public S getToState()
MovementSequencegetToState in interface MovementSequence<S extends NAryTreeHistoryAwareState,NAryTreeLabel,NAryTreeNode>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object