Class AbstractSimplifiedMove<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.heuristic.move.AbstractSimplifiedMove<Solution_>
- Type Parameters:
Solution_-
- All Implemented Interfaces:
Move<Solution_>
@Deprecated(forRemoval=true,
since="1.16.0")
public abstract class AbstractSimplifiedMove<Solution_>
extends Object
implements Move<Solution_>
Deprecated, for removal: This API element is subject to removal in a future version.
This is an alternative to
AbstractMove,
allowing to trade some performance for less boilerplate.
This move will record all events that change variables,
and replay them in the undo move,
therefore removing the need to implement the undo move.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoMoveOnGenuineVariables(ScoreDirector<Solution_> scoreDirector) Deprecated, for removal: This API element is subject to removal in a future version.final voiddoMoveOnly(ScoreDirector<Solution_> scoreDirector) Deprecated, for removal: This API element is subject to removal in a future version.Does the move (which indirectly affects theScoreDirector.getWorkingSolution()).toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.heuristic.move.Move
doMove, getPlanningEntities, getPlanningValues, getSimpleMoveTypeDescription, isMoveDoable, rebase
-
Constructor Details
-
AbstractSimplifiedMove
public AbstractSimplifiedMove()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
doMoveOnly
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MoveDoes the move (which indirectly affects theScoreDirector.getWorkingSolution()). When theworking solutionis modified, theScoreDirectormust be correctly notified (throughScoreDirector.beforeVariableChanged(Object, String)andScoreDirector.afterVariableChanged(Object, String)), otherwise later calculatedScores will be corrupted, or the move may not be correctly undone.This method must end with calling
ScoreDirector.triggerVariableListeners()to ensure all shadow variables are updated.- Specified by:
doMoveOnlyin interfaceMove<Solution_>- Parameters:
scoreDirector- never null, theScoreDirectorthat needs to get notified of the changes
-
doMoveOnGenuineVariables
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
AbstractMove, which no longer requires undo moves to be implemented either.