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, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getMovementSequence
public NAryTreeHistoryAwareMovementSequence(S toState, java.util.List<MoveImpl<NAryTreeLabel,NAryTreeNode>> moves)
public int getTotalCost()
MovementSequence
getTotalCost
in interface MovementSequence<S extends NAryTreeHistoryAwareState,NAryTreeLabel,NAryTreeNode>
public NAryTreeLabel getLastLogMove()
public NAryTreeNode getLastModelMove()
public S getToState()
MovementSequence
getToState
in interface MovementSequence<S extends NAryTreeHistoryAwareState,NAryTreeLabel,NAryTreeNode>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object