public class SimpleMovementSequence<S,L,M> extends java.lang.Object implements MovementSequence<S,L,M>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cost |
protected S |
fromState |
protected L |
lastLogMove |
protected M |
lastModelMove |
protected S |
toState |
| Constructor and Description |
|---|
SimpleMovementSequence(S fromState,
S toState,
L lastLogMove,
M lastModelMove,
int cost) |
| Modifier and Type | Method and Description |
|---|---|
S |
getFromState() |
L |
getLastLogMove() |
M |
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
|
protected final S fromState
protected final S toState
protected final L lastLogMove
protected final M lastModelMove
protected final int cost
public int getTotalCost()
MovementSequencegetTotalCost in interface MovementSequence<S,L,M>public L getLastLogMove()
public M getLastModelMove()
public S getFromState()
public S getToState()
MovementSequencegetToState in interface MovementSequence<S,L,M>