SolutionType
- the solution type to which move can be applied, required to extend Solution
public interface Move<SolutionType extends Solution>
Modifier and Type | Method and Description |
---|---|
void |
apply(SolutionType solution)
Apply this move to the given solution.
|
void |
undo(SolutionType solution)
Undo this move after it has been applied to the given solution.
|
void apply(SolutionType solution)
solution
- solution to which the move is appliedSolutionModificationException
- if the solution can not be modified according to the applied movevoid undo(SolutionType solution)
solution
- solution to which the move has been appliedCopyright © 2016. All rights reserved.